Skip to content

Commit 9cc24d7

Browse files
committed
[CORE] Move PATCHGET tool files to Core (#746)
1 parent ff66efc commit 9cc24d7

Some content is hidden

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

46 files changed

+44
-3929
lines changed

Core/Tools/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ endif()
3030
# Add library interfaces here
3131
if(RTS_BUILD_GENERALS_EXTRAS OR RTS_BUILD_ZEROHOUR_EXTRAS)
3232
add_subdirectory(Autorun)
33+
add_subdirectory(PATCHGET)
3334
endif()

Core/Tools/PATCHGET/CMakeLists.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
set(PATCHGET_SRC
2+
"CHATAPI.CPP"
3+
"CHATAPI.H"
4+
"COMINIT.CPP"
5+
"COMINIT.H"
6+
"debug.cpp"
7+
"debug.h"
8+
"DownloadManager.cpp"
9+
"DownloadManager.h"
10+
"PROCESS.CPP"
11+
"PROCESS.H"
12+
"registry.cpp"
13+
"Registry.h"
14+
"RESOURCE.H"
15+
"WINBLOWS.CPP"
16+
"WINBLOWS.H"
17+
"WSTYPES.H"
18+
)
19+
20+
add_library(corei_patchgrabber INTERFACE)
21+
22+
target_sources(corei_patchgrabber INTERFACE ${PATCHGET_SRC})
23+
24+
target_link_libraries(corei_patchgrabber INTERFACE
25+
comctl32
26+
dbghelplib
27+
gamespy::gamespy
28+
imm32
29+
vfw32
30+
winmm
31+
)
32+
33+
target_compile_definitions(corei_patchgrabber INTERFACE
34+
$<$<CONFIG:Debug>:DEBUG_CRASHING>
35+
)
36+
37+
if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
38+
target_sources(corei_patchgrabber INTERFACE SCRIPT1.RC)
39+
endif()

0 commit comments

Comments
 (0)