From b043032a89f38e2b3191a65dab9ae4e8202d48f3 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 12 Nov 2017 07:32:11 +0300 Subject: libADLMIDI now is buildable under OpenWatcom except of some workarounds - Need a different way to create a static library, otherwise it don't wanna be built. - Needed a different custom STL containers (std::vector and std::set) implementation that will work and will don't glitch with a crashes --- cmake/openwattcom/toolchain-ow.cmake | 37 +++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'cmake/openwattcom/toolchain-ow.cmake') diff --git a/cmake/openwattcom/toolchain-ow.cmake b/cmake/openwattcom/toolchain-ow.cmake index 4f8b8f6..2881cc4 100644 --- a/cmake/openwattcom/toolchain-ow.cmake +++ b/cmake/openwattcom/toolchain-ow.cmake @@ -1,34 +1,37 @@ -set (CMAKE_SYSTEM_NAME linux) +set(CMAKE_CROSSCOMPILING TRUE) +set(CMAKE_SYSTEM_NAME Linux) -set (OPENWATTCOM TRUE) +set(OPENWATTCOM TRUE) +set(LINUX TRUE) -set (WATCOM_PREFIX "/home/wohlstand/Qt/Tools/ow-snapshot-2.0") +set(WATCOM_PREFIX "$ENV{HOME}/Qt/Tools/ow-snapshot-2.0") -set (ENV{PATH} ${WATCOM_PREFIX}/binl:$ENV{PATH}) -set (ENV{WATCOM} ${WATCOM_PREFIX}) -set (ENV{INCLUDE} ${WATCOM_PREFIX}/lh) -set (ENV{EDPATH} ${WATCOM_PREFIX}/eddat) -set (ENV{WIPFC} ${WATCOM_PREFIX}/wipfc) +set(ENV{PATH} ${WATCOM_PREFIX}/binl:$ENV{PATH}) +set(ENV{WATCOM} ${WATCOM_PREFIX}) +set(ENV{INCLUDE} "${WATCOM_PREFIX}/lh") +set(ENV{LIB} "${WATCOM_PREFIX}/lib386") +set(ENV{EDPATH} ${WATCOM_PREFIX}/eddat) +set(ENV{WIPFC} ${WATCOM_PREFIX}/wipfc) # specify the cross compiler -set (CMAKE_C_COMPILER ${WATCOM_PREFIX}/binl/owcc) -set (CMAKE_CXX_COMPILER ${WATCOM_PREFIX}/binl/owcc) +set(CMAKE_C_COMPILER ${WATCOM_PREFIX}/binl/owcc) +set(CMAKE_CXX_COMPILER ${WATCOM_PREFIX}/binl/owcc) # where is the target environment -set (CMAKE_FIND_ROOT_PATH ${WATCOM_PREFIX}) +set(CMAKE_FIND_ROOT_PATH ${WATCOM_PREFIX}) # search for programs in the build host directories -set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +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 (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) include_directories(${WATCOM_PREFIX}/lh) # Make sure Qt can be detected by CMake -set (QT_BINARY_DIR ${WATCOM_PREFIX}/binl /usr/bin) -set (QT_INCLUDE_DIRS_NO_SYSTEM ON) +set(QT_BINARY_DIR ${WATCOM_PREFIX}/binl /usr/bin) +set(QT_INCLUDE_DIRS_NO_SYSTEM ON) # These are needed for compiling lapack (RHBZ #753906) #set (CMAKE_Fortran_COMPILER /home/wohlstand/Qt/Tools/ow-snapshot-2.0/binl/wfc) -- cgit v1.2.3