Guest User

Untitled

a guest
Sep 7th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.39 KB | None | 0 0
  1. diff -urN a/neo/CMakeLists.txt b/neo/CMakeLists.txt
  2. --- a/neo/CMakeLists.txt 2012-07-20 19:32:22.383415497 +0200
  3. +++ b/neo/CMakeLists.txt 2012-07-20 19:34:46.066447683 +0200
  4. @@ -1,4 +1,4 @@
  5. -project(dhewm3)
  6. +project(iodoom3)
  7. cmake_minimum_required(VERSION 2.6)
  8.  
  9. # TODO
  10. @@ -28,10 +28,10 @@
  11.  
  12. option(CORE "Build the core" ON)
  13. option(GAME "Build the base game code" ON)
  14. -option(D3XP "Build the d3xp game code" OFF)
  15. -option(DEDICATED "Build the dedicated server" OFF)
  16. +option(D3XP "Build the d3xp game code" ON)
  17. +option(DEDICATED "Build the dedicated server" ON)
  18. option(X86 "Cross compile for x86 (only applicable on x86_64)" OFF)
  19. -option(ONATIVE "Optimize for the host CPU" OFF)
  20. +option(ONATIVE "Optimize for the host CPU" OFF)
  21. option(SDL2 "Use SDL2 instead of SDL1.2" OFF)
  22.  
  23. if(NOT CMAKE_SYSTEM_PROCESSOR)
  24. @@ -70,21 +70,21 @@
  25.  
  26. # build type
  27. if(NOT CMAKE_BUILD_TYPE)
  28. - set(CMAKE_BUILD_TYPE "RelWithDebInfo")
  29. + set(CMAKE_BUILD_TYPE "Release")
  30. endif()
  31.  
  32. -# precompiled libraries from the dhewm3-libs repo
  33. -if(DHEWM3LIBS)
  34. +# precompiled libraries from the iodoom3-libs repo
  35. +if(IOD3LIBS)
  36. if(CMAKE_CROSSCOMPILING)
  37. - set(CMAKE_FIND_ROOT_PATH ${DHEWM3LIBS})
  38. + set(CMAKE_FIND_ROOT_PATH ${IOD3LIBS})
  39. else()
  40. - set(ENV{CMAKE_PREFIX_PATH} ${DHEWM3LIBS})
  41. + set(ENV{CMAKE_PREFIX_PATH} ${IOD3LIBS})
  42. endif()
  43.  
  44. # these are too stupid, give them a hint
  45. - set(ENV{OPENALDIR} ${DHEWM3LIBS})
  46. - set(ENV{SDLDIR} ${DHEWM3LIBS})
  47. - set(ENV{SDL2DIR} ${DHEWM3LIBS})
  48. + set(ENV{OPENALDIR} ${IOD3LIBS})
  49. + set(ENV{SDLDIR} ${IOD3LIBS})
  50. + set(ENV{SDL2DIR} ${IOD3LIBS})
  51. endif()
  52.  
  53. # libs
  54. @@ -152,7 +152,7 @@
  55. set(CMAKE_C_FLAGS_DEBUG "-g -D_DEBUG -O1")
  56. set(CMAKE_C_FLAGS_DEBUGALL "-g -ggdb -D_DEBUG")
  57. set(CMAKE_C_FLAGS_PROFILE "-g -ggdb -D_DEBUG -O1 -fno-omit-frame-pointer")
  58. - set(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer")
  59. + set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer")
  60. set(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer")
  61. set(CMAKE_C_FLAGS_MINSIZEREL "-Os -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer")
  62.  
  63. @@ -711,24 +711,24 @@
  64. include_directories(${CMAKE_BINARY_DIR})
  65. include_directories(${CMAKE_SOURCE_DIR})
  66.  
  67. -add_library(idlib STATIC ${src_idlib})
  68. +add_library(idlib${gamesuffix} STATIC ${src_idlib})
  69. if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT MINGW)
  70. - set_target_properties(idlib PROPERTIES COMPILE_FLAGS "-fPIC")
  71. + set_target_properties(idlib${gamesuffix} PROPERTIES COMPILE_FLAGS "-fPIC")
  72. endif()
  73.  
  74. if(CORE)
  75. - add_executable(dhewm3 WIN32 MACOSX_BUNDLE
  76. + add_executable(iodoom3.${gamesuffix} WIN32 MACOSX_BUNDLE
  77. ${src_core}
  78. ${src_sys_base}
  79. ${src_sys_core}
  80. )
  81.  
  82. - set_target_properties(dhewm3 PROPERTIES COMPILE_DEFINITIONS "__DOOM_DLL__")
  83. - set_target_properties(dhewm3 PROPERTIES LINK_FLAGS "${ldflags}")
  84. - set_target_properties(dhewm3 PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/sys/osx/Info.plist)
  85. + set_target_properties(iodoom3.${gamesuffix} PROPERTIES COMPILE_DEFINITIONS "__DOOM_DLL__")
  86. + set_target_properties(iodoom3.${gamesuffix} PROPERTIES LINK_FLAGS "${ldflags}")
  87. + set_target_properties(iodoom3.${gamesuffix} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/sys/osx/Info.plist)
  88.  
  89. - target_link_libraries(dhewm3
  90. - idlib
  91. + target_link_libraries(iodoom3.${gamesuffix}
  92. + idlib${gamesuffix}
  93. ${OPENAL_LIBRARY}
  94. ${OGG_LIBRARIES}
  95. ${VORBISFILE_LIBRARIES}
  96. @@ -742,17 +742,17 @@
  97. endif()
  98.  
  99. if(DEDICATED)
  100. - add_executable(dhewm3ded WIN32 MACOSX_BUNDLE
  101. + add_executable(iod3ded.${gamesuffix} WIN32 MACOSX_BUNDLE
  102. ${src_core}
  103. ${src_stub_openal}
  104. ${src_stub_gl}
  105. ${src_sys_base}
  106. )
  107.  
  108. - set_target_properties(dhewm3ded PROPERTIES COMPILE_DEFINITIONS "ID_DEDICATED;__DOOM_DLL__")
  109. - set_target_properties(dhewm3ded PROPERTIES LINK_FLAGS "${ldflags}")
  110. - target_link_libraries(dhewm3ded
  111. - idlib
  112. + set_target_properties(iod3ded.${gamesuffix} PROPERTIES COMPILE_DEFINITIONS "ID_DEDICATED;__DOOM_DLL__")
  113. + set_target_properties(iod3ded.${gamesuffix} PROPERTIES LINK_FLAGS "${ldflags}")
  114. + target_link_libraries(iod3ded.${gamesuffix}
  115. + idlib${gamesuffix}
  116. ${VORBISFILE_LIBRARIES}
  117. ${VORBIS_LIBRARIES}
  118. ${CURL_LIBRARY}
  119. @@ -770,7 +770,7 @@
  120. set_target_properties(game${gamesuffix} PROPERTIES COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/game")
  121. set_target_properties(game${gamesuffix} PROPERTIES LINK_FLAGS "${ldflags}")
  122. set_target_properties(game${gamesuffix} PROPERTIES INSTALL_NAME_DIR "@executable_path")
  123. - target_link_libraries(game${gamesuffix} idlib)
  124. + target_link_libraries(game${gamesuffix} idlib${gamesuffix})
  125. endif()
  126.  
  127. if(D3XP)
  128. @@ -780,5 +780,5 @@
  129. set_target_properties(d3xp${gamesuffix} PROPERTIES COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/d3xp")
  130. set_target_properties(d3xp${gamesuffix} PROPERTIES LINK_FLAGS "${ldflags}")
  131. set_target_properties(d3xp${gamesuffix} PROPERTIES INSTALL_NAME_DIR "@executable_path")
  132. - target_link_libraries(d3xp${gamesuffix} idlib)
  133. + target_link_libraries(d3xp${gamesuffix} idlib${gamesuffix})
  134. endif()
  135. diff -urN a/neo/d3xp/gamesys/SysCvar.cpp b/neo/d3xp/gamesys/SysCvar.cpp
  136. --- a/neo/d3xp/gamesys/SysCvar.cpp 2012-07-20 08:41:40.000000000 +0200
  137. +++ b/neo/d3xp/gamesys/SysCvar.cpp 2012-07-20 19:23:53.869835909 +0200
  138. @@ -76,7 +76,7 @@
  139. idCVar gamedate( "gamedate", __DATE__, CVAR_GAME | CVAR_ROM, "" );
  140.  
  141. // server info
  142. -idCVar si_name( "si_name", "dhewm server", CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE, "name of the server" );
  143. +idCVar si_name( "si_name", "DOOM Server", CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE, "name of the server" );
  144.  
  145. #ifdef CTF
  146. idCVar si_gameType( "si_gameType", si_gameTypeArgs[ 0 ], CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE, "game type - singleplayer, deathmatch, Tourney, Team DM, Last Man or CTF", si_gameTypeArgs, idCmdSystem::ArgCompletion_String<si_gameTypeArgs> );
  147. diff -urN a/neo/framework/FileSystem.cpp b/neo/framework/FileSystem.cpp
  148. --- a/neo/framework/FileSystem.cpp 2012-07-20 19:32:22.390415448 +0200
  149. +++ b/neo/framework/FileSystem.cpp 2012-07-20 19:23:53.870835901 +0200
  150. @@ -1780,7 +1780,7 @@
  151. }
  152.  
  153. list->mods.Insert( "" );
  154. - list->descriptions.Insert( "dhewm 3" );
  155. + list->descriptions.Insert( "Doom 3" );
  156.  
  157. assert( list->mods.Num() == list->descriptions.Num() );
  158.  
  159. diff -urN a/neo/framework/Licensee.h b/neo/framework/Licensee.h
  160. --- a/neo/framework/Licensee.h 2012-07-20 19:32:22.391415441 +0200
  161. +++ b/neo/framework/Licensee.h 2012-07-20 19:23:53.870835901 +0200
  162. @@ -34,9 +34,9 @@
  163. ===============================================================================
  164. */
  165.  
  166. -#define GAME_NAME "dhewm 3" // appears on window titles and errors
  167. +#define GAME_NAME "iodoom3" // appears on window titles and errors
  168.  
  169. -#define ENGINE_VERSION "dhewm 1.3.1" // printed in console
  170. +#define ENGINE_VERSION "iodoom 1.3.1" // printed in console
  171.  
  172. // paths
  173. #ifdef ID_DEMO_BUILD
  174. @@ -46,7 +46,7 @@
  175. #endif
  176.  
  177. // filenames
  178. -#define CONFIG_FILE "dhewm.cfg"
  179. +#define CONFIG_FILE "DoomConfig.cfg"
  180.  
  181. // base folder where the source code lives
  182. #define SOURCE_CODE_BASE_FOLDER "neo"
  183. @@ -91,13 +91,13 @@
  184. #define EDITOR_WINDOWTEXT "DOOMEdit"
  185.  
  186. // win32 info
  187. -#define WIN32_CONSOLE_CLASS "dhewm 3 WinConsole"
  188. +#define WIN32_CONSOLE_CLASS "iodoom3 WinConsole"
  189.  
  190. // Linux info
  191. #ifdef ID_DEMO_BUILD
  192. - #define LINUX_DEFAULT_PATH "/usr/local/games/dhewm3-demo"
  193. + #define LINUX_DEFAULT_PATH "/usr/local/games/iodoom3-demo"
  194. #else
  195. - #define LINUX_DEFAULT_PATH "/usr/local/games/dhewm3"
  196. + #define LINUX_DEFAULT_PATH "/usr/local/games/iodoom3"
  197. #endif
  198.  
  199. // CD Key file info
  200. diff -urN a/neo/framework/Session.cpp b/neo/framework/Session.cpp
  201. --- a/neo/framework/Session.cpp 2012-07-20 19:32:22.391415441 +0200
  202. +++ b/neo/framework/Session.cpp 2012-07-20 19:23:53.871835895 +0200
  203. @@ -1965,7 +1965,7 @@
  204. // Game Name / Version / Map Name / Persistant Player Info
  205.  
  206. // game
  207. - const char *gamename = GAME_NAME;
  208. + const char *gamename = "DOOM 3";
  209. fileOut->WriteString( gamename );
  210.  
  211. // version
  212. @@ -2089,7 +2089,7 @@
  213. savegameFile->ReadString( gamename );
  214.  
  215. // if this isn't a savegame for the correct game, abort loadgame
  216. - if ( gamename != GAME_NAME ) {
  217. + if ( gamename != "DOOM 3" ) {
  218. common->Warning( "Attempted to load an invalid savegame: %s", in.c_str() );
  219.  
  220. loadingSaveGame = false;
  221. diff -urN a/neo/game/gamesys/SysCvar.cpp b/neo/game/gamesys/SysCvar.cpp
  222. --- a/neo/game/gamesys/SysCvar.cpp 2012-07-20 08:41:40.000000000 +0200
  223. +++ b/neo/game/gamesys/SysCvar.cpp 2012-07-20 19:23:53.871835895 +0200
  224. @@ -66,7 +66,7 @@
  225. idCVar gamedate( "gamedate", __DATE__, CVAR_GAME | CVAR_ROM, "" );
  226.  
  227. // server info
  228. -idCVar si_name( "si_name", "dhewm server", CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE, "name of the server" );
  229. +idCVar si_name( "si_name", "DOOM Server", CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE, "name of the server" );
  230. idCVar si_gameType( "si_gameType", si_gameTypeArgs[ 0 ], CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE, "game type - singleplayer, deathmatch, Tourney, Team DM or Last Man", si_gameTypeArgs, idCmdSystem::ArgCompletion_String<si_gameTypeArgs> );
  231. idCVar si_map( "si_map", "game/mp/d3dm1",CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE, "map to be played next on server", idCmdSystem::ArgCompletion_MapName );
  232. idCVar si_maxPlayers( "si_maxPlayers", "4", CVAR_GAME | CVAR_SERVERINFO | CVAR_ARCHIVE | CVAR_INTEGER, "max number of players allowed on the server", 1, 4 );
  233. diff -urN a/neo/sys/osx/Info.plist b/neo/sys/osx/Info.plist
  234. --- a/neo/sys/osx/Info.plist 2012-07-20 08:41:40.000000000 +0200
  235. +++ b/neo/sys/osx/Info.plist 2012-07-20 19:23:53.872835890 +0200
  236. @@ -5,17 +5,17 @@
  237. <key>CFBundleDevelopmentRegion</key>
  238. <string>English</string>
  239. <key>CFBundleExecutable</key>
  240. - <string>dhewm3</string>
  241. + <string>iodoom3</string>
  242. <key>CFBundleIconFile</key>
  243. <string>Doom3.icns</string>
  244. <key>CFBundleIdentifier</key>
  245. - <string>org.dhewg.dhewm3</string>
  246. + <string>org.icculus.doom3</string>
  247. <key>CFBundleInfoDictionaryVersion</key>
  248. <string>6.0</string>
  249. <key>CFBundlePackageType</key>
  250. <string>APPL</string>
  251. <key>CFBundleSignature</key>
  252. - <string>DHM3</string>
  253. + <string>IOD3</string>
  254. <key>CFBundleVersion</key>
  255. <string>3000</string>
  256. <key>NSMainNibFile</key>
Advertisement
Add Comment
Please, Sign In to add comment