diff options
author | osnola <alonso@loria.fr> | 2016-08-10 12:43:56 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-08-11 08:13:27 +0200 |
commit | 1faae1f37521df7734462443936e1469820fd489 (patch) | |
tree | 8c3ab056cdd2e6a3fbc2642588563e4eeb65b022 /RepositoryExternal.mk | |
parent | 6a2cc612decea57b9c3ab31f2f32aa2126c06cf7 (diff) |
integrate libstaroffice
Change-Id: I85913f1bd1af5d102573040588cca9d8ddeebb5d
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index c880d634785b..806a5e8ec5e9 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -2290,6 +2290,60 @@ endif # MSC endif # SYSTEM_MWAW +ifneq ($(SYSTEM_STAROFFICE),) + +define gb_LinkTarget__use_staroffice +$(call gb_LinkTarget_set_include,$(1),\ + $$(INCLUDE) \ + $(STAROFFICE_CFLAGS) \ +) +$(call gb_LinkTarget_add_libs,$(1),$(STAROFFICE_LIBS)) + +endef + +else # !SYSTEM_STAROFFICE + +ifeq ($(COM),MSC) + +$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\ + staroffice \ +)) + +define gb_LinkTarget__use_staroffice +$(call gb_LinkTarget_set_include,$(1),\ + -I$(call gb_UnpackedTarball_get_dir,libstaroffice)/inc \ + $$(INCLUDE) \ +) + +$(call gb_LinkTarget_use_libraries,$(1),\ + staroffice \ +) + +endef + +else # !MSC + +$(eval $(call gb_Helper_register_packages_for_install,ooo,\ + libstaroffice \ +)) + +define gb_LinkTarget__use_staroffice +$(call gb_LinkTarget_use_package,$(1),libstaroffice) + +$(call gb_LinkTarget_set_include,$(1),\ + -I$(call gb_UnpackedTarball_get_dir,libstaroffice)/inc \ + $$(INCLUDE) \ +) +$(call gb_LinkTarget_add_libs,$(1),\ + -L$(call gb_UnpackedTarball_get_dir,libstaroffice)/src/lib/.libs -lstaroffice-0.0 \ +) + +endef + +endif # MSC + +endif # SYSTEM_STAROFFICE + ifneq ($(SYSTEM_LCMS2),) |