This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).
修订版 | 3f692a003efe3ae786b4ca43ff2d60a57b579e45 (tree) |
---|---|
时间 | 2015-08-03 04:28:50 |
作者 | Benjamin Berkels <torr.samaho@quan...> |
Commiter | Benjamin Berkels |
Merged with G1.9pre-439-g7954263
@@ -151,6 +151,11 @@ | ||
151 | 151 | string(REPLACE "/MD " " " CMAKE_C_FLAGS_RELWITHDEBINFO ${CMAKE_C_FLAGS_RELWITHDEBINFO} ) |
152 | 152 | string(REPLACE "/MDd " " " CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG} ) |
153 | 153 | string(REPLACE " /GR" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ) |
154 | +else( MSVC ) | |
155 | + set( REL_LINKER_FLAGS "" ) | |
156 | + set( ALL_C_FLAGS "" ) | |
157 | + set( REL_C_FLAGS "" ) | |
158 | + set( DEB_C_FLAGS "" ) | |
154 | 159 | endif( MSVC ) |
155 | 160 | |
156 | 161 | set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${REL_LINKER_FLAGS}" ) |
@@ -57,6 +57,20 @@ | ||
57 | 57 | "15" "14" "13" "12" "11" "10" "09" "08" "07" "06" "05" "04" "03" |
58 | 58 | "02" "01" "00" ) |
59 | 59 | set( MAJOR_VERSIONS "44" "34" "28" "26" "24" "22" "20" ) |
60 | + | |
61 | +if( NOT FMOD_DIR_VERSIONS ) | |
62 | + set( FMOD_DIR_VERSIONS "" ) | |
63 | +endif( NOT FMOD_DIR_VERSIONS ) | |
64 | +if( NOT FMOD_VERSIONS ) | |
65 | + set( FMOD_VERSIONS "" ) | |
66 | +endif( NOT FMOD_VERSIONS ) | |
67 | +if( NOT FMOD_LOCAL_INC_DIRS ) | |
68 | + set( FMOD_LOCAL_INC_DIRS "" ) | |
69 | +endif( NOT FMOD_LOCAL_INC_DIRS ) | |
70 | +if( NOT FMOD_LOCAL_LIB_DIRS ) | |
71 | + set( FMOD_LOCAL_LIB_DIRS "" ) | |
72 | +endif( NOT FMOD_LOCAL_LIB_DIRS ) | |
73 | + | |
60 | 74 | set( FMOD_DIR_VERSIONS ${FMOD_DIR_VERSIONS} "../fmod" ) |
61 | 75 | foreach( majver ${MAJOR_VERSIONS} ) |
62 | 76 | foreach( minver ${MINOR_VERSIONS} ) |
@@ -69,6 +83,10 @@ | ||
69 | 83 | endforeach( dir ${FMOD_DIR_VERSIONS} ) |
70 | 84 | endforeach( majver ${MAJOR_VERSIONS} ) |
71 | 85 | |
86 | +if( NOT ZDOOM_LIBS ) | |
87 | + set( ZDOOM_LIBS "" ) | |
88 | +endif( NOT ZDOOM_LIBS ) | |
89 | + | |
72 | 90 | if( WIN32 ) |
73 | 91 | if( X64 ) |
74 | 92 | set( WIN_TYPE Win64 ) |
@@ -403,12 +421,16 @@ | ||
403 | 421 | endif( UNIX ) |
404 | 422 | if( WIN32 ) |
405 | 423 | set( FIXRTEXT fixrtext ) |
424 | + else( WIN32 ) | |
425 | + set( FIXRTEXT "" ) | |
406 | 426 | endif( WIN32 ) |
407 | 427 | message( STATUS "Selected assembler: ${ASSEMBLER}" ) |
408 | 428 | MACRO( ADD_ASM_FILE indir infile ) |
409 | 429 | set( ASM_OUTPUT_${infile} "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/zdoom.dir/${indir}/${infile}${ASM_OUTPUT_EXTENSION}" ) |
410 | 430 | if( WIN32 ) |
411 | 431 | set( FIXRTEXT_${infile} COMMAND ${FIXRTEXT} "${ASM_OUTPUT_${infile}}" ) |
432 | + else( WIN32 ) | |
433 | + set( FIXRTEXT_${infile} COMMAND "" ) | |
412 | 434 | endif( WIN32 ) |
413 | 435 | add_custom_command( OUTPUT ${ASM_OUTPUT_${infile}} |
414 | 436 | COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/zdoom.dir/${indir} |
@@ -712,6 +734,9 @@ | ||
712 | 734 | if( NO_ASM ) |
713 | 735 | add_definitions( -DNOASM ) |
714 | 736 | else( NO_ASM ) |
737 | + if( NOT ASM_SOURCES ) | |
738 | + set( ASM_SOURCES "" ) | |
739 | + endif( NOT ASM_SOURCES ) | |
715 | 740 | if( X64 ) |
716 | 741 | ADD_ASM_FILE( asm_x86_64 tmap3 ) |
717 | 742 | else( X64 ) |
@@ -15,6 +15,8 @@ | ||
15 | 15 | set( TRUSTINFO trustinfo.rc ) |
16 | 16 | endif( MSVC_VERSION GREATER 1399 ) |
17 | 17 | endif( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" ) |
18 | +else( WIN32 ) | |
19 | + set( TRUSTINFO "" ) | |
18 | 20 | endif( WIN32 ) |
19 | 21 | |
20 | 22 | if( NOT CMAKE_CROSSCOMPILING ) |