Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 20, 2009, 12:10:34 AM (15 years ago)
Author:
rgrieder
Message:

Sorted out header file finding issues and updated/added precompiled header files.
PCH is not activated per default for the pong projects (only 7 files).

Location:
code/trunk/src/libraries
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/CorePrecompiledHeaders.h

    r5738 r5749  
    3030@file
    3131@brief
    32     Compilation of the most often used header files in the core library for MSVC
     32    Compilation of the most often used header files in the core library
     33@details
     34    Updated: 13. September 2009
     35    Total Files: 56
    3336*/
    3437
    3538#include "OrxonoxConfig.h"
    3639
    37 #include <cassert>
    38 #include <fstream>
    39 #include <iostream>
    40 #include <list>
    41 #include <locale>
    42 #include <map>
    43 #include <queue>
    44 #include <set>
    45 #include <sstream>
    46 #include <stack>
    47 #include <string>
    48 #include <vector>
     40///////////////////////////////////////////
     41/////          Stable Headers         /////
     42///////////////////////////////////////////
    4943
     44#include <string>   // 54
     45#include <vector>   // 54
     46#include <cassert>  // 53
     47#include <fstream>  // 53
     48#include <iostream> // 53
     49#include <map>      // 53
     50#include <sstream>  // 53
     51#include <set>      // 50
     52
     53#include "util/Debug.h" // 48
     54
     55#include <deque>    // 43
     56#include <list>     // 44
     57#include <cmath>    // 42
     58
     59#include "util/ScopeGuard.h" // 38
     60
     61#include <OgreMath.h>        // 36
     62#include <OgreVector2.h>     // 36
     63#include <OgreVector3.h>     // 36
     64#include <OgreVector4.h>     // 36
     65#include <OgreQuaternion.h>  // 36
     66#include <OgreColourValue.h> // 36
     67#include <boost/preprocessor/cat.hpp> // 27
     68#include <boost/shared_ptr.hpp> // 21
    5069
    5170#ifdef ORXONOX_COMPILER_MSVC
    5271
    53 #include <OgreMath.h>
    54 #include <OgreVector2.h>
    55 #include <OgreVector3.h>
    56 #include <OgreVector4.h>
    57 #include <OgreQuaternion.h>
    58 #include <OgreColourValue.h>
     72#include <ois/OISKeyboard.h> // 15
     73#include <ois/OISMouse.h>    // 15
     74#include <ois/OISJoyStick.h> // 15
    5975
    60 #include <boost/shared_ptr.hpp> // 12
    61 #include <boost/preprocessor/cat.hpp> // 12
     76#include "util/SubString.h"  // 14
     77
     78#include <boost/scoped_ptr.hpp> // 13
     79#include <stack> // 12
     80
     81#endif /*ORXONOX_COMPILER_MSVC */
     82
    6283
    6384// Just in case some header included windows.h
    6485#undef min
    6586#undef max
    66 
    67 #endif /* ORXONOX_COMPILER_MSVC */
    68 
    69 
    70 #include "util/Debug.h"
    71 #include "util/Math.h"
    72 #include "util/MultiType.h"
    73 #include "util/SubString.h"
    74 
    75 
    76 #ifdef ORXONOX_COMPILER_MSVC
    77 
    78 // A change would trigger an 80% Core rebuild anyway
    79 #include "Identifier.h"
    80 
    81 #endif /*ORXONOX_COMPILER_MSVC */
  • code/trunk/src/libraries/network/ClientConnection.cc

    r5738 r5749  
    3030
    3131#include <cassert>
     32#define WIN32_LEAN_AND_MEAN
    3233#include <enet/enet.h>
    3334#include "util/Debug.h"
  • code/trunk/src/libraries/network/ClientInformation.cc

    r5738 r5749  
    4040
    4141#include "ClientInformation.h"
     42#define WIN32_LEAN_AND_MEAN
    4243#include <enet/enet.h>
    4344
  • code/trunk/src/libraries/network/Connection.cc

    r5738 r5749  
    3030
    3131#include <cassert>
     32#define WIN32_LEAN_AND_MEAN
    3233#include <enet/enet.h>
    3334#include "packet/Packet.h"
  • code/trunk/src/libraries/network/NetworkPrecompiledHeaders.h

    r5738 r5749  
    3131@brief
    3232    Compilation of the most often used header files in the network library
     33@details
     34    Updated: 13. September 2009
     35    Total Files: 28
    3336*/
    3437
    3538#include "OrxonoxConfig.h"
    3639
    37 #include <cassert>
    38 #include <fstream>
    39 #include <iostream>
    40 #include <list>
    41 #include <map>
    42 #include <queue>
    43 #include <set>
    44 #include <sstream>
    45 #include <string>
    46 #include <vector>
     40///////////////////////////////////////////
     41/////          Stable Headers         /////
     42///////////////////////////////////////////
    4743
     44#include <cstring>  // 26
     45#include <cassert>  // 24
     46#include <string>   // 23
     47#include <vector>   // 23
     48#include <map>      // 23
     49#include <fstream>  // 22
     50#include <iostream> // 22
     51#include <sstream>  // 22
     52#include <set>      // 20
     53
     54#include "util/Debug.h"      // 20
     55#include "util/TypeTraits.h" // 18
    4856
    4957#ifdef ORXONOX_COMPILER_MSVC
    5058
    51 #include <OgreMath.h>
    52 #include <OgreVector2.h>
    53 #include <OgreVector3.h>
    54 #include <OgreVector4.h>
    55 #include <OgreQuaternion.h>
    56 #include <OgreColourValue.h>
     59#include <deque>    // 17
     60#include <queue>    // 17
     61#include <list>     // 16
     62#include <cmath>    // 15
     63
     64#include <OgreMath.h>        // 15
     65#include <OgreVector2.h>     // 15
     66#include <OgreVector3.h>     // 15
     67#include <OgreVector4.h>     // 15
     68#include <OgreQuaternion.h>  // 15
     69#include <OgreColourValue.h> // 15
     70
     71#include "util/mbool.h" // 11
    5772
    5873#define WIN32_LEAN_AND_MEAN
    59 #include <enet/enet.h>
     74#include <enet/enet.h> // 6, 3.1MB
     75
     76#endif /*ORXONOX_COMPILER_MSVC */
     77
     78
     79// Just in case some header included windows.h
     80#undef min
    6081#undef max
    61 #undef min
    62 
    63 #include "util/Debug.h"
    64 #include "core/Identifier.h"
    65 
    66 #endif /* ORXONOX_COMPILER_MSVC */
  • code/trunk/src/libraries/network/Server.cc

    r5738 r5749  
    4141#include "Server.h"
    4242
     43#define WIN32_LEAN_AND_MEAN
    4344#include <enet/enet.h>
    4445#include <cassert>
  • code/trunk/src/libraries/network/ServerConnection.cc

    r5738 r5749  
    3131#include <cassert>
    3232#include <string>
     33#define WIN32_LEAN_AND_MEAN
    3334#include <enet/enet.h>
    3435
  • code/trunk/src/libraries/network/packet/Packet.cc

    r5738 r5749  
    3232#include <cassert>
    3333#include <cstring>
     34#define WIN32_LEAN_AND_MEAN
    3435#include <enet/enet.h>
    3536#include <boost/static_assert.hpp>
  • code/trunk/src/libraries/tools/CMakeLists.txt

    r5738 r5749  
    1414
    1515ORXONOX_ADD_LIBRARY(tools
     16  FIND_HEADER_FILES
     17  PCH_FILE
     18    ToolsPrecompiledHeaders.h
    1619  DEFINE_SYMBOL
    1720    "TOOLS_SHARED_BUILD"
  • code/trunk/src/libraries/util/CMakeLists.txt

    r5747 r5749  
    3434)
    3535
    36 SET_SOURCE_FILES(UTIL_HDR_FILES
    37   CRC32.h
    38   Clipboard.h
    39   Convert.h
    40   Debug.h
    41   Exception.h
    42   ExprParser.h
    43   Math.h
    44   MathConvert.h
    45   mbool.h
    46   MultiType.h
    47   MultiTypeValue.h
    48   OgreForwardRefs.h
    49   OrxAssert.h
    50   OrxEnum.h
    51   OutputBuffer.h
    52   OutputHandler.h
    53   RefToValue.h
    54   ScopeGuard.h
    55   Serialise.h
    56   SignalHandler.h
    57   Singleton.h
    58   Sleep.h
    59   StringUtils.h
    60   SubString.h
    61   TemplateUtils.h
    62   TypeTraits.h
    63   UTFStringConversions.h
    64   UtilPrereqs.h
    65 )
    66 
    6736IF(GCC_NO_SYSTEM_HEADER_SUPPORT)
    6837  # Get around displaying a few hundred lines of warning code
     
    7140
    7241ORXONOX_ADD_LIBRARY(util
     42  FIND_HEADER_FILES
    7343  DEFINE_SYMBOL
    7444    "UTIL_SHARED_BUILD"
     
    7747    ${OGRE_LIBRARY}
    7848  SOURCE_FILES
    79     ${UTIL_SRC_FILES} ${UTIL_HDR_FILES}
     49    ${UTIL_SRC_FILES}
    8050)
Note: See TracChangeset for help on using the changeset viewer.