Skip to content

Commit 2713267

Browse files
authored
[CORE] Move debug and profile libraries from Zero Hour to Core (#819)
1 parent 0820395 commit 2713267

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+26
-32
lines changed

Core/Libraries/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
add_subdirectory(Source/WWVegas)
33

44
# profiling library
5-
#add_subdirectory(Source/profile)
5+
add_subdirectory(Source/profile)
66

77
# debugging library
8-
#add_subdirectory(Source/debug)
8+
add_subdirectory(Source/debug)
99

1010
add_subdirectory(Source/EABrowserDispatch)
1111
add_subdirectory(Source/EABrowserEngine)

GeneralsMD/Code/Libraries/Source/debug/CMakeLists.txt renamed to Core/Libraries/Source/debug/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ set(DEBUG_SRC
2424
"internal.h"
2525
)
2626

27-
add_library(z_debug STATIC)
27+
add_library(core_debug STATIC)
2828

29-
target_sources(z_debug PRIVATE ${DEBUG_SRC})
29+
target_sources(core_debug PRIVATE ${DEBUG_SRC})
3030

31-
target_include_directories(z_debug INTERFACE
31+
target_include_directories(core_debug INTERFACE
3232
${CMAKE_CURRENT_SOURCE_DIR}
3333
)
3434

35-
target_link_libraries(z_debug PRIVATE
35+
target_link_libraries(core_debug PRIVATE
3636
core_config
37-
zi_always
37+
corei_always
3838
)

GeneralsMD/Code/Libraries/Source/profile/CMakeLists.txt renamed to Core/Libraries/Source/profile/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ set(PROFILE_SRC
1818
"profile.h"
1919
)
2020

21-
add_library(z_profile STATIC)
21+
add_library(core_profile STATIC)
2222

23-
target_sources(z_profile PRIVATE ${PROFILE_SRC})
23+
target_sources(core_profile PRIVATE ${PROFILE_SRC})
2424

25-
target_include_directories(z_profile INTERFACE
25+
target_include_directories(core_profile INTERFACE
2626
${CMAKE_CURRENT_SOURCE_DIR}
2727
)
2828

29-
target_link_libraries(z_profile PRIVATE
29+
target_link_libraries(core_profile PRIVATE
3030
core_config
31-
zi_always
31+
corei_always
3232
)

Core/Tools/ImagePacker/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ target_include_directories(corei_imagepacker INTERFACE
2828
target_link_libraries(corei_imagepacker INTERFACE
2929
benchmark
3030
comctl32
31+
core_debug
32+
core_profile
3133
dbghelplib
3234
imm32
3335
vfw32

Core/Tools/MapCacheBuilder/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ target_include_directories(corei_mapcachebuilder INTERFACE
1515
#
1616
target_link_libraries(corei_mapcachebuilder INTERFACE
1717
comctl32
18+
core_debug
19+
core_profile
1820
dbghelplib
1921
imm32
2022
vfw32

Core/Tools/PATCHGET/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ target_sources(corei_patchgrabber INTERFACE ${PATCHGET_SRC})
2323

2424
target_link_libraries(corei_patchgrabber INTERFACE
2525
comctl32
26+
core_debug
27+
core_profile
2628
dbghelplib
2729
gamespy::gamespy
2830
imm32
-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
# WW common libraries decended from earliest C&C games
22
add_subdirectory(Source/WWVegas)
3-
4-
# profiling library
5-
add_subdirectory(Source/profile)
6-
7-
# debugging library
8-
add_subdirectory(Source/debug)

GeneralsMD/Code/Main/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ endif()
1010
target_link_libraries(z_generals PRIVATE
1111
binkstub
1212
comctl32
13+
core_debug
14+
core_profile
1315
d3d8
1416
d3dx8
1517
dbghelplib
@@ -20,10 +22,8 @@ target_link_libraries(z_generals PRIVATE
2022
safedisc
2123
vfw32
2224
winmm
23-
z_debug
2425
z_gameengine
2526
z_gameenginedevice
26-
z_profile
2727
zi_always
2828
)
2929

GeneralsMD/Code/Tools/GUIEdit/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ target_include_directories(z_guiedit PRIVATE
4848
target_link_libraries(z_guiedit PRIVATE
4949
benchmark
5050
comctl32
51+
core_debug
52+
core_profile
5153
d3d8lib
5254
dbghelplib
5355
imm32
5456
stlport
5557
vfw32
5658
winmm
57-
z_debug
5859
z_gameengine
5960
z_gameenginedevice
60-
z_profile
6161
z_wwvegas
6262
zi_always
6363
)

GeneralsMD/Code/Tools/ImagePacker/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ set_target_properties(z_imagepacker PROPERTIES OUTPUT_NAME imagepacker)
33

44
target_link_libraries(z_imagepacker PRIVATE
55
corei_imagepacker
6-
z_debug
76
z_gameengine
87
z_gameenginedevice
9-
z_profile
108
zi_always
119
)

GeneralsMD/Code/Tools/MapCacheBuilder/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ set_target_properties(z_mapcachebuilder PROPERTIES OUTPUT_NAME mapcachebuilder)
33

44
target_link_libraries(z_mapcachebuilder PRIVATE
55
corei_mapcachebuilder
6-
z_debug
76
z_gameengine
87
z_gameenginedevice
9-
z_profile
108
zi_always
119
)

GeneralsMD/Code/Tools/PATCHGET/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ macro(setup_patchgrabber appname)
33

44
target_link_libraries(${appname} PRIVATE
55
corei_patchgrabber
6-
z_debug
76
z_gameengine
87
z_gameenginedevice
9-
z_profile
108
z_wwvegas
119
zi_always
1210
)

GeneralsMD/Code/Tools/ParticleEditor/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ target_include_directories(z_particleeditor PRIVATE
3737
)
3838

3939
target_link_libraries(z_particleeditor PRIVATE
40+
core_debug
41+
core_profile
4042
corei_libraries_source_wwvegas
4143
corei_libraries_source_wwvegas_wwlib
4244
d3d8lib
@@ -46,8 +48,6 @@ target_link_libraries(z_particleeditor PRIVATE
4648
stlport
4749
vfw32
4850
winmm
49-
z_debug
50-
z_profile
5151
zi_gameengine_include
5252
zi_always
5353
zi_libraries_source_wwvegas

GeneralsMD/Code/Tools/WorldBuilder/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,16 @@ target_include_directories(z_worldbuilder PRIVATE
210210
)
211211

212212
target_link_libraries(z_worldbuilder PRIVATE
213+
core_debug
214+
core_profile
213215
d3d8lib
214216
dbghelplib
215217
imm32
216218
vfw32
217219
winmm
218220
core_browserdispatch
219-
z_debug
220221
z_gameengine
221222
z_gameenginedevice
222-
z_profile
223223
zi_gameengine_include
224224
zi_gameenginedevice_include
225225
zi_always

0 commit comments

Comments
 (0)