Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3160


Ignore:
Timestamp:
Jun 13, 2009, 10:24:14 PM (15 years ago)
Author:
rgrieder
Message:

Added precompiled header file for the core library.
It contains as little as possible but enough to give a little speed up.
Note that Identifier.h is included because it makes a big difference and a change to it triggers an 80% rebuild anyway.

Location:
code/branches/pch
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/cmake/PrecompiledHeaderFiles.cmake

    r3117 r3160  
    101101
    102102    SET(_pch_file "${CMAKE_CURRENT_BINARY_DIR}/${_pch_header_filename}.gch")
    103     SET(_pch_dep_helper_file "${CMAKE_CURRENT_BINARY_DIR}/${_target_name}_pch_dependency_helper.cc")
     103    SET(_pch_dep_helper_file "${CMAKE_CURRENT_BINARY_DIR}/${_target_name}PCHDependencyHelper.h")
    104104
    105105    # Append the gch-dir to make sure gcc finds the pch file
     
    122122        SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES
    123123          COMPILE_FLAGS "${_old_flags} -include ${_pch_header_filename}"
    124           OBJECT_DEPENDS "${_pch_header_file};${_pch_file}"
     124          OBJECT_DEPENDS "${_pch_header_file};${_pch_file}"
    125125        )
    126126      ENDIF(NOT _is_header)
  • code/branches/pch/src/core/CMakeLists.txt

    r3116 r3160  
    7272  DEFINE_SYMBOL
    7373    "CORE_SHARED_BUILD"
     74  PCH_FILE
     75    CorePrecompiledHeaders.h
    7476  LINK_LIBRARIES
    7577    ${OGRE_LIBRARY}
Note: See TracChangeset for help on using the changeset viewer.