2021-01-06 17:06:17 +00:00
|
|
|
--- a/snap/snapcraft.yaml
|
|
|
|
+++ b/snap/snapcraft.yaml
|
2022-05-07 09:56:01 +00:00
|
|
|
@@ -35,6 +35,7 @@ parts:
|
2021-01-06 17:06:17 +00:00
|
|
|
googlemaps:
|
2022-05-07 09:56:01 +00:00
|
|
|
source: https://github.com/Subsurface/googlemaps.git
|
2021-01-06 17:06:17 +00:00
|
|
|
build-packages:
|
|
|
|
+ - ccache
|
|
|
|
- wget
|
|
|
|
override-pull: |
|
|
|
|
snapcraftctl pull
|
2022-05-07 09:56:01 +00:00
|
|
|
@@ -78,6 +79,7 @@ parts:
|
2021-01-06 17:06:17 +00:00
|
|
|
plugin: qmake
|
2022-05-07 09:56:01 +00:00
|
|
|
qmake-parameters:
|
2021-01-06 17:06:17 +00:00
|
|
|
- INCLUDEPATH+=QtHeaders
|
2022-05-07 09:56:01 +00:00
|
|
|
+ - CONFIG+=ccache
|
2021-01-06 17:06:17 +00:00
|
|
|
|
|
|
|
desktop-qt5:
|
|
|
|
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
2022-05-07 09:56:01 +00:00
|
|
|
@@ -108,7 +110,11 @@ parts:
|
2021-01-06 17:06:17 +00:00
|
|
|
source: .
|
|
|
|
source-type: git
|
|
|
|
source-subdir: libdivecomputer
|
2022-05-07 09:56:01 +00:00
|
|
|
+ autotools-configure-parameters:
|
|
|
|
+ - CC="ccache gcc"
|
|
|
|
+ - CXX="ccache g++"
|
2021-01-06 17:06:17 +00:00
|
|
|
build-packages:
|
|
|
|
+ - ccache
|
|
|
|
- libbluetooth-dev
|
|
|
|
- libhidapi-dev
|
|
|
|
- libusb-dev
|
2022-05-07 09:56:01 +00:00
|
|
|
@@ -131,9 +137,12 @@ parts:
|
2021-01-06 17:06:17 +00:00
|
|
|
- -DFTDISUPPORT=ON
|
2022-05-07 09:56:01 +00:00
|
|
|
- -DLIBDIVECOMPUTER_LIBRARIES=../../../stage/usr/local/lib/libdivecomputer.so
|
|
|
|
- -DLIBDIVECOMPUTER_INCLUDE_DIR=../../../stage/usr/local/include
|
2021-01-06 17:06:17 +00:00
|
|
|
+ - -DCMAKE_C_COMPILER_LAUNCHER=ccache
|
|
|
|
+ - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
|
|
source-type: git
|
|
|
|
build-packages:
|
|
|
|
- build-essential
|
|
|
|
+ - ccache
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- libftdi1-dev
|
|
|
|
- libgit2-dev
|