Changeset 8129 for code/branches/kicklib/src
- Timestamp:
- Mar 26, 2011, 9:41:28 PM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 5 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
- Property svn:mergeinfo changed
/code/branches/mac_osx merged: 8083-8084,8090-8092,8114,8116,8125,8127-8128
- Property svn:mergeinfo changed
-
code/branches/kicklib/src/CMakeLists.txt
r8095 r8129 145 145 SOURCE_FILES 146 146 Orxonox.cc 147 OrxonoxMac.mm 147 148 OUTPUT_NAME orxonox 148 149 ) … … 178 179 ENDIF(MSVC) 179 180 181 # Apple Mac OS X specific build settings 182 IF(APPLE) 183 # On Apple we need to link to AppKit and Foundation frameworks 184 TARGET_LINK_LIBRARIES(orxonox-main 185 "-framework AppKit" 186 "-framework Foundation" 187 ) 188 189 # Post-build step for the creation of the Dev-App bundle 190 INCLUDE(PrepareDevBundle) 191 ADD_CUSTOM_COMMAND( 192 TARGET orxonox-main 193 POST_BUILD 194 # Copy the Orxonox.app from the dummy location to the correct one 195 COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/Dummy/${PROJECT_NAME}.app" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app" 196 # Copy the executable into the Orxonox.app 197 COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${ORXONOX_EXECUTABLE_NAME}" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS" 198 # Copy the dev-build marker file to Orxonox.app 199 COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/orxonox_dev_build.keep_me" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS" 200 # Create a shortcut of the application to the Desktop 201 COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app" "$ENV{HOME}/Desktop/${PROJECT_NAME}.app" 202 ) 203 ENDIF(APPLE) 204 180 205 #################### Doxygen #################### 181 206 -
code/branches/kicklib/src/Orxonox.cc
r6417 r8129 53 53 #ifdef ORXONOX_USE_WINMAIN 54 54 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 55 #elif defined(ORXONOX_PLATFORM_APPLE) 56 int main_mac(int argc, char** argv) 55 57 #else 56 58 int main(int argc, char** argv) … … 60 62 { 61 63 #ifndef ORXONOX_USE_WINMAIN 64 65 // On Apples, the kernel supplies a second argument, which we have to circumvent 66 #ifdef ORXONOX_PLATFORM_APPLE 67 # define MAC_ARGC_HACK 2 68 #else 69 # define MAC_ARGC_HACK 1 70 #endif 71 62 72 std::string strCmdLine; 63 for (int i = 1; i < argc; ++i)73 for (int i = MAC_ARGC_HACK; i < argc; ++i) 64 74 strCmdLine = strCmdLine + argv[i] + ' '; 65 75 #endif -
code/branches/kicklib/src/libraries/core/GraphicsManager.cc
r8073 r8129 270 270 Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get()); 271 271 272 // HACK273 #ifdef ORXONOX_PLATFORM_APPLE274 //INFO: This will give our window focus, and not lock it to the terminal275 ProcessSerialNumber psn = {0, kCurrentProcess};276 TransformProcessType(&psn, kProcessTransformToForegroundApplication);277 SetFrontProcess(&psn);278 #endif279 // End of HACK280 281 272 // create a full screen default viewport 282 273 // Note: This may throw when adding a viewport with an existing z-order! -
code/branches/kicklib/src/orxonox/sound/SoundManager.cc
r8073 r8129 330 330 ALenum error = alGetError(); 331 331 if (error == AL_INVALID_VALUE) 332 // @TODO: Follow this constantly appearing, nerve-racking warning 332 333 COUT(2) << "Sound: OpenAL: Invalid listener position" << std::endl; 333 334 }
Note: See TracChangeset
for help on using the changeset viewer.