Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7682


Ignore:
Timestamp:
Nov 30, 2010, 11:08:38 PM (14 years ago)
Author:
youngk
Message:

Changed handling of the dependency package and increased consistence for options.

Location:
code/branches/ois_update
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/cmake/LibraryConfig.cmake

    r7582 r7682  
    4848# Scripts for specific library and CMake config
    4949INCLUDE(LibraryConfigTardis)
     50#INCLUDE(LibraryConfigOSX)
    5051
    5152IF(DEPENDENCY_PACKAGE_ENABLE)
  • code/branches/ois_update/cmake/PackageConfigOSX.cmake

    r7615 r7682  
    4141SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR})
    4242
    43 # Certain find scripts don't behave as ecpected so we have
    44 # to specify the libraries ourselves.
    45 #SET(TCL_LIBRARY  ${DEP_BINARY_DIR}/tcl85.dll CACHE FILEPATH "")
    46 #SET(ZLIB_LIBRARY ${DEP_BINARY_DIR}/zlib1.dll CACHE FILEPATH "")
    47 
    4843# Include paths and other special treatments
    4944SET(ENV{ALUTDIR}               ${DEP_FRAMEWORK_DIR})
    5045SET(ENV{BOOST_ROOT}            ${DEPENDENCY_PACKAGE_DIR})
    5146SET(ENV{CEGUIDIR}              ${DEP_FRAMEWORK_DIR})
    52 #SET(ENV{DBGHELP_DIR}           ${DEP_INCLUDE_DIR}/dbghelp)
    53 #SET(ENV{DXSDK_DIR}             ${DEP_INCLUDE_DIR}/directx)
    54 #SET(ENV{ENETDIR}               ${DEP_INCLUDE_DIR}/enet)
    5547SET(ENV{LUA_DIR}               ${DEP_INCLUDE_DIR}/lua)
    5648SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR})
     
    5850SET(ENV{OGRE_HOME}             ${DEP_FRAMEWORK_DIR})
    5951SET(ENV{OGRE_PLUGIN_DIR}       ${DEP_BINARY_DIR})
    60 #SET(ENV{OPENALDIR}             ${DEP_INCLUDE_DIR}/openal)
    61 #SET(ENV{POCODIR}               ${DEP_INCLUDE_DIR}/poco)
    62 #LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/tcl/include)
    63 #LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/zlib/include)
     52
     53# Xcode won't be able to run the toluabind code generation if we're using the dependency package
     54#IF(DEPENDENCY_PACKAGE_ENABLE)
     55#  IF(${CMAKE_GENERATOR} STREQUAL "Xcode")
     56#    SET(ENV{DYLD_LIBRARY_PATH}               ${DEPENDENCY_PACKAGE_DIR}/lib)
     57#    SET(ENV{DYLD_FRAMEWORK_PATH}             ${DEPENDENCY_PACKAGE_DIR}/Library/Frameworks)
     58#  ENDIF(${CMAKE_GENERATOR} STREQUAL "Xcode")
     59#ENDIF(DEPENDENCY_PACKAGE_ENABLE)
    6460
    6561### INSTALL ###
  • code/branches/ois_update/src/SpecialConfig.h.in

    r7450 r7682  
    9494
    9595    // OGRE PLUGINS
     96    // Apple has trouble finding OGRE plugins because of its install-name convention
     97    // Adopting the executable_path structure for later use in app bundles
    9698#ifdef NDEBUG
    9799    const char ogrePlugins[] = "@OGRE_PLUGINS_RELEASE@";
    98100#  ifdef DEPENDENCY_PACKAGE_ENABLE
    99     const char ogrePluginsDirectory[] = ".";
     101#    ifdef ORXONOX_PLATFORM_APPLE
     102       const char ogrePluginsDirectory[] = "@executable_path/../Plugins";
     103#    else
     104       const char ogrePluginsDirectory[] = ".";
     105#    endif
    100106#  else
    101107    const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_RELEASE@";
     
    104110    const char ogrePlugins[] = "@OGRE_PLUGINS_DEBUG@";
    105111#  ifdef DEPENDENCY_PACKAGE_ENABLE
    106     const char ogrePluginsDirectory[] = ".";
     112#    ifdef ORXONOX_PLATFORM_APPLE
     113       const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_DEBUG@";
     114#    else
     115       const char ogrePluginsDirectory[] = ".";
     116#    endif
    107117#  else
    108118    const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_DEBUG@";
Note: See TracChangeset for help on using the changeset viewer.