[nostalgia] Add option to build without Studio

This commit is contained in:
2019-02-14 23:38:14 +00:00
parent 6b66127691
commit 765315b69c
6 changed files with 22 additions and 203 deletions

View File

@@ -9,7 +9,7 @@ if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
gba/mem.cpp
gba/panic.cpp
)
elseif(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
elseif(NOSTALGIA_BUILD_STUDIO)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
@@ -19,6 +19,13 @@ elseif(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
userland/media.cpp
userland/mem.cpp
)
else()
set(
CPP
qt/gfx.cpp # does not currently use any Qt stuff, but will need to replace with SDL version
userland/media.cpp
userland/mem.cpp
)
endif()
add_library(
@@ -27,7 +34,7 @@ add_library(
core.cpp
)
if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
if(NOSTALGIA_BUILD_STUDIO)
add_subdirectory(studio)
endif()