diff options
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 264cc1134c2d..11896cd801d8 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -209,6 +209,45 @@ endef endif # SYSTEM_HUNSPELL +ifeq ($(SYSTEM_LIBEXTTEXTCAT),YES) + +define gb_LinkTarget__use_libexttextcat +$(call gb_LinkTarget_set_include,$(1),\ + $$(INCLUDE) \ + $(LIBEXTTEXTCAT_CFLAGS) \ +) +$(call gb_LinkTarget_add_libs,$(1),$(LIBEXTTEXTCAT_LIBS)) + +endef + +else # !SYSTEM_LIBEXTTEXTCAT + +ifeq ($(OS),WNT) +$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\ + exttextcat \ +)) +else +$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS,\ + exttextcat \ +)) +endif + +define gb_LinkTarget__use_libexttextcat +ifeq ($(OS),WNT) +$(call gb_LinkTarget_add_linked_libs,$(1),\ + exttextcat \ +) +else +$(call gb_LinkTarget_add_linked_static_libs,$(1),\ + exttextcat \ +) +endif + +endef + +endif # SYSTEM_LIBEXTTEXTCAT + + ifeq ($(SYSTEM_LIBXML),YES) define gb_LinkTarget__use_libxml2 |