Changeset 8073
- Timestamp:
- Mar 14, 2011, 4:08:06 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 2 deleted
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
- Property svn:mergeinfo changed
/code/branches/mac_osx (added) merged: 7789,7933-7934,8042-8049,8054-8056,8059-8060,8065,8069-8070,8072
- Property svn:mergeinfo changed
-
code/branches/kicklib/cmake/CompilerConfigGCC.cmake
r8071 r8073 65 65 66 66 # CMake doesn't seem to set the PIC flags right on certain 64 bit systems 67 # Todo: MinGW too? 68 IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") 67 IF(NOT MINGW AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") 69 68 ADD_COMPILER_FLAGS("-fPIC" CACHE) 70 69 ENDIF() -
code/branches/kicklib/cmake/LibraryConfig.cmake
r8071 r8073 48 48 # Scripts for specific library and CMake config 49 49 INCLUDE(LibraryConfigTardis) 50 #INCLUDE(LibraryConfigOSX)51 50 52 51 IF(DEPENDENCY_PACKAGE_ENABLE) -
code/branches/kicklib/cmake/PackageConfigMSVC.cmake
r8071 r8073 59 59 SET(TCL_LIBRARY ${DEP_LIBRARY_DIR}/tcl85.lib CACHE FILEPATH "") 60 60 SET(ZLIB_LIBRARY ${DEP_LIBRARY_DIR}/zdll.lib CACHE FILEPATH "") 61 # Part of Platform SDK and usually gets linked automatically 62 SET(WMI_LIBRARY wbemuuid.lib) 61 63 62 64 ENDIF(MSVC) -
code/branches/kicklib/cmake/PackageConfigMinGW.cmake
r8071 r8073 53 53 SET(ZLIB_LIBRARY ${DEP_BINARY_DIR}/libzlib.dll CACHE FILEPATH "") 54 54 55 # Not included in MinGW, so we need to supply it for OIS 56 SET(WMI_INCLUDE_DIR ${DEP_INCLUDE_DIR}/wmi/include) 57 SET(WMI_LIBRARY ${DEP_LIBRARY_DIR}/wbemuuid.lib) 58 55 59 ENDIF(MINGW) -
code/branches/kicklib/cmake/PackageConfigOSX.cmake
r8071 r8073 51 51 SET(ENV{OGRE_PLUGIN_DIR} ${DEP_BINARY_DIR}) 52 52 53 # For OS X 10.5 we have to ship modified headers to make it compile 54 # on gcc >= 4.2 (binaries stay the same) 55 # Sets the library path for the FIND_LIBRARY 56 IF(CMAKE_SYSTEM_VERSION STREQUAL "10.5") 57 SET(ENV{OPENALDIR} ${DEP_INCLUDE_DIR}/openal) 58 ENDIF() 59 53 60 # Xcode won't be able to run the toluabind code generation if we're using the dependency package 54 61 #IF(DEPENDENCY_PACKAGE_ENABLE) -
code/branches/kicklib/cmake/tools/FindALUT.cmake
r8071 r8073 1 # Find ALUT includes and library 2 # 3 # This module defines 4 # ALUT_INCLUDE_DIR 5 # ALUT_LIBRARY, the library to link against to use ALUT. 6 # ALUT_FOUND, If false, do not try to use ALUT 7 # 8 # Copyright © 2007, Matt Williams 9 # Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture 10 # of the ETH Zurich (removed later on) 11 # 12 # Redistribution and use is allowed according to the terms of the BSD license. 13 # 14 # Several changes and additions by Fabian 'x3n' Landau 15 # Lots of simplifications by Adrian Friedli 16 # Version checking by Reto Grieder 17 # Adaption of the OGRE find script to ALUT by Kevin Young 18 # > www.orxonox.net < 1 # 2 # ORXONOX - the hottest 3D action shooter ever to exist 3 # > www.orxonox.net < 4 # 5 # This program is free software; you can redistribute it and/or 6 # modify it under the terms of the GNU General Public License 7 # as published by the Free Software Foundation; either version 2 8 # of the License, or (at your option) any later version. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License along 16 # with this program; if not, write to the Free Software Foundation, 17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 # 19 # 20 # Author: 21 # Kevin Young 22 # Description: 23 # Variables defined: 24 # ALUT_FOUND 25 # ALUT_INCLUDE_DIR 26 # ALUT_LIBRARY 27 # 19 28 20 INCLUDE(FindPackageHandle AdvancedArgs)29 INCLUDE(FindPackageHandleStandardArgs) 21 30 INCLUDE(HandleLibraryTypes) 22 31 23 32 FIND_PATH(ALUT_INCLUDE_DIR alut.h 24 33 PATHS $ENV{ALUTDIR} 25 PATH_SUFFIXES include include/AL ALUT34 PATH_SUFFIXES include include/AL Headers Headers/AL 26 35 ) 27 36 FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED 28 NAMES ALUT alut37 NAMES alut ALUT 29 38 PATHS $ENV{ALUTDIR} 30 39 PATH_SUFFIXES lib bin/Release bin/release Release release ALUT 31 40 ) 32 41 FIND_LIBRARY(ALUT_LIBRARY_DEBUG 33 NAMES ALUTD alutd alut_d alutD alut_D42 NAMES alutd alut_d alutD alut_D ALUTd ALUT_d ALUTD ALUT_D 34 43 PATHS $ENV{ALUTDIR} 35 44 PATH_SUFFIXES lib bin/Debug bin/debug Debug debug ALUT … … 37 46 38 47 # Handle the REQUIRED argument and set ALUT_FOUND 39 # Also check the version requirements 40 FIND_PACKAGE_HANDLE_ADVANCED_ARGS(ALUT DEFAULT_MSG 48 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG 41 49 ALUT_LIBRARY_OPTIMIZED 42 50 ALUT_INCLUDE_DIR -
code/branches/kicklib/src/OrxonoxConfig.cmake
r8071 r8073 69 69 ENDIF(MSVC) 70 70 71 # Part of a woraround for OS X warnings. See OrxonoxConfig.h.in 72 IF(HAVE_STDINT_H) 73 SET(HAVE_STDINT_H 1) 74 ELSE() 75 SET(HAVE_STDINT_H 0) 76 ENDIF() 77 78 # Check iso646.h include (literal operators) 71 # Check some non standard system includes 79 72 INCLUDE(CheckIncludeFileCXX) 80 73 CHECK_INCLUDE_FILE_CXX(iso646.h HAVE_ISO646_H) 74 CHECK_INCLUDE_FILE_CXX(stdint.h HAVE_STDINT_H) 75 76 # Part of a woraround for OS X warnings. See OrxonoxConfig.h.in 77 SET(ORX_HAVE_STDINT_H ${HAVE_STDINT_H}) 81 78 82 79 IF(MSVC) -
code/branches/kicklib/src/OrxonoxConfig.h.in
r8071 r8073 162 162 163 163 // On OS X some headers already define HAVE_STDINT_H and that spits out 164 // some warnings. Therefore we use this syntax.164 // some warnings. Therefore we use this macro. 165 165 // Note: This requires some extra code in OrxonoxConfig.cmake 166 #if @HAVE_STDINT_H@ 166 #cmakedefine ORX_HAVE_STDINT_H 167 #ifdef ORX_HAVE_STDINT_H 167 168 # include <stdint.h> 168 169 #elif defined(ORXONOX_COMPILER_MSVC) -
code/branches/kicklib/src/external/bullet/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp
r8071 r8073 38 38 int gNumGjkChecks = 0; 39 39 40 #ifdef check41 struct CompilerError42 {43 void CompilerError() {}44 };45 #endif46 40 47 41 btGjkPairDetector::btGjkPairDetector(const btConvexShape* objectA,const btConvexShape* objectB,btSimplexSolverInterface* simplexSolver,btConvexPenetrationDepthSolver* penetrationDepthSolver) -
code/branches/kicklib/src/external/ois/CMakeLists.txt
r8071 r8073 35 35 OISPrereqs.h 36 36 37 37 #COMPILATION_BEGIN OISCompilation.cpp 38 38 OISEffect.cpp 39 39 OISException.cpp … … 43 43 OISKeyboard.cpp 44 44 OISObject.cpp 45 45 #COMPILATION_END 46 46 ) 47 47 IF(WIN32) … … 53 53 ENDIF() 54 54 55 # Some unexplained hackery for Visual Studio 2005 56 ADD_COMPILER_FLAGS("-D_WIN32_DCOM" MSVC8) 57 58 # MinGW doesn't come with some required Windows headers 59 IF(MINGW) 60 INCLUDE_DIRECTORIES(${WMI_INCLUDE_DIR}) 61 ENDIF() 62 55 63 ORXONOX_ADD_LIBRARY(ois_orxonox 56 64 ORXONOX_EXTERNAL … … 58 66 "OIS_NONCLIENT_BUILD" 59 67 VERSION 60 1. 268 1.3 61 69 SOURCE_FILES 62 70 ${OIS_FILES} … … 64 72 65 73 IF(WIN32) 66 TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES} )74 TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES} ${WMI_LIBRARY}) 67 75 ELSEIF(APPLE) 68 76 TARGET_LINK_LIBRARIES(ois_orxonox "/System/Library/Frameworks/IOKit.framework" "/System/Library/Frameworks/Carbon.framework") -
code/branches/kicklib/src/external/ois/OISPrereqs.h
r8071 r8073 101 101 //-------------- Common Classes, Enums, and Typdef's -------------------------// 102 102 #define OIS_VERSION_MAJOR 1 103 #define OIS_VERSION_MINOR 4103 #define OIS_VERSION_MINOR 3 104 104 #define OIS_VERSION_PATCH 0 105 #define OIS_VERSION_NAME "1. 4.0"105 #define OIS_VERSION_NAME "1.3.0" 106 106 107 107 #define OIS_VERSION ((OIS_VERSION_MAJOR << 16) | (OIS_VERSION_MINOR << 8) | OIS_VERSION_PATCH) -
code/branches/kicklib/src/external/ois/VERSION
r8071 r8073 1 OIS SVN trunk updated on 2010/10/07 (revision 26)2 https://wgois.svn.sourceforge.net/svnroot/wgois/ois/ trunk/1 OIS SVN v1.3 branch updated on 2011/02/20 (revision 32) 2 https://wgois.svn.sourceforge.net/svnroot/wgois/ois/branches/v1-3/ -
code/branches/kicklib/src/external/ois/changes_orxonox.diff
r8071 r8073 49 49 50 50 51 --- win32/Win32JoyStick.cpp 52 +++ win32/Win32JoyStick.cpp 53 @@ -26,6 +26,14 @@ 54 #include "OISEvents.h" 55 #include "OISException.h" 56 57 +// (Orxonox): Required for MinGW to compile properly 58 +#ifdef __MINGW32__ 59 +# include <oaidl.h> 60 +# ifndef __MINGW_EXTENSION 61 +# define __MINGW_EXTENSION __extension__ 62 +# endif 63 +#endif 64 + 65 #include <cassert> 66 #include <wbemidl.h> 67 #include <oleauto.h> 68 @@ -39,6 +47,11 @@ 69 } 70 #endif 71 72 +// (Orxonox): MinGW doesn't have swscanf_s 73 +#ifdef __MINGW32__ 74 +# define swscanf_s swscanf 75 +#endif 76 + 77 #ifdef OIS_WIN32_XINPUT_SUPPORT 78 # pragma comment(lib, "xinput.lib") 79 #endif 80 @@ -583,7 +596,12 @@ 81 bool bCleanupCOM = SUCCEEDED(hr); 82 83 // Create WMI 84 + // (Orxonox): Fix for MinGW 85 +#ifdef __MINGW32__ 86 + hr = CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID*)&pIWbemLocator); 87 +#else 88 hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator); 89 +#endif 90 if( FAILED(hr) || pIWbemLocator == NULL ) 91 goto LCleanup; 92 93 51 94 --- mac/MacHIDManager.cpp 52 95 +++ mac/MacHIDManager.cpp -
code/branches/kicklib/src/external/ois/linux/LinuxKeyboard.cpp
r8071 r8073 284 284 while( XPending(display) > 0 ) 285 285 { 286 XNextEvent(display, &event); if(KeyPress == event.type) 286 XNextEvent(display, &event); 287 288 if(KeyPress == event.type) 287 289 { 288 290 unsigned int character = 0; -
code/branches/kicklib/src/external/ois/mac/CMakeLists.txt
r8071 r8073 8 8 MacPrereqs.h 9 9 10 10 #COMPILATION_BEGIN OISMacCompilation.cpp 11 11 MacHelpers.cpp 12 12 MacHIDManager.cpp … … 15 15 MacKeyboard.cpp 16 16 MacMouse.cpp 17 17 #COMPILATION_END 18 18 ) -
code/branches/kicklib/src/external/ois/win32/Win32JoyStick.cpp
r8071 r8073 26 26 #include "OISEvents.h" 27 27 #include "OISException.h" 28 29 // (Orxonox): Required for MinGW to compile properly 30 #ifdef __MINGW32__ 31 # include <oaidl.h> 32 # ifndef __MINGW_EXTENSION 33 # define __MINGW_EXTENSION __extension__ 34 # endif 35 #endif 28 36 29 37 #include <cassert> … … 38 46 x = NULL; \ 39 47 } 48 #endif 49 50 // (Orxonox): MinGW doesn't have swscanf_s 51 #ifdef __MINGW32__ 52 # define swscanf_s swscanf 40 53 #endif 41 54 … … 584 597 585 598 // Create WMI 599 // (Orxonox): Fix for MinGW 600 #ifdef __MINGW32__ 601 hr = CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID*)&pIWbemLocator); 602 #else 586 603 hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator); 604 #endif 587 605 if( FAILED(hr) || pIWbemLocator == NULL ) 588 606 goto LCleanup; -
code/branches/kicklib/src/libraries/core/DynLib.h
r8071 r8073 110 110 111 111 protected: 112 112 113 /// Handle to the loaded library. 113 114 DYNLIB_HANDLE m_hInst; -
code/branches/kicklib/src/libraries/core/GUIManager.cc
r8071 r8073 369 369 false | False | True | Dontcare 370 370 */ 371 372 #ifdef ORXONOX_PLATFORM_APPLE 373 // There is no non exclusive mode on OS X yet 374 state->setMouseExclusive(TriBool::True); 375 #else 371 376 if (showCursor == TriBool::Dontcare) 372 377 state->setMouseExclusive(TriBool::Dontcare); … … 375 380 else 376 381 state->setMouseExclusive(TriBool::False); 382 #endif 377 383 378 384 if (showCursor == TriBool::True) … … 436 442 void GUIManager::buttonPressed(MouseButtonCode::ByEnum id) 437 443 { 438 //guiSystem_->injectMouseButtonDown(convertButton(id));439 444 this->protectedCall(boost::bind(&CEGUI::System::injectMouseButtonDown, _1, convertButton(id))); 440 445 } -
code/branches/kicklib/src/libraries/core/GraphicsManager.cc
r8071 r8073 269 269 270 270 Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get()); 271 271 272 272 // HACK 273 273 #ifdef ORXONOX_PLATFORM_APPLE … … 278 278 #endif 279 279 // End of HACK 280 280 281 281 // create a full screen default viewport 282 282 // Note: This may throw when adding a viewport with an existing z-order! -
code/branches/kicklib/src/libraries/core/PathConfig.cc
r8071 r8073 208 208 #ifdef ORXONOX_PLATFORM_UNIX 209 209 char* userDataPathPtr(getenv("HOME")); 210 #elif ORXONOX_PLATFORM_APPLE211 char* userDataPathPtr(getenv("HOME"));212 210 #else 213 211 char* userDataPathPtr(getenv("APPDATA")); -
code/branches/kicklib/src/orxonox/MoodManager.cc
r8071 r8073 50 50 51 51 // Checking for the existence of the folder for the default mood 52 const std::string& path a= "ambient/" + MoodManager::defaultMood_ + "/.";53 if (!Resource::exists(path a))52 const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/."; 53 if (!Resource::exists(path)) 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) -
code/branches/kicklib/src/orxonox/sound/BaseSound.cc
r8071 r8073 31 31 #include <cassert> 32 32 #include <vector> 33 34 #ifdef ORXONOX_PLATFORM_APPLE35 #include "openal/al.h"36 #else37 33 #include <al.h> 38 #endif39 34 40 35 #include "util/Math.h" -
code/branches/kicklib/src/orxonox/sound/SoundBuffer.cc
r8071 r8073 30 30 #include "SoundBuffer.h" 31 31 32 #if defined(ORXONOX_PLATFORM_APPLE) 33 #include <ALUT/alut.h> 34 #else 35 #include <AL/alut.h> 36 #endif 32 #include <alut.h> 37 33 #include <vorbis/vorbisfile.h> 38 34 -
code/branches/kicklib/src/orxonox/sound/SoundManager.cc
r8071 r8073 31 31 #include "SoundManager.h" 32 32 33 #if defined(__APPLE__)34 #include <ALUT/alut.h>35 #else36 #include <AL/alut.h>37 #endif38 33 #include <utility> 34 #include <alut.h> 39 35 #include <loki/ScopeGuard.h> 40 36 … … 85 81 SetConfigValue(bDisableSound_, false); 86 82 if (bDisableSound_) 87 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 83 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 88 84 if (!alutInitWithoutContext(NULL, NULL)) 89 85 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 133 129 GameMode::setPlaysSound(true); 134 130 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 135 131 136 132 // Get some information about the sound 137 133 if (const char* version = alGetString(AL_VERSION)) 138 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 134 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 139 135 if (const char* vendor = alGetString(AL_VENDOR)) 140 136 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl; -
code/branches/kicklib/src/orxonox/sound/SoundStreamer.cc
r8071 r8073 27 27 #include "SoundStreamer.h" 28 28 29 #ifdef ORXONOX_PLATFORM_APPLE30 #include "openal/al.h"31 #else32 29 #include <al.h> 33 #endif34 35 30 #include <vorbis/vorbisfile.h> 36 31 #include "SoundManager.h" -
code/branches/kicklib/src/orxonox/sound/WorldSound.cc
r8071 r8073 30 30 #include "WorldSound.h" 31 31 32 #if defined(__APPLE__) 33 #include <ALUT/alut.h> 34 #else 35 #include <AL/alut.h> 36 #endif 32 #include <alut.h> 33 37 34 #include "util/Math.h" 38 35 #include "core/CoreIncludes.h"
Note: See TracChangeset
for help on using the changeset viewer.