Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10268


Ignore:
Timestamp:
Feb 12, 2015, 11:28:26 PM (10 years ago)
Author:
landauf
Message:

program icon now works also with MinGW. but I had to exclude the PCH-file for the resource file

Location:
code/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake

    r10187 r10268  
    104104    FOREACH(_file ${_source_files})
    105105      GET_SOURCE_FILE_PROPERTY(_is_header ${_file} HEADER_FILE_ONLY)
    106       IF(NOT _is_header)
     106      # Don't use pch file for header-only files and *.rc files
     107      IF((NOT _is_header) AND (NOT _file MATCHES "\\.rc$"))
    107108        GET_SOURCE_FILE_PROPERTY(_old_flags ${_file} COMPILE_FLAGS)
    108109        IF(NOT _old_flags)
     
    113114          OBJECT_DEPENDS "${_pch_header_file}"
    114115        )
    115       ENDIF(NOT _is_header)
     116      ENDIF()
    116117    ENDFOREACH(_file)
    117118
  • code/trunk/src/CMakeLists.txt

    r10267 r10268  
    5959  LIST(APPEND ORXONOX_MAIN_FILES OrxonoxMac.mm)
    6060# Add the icon for win32 builds
    61 # TODO: does this work for mingw too?
    62 ELSEIF(WIN32 AND MSVC)
     61ELSEIF(WIN32)
    6362  LIST(APPEND ORXONOX_MAIN_FILES ${CMAKE_SOURCE_DIR}/contrib/winresource.rc)
    6463ENDIF()
  • code/trunk/src/libraries/core/CMakeLists.txt

    r10267 r10268  
    6969
    7070#Add the icon (for the renderwindow)
    71 IF(WIN32 AND MSVC)
     71IF(WIN32)
    7272  List(APPEND CORE_SRC_FILES ${CMAKE_SOURCE_DIR}/contrib/winresource.rc)
    7373ENDIF()
  • code/trunk/src/libraries/core/GraphicsManager.cc

    r10267 r10268  
    318318
    319319        //Add program icon
    320 #if defined(ORXONOX_PLATFORM_WINDOWS) && defined(_MSC_VER)
     320#if defined(ORXONOX_PLATFORM_WINDOWS)
    321321        HWND hwnd;
    322322        this->renderWindow_->getCustomAttribute("WINDOW", (void*)&hwnd);
Note: See TracChangeset for help on using the changeset viewer.