mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
Windows build: Changesto build using mxebased hidapi,libusb and grantlee
Remove hidapi from manually built components and use the mxe based one instead. Remove libzip as that is handled by mxe packages. Update version of grantlee used to build with qt 5.13.1. Also hide vscode files from git. [Dirk Hohndel: combined two commits, cleaned up the commit message and removed one now incorrect comment line from mxe-based-build.sh] Signed-off-by: Paul Buxton <paulbuxton.mail@googlemail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9c744e401e
commit
60e63afb82
5 changed files with 6 additions and 48 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -39,3 +39,4 @@ packaging/ios/install-root
|
|||
packaging/ios/Info.plist
|
||||
packaging/ios/Qt
|
||||
appdata/subsurface.appdata.xml
|
||||
.vscode
|
||||
|
|
|
@ -20,14 +20,15 @@
|
|||
# MXE_TARGETS := i686-w64-mingw32.shared.posix.dw2
|
||||
#
|
||||
# # Uncomment the next line if you want to do debug builds later
|
||||
# # note this currently doesn't build on mxe version @180304a
|
||||
# # qtbase_CONFIGURE_OPTS=-debug-and-release
|
||||
#---
|
||||
# (documenting this in comments is hard... you need to remove
|
||||
# the first '#' of course)
|
||||
#
|
||||
# now you can start the build
|
||||
#
|
||||
# make libxml2 libxslt libusb1 libzip libssh2 libftdi1 curl qt5 nsis
|
||||
# look at the setting.mk ffrom scripts/docker/mxe-build-container/settings.mk
|
||||
# make libxml2 libxslt libusb1 libzip libssh2 libftdi1 curl qt5 nsis libgit2 qtwebkit hidapi
|
||||
#
|
||||
# (if you intend to build Subsurface without user space FTDI support
|
||||
# you can drop libftdi1 from that list and start this script with
|
||||
|
@ -44,10 +45,8 @@
|
|||
# Something like this:
|
||||
#
|
||||
# ~/src/mxe <- MXE git with Qt5, automake (see above)
|
||||
# /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
|
||||
#
|
||||
|
@ -138,43 +137,6 @@ else
|
|||
touch Release
|
||||
fi
|
||||
|
||||
# grantlee
|
||||
|
||||
cd "$BUILDDIR"
|
||||
if [[ ! -d grantlee || -f build.grantlee ]] ; then
|
||||
rm -f build.grantlee
|
||||
mkdir -p grantlee
|
||||
cd grantlee
|
||||
"$MXEBUILDTYPE"-cmake \
|
||||
-DCMAKE_BUILD_TYPE=$RELEASE \
|
||||
-DBUILD_TESTS=OFF \
|
||||
"$BASEDIR"/grantlee
|
||||
|
||||
make $JOBS
|
||||
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
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ JOBS := 6
|
|||
MXE_TARGETS := i686-w64-mingw32.shared
|
||||
|
||||
# The three lines below makes `make` build these "local packages" instead of all packages.
|
||||
LOCAL_PKG_LIST := qtbase qtconnectivity qtdeclarative qtimageformats qtlocation qtmultimedia qtquickcontrols qtquickcontrols2 qtscript qtsvg qttools qttranslations qtwebview qtwebkit libxml2 libxslt libusb1 libgit2 nsis curl libzip libftdi1
|
||||
LOCAL_PKG_LIST := qtbase qtconnectivity qtdeclarative qtimageformats qtlocation qtmultimedia qtquickcontrols qtquickcontrols2 qtscript qtsvg qttools qttranslations qtwebview qtwebkit libxml2 libxslt libusb1 libgit2 nsis curl libzip libftdi1 hidapi grantlee
|
||||
.DEFAULT local-pkg-list:
|
||||
local-pkg-list: $(LOCAL_PKG_LIST)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ CURRENT_LIBXML2="v2.9.4"
|
|||
CURRENT_LIBFTDI="1.3"
|
||||
CURRENT_KIRIGAMI="8691651c1f0d09430416ba5fe2130647554b06a9"
|
||||
CURRENT_BREEZE_ICONS=""
|
||||
CURRENT_GRANTLEE="v5.0.0"
|
||||
CURRENT_GRANTLEE="master"
|
||||
CURRENT_MDBTOOLS="master"
|
||||
CURRENT_QT_ANDROID_CMAKE="master"
|
||||
|
||||
|
|
|
@ -23,9 +23,7 @@ autoreconf --install
|
|||
# the intended layout as seen inside the container is
|
||||
# /win/subsurface # sources that we are testing
|
||||
# /win32 # binaries that are build
|
||||
# /grantlee
|
||||
# /libzip
|
||||
# /hidapi
|
||||
# /googlemaps
|
||||
#
|
||||
# the first two are mounted as volumes (this way we get access to the
|
||||
|
@ -43,10 +41,7 @@ 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
|
||||
docker exec -t builder bash subsurface/scripts/get-dep-lib.sh single . libzip
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue