Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8083


Ignore:
Timestamp:
Mar 17, 2011, 12:12:17 PM (14 years ago)
Author:
youngk
Message:

Cocoa Integration of Orxonox and CPack testing. @Reto: Do NOT merge with kicklib, please.

Location:
code/branches/mac_osx
Files:
12 added
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/CMakeLists.txt

    r7530 r8083  
    140140# Last but not least: Try to make a doc target with Doxygen
    141141ADD_SUBDIRECTORY(doc)
     142
     143########### CPack Packaging ###########
     144
     145# Currently only testing on Apple
     146#IF(APPLE)
     147#  INCLUDE(BundleConfig)
     148#ENDIF(APPLE)
  • code/branches/mac_osx/cmake/tools/TargetUtilities.cmake

    r7619 r8083  
    176176    ADD_COMPILER_FLAGS("-w")
    177177  ENDIF()
    178 
     178 
    179179  # Don't compile header files
    180180  FOREACH(_file ${_${_target_name}_files})
    181     IF(NOT _file MATCHES "\\.(c|cc|cpp)")
     181    IF(NOT _file MATCHES "\\.(c|cc|cpp|cxx|mm)$")
    182182      SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES HEADER_FILE_ONLY TRUE)
    183183    ENDIF()
    184184  ENDFOREACH(_file)
    185 
    186 
    187185
    188186  # Add the library/executable
  • code/branches/mac_osx/data/levels/test_swallow.oxw

    r7285 r8083  
    22  include("hudtemplates3.oxo")
    33  include("stats.oxo")
     4  include("templates/lodinformation.oxt")
    45  include("templates/spaceship_swallow.oxt")
    56  include("templates/spaceship_pirate.oxt")
    67?>
     8
     9
    710
    811<Level
     
    1114
    1215>
     16  <templates>
     17   <Template link=lodtemplate_default />
     18  </templates>
     19
    1320  <Scene
    1421   ambientlight = "0.5, 0.5, 0.5"
  • code/branches/mac_osx/src/CMakeLists.txt

    r7510 r8083  
    140140  SOURCE_FILES
    141141    Orxonox.cc
     142    OrxonoxMac.mm
    142143  OUTPUT_NAME orxonox
    143144)
     145
     146# Apple Mac OS X specific build settings
     147IF(APPLE)
     148  # On Apple we need to link to AppKit and Foundation frameworks
     149  TARGET_LINK_LIBRARIES(orxonox-main
     150    "/System/Library/Frameworks/AppKit.framework"
     151    "/System/Library/Frameworks/Foundation.framework"
     152  )
     153 
     154  # Tell Apple where to find the Info.plist file, used for Cocoa
     155  # TODO: Of course, this only makes sense for development builds. CPack will take care of this otherwise
     156  # Property XCODE_ATTRIBUTE_INFOPLIST_FILE is fo Xcode, while the other is for makefile generator
     157  SET_TARGET_PROPERTIES(orxonox-main PROPERTIES
     158    XCODE_ATTRIBUTE_INFOPLIST_FILE "${DEFAULT_DATA_PATH}/mac/Orxonox-Info.plist"
     159    MACOSX_BUNDLE_INFO_PLIST "${DEFAULT_DATA_PATH}/mac/Orxonox-Info.plist"
     160  )
     161ENDIF(APPLE)
     162
    144163# Main executable should depend on all modules
    145164ADD_DEPENDENCIES(orxonox-main ${ORXONOX_MODULES})
  • code/branches/mac_osx/src/Orxonox.cc

    r6417 r8083  
    5353#ifdef ORXONOX_USE_WINMAIN
    5454INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
     55#elif defined(ORXONOX_PLATFORM_APPLE)
     56int main_mac(int argc, char** argv)
    5557#else
    5658int main(int argc, char** argv)
    5759#endif
    5860{
     61    COUT(0) << "main mac" << std::endl;
    5962    try
    6063    {
Note: See TracChangeset for help on using the changeset viewer.