summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-04-18 12:55:56 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-04-18 12:56:11 +0200
commit62fd63050c355b06b449e58134fa482866102134 (patch)
treef396d105521afe7271985aa36d025534baa7bf8e /RepositoryExternal.mk
parentfb46a354250fca80fbbfac20128551fd1c530747 (diff)
Integrate libgltf for rendering gltf models
Change-Id: I7c30dbcf276052c01bb15f3b8c77a2406260aa7b
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk18
1 files changed, 17 insertions, 1 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index a371f2fa88fd..c9e04fa87ae7 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -21,7 +21,7 @@
# depending on the configure options these may be taken from the system,
# or the internal/bundled copy may be built.
-# for every external, a function gb_LinkTarget_use__FOO is defined,
+# for every external, a function gb_LinkTarget__use_FOO is defined,
# once for the system case, once for the internal case.
# in the system case, no libraries should be registered, but the target-local
@@ -3087,6 +3087,22 @@ endif # SYSTEM_NSS
endif # DESKTOP
+
+ifeq ($(ENABLE_GLTF),TRUE)
+
+define gb_LinkTarget__use_libgltf
+$(call gb_LinkTarget_set_include,$(1),\
+ -I$(call gb_UnpackedTarball_get_dir,libgltf)/inc \
+ $$(INCLUDE) \
+)
+
+$(call gb_LinkTarget_use_static_libraries,$(1),\
+ libgltf \
+)
+endef
+
+endif
+
### Jars ############################################################
ifneq ($(SYSTEM_HSQLDB),)