mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
51e44d4846
commit
4f55760fa5
1 changed files with 22 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue