Skip to content

Commit fc867b8

Browse files
authored
[CMAKE][CORE] Move max2w3d to Core (#696)
1 parent a7f6f05 commit fc867b8

File tree

419 files changed

+14
-74886
lines changed

Some content is hidden

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

419 files changed

+14
-74886
lines changed

Core/Tools/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ endif()
88
# Build less useful tool/test binaries.
99
if(RTS_BUILD_CORE_EXTRAS)
1010
add_subdirectory(Compress)
11+
add_subdirectory(WW3D)
1112
endif()

GeneralsMD/Code/Tools/WW3D/max2w3d/CMakeLists.txt renamed to Core/Tools/WW3D/max2w3d/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,31 +146,31 @@ set(MAX2W3D_SRC
146146
"w3dutil.h"
147147
)
148148

149-
add_library(z_max2w3d SHARED)
150-
set_target_properties(z_max2w3d PROPERTIES OUTPUT_NAME max2w3d SUFFIX ".dle")
149+
add_library(core_max2w3d SHARED)
150+
set_target_properties(core_max2w3d PROPERTIES OUTPUT_NAME max2w3d SUFFIX ".dle")
151151

152-
target_include_directories(z_max2w3d PRIVATE
152+
target_include_directories(core_max2w3d PRIVATE
153153
"../pluglib"
154154
)
155155

156-
target_sources(z_max2w3d PRIVATE ${MAX2W3D_SRC})
156+
target_sources(core_max2w3d PRIVATE ${MAX2W3D_SRC})
157157

158158
# TODO: What does W3D_MAX4 do? Needs cmake option?
159-
target_compile_definitions(z_max2w3d PRIVATE W3D_MAX4)
159+
target_compile_definitions(core_max2w3d PRIVATE W3D_MAX4)
160160

161-
target_link_libraries(z_max2w3d PRIVATE
161+
target_link_libraries(core_max2w3d PRIVATE
162162
Comctl32
163163
# This is only linked to have its basetsd.h used instead of the vs6's basetsd.h
164164
# The headers typedef INT_PTR to different types, but maxsdk expects it
165165
# typedef'ed to int, otherwise throws linker errors.
166166
d3d8lib
167167
maxsdk
168168
winmm
169-
z_pluglib
169+
core_pluglib
170170
)
171171

172-
set_target_properties(z_max2w3d PROPERTIES LINK_FLAGS "/DEF:max2w3d.def")
172+
set_target_properties(core_max2w3d PROPERTIES LINK_FLAGS "/DEF:max2w3d.def")
173173

174174
if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
175-
target_sources(z_max2w3d PRIVATE max2w3d.rc)
175+
target_sources(core_max2w3d PRIVATE max2w3d.rc)
176176
endif()

Generals/Code/Tools/WW3D/pluglib/CMakeLists.txt renamed to Core/Tools/WW3D/pluglib/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ set(PLUGLIB_SRC
5353
"WWmatrix3.h"
5454
)
5555

56-
add_library(g_pluglib STATIC)
57-
set_target_properties(g_pluglib PROPERTIES OUTPUT_NAME pluglib)
56+
add_library(core_pluglib STATIC)
57+
set_target_properties(core_pluglib PROPERTIES OUTPUT_NAME pluglib)
5858

59-
target_sources(g_pluglib PRIVATE ${PLUGLIB_SRC})
59+
target_sources(core_pluglib PRIVATE ${PLUGLIB_SRC})
6060

61-
target_link_libraries(g_pluglib PRIVATE maxsdk)
61+
target_link_libraries(core_pluglib PRIVATE maxsdk)

Generals/Code/Tools/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ if(RTS_BUILD_GENERALS_EXTRAS)
2424
add_subdirectory(timingTest)
2525
add_subdirectory(versionUpdate)
2626
add_subdirectory(wolSetup)
27-
add_subdirectory(WW3D)
2827
endif()

0 commit comments

Comments
 (0)