diff --git a/ChangeLog b/ChangeLog index 1f166ea0b..70eb0b2ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * plugins/ladspa_effect/ladspa_effect.cpp: added Freeverb to blacklist as it does not work samplerate independent + * cmake/modules/Win64Toolchain.cmake: * cmake/modules/DetectMachine.cmake: * cmake/modules/BuildPlugin.cmake: * plugins/ladspa_effect/swh/CMakeLists.txt: diff --git a/cmake/modules/Win64Toolchain.cmake b/cmake/modules/Win64Toolchain.cmake new file mode 100644 index 000000000..e2ee8a7de --- /dev/null +++ b/cmake/modules/Win64Toolchain.cmake @@ -0,0 +1,39 @@ +# this one is important +SET(CMAKE_SYSTEM_NAME Windows) +#this one not so much +SET(CMAKE_SYSTEM_VERSION 1) + +SET(CMAKE_SYSTEM_PROCESSOR x86_64) +SET(CMAKE_INSTALL_PREFIX /opt/mingw64) + +SET(CC_PREFIX /opt/mingw64) + +# specify the cross compiler +SET(CMAKE_C_COMPILER ${CC_PREFIX}/bin/x86_64-pc-mingw32-gcc) +SET(CMAKE_CXX_COMPILER ${CC_PREFIX}/bin/x86_64-pc-mingw32-g++) + +# where is the target environment +SET(CMAKE_FIND_ROOT_PATH /opt/mingw64) + +SET(QT_BINARY_DIR ${CC_PREFIX}/bin) +SET(QT_LIBRARY_DIR ${CC_PREFIX}/lib) +SET(QT_QTCORE_LIBRARY ${CC_PREFIX}/lib/libQtCore4.a) +SET(QT_INCLUDE_DIR ${CC_PREFIX}/include/qt4) +SET(QT_QTCORE_INCLUDE_DIR ${CC_PREFIX}/include/qt4/QtCore) +SET(QT_MKSPECS_DIR ${CC_PREFIX}/share/qt4/mkspecs) +SET(QT_MOC_EXECUTABLE ${QT_BINARY_DIR}/moc.exe) +SET(QT_RCC_EXECUTABLE ${QT_BINARY_DIR}/rcc.exe) +SET(QT_QMAKE_EXECUTABLE /usr/bin/qmake) +SET(QT_UIC_EXECUTABLE ${QT_BINARY_DIR}/uic.exe) + +# search for programs in the build host directories +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +# for libraries and headers in the target directories +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + +SET(PKG_CONFIG_EXECUTABLE ${CC_PREFIX}/bin/pkg-config) + +INCLUDE_DIRECTORIES(${CC_PREFIX}/include) +LINK_DIRECTORIES(${CC_PREFIX}/lib ${CC_PREFIX}/bin) +