Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2011, 9:57:45 PM (13 years ago)
Author:
rgrieder
Message:

Also add tolua bind files to build units (for the sake of completeness ).

Location:
code/branches/unity_build/cmake/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/cmake/tools/GenerateToluaBindings.cmake

    r8363 r8650  
    5858  )
    5959
    60   # Disable annoying GCC warnings
    6160  IF(CMAKE_COMPILER_IS_GNU)
     61    # Disable annoying GCC warnings
    6262    SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-w")
     63  ENDIF()
     64
     65  IF(MSVC)
     66    # Including the file in a build unit is impossible because CMAKE_CFG_INTDIR
     67    # exands to an expression that the compiler doesn't understand
     68    SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES EXCLUDE_FROM_BUILD_UNITS TRUE)
    6369  ENDIF()
    6470
  • code/branches/unity_build/cmake/tools/TargetUtilities.cmake

    r8649 r8650  
    182182  LIST(REMOVE_DUPLICATES _${_target_name}_files)
    183183
    184   # Mark files to be excluded from build units
    185   IF(_arg_EXCLUDE_FROM_BUILD_UNITS)
    186     SET_SOURCE_FILES_PROPERTIES(${_arg_EXCLUDE_FROM_BUILD_UNITS}
    187       PROPERTIES EXCLUDE_FROM_BUILD_UNITS TRUE)
    188   ENDIF()
    189 
    190   # Full build units
    191   IF(NOT _arg_ORXONOX_EXTERNAL AND ENABLE_BUILD_UNITS MATCHES "full")
    192     GENERATE_BUILD_UNITS(${_target_name} _${_target_name}_files)
    193   ENDIF()
    194 
    195184  # TOLUA_FILES
    196185  IF(_arg_TOLUA_FILES)
     
    204193      ENDFOREACH(_dir)
    205194    ENDIF()
     195  ENDIF()
     196
     197  # Mark files to be excluded from build units
     198  IF(_arg_EXCLUDE_FROM_BUILD_UNITS)
     199    SET_SOURCE_FILES_PROPERTIES(${_arg_EXCLUDE_FROM_BUILD_UNITS}
     200      PROPERTIES EXCLUDE_FROM_BUILD_UNITS TRUE)
     201  ENDIF()
     202
     203  # Full build units
     204  IF(NOT _arg_ORXONOX_EXTERNAL AND ENABLE_BUILD_UNITS MATCHES "full")
     205    GENERATE_BUILD_UNITS(${_target_name} _${_target_name}_files)
    206206  ENDIF()
    207207
Note: See TracChangeset for help on using the changeset viewer.