Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2011, 2:47:44 AM (13 years ago)
Author:
rgrieder
Message:

Merged unity_build branch back to trunk.

Features:

  • Implemented fully automatic build units to speed up compilation if requested
  • Added DOUT macro for quick debug output
  • Activated text colouring in the POSIX IOConsole
  • DeclareToluaInterface is not necessary anymore

Improvements:

  • Output levels now change appropriately when switch back and forth from dev mode
  • Log level for the file output is now also correct during startup
  • Removed some header file dependencies in core and tools to speed up compilation

no more file for command line options

  • Improved util::tribool by adapting some concepts from boost::tribool

Regressions:

  • It is not possible anymore to specify command line arguments in an extra file because we've got config values for that purpose.
Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/OrxonoxConfig.cmake

    r8412 r8729  
    3434ENDIF()
    3535
    36 # Global switch to disable multiple file compilations
    37 OPTION(DISABLE_COMPILATIONS "Global multi-file compilation switch" FALSE)
     36# Global option to steer building muliple files as a single one
     37# off/false: Turn off completely
     38# partial:   Only combine files explicitly specified with BUILD_UNIT
     39# full##:    Use ## source files per orxonox library and use manual build units
     40#            for external dependencies. Example: full8 will in general use 8
     41#            source files per library, but more specifically tries to occupy
     42#            8 CPU threads.
     43#            This is configured manually in BuildUnitsConfig.cmake
     44SET(ENABLE_BUILD_UNITS "partial" CACHE STRING "Enables building multiple source files as one.")
     45IF(ENABLE_BUILD_UNITS)
     46  IF(NOT "${ENABLE_BUILD_UNITS}" STREQUAL "partial")
     47    STRING(REGEX REPLACE "^full([1-9][0-9]?)$" "\\1" _nr_of_units "${ENABLE_BUILD_UNITS}")
     48    IF("${_nr_of_units}" STREQUAL "${ENABLE_BUILD_UNITS}") # Regex match failed
     49      MESSAGE(FATAL_ERROR "Unrecognised option for ENABLE_BUILD_UNITS: ${ENABLE_BUILD_UNITS}")
     50    ELSE()
     51      SET(NR_OF_BUILD_UNITS ${_nr_of_units})
     52      IF(NOT HAVE_COUNTER_MACRO)
     53        MESSAGE(WARNING "Your compiler doesn't support the __COUNTER__ macro. Full build units might not work!")
     54      ENDIF()
     55    ENDIF()
     56  ENDIF()
     57  IF(CMAKE_COMPILER_IS_GNU)
     58    INCLUDE(BuildUnitsConfigGCC.cmake)
     59  ELSEIF(MSVC)
     60    INCLUDE(BuildUnitsConfigMSVC.cmake)
     61  ENDIF()
     62ENDIF()
    3863
    3964# Use WinMain() or main()?
Note: See TracChangeset for help on using the changeset viewer.