mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
a6ac4f4599
Signed-off-by: Michał Sawicz <michal@sawicz.net>
44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
|
|
index 6b9542555..7f5ccabf2 100644
|
|
--- a/snap/snapcraft.yaml
|
|
+++ b/snap/snapcraft.yaml
|
|
@@ -35,6 +35,7 @@ parts:
|
|
googlemaps:
|
|
source: https://github.com/Subsurface/googlemaps.git
|
|
build-packages:
|
|
+ - ccache
|
|
- wget
|
|
override-pull: |
|
|
snapcraftctl pull
|
|
@@ -78,6 +79,7 @@ parts:
|
|
plugin: qmake
|
|
qmake-parameters:
|
|
- INCLUDEPATH+=QtHeaders
|
|
+ - CONFIG+=ccache
|
|
|
|
desktop-qt5:
|
|
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
|
@@ -108,7 +110,11 @@ parts:
|
|
source: .
|
|
source-type: git
|
|
source-subdir: libdivecomputer
|
|
+ autotools-configure-parameters:
|
|
+ - CC="ccache gcc"
|
|
+ - CXX="ccache g++"
|
|
build-packages:
|
|
+ - ccache
|
|
- libbluetooth-dev
|
|
- libhidapi-dev
|
|
- libusb-dev
|
|
@@ -131,8 +137,11 @@ parts:
|
|
- -DFTDISUPPORT=ON
|
|
- -DLIBDIVECOMPUTER_LIBRARIES=../../../stage/usr/local/lib/libdivecomputer.so
|
|
- -DLIBDIVECOMPUTER_INCLUDE_DIR=../../../stage/usr/local/include
|
|
+ - -DCMAKE_C_COMPILER_LAUNCHER=ccache
|
|
+ - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
build-packages:
|
|
- build-essential
|
|
+ - ccache
|
|
- libcurl4-gnutls-dev
|
|
- libftdi1-dev
|
|
- libgit2-dev
|