added Win64Toolchain file
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1806 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -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:
|
||||
|
||||
39
cmake/modules/Win64Toolchain.cmake
Normal file
39
cmake/modules/Win64Toolchain.cmake
Normal file
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user