diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-05-19 20:09:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-20 22:29:00 +0200 |
commit | a2ffd71f20e14f797f30223fe29b3ac1e92eafdf (patch) | |
tree | 0416fd77233326b7ba2596809ae20e656ea74dbd /RepositoryExternal.mk | |
parent | 826b536fddfebf9e19efae9dbf3dbd86861c6d74 (diff) |
build libtiff
Change-Id: Id9b6e1355147c3f68b9922db14f1b4904a05c686
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134650
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 590a6093aea1..fa97dc350597 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -2607,6 +2607,55 @@ endef endif # !SYSTEM_LIBPNG +ifneq ($(SYSTEM_LIBTIFF),) + +define gb_LinkTarget__use_libtiff +$(call gb_LinkTarget_set_include,$(1),\ + $$(INCLUDE) \ + $(LIBTIFF_CFLAGS) \ +) + +$(call gb_LinkTarget_add_libs,$(1),\ + $(LIBTIFF_LIBS) \ +) + +endef + +gb_ExternalProject__use_libtiff := + +else # !SYSTEM_LIBTIFF + +define gb_LinkTarget__use_libtiff +$(call gb_LinkTarget_set_include,$(1),\ + $(LIBTIFF_CFLAGS) \ + $$(INCLUDE) \ +) + +$(call gb_LinkTarget_set_include,$(1),\ + -I$(call gb_UnpackedTarball_get_dir,libtiff)/src \ + $$(INCLUDE) \ +) +ifeq ($(OS),WNT) +$(call gb_LinkTarget_add_libs,$(1),\ + $(call gb_UnpackedTarball_get_dir,libtiff)/libtiff/.libs/libtiff$(gb_StaticLibrary_PLAINEXT) \ +) +else +$(call gb_LinkTarget_add_libs,$(1),\ + -L$(call gb_UnpackedTarball_get_dir,libtiff)/libtiff/.libs -ltiff \ +) +endif +$(call gb_LinkTarget_use_external_project,$(1),libtiff) + +endef + +define gb_ExternalProject__use_libtiff +$(call gb_ExternalProject_use_external_project,$(1),\ + libtiff \ +) + +endef + +endif # !SYSTEM_LIBTIFF ifneq ($(SYSTEM_LIBWEBP),) |