From 9907bb8f1d3ea2a55d61bf15375b5a123c00ca8d Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 23 Dec 2023 14:32:30 -0600 Subject: [PATCH] [nostalgia] Allow building Studio mods without Studio app --- src/nostalgia/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/CMakeLists.txt b/src/nostalgia/CMakeLists.txt index d644bae6..4600ff5c 100644 --- a/src/nostalgia/CMakeLists.txt +++ b/src/nostalgia/CMakeLists.txt @@ -5,11 +5,16 @@ project(nostalgia CXX) set(NOSTALGIA_BUILD_PLAYER ON CACHE BOOL "Build Player") set(NOSTALGIA_BUILD_STUDIO ON CACHE BOOL "Build Studio") +set(NOSTALGIA_BUILD_STUDIO_APP ON CACHE BOOL "Build Studio App") if(BUILDCORE_TARGET STREQUAL "gba") set(NOSTALGIA_BUILD_STUDIO OFF) endif() +if(NOT NOSTALGIA_BUILD_STUDIO) + set(NOSTALGIA_BUILD_STUDIO_APP OFF) +endif() + if(APPLE) set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Library/nostalgia") set(NOSTALGIA_DIST_BIN NostalgiaStudio.app/Contents/MacOS) @@ -32,7 +37,7 @@ endif() if(NOT BUILDCORE_TARGET STREQUAL "gba") add_subdirectory(tools) - if(${NOSTALGIA_BUILD_STUDIO}) + if(${NOSTALGIA_BUILD_STUDIO_APP}) add_subdirectory(studio) endif() endif()