- Timestamp:
- Apr 30, 2011, 4:36:04 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/CMakeLists.txt
r8351 r8363 111 111 INSTALL(SCRIPT cmake/InstallCheck.cmake) 112 112 113 # Enable expensive optimisations: use this for a binary release build114 OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE)115 116 113 IF(APPLE) 117 114 # Set 10.5 as the base SDK by default -
code/trunk/cmake/tools/GenerateToluaBindings.cmake
r8351 r8363 63 63 ENDIF() 64 64 65 # Tolua binding speedup if required66 IF(ORXONOX_RELEASE)67 SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-DTOLUA_RELEASE")68 ENDIF()69 70 65 # Create temporary package file and implicit dependencies 71 66 FILE(REMOVE ${_tolua_pkgfile}) -
code/trunk/src/OrxonoxConfig.cmake
r8351 r8363 72 72 SET(ORX_HAVE_STDINT_H ${HAVE_STDINT_H}) 73 73 74 # XCode and Visual Studio support multiple configurations. In order to tell 75 # about the active one we have to define the macro for each configuration 76 ADD_COMPILER_FLAGS("-DCMAKE_Debug_BUILD" Debug) 77 ADD_COMPILER_FLAGS("-DCMAKE_Release_BUILD" Release) 78 ADD_COMPILER_FLAGS("-DCMAKE_RelWithDebInfo_BUILD" RelWithDebInfo) 79 ADD_COMPILER_FLAGS("-DCMAKE_MinSizeRel_BUILD" MinSizeRel) 80 74 81 IF(MSVC) 75 82 # Check whether we can use Visual Leak Detector -
code/trunk/src/OrxonoxConfig.h.in
r8351 r8363 143 143 * Apple Settings 144 144 *-------------------------------*/ 145 146 147 /*---------------------------------148 * Options149 *-------------------------------*/150 #cmakedefine ORXONOX_RELEASE ///< Enables expensive (build time) optimisations and disables certain features151 145 152 146 … … 185 179 */ 186 180 181 // Configurations Release and MinSizeRel are designed for redistribution while 182 // RelWithDebInfo is more for development 183 // ORXONOX_RELEASE simplifies this a little bit 184 #if defined(CMAKE_Release_BUILD) || defined(CMAKE_MinSizeRel_BUILD) 185 # define ORXONOX_RELEASE 186 #endif 187 187 188 // Include memory leak detector if available and not building actual release 188 189 #cmakedefine HAVE_VLD 189 #if defined(HAVE_VLD) && !defined( ORXONOX_RELEASE)190 #if defined(HAVE_VLD) && !defined(NDEBUG) 190 191 typedef uint32_t UINT32; 191 192 typedef wchar_t WCHAR; -
code/trunk/src/external/tolua/lua/package.lua
r8351 r8363 135 135 i = i+1 136 136 end 137 138 output('\n') 139 output('#ifdef ORXONOX_RELEASE\n') 140 output('# define TOLUA_RELEASE\n') 141 output('#endif\n') 137 142 138 143 if self:requirecollection(_collect) then
Note: See TracChangeset
for help on using the changeset viewer.