Skip to content

Commit d4d3abd

Browse files
authored
[CORE] Move ImagePacker tool files to Core (#747)
1 parent 28f7afd commit d4d3abd

38 files changed

+42
-5298
lines changed

Core/Tools/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ endif()
2323

2424
# Add library interfaces here
2525
if(RTS_BUILD_GENERALS_TOOLS OR RTS_BUILD_ZEROHOUR_TOOLS)
26+
add_subdirectory(ImagePacker)
2627
endif()
2728

2829
# Add library interfaces here

Core/Tools/ImagePacker/CMakeLists.txt

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
set(IMAGEPACKER_SRC
2+
"Include/ImageDirectory.h"
3+
"Include/ImageInfo.h"
4+
"Include/ImagePacker.h"
5+
"Include/TexturePage.h"
6+
"Include/WindowProc.h"
7+
"Include/WinMain.h"
8+
"Source/ImageInfo.cpp"
9+
"Source/ImagePacker.cpp"
10+
"Source/TexturePage.cpp"
11+
"Source/WinMain.cpp"
12+
"Source/WindowProcedures/DirectorySelect.cpp"
13+
"Source/WindowProcedures/ImageErrorProc.cpp"
14+
"Source/WindowProcedures/ImagePackerProc.cpp"
15+
"Source/WindowProcedures/PageErrorProc.cpp"
16+
"Source/WindowProcedures/PreviewProc.cpp"
17+
)
18+
19+
add_library(corei_imagepacker INTERFACE)
20+
21+
target_sources(corei_imagepacker INTERFACE ${IMAGEPACKER_SRC})
22+
23+
target_include_directories(corei_imagepacker INTERFACE
24+
Include
25+
Resource
26+
)
27+
28+
target_link_libraries(corei_imagepacker INTERFACE
29+
benchmark
30+
comctl32
31+
dbghelplib
32+
imm32
33+
vfw32
34+
winmm
35+
)
36+
37+
if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
38+
target_sources(corei_imagepacker INTERFACE Resource/ImagePacker.rc)
39+
endif()
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,9 @@
1-
set(IMAGEPACKER_SRC
2-
"Include/ImageDirectory.h"
3-
"Include/ImageInfo.h"
4-
"Include/ImagePacker.h"
5-
"Include/TexturePage.h"
6-
"Include/WindowProc.h"
7-
"Include/WinMain.h"
8-
"Source/ImageInfo.cpp"
9-
"Source/ImagePacker.cpp"
10-
"Source/TexturePage.cpp"
11-
"Source/WinMain.cpp"
12-
"Source/Window Procedures/DirectorySelect.cpp"
13-
"Source/Window Procedures/ImageErrorProc.cpp"
14-
"Source/Window Procedures/ImagePackerProc.cpp"
15-
"Source/Window Procedures/PageErrorProc.cpp"
16-
"Source/Window Procedures/PreviewProc.cpp"
17-
)
18-
191
add_executable(g_imagepacker WIN32)
202
set_target_properties(g_imagepacker PROPERTIES OUTPUT_NAME imagepacker)
213

22-
target_sources(g_imagepacker PRIVATE ${IMAGEPACKER_SRC})
23-
24-
target_include_directories(g_imagepacker PRIVATE
25-
Include
26-
Resource
27-
)
28-
294
target_link_libraries(g_imagepacker PRIVATE
30-
benchmark
31-
comctl32
32-
dbghelplib
5+
corei_imagepacker
336
g_gameengine
347
g_gameenginedevice
358
gi_always
36-
imm32
37-
vfw32
38-
winmm
399
)
40-
41-
if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
42-
target_sources(g_imagepacker PRIVATE Resource/ImagePacker.rc)
43-
endif()

Generals/Code/Tools/ImagePacker/Include/ImageDirectory.h

-87
This file was deleted.

Generals/Code/Tools/ImagePacker/Include/ImageInfo.h

-116
This file was deleted.

0 commit comments

Comments
 (0)