File tree 17 files changed +47
-27
lines changed
17 files changed +47
-27
lines changed Original file line number Diff line number Diff line change 21
21
[submodule "rts/lib/tracy "]
22
22
path = rts/lib/tracy
23
23
url = https://github.com/wolfpld/tracy.git
24
+ [submodule "vclibs64 "]
25
+ path = vclibs64
26
+ url = https://github.com/beyond-all-reason/vclibs64
Original file line number Diff line number Diff line change @@ -44,16 +44,16 @@ if (BUILD_${myName}_AIWRAPPER)
44
44
45
45
# Assemble the Legacy C++ AI sources
46
46
set (mySources
47
- "${mySourceDir} /AIAI"
48
- "${mySourceDir} /AIAICallback"
49
- "${mySourceDir} /AIAICheats"
50
- "${mySourceDir} /AIGlobalAICallback"
51
- "${mySourceDir} /DamageArray"
52
- "${mySourceDir} /MoveData"
53
- "${mySourceDir} /UnitDef"
54
- "${rts} /ExternalAI/AISCommands"
55
- "${rts} /Sim/Units/CommandAI/Command"
56
- "${rts} /System/float3"
47
+ "${mySourceDir} /AIAI.cpp "
48
+ "${mySourceDir} /AIAICallback.cpp "
49
+ "${mySourceDir} /AIAICheats.cpp "
50
+ "${mySourceDir} /AIGlobalAICallback.cpp "
51
+ "${mySourceDir} /DamageArray.cpp "
52
+ "${mySourceDir} /MoveData.cpp "
53
+ "${mySourceDir} /UnitDef.cpp "
54
+ "${rts} /ExternalAI/AISCommands.cpp "
55
+ "${rts} /Sim/Units/CommandAI/Command.cpp "
56
+ "${rts} /System/float3.cpp "
57
57
${ai_common_SRC}
58
58
)
59
59
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ option(WITH_MAPCOMPILER "Include map compiler" TRUE)
18
18
# dummy so that qtcreator shows all files (even those of windows)
19
19
if (CMAKE_VERSION VERSION_GREATER 3.1.2)
20
20
add_library (platform_sources EXCLUDE_FROM_ALL "" )
21
+ set_property (TARGET platform_sources PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
21
22
endif ()
22
23
23
24
# includes rts/build/cmake/Util.cmake & rts/build/cmake/PreferStaticLibs.cmake
@@ -184,7 +185,9 @@ endif (UNIX AND NOT MINGW)
184
185
# (next two are relative to CMAKE_INSTALL_PREFIX)
185
186
set (AI_LIBS_DIR "${DATADIR} " CACHE STRING "Where to install Skirmish AI libraries" )
186
187
set (AI_DATA_DIR "${AI_LIBS_DIR} " CACHE STRING "Where to install Skirmish AI additional files (eg. configuration)" )
187
- set (AI_TYPES "ALL" CACHE STRING "Which AI Interfaces (and Skirmish AIs using them) to build [ALL|NATIVE|JAVA|NONE]" )
188
+
189
+ # NATIVE to avoid Java dependency by default (to avoid cmake config Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 AWT JVM)
190
+ set (AI_TYPES "NATIVE" CACHE STRING "Which AI Interfaces (and Skirmish AIs using them) to build [ALL|NATIVE|JAVA|NONE]" )
188
191
189
192
## DataDirs
190
193
set (BUILTIN_DATADIRS "" )
@@ -657,3 +660,5 @@ if (INSTALL_PORTABLE)
657
660
file (TOUCH ${CMAKE_CURRENT_BINARY_DIR} /springsettings_portable.cfg) # empty settings file for portable install
658
661
install (FILES ${CMAKE_CURRENT_BINARY_DIR} /springsettings_portable.cfg DESTINATION . RENAME springsettings.cfg)
659
662
endif (INSTALL_PORTABLE)
663
+
664
+ set_property (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT engine-legacy)
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Find_Library(FONTCONFIG_LIBRARY NAMES ${FONTCONFIG_NAMES})
21
21
22
22
# handle the QUIETLY and REQUIRED arguments and set FONTCONFIG_FOUND to TRUE if
23
23
# all listed variables are TRUE
24
- Find_Package_Handle_Standard_Args(FONTCONFIG DEFAULT_MSG FONTCONFIG_LIBRARY FONTCONFIG_INCLUDE_DIR)
24
+ Find_Package_Handle_Standard_Args(FontConfig DEFAULT_MSG FONTCONFIG_LIBRARY FONTCONFIG_INCLUDE_DIR)
25
25
26
26
If (FONTCONFIG_FOUND)
27
27
Set (FONTCONFIG_LIBRARIES ${FONTCONFIG_LIBRARY} )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Find_Library(MINIZIP_LIBRARY NAMES ${MINIZIP_NAMES})
21
21
22
22
# handle the QUIETLY and REQUIRED arguments and set MINIZIP_FOUND to TRUE if
23
23
# all listed variables are TRUE
24
- Find_Package_Handle_Standard_Args(MiniZip DEFAULT_MSG MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR)
24
+ Find_Package_Handle_Standard_Args(minizip DEFAULT_MSG MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR)
25
25
26
26
If (MINIZIP_FOUND)
27
27
Set (MINIZIP_LIBRARIES ${MINIZIP_LIBRARY} )
Original file line number Diff line number Diff line change @@ -160,14 +160,15 @@ add_executable(engine-dedicated
160
160
${sources_engine_System_Log_sinkFile}
161
161
${sources_engine_System_Log_sinkOutputDebugString}
162
162
${ENGINE_ICON}
163
- main
163
+ main.cpp
164
164
)
165
165
target_link_libraries (engine-dedicated ${engineDedicatedLibraries} )
166
166
if (MINGW)
167
167
target_link_libraries (engine-dedicated ${WS2_32_LIBRARY} ${IMAGEHLP_LIBRARY} ${IPHLPAPI_LIBRARY} ${WINMM_LIBRARY} )
168
168
endif (MINGW)
169
169
if (MSVC )
170
170
target_link_libraries (engine-dedicated ${DBGHELP_LIBRARY} )
171
+ set_property (TARGET engine-dedicated PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
171
172
endif (MSVC )
172
173
add_dependencies (engine-dedicated generateVersionFiles)
173
174
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ include_directories(${ENGINE_SRC_ROOT_DIR}/lib/slimsig/include)
36
36
### Build the executable
37
37
add_executable (engine-headless ${engineSources} ${ENGINE_ICON} )
38
38
target_link_libraries (engine-headless no -sound ${engineHeadlessLibraries} no -sound)
39
+ set_property (TARGET engine-headless PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
39
40
40
41
if (MINGW)
41
42
# To enable console output/force a console window to open
Original file line number Diff line number Diff line change 4
4
# which makes testing spring in the builddir easier, eg. like this:
5
5
# cd build-dir
6
6
# SPRING_DATADIR=$(pwd) ./spring
7
+ cmake_minimum_required (VERSION 3.6)
7
8
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} " )
8
9
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} " )
9
10
@@ -82,8 +83,13 @@ include_directories(${engineIncludes})
82
83
add_executable (engine-legacy ${EXE_FLAGS} ${engineSources} ${ENGINE_ICON} ${engineHeaders} )
83
84
target_link_libraries (engine-legacy ${engineLibraries} )
84
85
86
+ if (MSVC )
87
+ add_custom_command (TARGET engine-legacy PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different "${PROJECT_SOURCE_DIR} /vclibs64/dll/" ${PROJECT_BINARY_DIR} /$(Configuration ))
88
+ endif (MSVC )
85
89
86
90
### Install the executable
87
91
install (TARGETS engine-legacy DESTINATION ${BINDIR} )
88
92
89
93
create_engine_build_and_install_target(legacy)
94
+
95
+ set_property (TARGET install -spring-legacy PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
Original file line number Diff line number Diff line change 33
33
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
34
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
35
#----------------------------------------------------------------------
36
- SET (CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
37
- CMAKE_MINIMUM_REQUIRED ( VERSION 2.8 )
36
+ CMAKE_MINIMUM_REQUIRED (VERSION 3.26.3)
38
37
PROJECT ( Assimp )
39
38
40
39
# All supported options ###############################################
Original file line number Diff line number Diff line change 43
43
# 3) Add libassimp using the file lists (eliminates duplication of file names between
44
44
# source groups and library command)
45
45
#
46
- cmake_minimum_required ( VERSION 2.6 )
46
+ cmake_minimum_required (VERSION 3.26.3 )
47
47
SET ( HEADER_PATH ../include /assimp )
48
48
49
49
SET ( COMPILER_HEADERS
Original file line number Diff line number Diff line change 1
1
SET (headlessStubsSources
2
- "glewstub"
3
- "glstub"
4
- "glustub"
5
- "sdlstub"
2
+ "glewstub.c "
3
+ "glstub.c "
4
+ "glustub.c "
5
+ "sdlstub.c "
6
6
)
7
7
8
8
FIND_PACKAGE (SDL2 REQUIRED)
Original file line number Diff line number Diff line change 1
1
# Spring supplied CMake build file
2
2
3
3
set (MINIZIP_FIND_QUIETLY TRUE )
4
- FIND_PACKAGE_STATIC(MiniZip )
4
+ FIND_PACKAGE_STATIC(minizip )
5
5
6
6
if (MINIZIP_FOUND)
7
7
# Use the system supplied MiniZip library
@@ -13,9 +13,9 @@ else (MINIZIP_FOUND)
13
13
# Build our own minizip library
14
14
15
15
set (miniZipSources
16
- "unzip"
17
- "zip"
18
- "ioapi"
16
+ "unzip.c "
17
+ "zip.c "
18
+ "ioapi.c "
19
19
)
20
20
21
21
add_definitions (-DNOCRYPT -DNOUNCRYPT)
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ macro (add_spring_test target sources libraries flags)
68
68
target_link_libraries (test_${target} ${libraries} ${test_common_libraries} )
69
69
set_target_properties (test_${target} PROPERTIES COMPILE_FLAGS "${flags} " )
70
70
#install(TARGETS test_${target} DESTINATION ${BINDIR})
71
+ set_property (TARGET test_${target} PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
71
72
endmacro ()
72
73
73
74
################################################################################
@@ -244,6 +245,7 @@ endif()
244
245
# positive tests (should compile fine)
245
246
add_spring_test(${test_name} "${test_src} " "${test_libs} " "" )
246
247
add_dependencies (tests test_BitwiseEnum)
248
+ set_property (TARGET test_BitwiseEnum PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
247
249
248
250
# negative tests (must not compile)
249
251
spring_test_compile_fail(testBitwiseEnum_fail1 ${test_src} "-DTEST1" )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ set(demoToolSpringSources
37
37
${ENGINE_SRC_ROOT_DIR} /System /SafeCStrings.c
38
38
)
39
39
40
- add_executable (demotool EXCLUDE_FROM_ALL DemoTool ${demoToolSpringSources} )
40
+ add_executable (demotool EXCLUDE_FROM_ALL DemoTool.cpp ${demoToolSpringSources} )
41
41
if (MINGW)
42
42
# To enable console output/force a console window to open
43
43
set_target_properties (demotool PROPERTIES LINK_FLAGS "-Wl,-subsystem,console" )
@@ -48,3 +48,4 @@ target_link_libraries(demotool
48
48
gflags
49
49
)
50
50
add_dependencies (demotool generateVersionFiles)
51
+ set_property (TARGET demotool PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
Original file line number Diff line number Diff line change 7
7
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} " )
8
8
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} " )
9
9
10
- add_executable (dirchange EXCLUDE_FROM_ALL dirchange)
10
+ add_executable (dirchange EXCLUDE_FROM_ALL dirchange.cpp )
11
11
set_target_properties (dirchange PROPERTIES OUTPUT_NAME "dch" )
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ add_executable(unitsyncTest EXCLUDE_FROM_ALL test.cpp)
19
19
target_link_libraries (unitsyncTest unitsync ${CMAKE_DL_LIBS} )
20
20
add_dependencies (unitsyncTest unitsync)
21
21
#INSTALL(TARGETS unitsyncTest DESTINATION ${BINDIR})
22
+ set_property (TARGET unitsyncTest PROPERTY EXCLUDE_FROM_DEFAULT_BUILD_DEBUG TRUE )
You can’t perform that action at this time.
0 commit comments