summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2017-08-11 11:47:01 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-08-11 16:43:14 +0200
commit19805f85b35672e6d0ee16f8fb4b79a3e94fc05d (patch)
tree96ccdb549c4cf3dd910636c622924eef1eca840c /RepositoryExternal.mk
parent244f60531260cf6e88e764b5c271d5c9183b5d1a (diff)
Build with kde5, first stab
this is largely based on jmux's work Change-Id: I5897f3ecb90f83a29e0824bfe7a0ea875347e360
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 44a89738fb74..38fe79a98907 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -3034,6 +3034,39 @@ endef
endif # ENABLE_KDE4
+ifeq ($(ENABLE_KDE5),TRUE)
+
+define gb_LinkTarget__use_kde5
+$(call gb_LinkTarget_set_include,$(1),\
+ $(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(KF5_CFLAGS)))) \
+ $$(INCLUDE) \
+)
+
+$(call gb_LinkTarget_add_defs,$(1),\
+ $(filter-out -I% -isystem%,$(subst -isystem /,-isystem/,$(KF5_CFLAGS))) \
+)
+
+$(call gb_LinkTarget_add_libs,$(1),\
+ $(KF5_LIBS) \
+)
+
+ifeq ($(COM),GCC)
+$(call gb_LinkTarget_add_cxxflags,$(1),\
+ -Wno-shadow \
+)
+endif
+
+endef
+
+else # !ENABLE_KDE5
+
+define gb_LinkTarget__use_kde5
+
+endef
+
+endif # ENABLE_KDE5
+
+
# PYTHON
# extra python_headers external because pyuno wrapper must not link python
ifneq ($(SYSTEM_PYTHON),)