diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-01-20 16:38:49 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-21 17:10:17 +1200 |
commit | 4f55760fa59089209c28145d0f22ef7ba50a2372 (patch) | |
tree | 612a273356c8be2aaa22fd0128aec4ff78dc097a /packaging | |
parent | 51e44d48464a5bfd15af485ab12cf4297b6f5fcc (diff) | |
download | subsurface-4f55760fa59089209c28145d0f22ef7ba50a2372.tar.gz |
Windows/MXE: actually build HIDAPI library
Otherwise Suunto EON Steel & EON Core, Scubapro G2 & Aladin Square and
other, future USB HID dive computers won't be supported on Windows.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/windows/mxe-based-build.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh index 58334a5a1..b5e99926c 100755 --- a/packaging/windows/mxe-based-build.sh +++ b/packaging/windows/mxe-based-build.sh @@ -47,6 +47,7 @@ # /grantlee <- Grantlee 5.0.0 sources from git # /subsurface <- current subsurface git # /googlemaps <- Google Maps plugin for QtLocation from git +# /hidapi <- HIDAPI library for libdivecomputer # # ~/src/win32 <- build directory # @@ -153,6 +154,27 @@ if [[ ! -d grantlee || -f build.grantlee ]] ; then make install fi +# hidapi for libdivecomputer (if available) + +if [[ -d "$BASEDIR"/hidapi ]] ; then + cd "$BUILDDIR" + if [[ ! -d hidapi || -f build.hidapi ]] ; then + rm -f build.hidapi + mkdir -p hidapi + pushd "$BASEDIR"/hidapi + bash ./bootstrap + popd + cd hidapi + "$BASEDIR"/hidapi/configure \ + CC="$MXEBUILDTYPE"-gcc \ + --host="$MXEBUILDTYPE" \ + --prefix="$BASEDIR"/"$MXEDIR"/usr/"$MXEBUILDTYPE" + make $JOBS + make install + fi +fi + + # libdivecomputer # ensure the git submodule is present and the autotools are set up |