summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)Author
2017-07-17Merge branch 'MobileUI' of git://github.com/jbygdell/subsurfaceGravatar Dirk Hohndel
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-14QML UI: Add right handle iconGravatar Joakim Bygdell
This adds the right handle icon that is needed for the swipe list items not to report an error when activated. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-08Automate picking supported DCs on iOS and AndroidGravatar Dirk Hohndel
We use a little script to create the code snippet. This script in return relies on comments that were added to the latest libdivecomputer source (in the Subsurface-branch). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-08QML UI: better icon for download from dive computerGravatar Dirk Hohndel
Thanks to Davide for paying for professional icon design. 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-27QML UI: DiveList: make download from DC main actionGravatar Dirk Hohndel
Now that we support this for many dive computers, that seem reasonable. I'm not happy with the icon, but couldn't figure out a better one in the breeze icon set. See #426 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>
2017-06-22QML UI: switch to Kirigami masterGravatar Dirk Hohndel
That way we'll get access to the colored Action Button. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-06-22QML UI: add missing go-up iconGravatar Dirk Hohndel
Now the 'Reachability' feature should be more obvious. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-06-11Let command line version not open an X windowGravatar Robert C. Helling
So we can run it on a headless system Signed-off-by: Robert C. Helling <helling@atdotde.de>
2017-06-11smtk-import: Add build script for smtk2ssrfGravatar Salvador Cuñat
Add a bash script to build the linux version of smtk2ssrf tool. It works mostly like build.sh, but have some flags avaliable.
2017-05-20Adapt build.sh if qmake is already in PATH on a MacGravatar Thiago Macieira
Some people (like me) have Qt elsewhere. So long as qmake is in PATH, we should be able to support it. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-05-03QML UI: use Kirigami 2.1Gravatar Dirk Hohndel
In order to avoid surprises with things suddenly breaking, check out the release tag of Kirigami 2.1 for now. We still need to track what's happening in Kirigami, but this was Marco's advise as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-05-03Update supported dive computersGravatar Dirk Hohndel
I clearly forgot to do that prior to the last release - and of course we needed to add special handling for Seabaer. And to make it more obvious that the files themselves shouldn't be edited, let's add some comment to that extend to the two files as well. Closes #375 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-22Add -nopush option to translation scriptGravatar Dirk Hohndel
This way I can easily see if there are new strings - without causing an unnecessary push to Transifex. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-16Change protocoll for any git clone from Github to httpsGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-16Change git clone remote for grantlee to Github steveire/grantleeGravatar Stefan Fuchs
Change source for grantlee in build.sh to Github steveire/grantlee Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-16Change remotes for git clone for libdc, marble and Subsurface to GithubGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-12Add Qt 5.7 and 5.8 for Darwin in build scriptGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-12Use libdc from github nowGravatar Jan Mulder
The build script was cloning the Sursurface branch of libdivecomputer from the "old" location. Use the new github based location from now on. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-01QML UI: Fully port dive edit to Kirigami2Gravatar Marco Martin
Completely adapt to the api changes of OverlaySheet in Kirigami2 in order to achieve the same look and behavior for the dive edits that had with kirigami1 Port most components to QtQuickContrls2, except comboboxes in the dive edit sheet that will need a new control type Signed-off-by: Marco Martin <notmart@gmail.com>
2017-02-11Add hacky script to push translation sourceGravatar Dirk Hohndel
This at least duplicates the numerusform lines. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-02-03Extend Android wrapper shell to be smarterGravatar Dirk Hohndel
Move it to packaging/android where it belongs Use direct URLs to download Android components Make sure required packages are installed (only tested on Ubuntu) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-01-21QML UI: don't use Kirigami 2Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-01-21Add wrapper script to set up Android buildGravatar Dirk Hohndel
This then runs the script under packaging/android. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-01-16build.sh: if new enough libgit2 is installed, use itGravatar Dirk Hohndel
Right now this is only designed for Linux where current distros all should have a new enough libgit2 (and our instructions tell people to install this with system tools, so we should also use it). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-01-16build.sh: fix potential autoreconf problemGravatar Dirk Hohndel
It appears that sometimes autoreconf will not install ltmain.sh and subsequently fail; simply running autoreconf again appears to be a workaround. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-01-14Avoid duplicate entries when parsing libdivecomputer descriptorsGravatar Dirk Hohndel
This just fixes the tool used for the next commit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-01-02Kirigami integration: create missing linkGravatar Dirk Hohndel
This (plus an update to kirigami.pri, a patch for which I just sent to the plasma-devel list) allows the iOS version of Subsurface-mobile to build again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-01-01build.sh: use a more current version of libgit2Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-12-27build.sh: fix typoGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-12-27build.sh: Don't even clone marble if we don't build against itGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-09-27Document the heat map in the manual.Gravatar Robert C. Helling
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-08-18Don't build Kirigami as a libraryGravatar Dirk Hohndel
Just link it directly into Subsurface-mobile. That's what we already do with the qmake file for iOS, now the cmake based builds do the same. This should remove a lot of issues. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-08-17scripts: Don't build marble for mobileGravatar Anton Lundin
When only building the mobile version, we don't need to build marble. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-08-17scripts: run all scripts with -eGravatar Anton Lundin
Run all scripts with -e so they exit as soon as something breaks. That way the build stops at the first error, not some other error. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-08-14Hack to work around build issues with current kirigamiGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-08-14Don't build kirigami in the source treeGravatar Dirk Hohndel
Instead build it in its own build tree, where it belongs. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-08-14Use kirigami built in static modeGravatar Marco Martin
Now kirigami needs to be built with a C++ plugin. In cases of mobile operating systems such as iOS (and in a lesser measuse, Android) having a proper plugin loaded at runtime may be difficult, so statically link it together with all of its qml files compiled as a qresource inside the static library. Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-06-12QML UI: update for latest KirigamiGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-05-03A script to find literal texts to be marked for translation in qmlGravatar Robert C. Helling
in perl... Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>