diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-11-12 07:32:11 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-11-12 07:32:11 +0300 |
commit | b043032a89f38e2b3191a65dab9ae4e8202d48f3 (patch) | |
tree | fa43cf8e88087b84aff825e8eaac40ff4587f2c3 /cmake/openwattcom/ow-cmake.sh | |
parent | cc2d7237cce71482c04895e5550609534e41413b (diff) | |
download | libADLMIDI-b043032a89f38e2b3191a65dab9ae4e8202d48f3.tar.gz libADLMIDI-b043032a89f38e2b3191a65dab9ae4e8202d48f3.tar.bz2 libADLMIDI-b043032a89f38e2b3191a65dab9ae4e8202d48f3.zip |
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
Diffstat (limited to 'cmake/openwattcom/ow-cmake.sh')
-rwxr-xr-x | cmake/openwattcom/ow-cmake.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/openwattcom/ow-cmake.sh b/cmake/openwattcom/ow-cmake.sh index cbccba0..2e6dbe5 100755 --- a/cmake/openwattcom/ow-cmake.sh +++ b/cmake/openwattcom/ow-cmake.sh @@ -1,8 +1,8 @@ #!/bin/bash -export WATCOM=/home/wohlstand/Qt/Tools/ow-snapshot-2.0/ +export WATCOM=$HOME/Qt/Tools/ow-snapshot-2.0 export EDPATH=$WATCOM/eddat export WIPFC=$WATCOM/wipfc -export INCLUDE="$djgpp_prefix/lh" +export INCLUDE="$WATCOM/lh" WATCOM_FLAGS="-blinux" export CFLAGS="$WATCOM_FLAGS -xc -std=wc" export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -std=c++11" @@ -11,7 +11,8 @@ export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -std=c++11" # djgpp_c_flags="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" -CUSTOM_PATH=/home/wohlstand/_git_repos/libADLMIDI/cmake/openwattcom:${WATCOM}/binl:$PATH +SCRIPT_PATH=$HOME/_git_repos/libADLMIDI/cmake/openwattcom +CUSTOM_PATH=$SCRIPT_PATH:${WATCOM}/binl:$PATH if [[ "$1" != '--build' ]]; then echo "KEK [${CUSTOM_PATH}]" @@ -24,7 +25,7 @@ if [[ "$1" != '--build' ]]; then -DSYSCONF_INSTALL_DIR:PATH=${WATCOM}/etc \ -DSHARE_INSTALL_DIR:PATH=${WATCOM}/share \ -DBUILD_SHARED_LIBS:BOOL=OFF \ - -DCMAKE_TOOLCHAIN_FILE=/home/wohlstand/_git_repos/libADLMIDI/cmake/openwattcom/toolchain-ow.cmake \ + -DCMAKE_TOOLCHAIN_FILE=$SCRIPT_PATH/toolchain-ow.cmake \ "$@" else |