diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-05-19 20:09:51 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-10-16 16:07:26 +0200 |
commit | f2624f835a4455f4e99baef94fa8b1b3067a4e93 (patch) | |
tree | a846441b20761b542be8d98cd4367da05943b676 /RepositoryExternal.mk | |
parent | 7c87740992d4290b3efe971fcdcad9ed4d0c068e (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 165290b57825..bbf83a4ade3d 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -2733,6 +2733,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),) |