- Timestamp:
- May 28, 2011, 10:40:10 PM (13 years ago)
- Location:
- code/branches/unity_build
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/cmake/tools/BuildUnits.cmake
r8649 r8653 50 50 # However we can specify different values in a config file 51 51 SET(_config ${BUILD_UNITS_CONFIG_${NR_OF_BUILD_UNITS}_THREADS}) 52 SET(_nr_of_units) 52 53 IF(_config) 53 54 LIST(FIND _config ${_target_name} _index) … … 59 60 ENDIF() 60 61 IF(NOT _nr_of_units) 61 # Use default 62 SET(_nr_of_units NR_OF_BUILD_UNITS) 62 # Use default as specified (e.g. "full4" --> 4) or 1 for externals 63 IF(_arg_ORXONOX_EXTERNAL) 64 SET(_nr_of_units 1) 65 ELSE() 66 SET(_nr_of_units ${NR_OF_BUILD_UNITS}) 67 ENDIF() 63 68 ENDIF() 64 69 … … 113 118 114 119 # Generate the filename 115 SET(_unit_file ${CMAKE_CURRENT_BINARY_DIR}/${_target_name}BuildUnit${_unit_nr}.cc) 120 IF(NOT _nr_of_units EQUAL 1) 121 SET(_suffix ${_unit_nr}) 122 ENDIF() 123 SET(_unit_file ${CMAKE_CURRENT_BINARY_DIR}/${_target_name}BuildUnit${_suffix}.cc) 116 124 # Only write if content has changed (avoids recompile) 117 125 IF(EXISTS ${_unit_file}) -
code/branches/unity_build/cmake/tools/TargetUtilities.cmake
r8650 r8653 40 40 # NO_INSTALL: Do not install the target at all 41 41 # NO_VERSION: Prevents adding any version to a target 42 # NO_BUILD_UNITS: Disables automatic (full) build units 42 43 # 43 44 # Lists: … … 91 92 SET(_switches FIND_HEADER_FILES EXCLUDE_FROM_ALL ORXONOX_EXTERNAL 92 93 NO_DLL_INTERFACE NO_SOURCE_GROUPS PCH_NO_DEFAULT 93 NO_INSTALL NO_VERSION ${_additional_switches}) 94 NO_INSTALL NO_VERSION NO_BUILD_UNITS 95 ${_additional_switches}) 94 96 SET(_list_names LINK_LIBRARIES VERSION SOURCE_FILES 95 97 DEFINE_SYMBOL TOLUA_FILES PCH_FILE … … 202 204 203 205 # Full build units 204 IF(NOT _arg_ORXONOX_EXTERNAL AND ENABLE_BUILD_UNITS MATCHES "full") 205 GENERATE_BUILD_UNITS(${_target_name} _${_target_name}_files) 206 IF(ENABLE_BUILD_UNITS AND NOT _arg_NO_BUILD_UNITS) 207 # Use full build units even in partial mode for externals 208 IF(ENABLE_BUILD_UNITS MATCHES "full" OR _arg_ORXONOX_EXTERNAL) 209 GENERATE_BUILD_UNITS(${_target_name} _${_target_name}_files) 210 ENDIF() 206 211 ENDIF() 207 212 -
code/branches/unity_build/src/external/bullet/BulletCollision/CMakeLists.txt
r8558 r8653 1 1 ADD_SOURCE_FILES(BULLET_FILES 2 3 BUILD_UNIT BulletCollisionBuildUnit.cpp4 2 5 3 BroadphaseCollision/btAxisSweep3.cpp … … 84 82 NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp 85 83 NarrowPhaseCollision/btPersistentManifold.cpp 84 NarrowPhaseCollision/btPolyhedralContactClipping.cpp 86 85 NarrowPhaseCollision/btRaycastCallback.cpp 87 86 NarrowPhaseCollision/btSubSimplexConvexCast.cpp 88 87 NarrowPhaseCollision/btVoronoiSimplexSolver.cpp 89 88 90 END_BUILD_UNIT91 92 # Raises compiler errors when compiled inside the build unit93 NarrowPhaseCollision/btPolyhedralContactClipping.cpp94 89 95 90 # Headers -
code/branches/unity_build/src/external/bullet/BulletDynamics/CMakeLists.txt
r8558 r8653 1 1 ADD_SOURCE_FILES(BULLET_FILES 2 3 BUILD_UNIT BulletDynamicsBuildUnit.cpp4 2 5 3 Character/btKinematicCharacterController.cpp … … 25 23 Vehicle/btRaycastVehicle.cpp 26 24 Vehicle/btWheelInfo.cpp 27 28 END_BUILD_UNIT29 25 30 26 # Headers -
code/branches/unity_build/src/external/bullet/CMakeLists.txt
r8393 r8653 32 32 VERSION 33 33 2.78 34 EXCLUDE_FROM_BUILD_UNITS 35 BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp 34 36 SOURCE_FILES 35 37 ${BULLET_FILES} -
code/branches/unity_build/src/external/bullet/LinearMath/CMakeLists.txt
r8558 r8653 1 1 ADD_SOURCE_FILES(BULLET_FILES 2 2 3 BUILD_UNIT BulletLinearMathBuildUnit.cpp4 3 btAlignedAllocator.cpp 5 4 btConvexHull.cpp … … 8 7 btQuickprof.cpp 9 8 btSerializer.cpp 10 END_BUILD_UNIT11 9 12 10 # Headers -
code/branches/unity_build/src/external/ogreceguirenderer/CMakeLists.txt
r8558 r8653 23 23 OgreCEGUITexture.h 24 24 25 BUILD_UNIT OgreCEGUIRendererBuildUnit.cpp26 25 OgreCEGUIRenderer.cpp 27 26 OgreCEGUIResourceProvider.cpp 28 27 OgreCEGUITexture.cpp 29 END_BUILD_UNIT30 28 ) 31 29 -
code/branches/unity_build/src/external/ois/CMakeLists.txt
r8625 r8653 34 34 OISObject.h 35 35 OISPrereqs.h 36 )37 36 38 # Put everything into one single build unit (doens't work on OS X though)39 IF(NOT APPLE)40 ADD_SOURCE_FILES(OIS_FILES BUILD_UNIT OISBuildUnit.cpp)41 ENDIF()42 43 ADD_SOURCE_FILES(OIS_FILES44 37 OISEffect.cpp 45 38 OISException.cpp … … 50 43 OISObject.cpp 51 44 ) 45 52 46 IF(WIN32) 53 47 ADD_SUBDIRECTORY(win32) … … 58 52 ENDIF() 59 53 60 # Close build unit from above61 IF(NOT APPLE)62 ADD_SOURCE_FILES(OIS_FILES END_BUILD_UNIT)63 ENDIF()64 65 54 # MinGW doesn't come with some required Windows headers 66 55 IF(MINGW) 67 56 INCLUDE_DIRECTORIES(${WMI_INCLUDE_DIR}) 57 ENDIF() 58 59 # Apple has problems with OIS and build units 60 IF(APPLE) 61 SET(USE_BUILD_UNITS NO_BUILD_UNITS) 68 62 ENDIF() 69 63 … … 82 76 LINK_LIBS_LINUX 83 77 X11 78 ${USE_BUILD_UNITS} 84 79 SOURCE_FILES 85 80 ${OIS_FILES} -
code/branches/unity_build/src/external/tinyxml/CMakeLists.txt
r8558 r8653 24 24 tinyxml.h 25 25 26 BUILD_UNIT TicppBuildUnit.cpp27 26 ticpp.cpp 28 27 tinystr.cpp … … 30 29 tinyxmlerror.cpp 31 30 tinyxmlparser.cpp 32 END_BUILD_UNIT33 31 ) 34 32
Note: See TracChangeset
for help on using the changeset viewer.