From eacdc2daabcc7f597929fd71c6e67cfd31d0ef4e Mon Sep 17 00:00:00 2001 From: Jacobo <77410525+jacobo-mc@users.noreply.github.com> Date: Tue, 18 Jan 2022 07:31:13 -0500 Subject: [PATCH] Rename d3xp to sabase --- neo/CMakeLists.txt | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 64e36b7a..775f103c 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -47,10 +47,10 @@ include(CheckCXXCompilerFlag) include(GNUInstallDirs OPTIONAL RESULT_VARIABLE GNUINSTALLDIRS) option(CORE "Build the core" ON) -option(BASE "Build the base game code" ON) -option(D3XP "Build the d3xp game code" ON) +option(BASE "Build the base game code" OFF) +option(SABASE "Build the standalone game code" ON) if(MSVC) - option(TOOLS "Build the tools game code (Visual Studio+SDL2 only)" OFF) + option(TOOLS "Build the tools game code (Visual Studio+SDL2 only)" ON) endif() option(DEDICATED "Build the dedicated server" OFF) option(ONATIVE "Optimize for the host CPU" OFF) @@ -1170,27 +1170,27 @@ if(BASE) endif() endif() -if(D3XP) +if(SABASE) if (AROS) - add_executable(d3xp sys/aros/dll/dllglue.c ${src_d3xp}) - set_target_properties(d3xp PROPERTIES OUTPUT_NAME "d3xp.aros-${AROS_ARCH}") + add_executable(sabase sys/aros/dll/dllglue.c ${src_d3xp}) + set_target_properties(sabase PROPERTIES OUTPUT_NAME "sabase.aros-${AROS_ARCH}") else() - add_library(d3xp SHARED ${src_d3xp}) + add_library(sabase SHARED ${src_d3xp}) endif() source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX neo FILES ${src_d3xp}) - set_target_properties(d3xp PROPERTIES PREFIX "") - set_target_properties(d3xp PROPERTIES COMPILE_DEFINITIONS "GAME_DLL;_D3XP;CTF") - target_include_directories(d3xp PRIVATE "${CMAKE_SOURCE_DIR}/d3xp") - set_target_properties(d3xp PROPERTIES LINK_FLAGS "${ldflags}") - set_target_properties(d3xp PROPERTIES INSTALL_NAME_DIR "@executable_path") + set_target_properties(sabase PROPERTIES PREFIX "") + set_target_properties(sabase PROPERTIES COMPILE_DEFINITIONS "GAME_DLL;_D3XP;CTF") + target_include_directories(sabase PRIVATE "${CMAKE_SOURCE_DIR}/d3xp") + set_target_properties(sabase PROPERTIES LINK_FLAGS "${ldflags}") + set_target_properties(sabase PROPERTIES INSTALL_NAME_DIR "@executable_path") if (AROS) - target_link_libraries(d3xp idlib dll) + target_link_libraries(sabase idlib dll) else() - target_link_libraries(d3xp idlib) + target_link_libraries(sabase idlib) endif() if(NOT APPLE AND NOT WIN32) - install(TARGETS d3xp + install(TARGETS sabase RUNTIME DESTINATION "${bindir}" LIBRARY DESTINATION "${libdir}" ARCHIVE DESTINATION "${libdir}"