diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2018-10-14 21:53:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-15 06:35:14 -0400 |
commit | faca48f2b60e791617f5471d1fe8589b64928a33 (patch) | |
tree | 65876df8077c94967810dc0a97527758d6ad2c8d /scripts/windows-container/before_install.sh | |
parent | 32df0ab0daa8551e24d93082ad182673bbf37cdf (diff) | |
download | subsurface-faca48f2b60e791617f5471d1fe8589b64928a33.tar.gz |
windows-container: enable smtk2ssrf building
Enable building of SmartTrak divelogs importer.
A new, lighter, tarball for mxe static libraries has been built, as it
seems impossible to build mdbtools with shared libraries (see mxe's
build matrix). The tarball doesn't include prebuilt mdbtools and we
build from source via build script.
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'scripts/windows-container/before_install.sh')
-rw-r--r-- | scripts/windows-container/before_install.sh | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/scripts/windows-container/before_install.sh b/scripts/windows-container/before_install.sh index 3c4732167..bcfcf761a 100644 --- a/scripts/windows-container/before_install.sh +++ b/scripts/windows-container/before_install.sh @@ -37,7 +37,8 @@ mkdir -p win32 docker run -v $PWD/win32:/win/win32 -v $PWD/subsurface:/win/subsurface --name=builder -w /win -d dirkhh/mxe-build-container:0.6 /bin/sleep 60m # for some reason this package was installed but still isn't there? -docker exec -t builder apt-get install -y ca-certificates +# hmmmm. The container doesn't seem to have libtool installed +docker exec -t builder apt-get install -y ca-certificates libtool # now set up our other dependencies # these are either not available in MXE, or a version that's too old @@ -46,17 +47,14 @@ docker exec -t builder bash subsurface/scripts/get-dep-lib.sh single . hidapi docker exec -t builder bash subsurface/scripts/get-dep-lib.sh single . googlemaps docker exec -t builder bash subsurface/scripts/get-dep-lib.sh single . grantlee +# smtk2ssrf build +docker exec -t builder bash subsurface/scripts/get-dep-lib.sh single . mdbtools -# the rest we'll need when we enable smtk2ssrf - -#echo "Get mdbtools" -#cd ${TRAVIS_BUILD_DIR}/.. -#git clone https://github.com/brianb/mdbtools.git - -# get prebuilt mxe libraries for mdbtools and glib. +# get prebuilt static mxe libraries for 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/ +echo -n "Downloading prebuilt static mxe ... " +docker exec -t builder wget -q https://www.dropbox.com/s/2ahfkyi6rhbihtn/mxe-static-minimal-a08b3225.tar.xz +echo -n "Untarring ... " +docker exec -t builder tar -C /win/mxe -xJf mxe-static-minimal-a08b3225.tar.xz --skip-old-files +echo "Done." +docker exec -t builder ln -vs /win/mxe /usr/src/mxe |