Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 8, 2009, 12:10:57 AM (16 years ago)
Author:
rgrieder
Message:

Cleanup in OrxonoxConfig.h.in. Made use of various CMake features like CheckInclude or CheckCompiles to determine some options and macros in the config header file.

Also removed util/Integers.h and placed the code directory in OrxonoxConfig.h.in.

Location:
code/branches/buildsystem2/src/orxonox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/orxonox/Main.cc

    r2619 r2639  
    5353#include "gamestates/GSIOConsole.h"
    5454
    55 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_APPLE
     55#ifdef ORXONOX_PLATFORM_APPLE
    5656#include <CoreFoundation/CoreFoundation.h>
    5757
  • code/branches/buildsystem2/src/orxonox/OrxonoxPrereqs.h

    r2619 r2639  
    4141//-----------------------------------------------------------------------
    4242#define ORXONOX_NO_EXPORTS // This is an executable that needs no exports
    43 #if (ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32) && !(defined(ORXONOX_STATIC_BUILD) || defined(ORXONOX_NO_EXPORTS))
     43#if defined(ORXONOX_PLATFORM_WINDOWS) && !(defined(ORXONOX_STATIC_BUILD) || defined(ORXONOX_NO_EXPORTS))
    4444#  ifdef ORXONOX_SHARED_BUILD
    4545#    define _OrxonoxExport __declspec(dllexport)
  • code/branches/buildsystem2/src/orxonox/gamestates/GSGraphics.cc

    r2534 r2639  
    217217        delete this->ogreRoot_;
    218218
    219 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32
     219#ifdef ORXONOX_PLATFORM_WINDOWS
    220220        // delete the ogre log and the logManager (since we have created it).
    221221        this->ogreLogger_->getDefaultLog()->removeListener(this);
     
    307307
    308308        // TODO: LogManager doesn't work on oli platform. The why is yet unknown.
    309 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32
     309#ifdef ORXONOX_PLATFORM_WINDOWS
    310310        // create a new logManager
    311311        ogreLogger_ = new Ogre::LogManager();
     
    355355
    356356#if 0 // Ogre 1.4.3 doesn't yet support setDebugOutputEnabled(.)
    357 #if ORXONOX_PLATFORM != ORXONOX_PLATFORM_WIN32
     357#ifndef ORXONOX_PLATFORM_WINDOWS
    358358        // tame the ogre ouput so we don't get all the mess in the console
    359359        Ogre::Log* defaultLog = Ogre::LogManager::getSingleton().getDefaultLog();
  • code/branches/buildsystem2/src/orxonox/gamestates/GSRoot.cc

    r2171 r2639  
    4444#include "Settings.h"
    4545
    46 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32
     46#ifdef ORXONOX_PLATFORM_WINDOWS
    4747#  ifndef WIN32_LEAN_AND_MEAN
    4848#    define WIN32_LEAN_AND_MEAN
     
    165165    void GSRoot::setThreadAffinity(unsigned int limitToCPU)
    166166    {
    167 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32
     167#ifdef ORXONOX_PLATFORM_WINDOWS
    168168        // Get the current process core mask
    169169            DWORD procMask;
  • code/branches/buildsystem2/src/orxonox/pch/havepch/OrxonoxStableHeaders.h

    r2567 r2639  
    5757
    5858//Get around Windows hackery (windows.h is included by Ogre.h)
    59 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32
     59#ifdef ORXONOX_PLATFORM_WINDOWS
    6060#  ifdef max
    6161#    undef max
     
    100100//#endif /* ifdef NDEBUG */
    101101
    102 #endif /* ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC && !defined(ORXONOX_DISABLE_PCH) */
     102#endif /* defined(ORXONOX_ENABLE_PCH) */
    103103
    104104#endif /* _OrxonoxStableHeaders_H__ */
Note: See TracChangeset for help on using the changeset viewer.