Changeset 3030


Ignore:
Timestamp:
25/10/2011 23:03:07 (7 months ago)
Author:
chris
Message:

Avoid recompiling everything on MSVC when BoxVersion?.h changes.

Location:
box/trunk/lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/BannerText.h

    r2616 r3030  
    1111#define BANNERTEXT__H 
    1212 
     13#ifdef NEED_BOX_VERSION_H 
     14#       include "BoxVersion.h" 
     15#endif 
     16 
    1317#define BANNER_TEXT(UtilityName) \ 
    1418        "Box " UtilityName " v" BOX_VERSION ", (c) Ben Summers and " \ 
    15         "contributors 2003-2010" 
     19        "contributors 2003-2011" 
    1620 
    1721#endif // BANNERTEXT__H 
  • box/trunk/lib/common/BoxPlatform.h

    r3012 r3030  
    2424#ifdef _MSC_VER 
    2525#include "BoxConfig-MSVC.h" 
    26 #include "BoxVersion.h" 
     26#define NEED_BOX_VERSION_H 
    2727#else 
    2828#include "BoxConfig.h" 
  • box/trunk/lib/common/MainHelper.h

    r3018 r3030  
    1313#include <stdio.h> 
    1414 
     15#ifdef NEED_BOX_VERSION_H 
     16#       include "BoxVersion.h" 
     17#endif 
     18 
    1519#include "BoxException.h" 
    1620#include "Logging.h" 
     
    2226        MEMLEAKFINDER_START                                                                             \ 
    2327        try { 
     28 
    2429#define MAINHELPER_END                                                                                                                          \ 
    2530        } catch(std::exception &e) {                                                                                                    \ 
  • box/trunk/lib/common/Utils.cpp

    r2855 r3030  
    2929#endif 
    3030 
    31 #include "Utils.h" 
     31#ifdef NEED_BOX_VERSION_H 
     32#       include "BoxVersion.h" 
     33#endif 
     34 
    3235#include "CommonException.h" 
    3336#include "Logging.h" 
     37#include "Utils.h" 
    3438 
    3539#include "MemLeakFindOn.h" 
  • box/trunk/lib/server/Daemon.cpp

    r2934 r3030  
    3333#include <iostream> 
    3434 
     35#ifdef NEED_BOX_VERSION_H 
     36#       include "BoxVersion.h" 
     37#endif 
     38 
     39#include "Configuration.h" 
    3540#include "Daemon.h" 
    36 #include "Configuration.h" 
     41#include "FileModificationTime.h" 
     42#include "Guards.h" 
     43#include "Logging.h" 
    3744#include "ServerException.h" 
    38 #include "Guards.h" 
    3945#include "UnixUser.h" 
    40 #include "FileModificationTime.h" 
    41 #include "Logging.h" 
    4246#include "Utils.h" 
    4347 
Note: See TracChangeset for help on using the changeset viewer.