summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2014-08-05 20:05:35 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-08-29 14:05:19 +0200
commit2378f45d70c9ce4a093fd6b09216c1cd4563ebe2 (patch)
tree0ecb0396b1eec8f05092af6e98117d5d044355d1 /RepositoryExternal.mk
parent671083ca561345a202383f940c0456edba03c318 (diff)
implement --with-system-gltf
Change-Id: Ic842006b28f8043bcbbaa81ab5a20e15aa52ac82 (cherry picked from commit 97bda8e081fd746e9ef743b165b5bf621fc21fbb)
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index ff5059851999..b42dce252f53 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -3281,6 +3281,8 @@ endif # DESKTOP
ifeq ($(ENABLE_GLTF),TRUE)
+ifneq ($(SYSTEM_LIBGLTF),TRUE)
+
define gb_LinkTarget__use_libgltf
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,libgltf)/inc \
@@ -3306,6 +3308,22 @@ $(call gb_ExternalProject_use_external_project,$(1),libgltf)
endef
+else # SYSTEM_LIBGLTF
+
+define gb_LinkTarget__use_libgltf
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(LIBGLTF_CFLAGS) \
+)
+$(call gb_LinkTarget_add_libs,$(1),$(LIBGLTF_LIBS))
+$(call gb_LinkTarget_add_defs,$(1),\
+ -DSYSTEM_LIBGLTF \
+)
+
+endef
+
+endif # SYSTEN_LIBGLTF
+
define gb_LinkTarget__use_opencollada_parser
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,opencollada)/COLLADABaseUtils/include \