summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2017-01-30 15:50:55 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-02-01 12:11:22 +0000
commit595848c85acc2609fcc48a40c7a9f216a2722cd8 (patch)
tree9bfdbff5ed6b9650c4089ac2115d53a5764d3ae3 /RepositoryExternal.mk
parentee32c7d8083ae1449d6b379034be92995c142da9 (diff)
gpg4libre: Support building --with-system-gpgme (Linux only so far)
Change-Id: I22af89b920d43f3fc5f0fff02070f288bfa59fb4 Reviewed-on: https://gerrit.libreoffice.org/33702 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 02392ae9af8c..13c9ddfd45e3 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -3423,6 +3423,22 @@ endef
endif # ENABLE_BREAKPAD
+ifneq ($(SYSTEM_GPGME),)
+
+define gb_LinkTarget__use_gpgme
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $$(GPGME_CFLAGS) \
+)
+
+$(call gb_LinkTarget_add_libs,$(1),\
+ $(GPGME_LIBS) \
+)
+
+endef
+
+endif
+
ifeq ($(ENABLE_GLTF),TRUE)
ifneq ($(SYSTEM_LIBGLTF),TRUE)