Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2011, 7:15:14 AM (13 years ago)
Author:
rgrieder
Message:

Merged kicklib2 branch back to trunk (includes former branches ois_update, mac_osx and kicklib).

Notes for updating

Linux:
You don't need an extra package for CEGUILua and Tolua, it's already shipped with CEGUI.
However you do need to make sure that the OgreRenderer is installed too with CEGUI 0.7 (may be a separate package).
Also, Orxonox now recognises if you install the CgProgramManager (a separate package available on newer Ubuntu on Debian systems).

Windows:
Download the new dependency packages versioned 6.0 and use these. If you have problems with that or if you don't like the in game console problem mentioned below, you can download the new 4.3 version of the packages (only available for Visual Studio 2005/2008).

Key new features:

  • *Support for Mac OS X*
  • Visual Studio 2010 support
  • Bullet library update to 2.77
  • OIS library update to 1.3
  • Support for CEGUI 0.7 —> Support for Arch Linux and even SuSE
  • Improved install target
  • Compiles now with GCC 4.6
  • Ogre Cg Shader plugin activated for Linux if available
  • And of course lots of bug fixes

There are also some regressions:

  • No support for CEGUI 0.5, Ogre 1.4 and boost 1.35 - 1.39 any more
  • In game console is not working in main menu for CEGUI 0.7
  • Tolua (just the C lib, not the application) and CEGUILua libraries are no longer in our repository. —> You will need to get these as well when compiling Orxonox
  • And of course lots of new bugs we don't yet know about
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/tools/TargetUtilities.cmake

    r8079 r8351  
    4343 #    Lists:
    4444 #      LINK_LIBRARIES:    Redirects to TARGET_LINK_LIBRARIES
     45 #      LINK_LIBS_LINUX:   Redirects to TARGET_LINK_LIBRARIES only on Linux
     46 #      LINK_LIBS_WIN32:   Redirects to TARGET_LINK_LIBRARIES only on Windows
     47 #      LINK_LIBS_APPLE:   Redirects to TARGET_LINK_LIBRARIES only on Apple
     48 #      LINK_LIBS_UNIX:    Redirects to TARGET_LINK_LIBRARIES only on UNIX
    4549 #      VERSION:           Set version to the binary
    4650 #      SOURCE_FILES:      Source files for the target
     
    5357 #    This function also installs the target!
    5458 #  Prerequisistes:
    55  #    ORXONOX_DEFAULT_LINK, ORXONOX_CONFIG_FILES
     59 #    ORXONOX_DEFAULT_LINK
    5660 #  Parameters:
    5761 #    _target_name, ARGN for the macro arguments
     
    8690  SET(_list_names LINK_LIBRARIES     VERSION           SOURCE_FILES
    8791                  DEFINE_SYMBOL      TOLUA_FILES       PCH_FILE
    88                   PCH_EXCLUDE        OUTPUT_NAME)
     92                  PCH_EXCLUDE        OUTPUT_NAME       LINK_LIBS_LINUX
     93                  LINK_LIBS_WIN32    LINK_LIBS_APPLE   LINK_LIBS_UNIX)
    8994
    9095  PARSE_MACRO_ARGUMENTS("${_switches}" "${_list_names}" ${ARGN})
     
    104109        MESSAGE(FATAL_ERROR "No name provided for source file compilation")
    105110      ENDIF()
    106       IF(NOT _compilation_include_string)
    107         MESSAGE(STATUS "Warning: Empty source file compilation!")
    108       ENDIF()
    109111      IF(NOT DISABLE_COMPILATIONS)
     112        IF(NOT _compilation_include_string)
     113          MESSAGE(STATUS "Warning: Empty source file compilation!")
     114        ENDIF()
    110115        IF(EXISTS ${_compilation_file})
    111116          FILE(READ ${_compilation_file} _include_string_file)
     
    169174    GENERATE_TOLUA_BINDINGS(${_target_name_capitalised} _${_target_name}_files
    170175                            INPUTFILES ${_arg_TOLUA_FILES})
     176    # Workaround for XCode: The folder where the bind files are written to has
     177    # to be present beforehand.
     178    IF(CMAKE_CONFIGURATION_TYPES)
     179      FOREACH(_dir ${CMAKE_CONFIGURATION_TYPES})
     180        FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_dir})
     181      ENDFOREACH(_dir)
     182    ENDIF()
    171183  ENDIF()
    172184
     
    192204
    193205    IF(NOT _arg_ORXONOX_EXTERNAL)
    194       # Move the prereqs.h file to the config section
     206      # Move the ...Prereqs.h and the PCH files to the 'Config' section
    195207      IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_target_name_capitalised}Prereqs.h)
    196208        SOURCE_GROUP("Config" FILES ${_target_name_capitalised}Prereqs.h)
    197209      ENDIF()
    198       # Add config files to the config section
    199       LIST(APPEND _${_target_name}_files ${ORXONOX_CONFIG_FILES})
    200       SOURCE_GROUP("Config" FILES ${ORXONOX_CONFIG_FILES})
     210      IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_arg_PCH_FILE})
     211        SOURCE_GROUP("Config" FILES ${CMAKE_CURRENT_SOURCE_DIR}/${_arg_PCH_FILE})
     212      ENDIF()
    201213    ENDIF()
    202214  ENDIF()
     
    217229  IF(_arg_ORXONOX_EXTERNAL)
    218230    REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    219     ADD_COMPILER_FLAGS("-w")
     231    ADD_COMPILER_FLAGS("-w" NOT MSVC)
     232    ADD_COMPILER_FLAGS("-W0" MSVC)
    220233  ENDIF()
    221234
    222235  # Don't compile header files
    223236  FOREACH(_file ${_${_target_name}_files})
    224     IF(NOT _file MATCHES "\\.(c|cc|cpp|cxx)$")
     237    IF(NOT _file MATCHES "\\.(c|cc|cpp|cxx|mm)$")
    225238      SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES HEADER_FILE_ONLY TRUE)
    226239    ENDIF()
     
    278291    TARGET_LINK_LIBRARIES(${_target_name} ${_arg_LINK_LIBRARIES})
    279292  ENDIF()
     293  IF(_arg_LINK_LIBS_LINUX AND LINUX)
     294    TARGET_LINK_LIBRARIES(${_target_name} ${_arg_LINK_LIBS_LINUX})
     295  ENDIF()
     296  IF(_arg_LINK_LIBS_WIN32 AND WIN32)
     297    TARGET_LINK_LIBRARIES(${_target_name} ${_arg_LINK_LIBS_WIN32})
     298  ENDIF()
     299  IF(_arg_LINK_LIBS_APPLE AND APPLE)
     300    TARGET_LINK_LIBRARIES(${_target_name} ${_arg_LINK_LIBS_APPLE})
     301  ENDIF()
     302  IF(_arg_LINK_LIBS_UNIX AND UNIX)
     303    TARGET_LINK_LIBRARIES(${_target_name} ${_arg_LINK_LIBS_UNIX})
     304  ENDIF()
     305
     306  # RPATH settings for the installation
     307  IF("${_target_type}" STREQUAL "LIBRARY")
     308    IF(_arg_MODULE)
     309      SET(_rpath "${MODULE_RPATH}")
     310    ELSE()
     311      SET(_rpath "${LIBRARY_RPATH}")
     312    ENDIF()
     313  ELSE()
     314    SET(_rpath "${RUNTIME_RPATH}")
     315  ENDIF()
     316  SET_TARGET_PROPERTIES(${_target_name} PROPERTIES INSTALL_RPATH "${_rpath}")
    280317
    281318  # DEFINE_SYMBOL
Note: See TracChangeset for help on using the changeset viewer.