Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11113


Ignore:
Timestamp:
Feb 14, 2016, 3:42:37 PM (9 years ago)
Author:
landauf
Message:

updated build-script to work with mingw-w64 and the new dependency package

Location:
code/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/LibraryConfig.cmake

    r11097 r11113  
    127127
    128128IF(WIN32)
    129   FIND_PACKAGE(DbgHelp)
    130   FIND_PACKAGE(DirectX       REQUIRED)
    131129  IF(MSVC)
    132130    # Check whether we can use Visual Leak Detector
    133131    FIND_PACKAGE(VLD QUIET)
     132    FIND_PACKAGE(DbgHelp)
     133    FIND_PACKAGE(DirectX       REQUIRED)
    134134  ENDIF()
    135135ENDIF()
  • code/trunk/cmake/PackageConfigMinGW.cmake

    r9687 r11113  
    2929
    3030  INCLUDE(CheckPackageVersion)
    31   CHECK_PACKAGE_VERSION(6.0 7.0)
     31  CHECK_PACKAGE_VERSION(7.1)
    3232
    3333  # 64 bit system?
     
    5353  SET(ZLIB_LIBRARY ${DEP_BINARY_DIR}/libzlib.dll CACHE FILEPATH "")
    5454
    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)
     55  # Define libraries that are part of mingw64:
     56  #  - DirectX (Needed for OIS):
     57  SET(DIRECTX_LIBRARIES dinput8 dxguid)
     58  SET(WMI_LIBRARY wbemuuid)
     59  #  - DbgHelp (Needed for SignalHandler in util library):
     60  SET(DBGHELP_FOUND true)
     61  SET(DBGHELP_LIBRARY dbghelp)
    5862
    5963ENDIF(MINGW)
  • code/trunk/src/SourceConfig.cmake

    r10209 r11113  
    4545  # Target Windows XP as minimum Windows version
    4646  # And try to catch all the different macro defines for that...
    47   IF(MINGW)
    48     ADD_COMPILER_FLAGS("-D_WIN32_WINNT=0x05010000")
    49     ADD_COMPILER_FLAGS("-D_WIN32_WINDOWS=0x05010000")
    50     ADD_COMPILER_FLAGS("-DWINVER=0x05010000")
    51     ADD_COMPILER_FLAGS("-DNTDDI_VERSION=0x05010000")
    52   ELSE()
    53     ADD_COMPILER_FLAGS("-D_WIN32_WINNT=0x0501")
    54     ADD_COMPILER_FLAGS("-D_WIN32_WINDOWS=0x0501")
    55     ADD_COMPILER_FLAGS("-DWINVER=0x0501")
    56     ADD_COMPILER_FLAGS("-DNTDDI_VERSION=0x05010000")
    57   ENDIF()
     47  ADD_COMPILER_FLAGS("-D_WIN32_WINNT=0x0501")
     48  ADD_COMPILER_FLAGS("-D_WIN32_WINDOWS=0x0501")
     49  ADD_COMPILER_FLAGS("-DWINVER=0x0501")
     50  ADD_COMPILER_FLAGS("-DNTDDI_VERSION=0x05010000")
    5851ENDIF(WIN32)
    5952
  • code/trunk/src/external/ois/CMakeLists.txt

    r8729 r11113  
    5252ENDIF()
    5353
    54 # MinGW doesn't come with some required Windows headers
    55 IF(MINGW)
    56   INCLUDE_DIRECTORIES(${WMI_INCLUDE_DIR})
    57 ENDIF()
    58 
    5954# Apple has problems with OIS and build units
    6055IF(APPLE)
Note: See TracChangeset for help on using the changeset viewer.