diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-02 16:29:48 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-02 17:20:00 +0200 |
commit | 3f16306964d5bb81dda3c681bcabbacadf424e7b (patch) | |
tree | 0e85b240ae151fc0b9ed360750293e79c6e74756 /RepositoryExternal.mk | |
parent | 764e7d873f8568ff4981de0139d09401d7f64c02 (diff) |
external: bundle libepubgen
And backport a post-release fix that fixes the Windows build.
EPUBExportFilter in writerperfect will want to use this.
Change-Id: I020cd2abfd0daa731f4079320b18a6d857874278
Reviewed-on: https://gerrit.libreoffice.org/40679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 2cd7d824fabb..44a89738fb74 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -1799,6 +1799,37 @@ endif endif # SYSTEM_ODFGEN +ifneq ($(SYSTEM_EPUBGEN),) + +define gb_LinkTarget__use_epubgen +$(call gb_LinkTarget_set_include,$(1),\ + $$(INCLUDE) \ + $(EPUBGEN_CFLAGS) \ +) +$(call gb_LinkTarget_add_libs,$(1),$(EPUBGEN_LIBS)) + +endef +gb_ExternalProject__use_epubgen := + +else # !SYSTEM_EPUBGEN + +define gb_LinkTarget__use_epubgen +$(call gb_LinkTarget_set_include,$(1),\ + -I$(call gb_UnpackedTarball_get_dir,libepubgen)/inc \ + $$(INCLUDE) \ +) +$(call gb_LinkTarget_add_libs,$(1),\ + $(call gb_UnpackedTarball_get_dir,libepubgen)/src/lib/.libs/libepubgen-0.0$(gb_StaticLibrary_PLAINEXT) \ +) +$(call gb_LinkTarget_use_external_project,$(1),libepubgen) + +endef +define gb_ExternalProject__use_epubgen +$(call gb_ExternalProject_use_external_project,$(1),libepubgen) + +endef + +endif # SYSTEM_EPUBGEN ifneq ($(SYSTEM_REVENGE),) |