aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/windows
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2018-02-15 21:45:58 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-02-24 13:42:01 -0800
commitf6cee2ca7ebcad011b5109b2679f14d60852b50f (patch)
tree446b25c43e369da8c4ce74bd2b1d0e3d1d650515 /scripts/windows
parentd303a589e682857f83d8c3ec5ea09a35bc00e7dd (diff)
downloadsubsurface-f6cee2ca7ebcad011b5109b2679f14d60852b50f.tar.gz
smtk-import: add windows building to travis-ci
Prepare the building script to suport travis or set other automated builds, while keeping other options to manual builds. In before_install script, create needed directories, and dowload mdbtools sources. Add smtk2ssrf build script to travisbuild.sh Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'scripts/windows')
-rw-r--r--scripts/windows/before_install.sh13
-rw-r--r--scripts/windows/travisbuild.sh1
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/windows/before_install.sh b/scripts/windows/before_install.sh
index 16a75e139..449d6a938 100644
--- a/scripts/windows/before_install.sh
+++ b/scripts/windows/before_install.sh
@@ -20,6 +20,7 @@ tar xJf ../mxe-994ad473.tar.xz
sudo mkdir -p /data/winqt551/
sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /data/winqt551/mxe-current
ls -l /data/winqt551/mxe-current/usr
+sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /usr/src/mxe
# libdivecomputer uses the wrong include path for libusb
# the pkgconfig file for libusb already gives the include path as
@@ -74,3 +75,15 @@ if ! git checkout v5.0.0 ; then
echo "can't check out v5.0.0 of grantlee -- giving up"
exit 1
fi
+
+echo "Get mdbtools"
+cd ${TRAVIS_BUILD_DIR}/..
+git clone https://github.com/brianb/mdbtools.git
+
+# get prebuilt mxe libraries for mdbtools and glib.
+# do not overwrite upstream prebuilt mxe binaries if there is any coincidence.
+wget https://www.dropbox.com/s/842skyusb96ii1u/mxe-static-minimal-994ad473.tar.xz
+[[ ! -f mxe-static-minimal-994ad473.tar.xz ]] && exit 1
+cd mxe
+tar -xJf ../mxe-static-minimal-994ad473.tar.xz --skip-old-files
+ls -al usr/
diff --git a/scripts/windows/travisbuild.sh b/scripts/windows/travisbuild.sh
index 6ca94c888..df13cbae8 100644
--- a/scripts/windows/travisbuild.sh
+++ b/scripts/windows/travisbuild.sh
@@ -13,3 +13,4 @@ mkdir win32
ls -l
cd win32
bash -ex ${TRAVIS_BUILD_DIR}/packaging/windows/mxe-based-build.sh installer
+bash -ex ${TRAVIS_BUILD_DIR}/packaging/windows/smtk2ssrf-mxe-build.sh -i