Rename d3xp to sabase

This commit is contained in:
Jacobo 2022-01-18 07:31:13 -05:00 committed by GitHub
parent df9d4fe2dc
commit eacdc2daab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}"