summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-04-14 20:37:13 +0200
committerAndras Timar <andras.timar@collabora.com>2021-05-01 22:15:57 +0200
commitcf051f1caa14bec9291bfced69040a72cbea0706 (patch)
treeb64af689aef81d106fa96cb43a2f5ad67921b56d /RepositoryExternal.mk
parent54c54fc1eb1a14e513fcbc59f122a3e15bd2f3a3 (diff)
update serf to 1.3.9
Its build system has switches to scons, so build the library using gbuild. Change-Id: I45b784e65e4987c25baf3fa1477816c744663bf0
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk27
1 files changed, 23 insertions, 4 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 8cb8582d2ace..a323f78f6f62 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -1085,21 +1085,40 @@ endif
endef
+ifneq ($(SYSTEM_SERF),)
+
define gb_LinkTarget__use_serf
+$(call gb_LinkTarget_add_defs,$(1),\
+ $(filter-out -I% -isystem%,$(subst -isystem /,-isystem/,$(SERF_CFLAGS))) \
+)
+
$(call gb_LinkTarget_set_include,$(1),\
- $(SERF_CFLAGS) \
+ $(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(SERF_CFLAGS)))) \
$$(INCLUDE) \
)
+
$(call gb_LinkTarget_add_libs,$(1),\
$(SERF_LIBS) \
)
-ifeq ($(SYSTEM_SERF),)
-$(call gb_LinkTarget_use_external_project,$(1),serf)
-endif
+endef
+
+else # !SYSTEM_SERF
+
+define gb_LinkTarget__use_serf
+$(call gb_LinkTarget_set_include,$(1),\
+ -I$(call gb_UnpackedTarball_get_dir,serf) \
+ $$(INCLUDE) \
+)
+
+$(call gb_LinkTarget_use_static_libraries,$(1),\
+ serf \
+)
endef
+endif # SYSTEM_SERF
+
else ifeq ($(WITH_WEBDAV),neon)
ifneq ($(SYSTEM_NEON),)