mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Move debug functions to own module
This commit is part of efforts to isolate subsystems of project into own modules.
This commit is contained in:
parent
b0cef3ff0e
commit
2aece028d0
@ -141,6 +141,7 @@ endif()
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"cfile" # TODO: Remove after untying all modules
|
"cfile" # TODO: Remove after untying all modules
|
||||||
|
"ddebug" # -*-
|
||||||
"lib" # TODO: Remove after untying all modules
|
"lib" # TODO: Remove after untying all modules
|
||||||
"Descent3"
|
"Descent3"
|
||||||
${PLATFORM_INCLUDES}
|
${PLATFORM_INCLUDES}
|
||||||
@ -154,6 +155,7 @@ add_subdirectory(bitmap)
|
|||||||
add_subdirectory(cfile)
|
add_subdirectory(cfile)
|
||||||
add_subdirectory(czip)
|
add_subdirectory(czip)
|
||||||
add_subdirectory(d3music)
|
add_subdirectory(d3music)
|
||||||
|
add_subdirectory(ddebug)
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
add_subdirectory(dd_grwin32)
|
add_subdirectory(dd_grwin32)
|
||||||
|
@ -299,7 +299,7 @@ add_executable(Descent3
|
|||||||
${HEADERS} ${CPPS} ${PLATFORM_CPPS} ${INCS}
|
${HEADERS} ${CPPS} ${PLATFORM_CPPS} ${INCS}
|
||||||
)
|
)
|
||||||
target_link_libraries(Descent3
|
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
|
fix grtext manage mem misc model module movie stream_audio
|
||||||
music networking physics renderer rtperformance sndlib ui unzip vecmat md5
|
music networking physics renderer rtperformance sndlib ui unzip vecmat md5
|
||||||
${PLATFORM_LIBS})
|
${PLATFORM_LIBS})
|
||||||
|
@ -10,4 +10,5 @@ set(CPPS
|
|||||||
add_library(bitmap STATIC ${HEADERS} ${CPPS})
|
add_library(bitmap STATIC ${HEADERS} ${CPPS})
|
||||||
target_link_libraries(bitmap PRIVATE
|
target_link_libraries(bitmap PRIVATE
|
||||||
cfile
|
cfile
|
||||||
|
ddebug
|
||||||
)
|
)
|
||||||
|
18
ddebug/CMakeLists.txt
Normal file
18
ddebug/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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
|
||||||
|
>
|
||||||
|
)
|
@ -13,3 +13,6 @@ set(CPPS
|
|||||||
lnxkey_sdl.cpp)
|
lnxkey_sdl.cpp)
|
||||||
|
|
||||||
add_library(ddio_lnx STATIC ${HEADERS} ${CPPS})
|
add_library(ddio_lnx STATIC ${HEADERS} ${CPPS})
|
||||||
|
target_link_libraries(ddio_lnx
|
||||||
|
ddebug
|
||||||
|
)
|
||||||
|
@ -2,11 +2,9 @@ set(HEADERS registry.h)
|
|||||||
set(CPPS
|
set(CPPS
|
||||||
lnxcon.cpp
|
lnxcon.cpp
|
||||||
lnxcon_raw.cpp
|
lnxcon_raw.cpp
|
||||||
lnxdebug.cpp
|
|
||||||
lnxapp.cpp
|
lnxapp.cpp
|
||||||
lnxcon_null.cpp
|
lnxcon_null.cpp
|
||||||
lnxdata.cpp
|
lnxdata.cpp
|
||||||
lnxmono.cpp
|
|
||||||
registry.cpp)
|
registry.cpp)
|
||||||
# DynXLib.cpp
|
# DynXLib.cpp
|
||||||
add_library(linux STATIC ${HEADERS} ${CPPS})
|
add_library(linux STATIC ${HEADERS} ${CPPS})
|
||||||
|
@ -7,3 +7,6 @@ set(CPPS
|
|||||||
pstring.cpp)
|
pstring.cpp)
|
||||||
|
|
||||||
add_library(misc STATIC ${HEADERS} ${CPPS})
|
add_library(misc STATIC ${HEADERS} ${CPPS})
|
||||||
|
target_link_libraries(misc
|
||||||
|
ddebug
|
||||||
|
)
|
||||||
|
@ -4,9 +4,8 @@ set(CPPS
|
|||||||
wincon.cpp
|
wincon.cpp
|
||||||
WinController.cpp
|
WinController.cpp
|
||||||
windata.cpp
|
windata.cpp
|
||||||
windebug.cpp
|
wintask.cpp
|
||||||
winmono.cpp
|
)
|
||||||
wintask.cpp)
|
|
||||||
|
|
||||||
add_library(win32 STATIC ${HEADERS} ${CPPS})
|
add_library(win32 STATIC ${HEADERS} ${CPPS})
|
||||||
add_dependencies(win32 get_git_hash)
|
add_dependencies(win32 get_git_hash)
|
||||||
|
Loading…
Reference in New Issue
Block a user