Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7356


Ignore:
Timestamp:
Sep 5, 2010, 5:31:56 PM (14 years ago)
Author:
rgrieder
Message:

This should take care of most of the conditional compilation for Doxygen. Mind that the API reference is now dependent on the machine Doxygen runs. Previously there was just a mixture (i.e. any #ifdef evaluated false and therefore the #else block (if available) was chosen).

Location:
code/branches/doc/doc/api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/doc/doc/api/CMakeLists.txt

    r7353 r7356  
    6464  ENDIF()
    6565
     66  # Take care of most of the conditional compilation problems
     67  # (Doxygen requires separate input for that)
     68  IF(WIN32)
     69    SET(DOXY_PLATFORM_DEF "ORXONOX_PLATFORM_WINDOWS")
     70  ELSEIF(APPLE)
     71    SET(DOXY_PLATFORM_DEF "ORXONOX_PLATFORM_APPLE ORXONOX_PLATFORM_UNIX")
     72  ELSE()
     73    SET(DOXY_PLATFORM_DEF "ORXONOX_PLATFORM_LINUX ORXONOX_PLATFORM_UNIX")
     74  ENDIF()
     75  IF(MSVC)
     76    SET(DOXY_COMPILER_DEF "ORXONOX_COMPILER_MSVC")
     77  ELSE()
     78    SET(DOXY_COMPILER_DEF "ORXONOX_COMPILER_GCC")
     79  ENDIF()
     80
    6681  IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config.in)
    6782    # use (configured) doxy.config from (out of place) BUILD tree:
  • code/branches/doc/doc/api/doxy.config.in

    r7346 r7356  
    12921292# way by setting EXPAND_ONLY_PREDEF to YES.
    12931293
    1294 MACRO_EXPANSION        = YES
     1294MACRO_EXPANSION        = NO
    12951295
    12961296# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
     
    13091309# the preprocessor.
    13101310
    1311 INCLUDE_PATH           =
     1311INCLUDE_PATH           = #@DOXYGEN_INCLUDE_DIRECTORIES@
    13121312
    13131313# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
     
    13261326# instead of the = operator.
    13271327
    1328 PREDEFINED             = DOXYGEN_SHOULD_SKIP_THIS
     1328PREDEFINED             = DOXYGEN_SHOULD_SKIP_THIS \
     1329                         @DOXY_PLATFORM_DEF@ \
     1330                         @DOXY_COMPILER_DEF@
    13291331
    13301332# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
Note: See TracChangeset for help on using the changeset viewer.