Skip to content

Commit 78d515e

Browse files
committed
tools: Port DataChunkConverter to Generals
1 parent a868a25 commit 78d515e

File tree

3 files changed

+820
-0
lines changed

3 files changed

+820
-0
lines changed

Generals/Code/Tools/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Build useful tool binaries.
44
if(RTS_BUILD_GENERALS_TOOLS)
5+
add_subdirectory(DataChunkConverter)
56
add_subdirectory(GUIEdit)
67
add_subdirectory(ImagePacker)
78
add_subdirectory(MapCacheBuilder)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
if (NOT IS_VS6_BUILD)
2+
add_executable(g_datachunkconverter)
3+
set_target_properties(g_datachunkconverter PROPERTIES OUTPUT_NAME datachunkconverter WIN32_EXECUTABLE FALSE)
4+
5+
target_sources(g_datachunkconverter PRIVATE
6+
DataChunkConverter.cpp
7+
)
8+
9+
target_include_directories(g_datachunkconverter PRIVATE
10+
${CMAKE_CURRENT_SOURCE_DIR}/../../GameEngine/Include
11+
${CMAKE_CURRENT_SOURCE_DIR}/../../GameEngine/Include/Precompiled
12+
${CMAKE_CURRENT_SOURCE_DIR}/../../Libraries/Include
13+
${CMAKE_SOURCE_DIR}/Core/GameEngine/Include
14+
${CMAKE_CURRENT_SOURCE_DIR}/../../GameEngineDevice/Include
15+
)
16+
17+
target_compile_definitions(g_datachunkconverter PRIVATE
18+
RTS_HAS_JSON_CHUNK
19+
)
20+
21+
target_link_libraries(g_datachunkconverter PRIVATE
22+
g_gameengine
23+
g_gameenginedevice
24+
gi_always
25+
comctl32
26+
core_debug
27+
core_profile
28+
winmm
29+
vfw32
30+
imm32
31+
)
32+
endif()

0 commit comments

Comments
 (0)