Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2011, 6:26:47 PM (14 years ago)
Author:
rgrieder
Message:

Define minimum Windows version we build Orxonox for. That also defines the Windows API we can use so that we certainly don't make use of any newer API functions when building on a newer Windows version than it is targeted for.

Definition: We support any Windows version from XP on (without the service packs).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib2/src/CMakeLists.txt

    r8285 r8299  
    3737ADD_COMPILER_FLAGS("-DPOCO_NO_AUTOMATIC_LIBS")
    3838
    39 # If no defines are specified, these libs get linked statically
    40 ADD_COMPILER_FLAGS("-DBOOST_ALL_DYN_LINK" WIN32 LINK_BOOST_DYNAMIC)
    41 #ADD_COMPILER_FLAGS("-DENET_DLL"           WIN32 LINK_ENET_DYNAMIC)
    42 ADD_COMPILER_FLAGS("-DLUA_BUILD_AS_DLL"   WIN32 LINK_LUA5.1_DYNAMIC)
    43 # If no defines are specified, these libs get linked dynamically
    44 ADD_COMPILER_FLAGS("-DCEGUI_STATIC -DTOLUA_STATIC" WIN32 NOT LINK_CEGUI_DYNAMIC)
    45 ADD_COMPILER_FLAGS("-DOGRE_STATIC_LIB"    WIN32 NOT LINK_OGRE_DYNAMIC)
    46 ADD_COMPILER_FLAGS("-DSTATIC_BUILD"       WIN32 NOT LINK_TCL_DYNAMIC)
     39IF(WIN32)
     40  # If no defines are specified, these libs get linked statically
     41  ADD_COMPILER_FLAGS("-DBOOST_ALL_DYN_LINK" LINK_BOOST_DYNAMIC)
     42  #ADD_COMPILER_FLAGS("-DENET_DLL"           LINK_ENET_DYNAMIC)
     43  ADD_COMPILER_FLAGS("-DLUA_BUILD_AS_DLL"   LINK_LUA5.1_DYNAMIC)
     44  # If no defines are specified, these libs get linked dynamically
     45  ADD_COMPILER_FLAGS("-DCEGUI_STATIC -DTOLUA_STATIC" NOT LINK_CEGUI_DYNAMIC)
     46  ADD_COMPILER_FLAGS("-DOGRE_STATIC_LIB"    NOT LINK_OGRE_DYNAMIC)
     47  ADD_COMPILER_FLAGS("-DSTATIC_BUILD"       NOT LINK_TCL_DYNAMIC)
     48
     49  # Target Windows XP as minimum Windows version
     50  # And try to catch all the different macro defines for that...
     51  ADD_COMPILER_FLAGS("-D_WIN32_WINNT=0x0501")
     52  ADD_COMPILER_FLAGS("-D_WIN32_WINDOWS=0x0501")
     53  ADD_COMPILER_FLAGS("-DWINVER=0x0501")
     54  ADD_COMPILER_FLAGS("-DNTDDI_VERSION=0x05010000")
     55ENDIF(WIN32)
    4756
    4857######### Library Behaviour (external) ##########
Note: See TracChangeset for help on using the changeset viewer.