diff options
author | Rene Engelhard <rene@debian.org> | 2014-08-05 20:05:35 +0200 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2014-08-05 20:06:17 +0200 |
commit | 97bda8e081fd746e9ef743b165b5bf621fc21fbb (patch) | |
tree | 8a7600a45cb1af03149a830995d6b57c473487bc /RepositoryExternal.mk | |
parent | 2f247407662922fe84bcc0e2aac3372d9ca1cb7b (diff) |
implement --with-system-gltf
Change-Id: Ic842006b28f8043bcbbaa81ab5a20e15aa52ac82
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 4026bd77a59c..a9c9e5342ec0 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -3315,6 +3315,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 \ @@ -3340,6 +3342,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 \ |