summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-04-13 15:31:41 +0200
committerDavid Tardon <dtardon@redhat.com>2015-04-13 16:43:35 +0200
commit8840fd3226f0f23ce41273e2abebb9a7ac1eb08b (patch)
treea38b71b2614e544eac1fc04262f1e64b9256adb1 /RepositoryExternal.mk
parent5cb2d709d6532929d3bc6a9e666c73975657ab4d (diff)
tdf#82695 allow to build with system collada2gltf
Change-Id: I1179e20fd5fbdecd198633d5440621ed08a0465b
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 e3dc039a2b54..a0a4d91b9339 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -3477,6 +3477,20 @@ endef
endif # SYSTEM_OPENCOLLADA
+ifeq ($(SYSTEM_COLLADA2GLTF),TRUE)
+
+define gb_LinkTarget__use_collada2gltf
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(COLLADA2GLTF_CFLAGS) \
+)
+
+$(call gb_LinkTarget_add_libs,$(1),$(COLLADA2GLTF_LIBS))
+
+endef
+
+else # !SYSTEM_COLLADA2GLTF
+
define gb_LinkTarget__use_collada2gltf
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,collada2gltf) \
@@ -3493,6 +3507,8 @@ $(call gb_LinkTarget_use_static_libraries,$(1),\
)
endef
+endif # SYSTEM_COLLADA2GLTF
+
endif # ENABLE_COLLADA
endif # ENABLE_GLTF