summaryrefslogtreecommitdiffstats
path: root/scripts/build.sh
AgeCommit message (Collapse)Author
2018-07-09build.sh: provide usage message and exit on unknown argGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09build-system: allow selection of Debug or Release buildGravatar Dirk Hohndel
So far we did a rather odd mix by default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: don't get libgit2 from pkgconfig when building it ourselvesGravatar Dirk Hohndel
Doing that confuses the build setup and as a result the library isn't found at runtime without some fixups. Fixes #1469 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: fix up the id of libssh2 as wellGravatar Dirk Hohndel
For some reason we only tried to fix libgit2 but not the libssh2 that it depend on. Weird. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: correctly test if we need to adjust the id of libgit2Gravatar Dirk Hohndel
The existing test was backwards and never worked. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-05-20build-system: libgit2 depends on libcurl and libssh2Gravatar jan Iversen
When building with -builddeps on a "virgin" mac, configure of libgit2 could not find libcurl and libssh2 moved building of libcurl and libssh2 in front of libgit2 Signed-off-by: Jan Iversen <jani@apache.org>
2018-05-20build-system: corrected -build-deps problemGravatar jan Iversen
Missed a "cd $SRC" so when building with -build-deps the script broke Signed-off-by: Jan Iversen <jani@apache.org>
2018-05-19build-system: change the logic when to build whatGravatar Dirk Hohndel
Specifically, don't conflate needing libgit2 with the Mac -builddep argument, and when determining if we need to build libgit2 on Linux, make sure to also check for a version that we may have built in a previous run of the build.sh script. This commit is much easier to understand with git show -w as it contains quite a bit of simple indentation change. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-05-17build-system: changed build.sh to use get-dep-libGravatar jan Iversen
get-dep-lib has been integrated into build.sh, which ensures different platforms use the same versions etc. travis is a frequent user of build.sh, but on a mac it runs without -build-deps and instead used cached versions of the library. This setup is alo supported Signed-off-by: Jan Iversen <jani@apache.org>
2018-05-12Simplier way to get QT_VERSIONGravatar Cristian Ionescu-Idbohrn
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-05-11Mac: update build.sh to hack around autotools problemGravatar Dirk Hohndel
For reasons I cannot explain, running configure for libdivecomputer claims that certain feature tests pass, even though those features demonstrably aren't there. This is happening for two compiler warning flags (-Wrestrict & -Wno-unused-but-set-variable) as well as the test for clock_gettime. To work around this, we manually edit the config.h file and the created Makefile before building libdivecomputer. This happened on macOS 10.11.6 with clang-800.0.42.1 (part of Xcode 8.2.1). Tangentially related to: See #1263 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-05-08Add a comment on building option -mobileGravatar Robert C. Helling
...to explain the difference between building the mobile version to run on desktop and crossbuild for a mobile OS. This should address #1247 Signed-off-by: Robert C. Helling <helling@atdotde.de>
2017-12-18Update download URL for libzipGravatar Robert C. Helling
Signed-off-by: Robert C. Helling <helling@atdotde.de>
2017-12-14Add git submodule init to build scriptGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-12-03build system: fix build of libdivecomputerGravatar Jan Mulder
Trivial fix. Do not first cd to the ./src/subsurface directory, and then prepend the subsurface directory to the path. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-12-03libdc: add submodule support to build.shGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-24build.sh: remove googlemaps .qmake.conf hackGravatar Dirk Hohndel
This needed to be fixed in googlemaps instead. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-24build.sh: don't use sed -iGravatar Dirk Hohndel
I can't seem to find a way to make this work on both Linux and Mac. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-24build.sh: only modify googlemaps .qmake.conf on MacGravatar Dirk Hohndel
This otherwise causes a failure on Linux builds. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-18build.sh: fix comparisonGravatar Dirk Hohndel
This prevented googlemaps from building in some circumstances. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-14Travis: add Mac buildGravatar Dirk Hohndel
This adds a -skip-googlemaps option to the build script since for some reason trying to build the googlemaps plugin in the Travis mac environment causes an error with a missing stack-protector-strong feature. The build relies on a custom build Qt and a cached homebrew environment. And the result is of course not a DMG with a signed app but a zip file with an unsigned app - so it's a bit harder to consume. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-05build.sh: fix typo that caused us to build Grantlee testsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-05build.sh: add option to create appdirGravatar Dirk Hohndel
This makes it easier to create an AppImage from the build artifacts. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-05build.sh: always install SubsurfaceGravatar Dirk Hohndel
We had not done this on Linux as it was just as easy to run from the build environment, but we need to install in order to be able to create an AppImage on Travis. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-10-16Fix stupid syntax errorsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-10-15build.sh: add option for force BT support offGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-09-16Correct incorrect variable qt_version instead of QT_VERSION in build.shGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-09-04remove Marble from packaging and build scriptsGravatar Lubomir I. Ivanov
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> --- please note, that i have no way to test most of the scripts ATM.
2017-08-26On Fedora, qmake is qmake-qt5Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-08-26build.sh: make Qt private headers available if missingGravatar Dirk Hohndel
This is based on a script that Lubomir worked on and sent to the mailing list. Suggested-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-08-26build.sh: find qmake earlier in the scriptGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-08-03build.sh: qmake should pick up our INSTALL_ROOTGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-08-03build.sh: remove unsupported compiler options for googlemapsGravatar Dirk Hohndel
Trusty (Travis) doesn't support -std=c++1z and -Wdate-time - and the module doesn't need them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-08-03build.sh: clone from httpsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-08-02build.sh: follow our build pattern a bit moreGravatar Dirk Hohndel
Build in a 'build' subdirectory and use the INSTALL_ROOT. Also make sure you find qmake on custom Qt installations. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-08-02build.sh: build the google maps geoservices pluginGravatar Lubomir I. Ivanov
The source code is pulled from the forked repository at: git@github.com:Subsurface-divelog/googlemaps.git It's rebased if needed, build using 'make -j4' and then installed. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-29build.sh: add quotes to if clauseGravatar Dirk Hohndel
Otherwise this will cause error when the variable is undefined. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-29build.sh: don't build with WebKit unless explicitly requestedGravatar Dirk Hohndel
Even if WebKit may exist on Linux, by default we no longer should build against it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-28build.sh: redo command line parsingGravatar Dirk Hohndel
And in the process make NOT building against Marble the default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15build.sh: don't fail if we can't find libusb or hidapiGravatar Dirk Hohndel
Also remove a left behind debug printout. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: correctly deal with no printingGravatar Dirk Hohndel
Including working around a weird hack to install the Grantlee plugins. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: move Qt detection to outside levelGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: newer Qt comes without WebKitGravatar Dirk Hohndel
Allow turning it on for those who have it, but by default build without it on Mac. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: deal with libdivecomputer and pkg-configGravatar Dirk Hohndel
libdivecomputer asks pkg-config for the include paths for libusb-1.0 and hidapi, but then uses #include <libusb-1.0/libusb.h> and <hidapi/hidapi.h> which fails as those directories are part of the include path. So we manually add include paths without that last directory as well as a work around. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: deal with SDK location and availabilityGravatar Dirk Hohndel
I really want to build against 10.10 so as many people as possible can use the binaries I create, but regular users might not have the older SDKs installed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-04build.sh: add option to build all dependenciesGravatar Dirk Hohndel
Using the Homebrew dependencies is much easier and faster, but then we run into the problem that Homebrew always builds against your current OSX version. This instead allows us to build the dependencies ourselves and set the SDK / minimum OSX version. This is mainly important for binaries that we want to distribute. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-04build.sh: build against older SDK / minimum OSX versionGravatar Dirk Hohndel
On Mac we want to make sure that we don't only run on the OS that we were built on, but all the way back to 10.10 (that's the oldest that Qt supports). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-04build.sh: don't override existing CMAKE_PREFIX_PATHGravatar Dirk Hohndel
If we already explicitly point at one Qt installation, don't override with another one. Also, support all the way up to Qt 5.9.1 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-06-26Fix Travis breakage (and overall breakage)Gravatar Dirk Hohndel
I can't believe this slipped through my review. How embarrassing. Credit goes to Anton Lundin for spotting this. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-06-24Very early and likely quite broken BLE GATT codeGravatar Linus Torvalds
This is some very early and hacky code to be able to access BLE-enabled dive computers that use the GATT protocol to send packets back and forth (which seems to be pretty much all of them: a vendor-specific GATT service with a write characteristic and a notification characteristic for reading). For testing only. But it does successfully let me download dives from my EON Steel and my Scubapro G2. NOTE! There are several very hacky pieces in here, including just "knowing" that the write characteristic is the first one, and the notification characteristic is second. The code should actually check the properties rather than have those kinds of hardcoded assumptions. It also checks "vendor specific" by looking at the UUID string representation, and knowing that the standard ones start with zero. Crazily, there doesn't seem to be any normal way to test for this, although I guess that maybe the uuid.minimumSize() function could be used. There are other nasty corners. Don't complain, send me patches. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>