ref: db0b2d02931abd9e9fe6f27e00d963faf58c9d37
parent: f4f85f1f9d7530e9c66d561bbd6941e5f30828c8
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Apr 13 15:10:58 EDT 2020
Add option to disable DoConfig Needed for console ports
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,7 @@
option(JAPANESE "Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation)" OFF)
option(FIX_BUGS "Fix various bugs in the game" OFF)
option(DEBUG_SAVE "Re-enable the ability to drag-and-drop save files onto the window" OFF)
+option(BUILD_DOCONFIG "Compile a DoConfig clone tool - not useful for console ports" ON)
set(BACKEND_RENDERER "SDLTexture" CACHE STRING "Which renderer the game should use: 'OpenGL3' for an OpenGL 3.2 renderer, 'OpenGLES2' for an OpenGL ES 2.0 renderer, 'SDLTexture' for SDL2's hardware-accelerated Texture API, 'SDLSurface' for SDL2's software-rendered Surface API, or 'Software' for a handwritten software renderer")
set(BACKEND_AUDIO "SDL2" CACHE STRING "Which audio backend the game should use: 'SDL2', 'miniaudio', or 'Null'")
@@ -625,16 +626,18 @@
# DoConfig #
############
-add_subdirectory("DoConfig")
+if(BUILD_DOCONFIG)
+ add_subdirectory("DoConfig")
-# Name debug builds "DoConfig_debug", to distinguish them
-set_target_properties(DoConfig PROPERTIES DEBUG_OUTPUT_NAME "DoConfig_debug")
+ # Name debug builds "DoConfig_debug", to distinguish them
+ set_target_properties(DoConfig PROPERTIES DEBUG_OUTPUT_NAME "DoConfig_debug")
-# Send executable to the build_en/build_jp directory
-set_target_properties(DoConfig PROPERTIES
- RUNTIME_OUTPUT_DIRECTORY ${BUILD_DIRECTORY}
- RUNTIME_OUTPUT_DIRECTORY_RELEASE ${BUILD_DIRECTORY}
- RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ${BUILD_DIRECTORY}
- RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${BUILD_DIRECTORY}
- RUNTIME_OUTPUT_DIRECTORY_DEBUG ${BUILD_DIRECTORY}
-)
+ # Send executable to the build_en/build_jp directory
+ set_target_properties(DoConfig PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY ${BUILD_DIRECTORY}
+ RUNTIME_OUTPUT_DIRECTORY_RELEASE ${BUILD_DIRECTORY}
+ RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ${BUILD_DIRECTORY}
+ RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${BUILD_DIRECTORY}
+ RUNTIME_OUTPUT_DIRECTORY_DEBUG ${BUILD_DIRECTORY}
+ )
+endif()
--- a/README.md
+++ b/README.md
@@ -67,6 +67,7 @@
`-DJAPANESE=ON` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation)
`-DFIX_BUGS=ON` | Fix various bugs in the game
`-DDEBUG_SAVE=ON` | Re-enable the ability to drag-and-drop save files onto the window
+`-DBUILD_DOCONFIG=OFF` | Disable compiling the DoConfig tool (is not useful for console ports)
`-DBACKEND_RENDERER=OpenGL3` | Use the hardware-accelerated OpenGL 3.2 renderer
`-DBACKEND_RENDERER=OpenGLES2` | Use the hardware-accelerated OpenGL ES 2.0 renderer
`-DBACKEND_RENDERER=SDLTexture` | Use the hardware-accelerated SDL2 Texture API renderer (default) (note: requires `-DBACKEND_PLATFORM=SDL2`)