mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-11 05:00:05 -04:00
Merge branch 'main' into new-log-system
This commit is contained in:
@@ -143,6 +143,7 @@ endif()
|
||||
|
||||
include_directories(
|
||||
"cfile" # TODO: Remove after untying all modules
|
||||
"ddebug" # -*-
|
||||
"lib" # TODO: Remove after untying all modules
|
||||
"Descent3"
|
||||
${PLATFORM_INCLUDES}
|
||||
@@ -156,6 +157,7 @@ add_subdirectory(bitmap)
|
||||
add_subdirectory(cfile)
|
||||
add_subdirectory(czip)
|
||||
add_subdirectory(d3music)
|
||||
add_subdirectory(ddebug)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
add_subdirectory(dd_grwin32)
|
||||
|
||||
@@ -299,7 +299,7 @@ add_executable(Descent3
|
||||
${HEADERS} ${CPPS} ${PLATFORM_CPPS} ${INCS}
|
||||
)
|
||||
target_link_libraries(Descent3
|
||||
2dlib AudioEncode bitmap cfile czip d3music ddio_common libmve libacm
|
||||
2dlib AudioEncode bitmap cfile czip d3music ddebug ddio_common libmve libacm
|
||||
fix grtext manage mem misc model module movie stream_audio
|
||||
music networking physics renderer rtperformance sndlib ui unzip vecmat md5
|
||||
${PLATFORM_LIBS})
|
||||
|
||||
@@ -10,4 +10,5 @@ set(CPPS
|
||||
add_library(bitmap STATIC ${HEADERS} ${CPPS})
|
||||
target_link_libraries(bitmap PRIVATE
|
||||
cfile
|
||||
ddebug
|
||||
)
|
||||
|
||||
19
ddebug/CMakeLists.txt
Normal file
19
ddebug/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
set(CPPS
|
||||
$<$<PLATFORM_ID:Darwin,Linux>:
|
||||
lnxdebug.cpp
|
||||
lnxmono.cpp
|
||||
>
|
||||
$<$<PLATFORM_ID:Windows>:
|
||||
windebug.cpp
|
||||
winmono.cpp
|
||||
>
|
||||
)
|
||||
|
||||
add_library(ddebug STATIC ${CPPS})
|
||||
add_dependencies(ddebug get_git_hash)
|
||||
target_include_directories(ddebug PUBLIC
|
||||
$<BUILD_INTERFACE:
|
||||
${PROJECT_SOURCE_DIR}/ddebug
|
||||
>
|
||||
PRIVATE ${PROJECT_BINARY_DIR}/lib # For d3_version.h
|
||||
)
|
||||
@@ -13,3 +13,6 @@ set(CPPS
|
||||
lnxkey_sdl.cpp)
|
||||
|
||||
add_library(ddio_lnx STATIC ${HEADERS} ${CPPS})
|
||||
target_link_libraries(ddio_lnx
|
||||
ddebug
|
||||
)
|
||||
|
||||
@@ -2,11 +2,9 @@ set(HEADERS registry.h)
|
||||
set(CPPS
|
||||
lnxcon.cpp
|
||||
lnxcon_raw.cpp
|
||||
lnxdebug.cpp
|
||||
lnxapp.cpp
|
||||
lnxcon_null.cpp
|
||||
lnxdata.cpp
|
||||
lnxmono.cpp
|
||||
registry.cpp)
|
||||
# DynXLib.cpp
|
||||
add_library(linux STATIC ${HEADERS} ${CPPS})
|
||||
|
||||
@@ -9,4 +9,4 @@ set(CPPS
|
||||
|
||||
add_library(misc STATIC ${HEADERS} ${CPPS})
|
||||
|
||||
target_link_libraries(misc spdlog::spdlog_header_only)
|
||||
target_link_libraries(misc spdlog::spdlog_header_only ddebug)
|
||||
|
||||
@@ -4,9 +4,8 @@ set(CPPS
|
||||
wincon.cpp
|
||||
WinController.cpp
|
||||
windata.cpp
|
||||
windebug.cpp
|
||||
winmono.cpp
|
||||
wintask.cpp)
|
||||
wintask.cpp
|
||||
)
|
||||
|
||||
add_library(win32 STATIC ${HEADERS} ${CPPS})
|
||||
add_dependencies(win32 get_git_hash)
|
||||
|
||||
Reference in New Issue
Block a user