aboutsummaryrefslogtreecommitdiff
path: root/cmake/openwattcom/ow-cmake.sh
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-10 21:42:25 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-10 21:42:25 +0300
commit0da7c26b10d362ffbb7b9d44d7add043f2d7192f (patch)
tree1aa0b0e3c3bb0f557488bdd8e4d35d74b2d9c736 /cmake/openwattcom/ow-cmake.sh
parent472cd580a2646d53a86c5bbdce890a3798754200 (diff)
downloadlibADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.tar.gz
libADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.tar.bz2
libADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.zip
Incomplete attempt to provide support for OpenWattcom compiler
Yeah, I see it lacks A LOT OF things: std::vector lacks .data() member, std::map lacks .count() member, there is no any std::stringstream implementations, etc. SOLUTION: Try to use STLPort to provide missing STL support for this compiler
Diffstat (limited to 'cmake/openwattcom/ow-cmake.sh')
-rwxr-xr-xcmake/openwattcom/ow-cmake.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/cmake/openwattcom/ow-cmake.sh b/cmake/openwattcom/ow-cmake.sh
new file mode 100755
index 0000000..cbccba0
--- /dev/null
+++ b/cmake/openwattcom/ow-cmake.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+export WATCOM=/home/wohlstand/Qt/Tools/ow-snapshot-2.0/
+export EDPATH=$WATCOM/eddat
+export WIPFC=$WATCOM/wipfc
+export INCLUDE="$djgpp_prefix/lh"
+WATCOM_FLAGS="-blinux"
+export CFLAGS="$WATCOM_FLAGS -xc -std=wc"
+export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -std=c++11"
+
+# export PKG_CONFIG_LIBDIR="${WATCOM}/lib/pkgconfig"
+# 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
+
+if [[ "$1" != '--build' ]]; then
+ echo "KEK [${CUSTOM_PATH}]"
+
+ PATH=${CUSTOM_PATH} cmake \
+ -DCMAKE_INSTALL_PREFIX:PATH=${WATCOM} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${WATCOM}/lib386 \
+ -DINCLUDE_INSTALL_DIR:PATH=${WATCOM}/lib386 \
+ -DLIB_INSTALL_DIR:PATH=${WATCOM}/lib \
+ -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 \
+ "$@"
+
+else
+ PATH=${CUSTOM_PATH} cmake "$@"
+fi
+
+#-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/i686-pc-msdosdjgpp-wine
+