1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # this file describes all the external libraries
21 # depending on the configure options these may be taken from the system,
22 # or the internal/bundled copy may be built.
24 # for every external, a function gb_LinkTarget__use_FOO is defined,
25 # once for the system case, once for the internal case.
27 # in the system case, no libraries should be registered, but the target-local
28 # variable LIBS should be set to FOO_LIBS, and INCLUDES to FOO_CFLAGS.
31 ifeq ($(CPUNAME
),X86_64
)
32 wnt_arch_subdir_optional
=x64
/
33 wnt_arch_subdir_mandatory
=x64
34 else ifeq ($(CPUNAME
),INTEL
)
35 wnt_arch_subdir_mandatory
=Win32
40 ifneq ($(SYSTEM_ODBC_HEADERS
),)
42 define gb_LinkTarget__use_odbc_headers
43 $(call gb_LinkTarget_add_defs
,$(1),\
44 -DSYSTEM_ODBC_HEADERS \
49 else # !SYSTEM_ODBC_HEADERS
51 define gb_LinkTarget__use_odbc_headers
52 $(call gb_LinkTarget_set_include
,$(1),\
53 -I
$(SRCDIR
)/external
/unixODBC
/inc \
59 endif # SYSTEM_ODBC_HEADERS
61 ifneq ($(SYSTEM_MDDS
),)
63 gb_ExternalProject__use_mdds_headers
:=
65 define gb_LinkTarget__use_mdds_headers
66 $(call gb_LinkTarget_set_include
,$(1),\
75 define gb_ExternalProject__use_mdds_headers
76 $(call gb_ExternalProject_use_unpacked
,$(1),mdds
)
80 define gb_LinkTarget__use_mdds_headers
81 $(call gb_LinkTarget_use_unpacked
,$(1),mdds
)
82 $(call gb_LinkTarget_set_include
,$(1),\
91 ifneq ($(SYSTEM_GLM
),)
93 define gb_LinkTarget__use_glm_headers
94 $(call gb_LinkTarget_add_defs
,$(1),\
95 -DGLM_FORCE_CTOR_INIT \
100 gb_ExternalProject__use_glm_headers
:=
104 define gb_LinkTarget__use_glm_headers
105 $(call gb_LinkTarget_add_defs
,$(1),\
106 -DGLM_FORCE_CTOR_INIT \
108 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
109 $(call gb_LinkTarget_set_include
,$(1),\
116 define gb_ExternalProject__use_glm_headers
117 $(call gb_ExternalProject_use_unpacked
,$(1),glm
)
123 ifneq ($(ENABLE_SKIA
),)
124 define gb_LinkTarget__use_skia
125 $(call gb_LinkTarget_set_include
,$(1),\
126 -I
$(gb_UnpackedTarball_workdir
)/skia
/include/core \
127 -I
$(gb_UnpackedTarball_workdir
)/skia
/include/effects \
128 -I
$(gb_UnpackedTarball_workdir
)/skia
/include/gpu \
129 -I
$(gb_UnpackedTarball_workdir
)/skia
/include/config \
130 -I
$(gb_UnpackedTarball_workdir
)/skia
/include/ports \
131 -I
$(gb_UnpackedTarball_workdir
)/skia
/include/private \
132 -I
$(gb_UnpackedTarball_workdir
)/skia
/include/third_party
/vulkan \
133 -I
$(gb_UnpackedTarball_workdir
)/skia
/tools
/gpu \
134 -I
$(gb_UnpackedTarball_workdir
)/skia \
135 -I
$(SRCDIR
)/external
/skia
/inc
/ \
138 $(call gb_LinkTarget_use_libraries
,$(1),skia
)
139 $(call gb_LinkTarget_add_defs
,$(1),\
140 -DSK_USER_CONFIG_HEADER
="<$(BUILDDIR)/config_host/config_skia.h>" \
144 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
149 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
151 define gb_LinkTarget__use_sane_headers
152 $(call gb_LinkTarget_set_include
,$(1),\
153 $(if
$(filter WNT
,$(OS
)), \
154 -I
$(gb_UnpackedTarball_workdir
)/twain_dsm
/pub
/include, \
155 -I
$(SRCDIR
)/external
/sane
/inc
) \
160 $(call gb_LinkTarget_use_unpacked
,$(1),twain_dsm
)
167 gb_LinkTarget__use_sane_headers
:=
171 ifneq ($(SYSTEM_BLUEZ
),)
173 gb_LinkTarget__use_bluez_bluetooth_headers
:=
177 define gb_LinkTarget__use_bluez_bluetooth_headers
178 $(call gb_LinkTarget_set_include
,$(1),\
179 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
189 ifneq ($(SYSTEM_CPPUNIT
),)
191 define gb_LinkTarget__use_cppunit
192 $(call gb_LinkTarget_set_include
,$(1),\
197 $(call gb_LinkTarget_add_libs
,$(1),\
203 else # !SYSTEM_CPPUNIT
205 define gb_LinkTarget__use_cppunit
206 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
208 $(call gb_LinkTarget_set_include
,$(1),\
209 -I
$(gb_UnpackedTarball_workdir
)/cppunit
/include\
214 $(call gb_LinkTarget_add_libs
,$(1),\
215 $(gb_UnpackedTarball_workdir
)/cppunit
/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
218 $(call gb_LinkTarget_add_libs
,$(1),\
219 -L
$(gb_UnpackedTarball_workdir
)/cppunit
/src
/cppunit
/.libs
-lcppunit \
225 endif # SYSTEM_CPPUNIT
228 ifeq ($(ENABLE_EPOXY
),TRUE
)
229 ifeq ($(SYSTEM_EPOXY
),TRUE
)
231 define gb_LinkTarget__use_epoxy
232 $(call gb_LinkTarget_set_include
,$(1),\
236 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
240 gb_ExternalProject__use_epoxy
:=
244 define gb_LinkTarget__use_epoxy
245 $(call gb_LinkTarget_set_include
,$(1),\
246 -I
$(gb_UnpackedTarball_workdir
)/epoxy
/include \
250 $(call gb_LinkTarget_use_libraries
,$(1),\
256 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
260 define gb_ExternalProject__use_epoxy
261 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
265 endif # !SYSTEM_EPOXY
268 gb_LinkTarget__use_epoxy
:=
269 gb_ExternalProject__use_epoxy
:=
271 endif # !ENABLE_EPOXY
274 define gb_LinkTarget__use_iconv
276 $(call gb_LinkTarget_add_libs
,$(1),libiconv.lib
)
278 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
282 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
284 define gb_LinkTarget__use_mariadb-connector-c
285 $(call gb_LinkTarget_set_include
,$(1),\
289 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
292 gb_ExternalProject__use_mariadb-connector-c
:=
294 else # !SYSTEM_MARIADB_CONNECTOR_C
296 define gb_LinkTarget__use_mariadb-connector-c
297 $(call gb_LinkTarget_set_include
,$(1),\
301 $(call gb_LinkTarget_use_static_libraries
,$(1),\
302 mariadb-connector-c \
305 $(call gb_LinkTarget_add_libs
,$(1),\
309 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
319 define gb_ExternalProject__use_mariadb-connector-c
320 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
324 endif # SYSTEM_MARIADB_CONNECTOR_C
327 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
329 define gb_LinkTarget__use_mysql
331 $(call gb_LinkTarget_add_defs
,$(1),\
335 $(call gb_LinkTarget_add_libs
,$(1),\
339 $(call gb_LinkTarget_set_include
,$(1),\
347 define gb_LinkTarget__use_mysql
349 $(call gb_LinkTarget_set_include
,$(1),\
357 ifneq ($(SYSTEM_ZLIB
),)
359 define gb_LinkTarget__use_zlib
360 $(call gb_LinkTarget_add_defs
,$(1),\
364 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
369 define gb_LinkTarget__use_zlib_x64
373 gb_ExternalProject__use_zlib
:=
377 define gb_LinkTarget__use_zlib_multiarch
378 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
380 $(call gb_LinkTarget_add_defs
,$(1), \
384 $(call gb_LinkTarget_set_include
,$(1),\
389 $(call gb_LinkTarget_use_static_libraries
,$(1),\
395 define gb_LinkTarget__use_zlib
396 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
400 define gb_LinkTarget__use_zlib_x64
401 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
405 define gb_ExternalProject__use_zlib
406 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
413 ifneq ($(SYSTEM_LIBJPEG
),)
415 define gb_LinkTarget__use_libjpeg
416 $(call gb_LinkTarget_set_include
,$(1),\
420 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
421 $(call gb_LinkTarget_set_ldflags
,$(1),\
422 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
427 gb_ExternalProject__use_libjpeg
:=
431 define gb_LinkTarget__use_libjpeg
432 $(call gb_LinkTarget_set_include
,$(1),\
433 -I
$(gb_UnpackedTarball_workdir
)/libjpeg-turbo \
436 $(call gb_LinkTarget_use_static_libraries
,$(1),libjpeg-turbo
)
440 define gb_ExternalProject__use_libjpeg
441 $(call gb_ExternalProject_use_static_libraries
,$(1),libjpeg-turbo
)
445 endif # SYSTEM_LIBJPEG
447 ifneq ($(SYSTEM_MYTHES
),)
449 define gb_LinkTarget__use_mythes
450 $(call gb_LinkTarget_set_include
,$(1),\
454 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
458 else # !SYSTEM_MYTHES
460 define gb_LinkTarget__use_mythes
461 $(call gb_LinkTarget_set_include
,$(1),\
462 -I
$(gb_UnpackedTarball_workdir
)/mythes \
467 $(call gb_LinkTarget_use_static_libraries
,$(1),\
471 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
472 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
477 endif # SYSTEM_MYTHES
480 ifneq ($(SYSTEM_EXPAT
),)
482 define gb_LinkTarget__use_expat_impl
483 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
485 $(call gb_LinkTarget_add_defs
,$(1),\
489 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
493 gb_ExternalProject__use_expat
:=
497 define gb_LinkTarget__use_expat_impl
498 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
500 $(call gb_LinkTarget_set_include
,$(1),\
501 -I
$(gb_UnpackedTarball_workdir
)/expat
/lib \
505 $(call gb_LinkTarget_use_static_libraries
,$(1),\
511 define gb_ExternalProject__use_expat
512 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
518 define gb_LinkTarget__use_expat
519 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
523 define gb_LinkTarget__use_expat_x64
524 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
528 ifneq ($(SYSTEM_HYPH
),)
530 define gb_LinkTarget__use_hyphen
531 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
537 define gb_LinkTarget__use_hyphen
538 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
539 $(call gb_LinkTarget_set_include
,$(1),\
540 -I
$(gb_UnpackedTarball_workdir
)/hyphen\
545 $(call gb_LinkTarget_use_static_libraries
,$(1),\
549 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
550 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
557 ifneq ($(SYSTEM_HUNSPELL
),)
559 define gb_LinkTarget__use_hunspell
560 $(call gb_LinkTarget_set_include
,$(1),\
564 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
568 gb_ExternalProject__use_hunspell
:=
570 else # !SYSTEM_HUNSPELL
571 ifneq ($(ENABLE_WASM_STRIP_HUNSPELL
),TRUE
)
573 define gb_LinkTarget__use_hunspell
574 $(call gb_LinkTarget_add_defs
,$(1),\
577 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
578 $(call gb_LinkTarget_set_include
,$(1),\
579 -I
$(gb_UnpackedTarball_workdir
)/hunspell
/src
/hunspell\
584 $(call gb_LinkTarget_use_static_libraries
,$(1),\
588 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
589 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
594 define gb_ExternalProject__use_hunspell
595 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
599 endif # ENABLE_WASM_STRIP_HUNSPELL
600 endif # SYSTEM_HUNSPELL
603 ifneq ($(SYSTEM_BOOST
),)
605 define gb_LinkTarget__use_boost_lib
606 $(call gb_LinkTarget_set_include
,$(1),\
611 $(call gb_LinkTarget_add_ldflags
,$(1),\
615 $(call gb_LinkTarget_add_libs
,$(1),$(2))
619 define gb_LinkTarget__use_boost_locale
620 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
624 define gb_LinkTarget__use_boost_date_time
625 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
629 define gb_LinkTarget__use_boost_filesystem
630 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
634 gb_ExternalProject__use_boost_filesystem
:=
636 define gb_LinkTarget__use_boost_iostreams
637 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
641 gb_ExternalProject__use_boost_iostreams
:=
643 define gb_LinkTarget__use_boost_system
644 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
648 gb_ExternalProject__use_boost_system
:=
650 define gb_LinkTarget__use_boost_headers
651 $(call gb_LinkTarget_set_include
,$(1),\
658 gb_ExternalProject__use_boost_headers
:=
662 define gb_LinkTarget__use_boost_lib
663 $(call gb_LinkTarget_add_defs
,$(1),\
667 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
671 define gb_LinkTarget__use_boost_locale
672 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
673 $(call gb_LinkTarget_add_libs
,$(1),\
674 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
679 define gb_LinkTarget__use_boost_date_time
680 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
684 define gb_LinkTarget__use_boost_filesystem
685 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
689 define gb_ExternalProject__use_boost_filesystem
690 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
693 define gb_LinkTarget__use_boost_iostreams
694 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
698 define gb_ExternalProject__use_boost_iostreams
699 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
702 define gb_LinkTarget__use_boost_system
703 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
707 define gb_ExternalProject__use_boost_system
708 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
711 define gb_LinkTarget__use_boost_headers
712 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
713 $(call gb_LinkTarget_set_include
,$(1),\
720 define gb_ExternalProject__use_boost_headers
721 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
728 ifneq ($(SYSTEM_LIBCMIS
),)
730 define gb_LinkTarget__use_libcmis
731 $(call gb_LinkTarget_set_include
,$(1),\
735 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
739 else # !SYSTEM_LIBCMIS
741 define gb_LinkTarget__use_libcmis
742 $(call gb_LinkTarget_set_include
,$(1),\
743 -I
$(gb_UnpackedTarball_workdir
)/libcmis
/inc \
746 $(call gb_LinkTarget_use_static_libraries
,$(1),\
752 endif # SYSTEM_LIBCMIS
754 ifeq ($(ENABLE_JAVA
),TRUE
)
756 define gb_LinkTarget__use_jawt
757 $(call gb_LinkTarget_add_libs
,$(1),\
765 gb_LinkTarget__use_jawt
:=
769 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
771 define gb_LinkTarget__use_libatomic_ops
772 $(call gb_LinkTarget_set_include
,$(1),\
774 $(LIBATOMIC_OPS_CFLAGS
) \
776 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
779 gb_ExternalProject__use_libatomic_ops
:=
781 else # !SYSTEM_LIBATOMIC_OPS
783 define gb_LinkTarget__use_libatomic_ops
784 $(call gb_LinkTarget_set_include
,$(1),\
785 $(LIBATOMIC_OPS_CFLAGS
) \
787 $(LIBATOMIC_OPS_CFLAGS
) \
789 $(call gb_LinkTarget_use_external_project
,$(1),\
793 $(call gb_LinkTarget_add_libs
,$(1),\
794 -L
$(gb_UnpackedTarball_workdir
)/libatomic_ops
/src
/lib
-latomic_ops \
799 define gb_ExternalProject__use_libatomic_ops
800 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
804 endif # SYSTEM_LIBATOMIC_OPS
807 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
809 define gb_LinkTarget__use_libexttextcat
810 $(call gb_LinkTarget_set_include
,$(1),\
812 $(LIBEXTTEXTCAT_CFLAGS
) \
814 $(call gb_LinkTarget_add_defs
,$(1),\
815 -DSYSTEM_LIBEXTTEXTCAT \
817 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
821 else # !SYSTEM_LIBEXTTEXTCAT
823 define gb_LinkTarget__use_libexttextcat
824 $(call gb_LinkTarget_set_include
,$(1),\
825 -I
$(gb_UnpackedTarball_workdir
)/libexttextcat
/src \
830 $(call gb_LinkTarget_use_static_libraries
,$(1),\
834 $(call gb_LinkTarget_add_libs
,$(1),\
835 $(gb_UnpackedTarball_workdir
)/libexttextcat
/src
/.libs
/libexttextcat-2.0.a\
837 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
843 endif # SYSTEM_LIBEXTTEXTCAT
846 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
848 define gb_LinkTarget__use_libnumbertext
849 $(call gb_LinkTarget_set_include
,$(1),\
851 $(LIBNUMBERTEXT_CFLAGS
) \
853 $(call gb_LinkTarget_add_defs
,$(1),\
854 -DSYSTEM_LIBNUMBERTEXT \
856 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
860 else # !SYSTEM_LIBNUMBERTEXT
862 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
863 libnumbertext_numbertext \
866 define gb_LinkTarget__use_libnumbertext
867 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
868 $(call gb_LinkTarget_set_include
,$(1),\
869 -I
$(gb_UnpackedTarball_workdir
)/libnumbertext
/src \
874 $(call gb_LinkTarget_use_static_libraries
,$(1),\
879 $(call gb_LinkTarget_add_libs
,$(1),\
880 $(gb_UnpackedTarball_workdir
)/libnumbertext
/src
/.libs
/libnumbertext-1.0.a\
882 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
888 endif # SYSTEM_LIBNUMBERTEXT
891 ifneq ($(SYSTEM_LIBXML
),)
893 define gb_LinkTarget__use_libxml2
894 $(call gb_LinkTarget_add_defs
,$(1),\
897 $(call gb_LinkTarget_set_include
,$(1),\
901 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
904 gb_ExternalProject__use_libxml2
:=
906 else # !SYSTEM_LIBXML
908 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
912 define gb_LinkTarget__use_libxml2
913 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
914 $(call gb_LinkTarget_set_include
,$(1),\
919 $(call gb_LinkTarget_add_libs
,$(1),\
924 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
928 define gb_ExternalProject__use_libxml2
929 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
932 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
937 endif # SYSTEM_LIBXML
940 ifneq ($(SYSTEM_LIBXSLT
),)
942 define gb_LinkTarget__use_libxslt
943 $(call gb_LinkTarget_set_include
,$(1),\
947 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
951 define gb_LinkTarget__use_libexslt
952 $(call gb_LinkTarget_set_include
,$(1),\
957 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
961 else # !SYSTEM_LIBXSLT
963 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
967 define gb_LinkTarget__use_libxslt
968 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
969 $(call gb_LinkTarget_set_include
,$(1),\
971 -I
$(gb_UnpackedTarball_workdir
)/libxslt \
975 $(call gb_LinkTarget_add_libs
,$(1),\
976 $(gb_UnpackedTarball_workdir
)/libxslt
/win32
/bin.msvc
/libxslt.lib \
979 $(call gb_LinkTarget_add_libs
,$(1),\
980 -L
$(gb_UnpackedTarball_workdir
)/libxslt
/libxslt
/.libs
-lxslt \
986 define gb_LinkTarget__use_libexslt
987 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
988 $(call gb_LinkTarget_set_include
,$(1),\
990 -I
$(gb_UnpackedTarball_workdir
)/libxslt \
994 $(call gb_LinkTarget_add_libs
,$(1),\
995 $(gb_UnpackedTarball_workdir
)/libxslt
/win32
/bin.msvc
/libexslt.lib \
998 $(call gb_LinkTarget_add_libs
,$(1),\
999 -L
$(gb_UnpackedTarball_workdir
)/libxslt
/libexslt
/.libs
-lexslt \
1005 endif # SYSTEM_LIBXSLT
1008 ifneq ($(SYSTEM_XMLSEC
),)
1010 define gb_LinkTarget__use_xmlsec
1011 $(call gb_LinkTarget_add_defs
,$(1),\
1014 $(call gb_LinkTarget_set_include
,$(1),\
1018 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
1022 gb_ExternalProject__use_xmlsec
:=
1024 else # !SYSTEM_XMLSEC
1026 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1030 define gb_LinkTarget__use_xmlsec
1034 endif # SYSTEM_XMLSEC
1036 ifneq ($(SYSTEM_LIBLANGTAG
),)
1038 define gb_LinkTarget__use_liblangtag
1039 $(call gb_LinkTarget_set_include
,$(1),\
1041 $(LIBLANGTAG_CFLAGS
) \
1044 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1048 gb_ExternalProject__use_liblangtag
:=
1050 else # !SYSTEM_LIBLANGTAG
1052 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1058 define gb_LinkTarget__use_liblangtag
1059 $(call gb_LinkTarget_set_include
,$(1),\
1060 $(LIBLANGTAG_CFLAGS
) \
1063 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1064 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1070 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1074 define gb_LinkTarget__use_liblangtag
1075 $(call gb_LinkTarget_set_include
,$(1),\
1076 $(LIBLANGTAG_CFLAGS
) \
1079 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1080 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1086 define gb_ExternalProject__use_liblangtag
1087 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1091 endif # SYSTEM_LIBLANGTAG
1094 ifneq ($(SYSTEM_REDLAND
),)
1096 define gb_LinkTarget__use_librdf
1097 $(call gb_LinkTarget_add_defs
,$(1),\
1100 $(call gb_LinkTarget_set_include
,$(1),\
1104 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1108 gb_LinkTarget__use_redland_headers
:=
1110 gb_LinkTarget__use_raptor_headers
:=
1112 gb_LinkTarget__use_rasqal_headers
:=
1114 else # !SYSTEM_REDLAND
1116 define gb_LinkTarget__use_redland_headers
1117 $(call gb_LinkTarget_set_include
,$(1),\
1118 -I
$(gb_UnpackedTarball_workdir
)/redland
/src \
1124 define gb_LinkTarget__use_raptor_headers
1125 $(call gb_LinkTarget_set_include
,$(1),\
1126 -I
$(gb_UnpackedTarball_workdir
)/raptor
/src \
1132 define gb_LinkTarget__use_rasqal_headers
1133 $(call gb_LinkTarget_set_include
,$(1),\
1134 -I
$(gb_UnpackedTarball_workdir
)/rasqal
/src \
1140 ifneq ($(OS
),ANDROID
)
1143 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1149 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1156 define gb_LinkTarget__use_librdf
1158 $(call gb_LinkTarget_use_libraries
,$(1),\
1163 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1165 $(call gb_LinkTarget_add_libs
,$(1),\
1166 -L
$(gb_UnpackedTarball_workdir
)/redland
/src
/.libs
-lrdf \
1167 -L
$(gb_UnpackedTarball_workdir
)/raptor
/src
/.libs
-lraptor2 \
1168 -L
$(gb_UnpackedTarball_workdir
)/rasqal
/src
/.libs
-lrasqal \
1176 define gb_LinkTarget__use_librdf
1177 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1183 endif # SYSTEM_REDLAND
1185 ifneq ($(SYSTEM_CAIRO
),)
1187 define gb_LinkTarget__use_cairo
1188 $(call gb_LinkTarget_set_include
,$(1),\
1193 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1194 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1198 else # !SYSTEM_CAIRO
1200 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1202 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1207 define gb_LinkTarget__use_cairo
1208 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1209 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1210 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1211 $(call gb_LinkTarget_set_include
,$(1),\
1212 -I
$(gb_UnpackedTarball_workdir
)/cairo \
1213 -I
$(gb_UnpackedTarball_workdir
)/cairo
/src \
1214 -I
$(gb_UnpackedTarball_workdir
)/pixman
/pixman \
1217 $(call gb_LinkTarget_add_libs
,$(1),\
1218 $(if
$(filter EMSCRIPTEN
,$(OS
)), \
1219 $(gb_UnpackedTarball_workdir
)/cairo
/src
/.libs
/libcairo.a \
1220 $(gb_UnpackedTarball_workdir
)/pixman
/pixman
/.libs
/libpixman-1.a
, \
1221 -L
$(gb_UnpackedTarball_workdir
)/cairo
/src
/.libs
-lcairo \
1222 -L
$(gb_UnpackedTarball_workdir
)/pixman
/pixman
/.libs
-lpixman-1
) \
1227 endif # !MACOSX, !WNT
1229 endif # !SYSTEM_CAIRO
1231 ifneq ($(SYSTEM_FREETYPE
),)
1233 define gb_LinkTarget__use_freetype_headers
1234 $(call gb_LinkTarget_set_include
,$(1),\
1236 $(FREETYPE_CFLAGS
) \
1241 gb_ExternalProject__use_freetype
:=
1245 define gb_LinkTarget__use_freetype_headers
1246 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1247 $(call gb_LinkTarget_set_include
,$(1),\
1248 $(FREETYPE_CFLAGS
) \
1254 define gb_ExternalProject__use_freetype
1255 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1259 endif # SYSTEM_FREETYPE
1261 define gb_LinkTarget__use_freetype
1262 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1263 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1267 ifneq ($(SYSTEM_FONTCONFIG
),)
1269 define gb_LinkTarget__use_fontconfig
1270 $(call gb_LinkTarget_set_include
,$(1),\
1272 $(FONTCONFIG_CFLAGS
) \
1275 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1279 ifeq ($(OS
),EMSCRIPTEN
)
1280 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1281 libfontconfig_data \
1285 gb_ExternalProject__use_fontconfig
:=
1287 else # SYSTEM_FONTCONFIG
1289 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1291 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1297 define gb_LinkTarget__use_fontconfig
1299 $(call gb_LinkTarget_use_package
,$(1),fontconfig
)
1301 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1303 $(call gb_LinkTarget_set_include
,$(1),\
1304 -I
$(gb_UnpackedTarball_workdir
)/fontconfig \
1308 $(call gb_LinkTarget_add_libs
,$(1),\
1309 -L
$(gb_UnpackedTarball_workdir
)/fontconfig
/src
/.libs
-lfontconfig \
1314 define gb_ExternalProject__use_fontconfig
1315 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1319 endif # SYSTEM_FONTCONFIG
1321 ifneq ($(SYSTEM_GRAPHITE
),)
1323 define gb_LinkTarget__use_graphite
1324 $(call gb_LinkTarget_set_include
,$(1),\
1326 $(GRAPHITE_CFLAGS
) \
1328 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1332 gb_ExternalProject__use_graphite
:=
1334 else # !SYSTEM_GRAPHITE
1336 define gb_LinkTarget__use_graphite
1337 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1338 $(call gb_LinkTarget_set_include
,$(1),\
1339 -I
$(gb_UnpackedTarball_workdir
)/graphite
/include \
1342 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1348 define gb_ExternalProject__use_graphite
1349 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1354 endif # SYSTEM_GRAPHITE
1356 ifneq ($(SYSTEM_ICU
),)
1358 gb_LinkTarget__use_icu_headers
:=
1359 gb_ExternalProject__use_icu
:=
1361 define gb_LinkTarget__use_icudata
1362 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1365 define gb_LinkTarget__use_icui18n
1366 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1369 define gb_LinkTarget__use_icuuc
1370 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1376 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1380 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1384 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1390 define gb_LinkTarget__use_icu_headers
1391 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1392 $(call gb_LinkTarget_set_include
,$(1),\
1393 -I
$(gb_UnpackedTarball_workdir
)/icu
/source \
1394 -I
$(gb_UnpackedTarball_workdir
)/icu
/source
/i18n \
1395 -I
$(gb_UnpackedTarball_workdir
)/icu
/source
/common \
1401 define gb_ExternalProject__use_icu
1402 $(call gb_ExternalProject_use_package
,$(1),icu
)
1406 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1407 define gb_LinkTarget__use_icudata
1408 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1411 $(call gb_LinkTarget_add_libs
,$(1),\
1412 $(gb_UnpackedTarball_workdir
)/icu
/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1415 $(call gb_LinkTarget_add_libs
,$(1),\
1416 -L
$(gb_UnpackedTarball_workdir
)/icu
/source
/lib
-licudata
$(gb_ICU_suffix
) \
1422 define gb_LinkTarget__use_icui18n
1423 $(call gb_LinkTarget_use_package
,$(1),icu
)
1426 $(call gb_LinkTarget_add_libs
,$(1),\
1427 $(gb_UnpackedTarball_workdir
)/icu
/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1430 $(call gb_LinkTarget_add_libs
,$(1),\
1431 -L
$(gb_UnpackedTarball_workdir
)/icu
/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1437 define gb_LinkTarget__use_icuuc
1438 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1441 $(call gb_LinkTarget_add_libs
,$(1),\
1442 $(gb_UnpackedTarball_workdir
)/icu
/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1445 $(call gb_LinkTarget_add_libs
,$(1),\
1446 -L
$(gb_UnpackedTarball_workdir
)/icu
/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1454 ifneq ($(SYSTEM_HARFBUZZ
),)
1456 define gb_LinkTarget__use_harfbuzz
1457 $(call gb_LinkTarget_set_include
,$(1),\
1459 $(HARFBUZZ_CFLAGS
) \
1461 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1465 gb_ExternalProject__use_harfbuzz
:=
1467 else # SYSTEM_HARFBUZZ != TRUE
1469 define gb_LinkTarget__use_harfbuzz
1470 $(call gb_LinkTarget_set_include
,$(1),\
1471 $(HARFBUZZ_CFLAGS
) \
1474 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1475 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1476 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1480 define gb_ExternalProject__use_harfbuzz
1481 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1485 endif # SYSTEM_HARFBUZZ
1487 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1489 gb_ExternalProject__use_openssl
:=
1490 gb_LinkTarget__use_openssl_headers
:=
1491 gb_LinkTarget__use_openssl
:=
1493 else # ENABLE_OPENSSL
1495 ifneq ($(SYSTEM_OPENSSL
),)
1497 gb_LinkTarget__use_openssl_headers
:=
1498 gb_ExternalProject__use_openssl
:=
1500 define gb_LinkTarget__use_openssl
1501 $(call gb_LinkTarget_set_include
,$(1),\
1505 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1509 else # !SYSTEM_OPENSSL
1511 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1515 define gb_ExternalProject__use_openssl
1516 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1520 define gb_LinkTarget__use_openssl_headers
1521 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1522 $(call gb_LinkTarget_set_include
,$(1),\
1523 -I
$(gb_UnpackedTarball_workdir
)/openssl
/include \
1529 define gb_LinkTarget__use_openssl
1530 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1532 $(call gb_LinkTarget_add_libs
,$(1),\
1533 $(gb_UnpackedTarball_workdir
)/openssl
/libcrypto.lib \
1534 $(gb_UnpackedTarball_workdir
)/openssl
/libssl.lib \
1537 $(call gb_LinkTarget_add_libs
,$(1),\
1538 $(gb_UnpackedTarball_workdir
)/openssl
/libssl.a \
1539 $(gb_UnpackedTarball_workdir
)/openssl
/libcrypto.a \
1540 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1542 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1543 ifeq ($(OS
),SOLARIS
)
1544 $(call gb_LinkTarget_add_libs
,$(1),\
1553 endif # SYSTEM_OPENSSL
1554 endif # ENABLE_OPENSSL
1557 ifneq ($(SYSTEM_ARGON2
),)
1559 define gb_LinkTarget__use_argon2
1560 $(call gb_LinkTarget_set_include
,$(1),\
1564 $(call gb_LinkTarget_add_libs
,$(1),$(ARGON2_LIBS
))
1568 else # !SYSTEM_ARGON2
1570 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1574 define gb_LinkTarget__use_argon2
1575 $(call gb_LinkTarget_set_include
,$(1),\
1579 $(call gb_LinkTarget_add_libs
,$(1),$(ARGON2_LIBS
))
1580 $(call gb_LinkTarget_use_package
,$(1),argon2
)
1583 endif # SYSTEM_ARGON2
1586 ifneq ($(SYSTEM_CDR
),)
1588 define gb_LinkTarget__use_cdr
1589 $(call gb_LinkTarget_set_include
,$(1),\
1593 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1599 define gb_LinkTarget__use_cdr
1600 $(call gb_LinkTarget_set_include
,$(1),\
1601 -I
$(gb_UnpackedTarball_workdir
)/libcdr
/inc \
1604 $(call gb_LinkTarget_add_libs
,$(1),\
1605 $(gb_UnpackedTarball_workdir
)/libcdr
/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1607 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1613 ifneq ($(SYSTEM_EBOOK
),)
1615 define gb_LinkTarget__use_ebook
1616 $(call gb_LinkTarget_set_include
,$(1),\
1620 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1624 gb_ExternalProject__use_ebook
:=
1626 else # !SYSTEM_EBOOK
1628 define gb_LinkTarget__use_ebook
1629 $(call gb_LinkTarget_set_include
,$(1),\
1630 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1633 $(call gb_LinkTarget_add_libs
,$(1),\
1634 $(gb_UnpackedTarball_workdir
)/libebook
/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1636 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1640 define gb_ExternalProject__use_ebook
1641 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1645 endif # SYSTEM_EBOOK
1648 ifneq ($(SYSTEM_ETONYEK
),)
1650 define gb_LinkTarget__use_etonyek
1651 $(call gb_LinkTarget_set_include
,$(1),\
1655 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1659 gb_ExternalProject__use_etonyek
:=
1661 else # !SYSTEM_ETONYEK
1665 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1669 define gb_LinkTarget__use_etonyek
1670 $(call gb_LinkTarget_set_include
,$(1),\
1671 -I
$(gb_UnpackedTarball_workdir
)/libetonyek
/inc \
1674 $(call gb_LinkTarget_use_libraries
,$(1),\
1682 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1686 define gb_LinkTarget__use_etonyek
1687 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1689 $(call gb_LinkTarget_set_include
,$(1),\
1690 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1691 -DLIBETONYEK_VISIBILITY \
1694 $(call gb_LinkTarget_add_libs
,$(1),\
1695 -L
$(gb_UnpackedTarball_workdir
)/libetonyek
/src
/lib
/.libs
-letonyek-0.1 \
1697 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1701 define gb_ExternalProject__use_etonyek
1702 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1708 endif # SYSTEM_ETONYEK
1711 ifneq ($(SYSTEM_FREEHAND
),)
1713 define gb_LinkTarget__use_freehand
1714 $(call gb_LinkTarget_set_include
,$(1),\
1716 $(FREEHAND_CFLAGS
) \
1718 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1722 gb_ExternalProject__use_freehand
:=
1724 else # !SYSTEM_FREEHAND
1726 define gb_LinkTarget__use_freehand
1727 $(call gb_LinkTarget_set_include
,$(1),\
1728 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1731 $(call gb_LinkTarget_add_libs
,$(1),\
1732 $(gb_UnpackedTarball_workdir
)/libfreehand
/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1734 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1738 define gb_ExternalProject__use_freehand
1739 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1743 endif # SYSTEM_FREEHAND
1746 ifneq ($(SYSTEM_ODFGEN
),)
1748 define gb_LinkTarget__use_odfgen
1749 $(call gb_LinkTarget_set_include
,$(1),\
1753 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1757 else # !SYSTEM_ODFGEN
1761 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1765 define gb_LinkTarget__use_odfgen
1766 $(call gb_LinkTarget_set_include
,$(1),\
1767 -I
$(gb_UnpackedTarball_workdir
)/libodfgen
/inc \
1770 $(call gb_LinkTarget_use_libraries
,$(1),\
1778 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1782 define gb_LinkTarget__use_odfgen
1783 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1785 $(call gb_LinkTarget_set_include
,$(1),\
1786 -I
$(gb_UnpackedTarball_workdir
)/libodfgen
/inc \
1787 -DLIBODFGEN_VISIBILITY \
1790 $(call gb_LinkTarget_add_libs
,$(1),\
1791 -L
$(gb_UnpackedTarball_workdir
)/libodfgen
/src
/.libs
-lodfgen-0.1 \
1798 endif # SYSTEM_ODFGEN
1800 ifneq ($(SYSTEM_EPUBGEN
),)
1802 define gb_LinkTarget__use_epubgen
1803 $(call gb_LinkTarget_set_include
,$(1),\
1807 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1810 gb_ExternalProject__use_epubgen
:=
1812 else # !SYSTEM_EPUBGEN
1813 ifneq ($(ENABLE_WASM_STRIP_EPUB
),TRUE
)
1815 define gb_LinkTarget__use_epubgen
1816 $(call gb_LinkTarget_set_include
,$(1),\
1817 -I
$(gb_UnpackedTarball_workdir
)/libepubgen
/inc \
1820 $(call gb_LinkTarget_add_libs
,$(1),\
1821 $(gb_UnpackedTarball_workdir
)/libepubgen
/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1823 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1826 define gb_ExternalProject__use_epubgen
1827 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1831 endif # ENABLE_WASM_STRIP_EPUB
1832 endif # SYSTEM_EPUBGEN
1834 ifneq ($(SYSTEM_REVENGE
),)
1836 define gb_LinkTarget__use_revenge
1837 $(call gb_LinkTarget_set_include
,$(1),\
1841 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1845 gb_ExternalProject__use_revenge
:=
1847 else # !SYSTEM_REVENGE
1851 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1855 define gb_LinkTarget__use_revenge
1856 $(call gb_LinkTarget_set_include
,$(1),\
1860 $(call gb_LinkTarget_use_libraries
,$(1),\
1866 define gb_ExternalProject__use_revenge
1867 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1873 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1877 define gb_LinkTarget__use_revenge
1878 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1880 $(call gb_LinkTarget_set_include
,$(1),\
1882 -DLIBREVENGE_VISIBILITY \
1885 $(call gb_LinkTarget_add_libs
,$(1),\
1890 define gb_ExternalProject__use_revenge
1891 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1897 endif # SYSTEM_REVENGE
1900 ifneq ($(SYSTEM_ABW
),)
1902 define gb_LinkTarget__use_abw
1903 $(call gb_LinkTarget_set_include
,$(1),\
1907 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1910 gb_ExternalProject__use_abw
:=
1914 define gb_LinkTarget__use_abw
1915 $(call gb_LinkTarget_set_include
,$(1),\
1916 -I
$(gb_UnpackedTarball_workdir
)/libabw
/inc \
1919 $(call gb_LinkTarget_add_libs
,$(1),\
1920 $(gb_UnpackedTarball_workdir
)/libabw
/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1922 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1925 define gb_ExternalProject__use_abw
1926 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1933 ifneq ($(SYSTEM_MSPUB
),)
1935 define gb_LinkTarget__use_mspub
1936 $(call gb_LinkTarget_set_include
,$(1),\
1940 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1944 else # !SYSTEM_MSPUB
1946 define gb_LinkTarget__use_mspub
1947 $(call gb_LinkTarget_set_include
,$(1),\
1948 -I
$(gb_UnpackedTarball_workdir
)/libmspub
/inc \
1951 $(call gb_LinkTarget_add_libs
,$(1),\
1952 $(gb_UnpackedTarball_workdir
)/libmspub
/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1954 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1958 endif # SYSTEM_MSPUB
1961 ifneq ($(SYSTEM_PAGEMAKER
),)
1963 define gb_LinkTarget__use_pagemaker
1964 $(call gb_LinkTarget_set_include
,$(1),\
1966 $(PAGEMAKER_CFLAGS
) \
1968 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1971 gb_ExternalProject__use_pagemaker
:=
1973 else # !SYSTEM_PAGEMAKER
1975 define gb_LinkTarget__use_pagemaker
1976 $(call gb_LinkTarget_set_include
,$(1),\
1977 -I
$(gb_UnpackedTarball_workdir
)/libpagemaker
/inc \
1980 $(call gb_LinkTarget_add_libs
,$(1),\
1981 $(gb_UnpackedTarball_workdir
)/libpagemaker
/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1983 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1986 define gb_ExternalProject__use_pagemaker
1987 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1991 endif # SYSTEM_PAGEMAKER
1994 ifneq ($(SYSTEM_QXP
),)
1996 define gb_LinkTarget__use_qxp
1997 $(call gb_LinkTarget_set_include
,$(1),\
2001 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
2004 gb_ExternalProject__use_qxp
:=
2008 define gb_LinkTarget__use_qxp
2009 $(call gb_LinkTarget_set_include
,$(1),\
2010 -I
$(gb_UnpackedTarball_workdir
)/libqxp
/inc \
2013 $(call gb_LinkTarget_add_libs
,$(1),\
2014 $(gb_UnpackedTarball_workdir
)/libqxp
/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2016 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
2019 define gb_ExternalProject__use_qxp
2020 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
2027 ifneq ($(SYSTEM_ZMF
),)
2029 define gb_LinkTarget__use_zmf
2030 $(call gb_LinkTarget_set_include
,$(1),\
2034 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
2037 gb_ExternalProject__use_zmf
:=
2041 define gb_LinkTarget__use_zmf
2042 $(call gb_LinkTarget_set_include
,$(1),\
2043 -I
$(gb_UnpackedTarball_workdir
)/libzmf
/inc \
2046 $(call gb_LinkTarget_add_libs
,$(1),\
2047 $(gb_UnpackedTarball_workdir
)/libzmf
/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2049 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2052 define gb_ExternalProject__use_zmf
2053 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2060 ifneq ($(SYSTEM_VISIO
),)
2062 define gb_LinkTarget__use_visio
2063 $(call gb_LinkTarget_set_include
,$(1),\
2067 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2071 else # !SYSTEM_VISIO
2073 define gb_LinkTarget__use_visio
2074 $(call gb_LinkTarget_set_include
,$(1),\
2075 -I
$(gb_UnpackedTarball_workdir
)/libvisio
/inc \
2078 $(call gb_LinkTarget_add_libs
,$(1),\
2079 $(gb_UnpackedTarball_workdir
)/libvisio
/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2081 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2085 endif # SYSTEM_VISIO
2088 ifneq ($(SYSTEM_WPD
),)
2090 define gb_LinkTarget__use_wpd
2091 $(call gb_LinkTarget_set_include
,$(1),\
2095 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2098 gb_ExternalProject__use_wpd
:=
2104 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2108 define gb_LinkTarget__use_wpd
2109 $(call gb_LinkTarget_set_include
,$(1),\
2113 $(call gb_LinkTarget_use_libraries
,$(1),\
2119 define gb_ExternalProject__use_wpd
2120 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2126 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2130 define gb_LinkTarget__use_wpd
2131 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2133 $(call gb_LinkTarget_set_include
,$(1),\
2137 $(call gb_LinkTarget_add_libs
,$(1),\
2143 define gb_ExternalProject__use_wpd
2144 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2153 ifneq ($(SYSTEM_WPG
),)
2155 define gb_LinkTarget__use_wpg
2156 $(call gb_LinkTarget_set_include
,$(1),\
2160 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2163 gb_ExternalProject__use_wpg
:=
2169 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2173 define gb_LinkTarget__use_wpg
2174 $(call gb_LinkTarget_set_include
,$(1),\
2175 -I
$(gb_UnpackedTarball_workdir
)/libwpg
/inc \
2178 $(call gb_LinkTarget_use_libraries
,$(1),\
2186 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2190 define gb_LinkTarget__use_wpg
2191 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2193 $(call gb_LinkTarget_set_include
,$(1),\
2194 -I
$(gb_UnpackedTarball_workdir
)/libwpg
/inc \
2197 $(call gb_LinkTarget_add_libs
,$(1),\
2198 -L
$(gb_UnpackedTarball_workdir
)/libwpg
/src
/lib
/.libs
-lwpg-0.3 \
2208 ifneq ($(SYSTEM_WPS
),)
2210 define gb_LinkTarget__use_wps
2211 $(call gb_LinkTarget_set_include
,$(1),\
2215 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2218 gb_ExternalProject__use_wps
:=
2224 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2228 define gb_LinkTarget__use_wps
2229 $(call gb_LinkTarget_set_include
,$(1),\
2230 -I
$(gb_UnpackedTarball_workdir
)/libwps
/inc \
2234 $(call gb_LinkTarget_use_libraries
,$(1),\
2242 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2246 define gb_LinkTarget__use_wps
2247 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2249 $(call gb_LinkTarget_set_include
,$(1),\
2250 -I
$(gb_UnpackedTarball_workdir
)/libwps
/inc \
2253 $(call gb_LinkTarget_add_libs
,$(1),\
2254 -L
$(gb_UnpackedTarball_workdir
)/libwps
/src
/lib
/.libs
-lwps-0.4 \
2264 ifneq ($(SYSTEM_MWAW
),)
2266 define gb_LinkTarget__use_mwaw
2267 $(call gb_LinkTarget_set_include
,$(1),\
2271 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2279 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2283 define gb_LinkTarget__use_mwaw
2284 $(call gb_LinkTarget_set_include
,$(1),\
2285 -I
$(gb_UnpackedTarball_workdir
)/libmwaw
/inc \
2289 $(call gb_LinkTarget_use_libraries
,$(1),\
2297 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2301 define gb_LinkTarget__use_mwaw
2302 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2304 $(call gb_LinkTarget_set_include
,$(1),\
2305 -I
$(gb_UnpackedTarball_workdir
)/libmwaw
/inc \
2308 $(call gb_LinkTarget_add_libs
,$(1),\
2309 -L
$(gb_UnpackedTarball_workdir
)/libmwaw
/src
/lib
/.libs
-lmwaw-0.3 \
2318 ifneq ($(SYSTEM_STAROFFICE
),)
2320 define gb_LinkTarget__use_staroffice
2321 $(call gb_LinkTarget_set_include
,$(1),\
2323 $(STAROFFICE_CFLAGS
) \
2325 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2329 else # !SYSTEM_STAROFFICE
2333 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2337 define gb_LinkTarget__use_staroffice
2338 $(call gb_LinkTarget_set_include
,$(1),\
2339 -I
$(gb_UnpackedTarball_workdir
)/libstaroffice
/inc \
2343 $(call gb_LinkTarget_use_libraries
,$(1),\
2351 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2355 define gb_LinkTarget__use_staroffice
2356 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2358 $(call gb_LinkTarget_set_include
,$(1),\
2359 -I
$(gb_UnpackedTarball_workdir
)/libstaroffice
/inc \
2362 $(call gb_LinkTarget_add_libs
,$(1),\
2363 -L
$(gb_UnpackedTarball_workdir
)/libstaroffice
/src
/lib
/.libs
-lstaroffice-0.0 \
2370 endif # SYSTEM_STAROFFICE
2373 ifneq ($(SYSTEM_LCMS2
),)
2375 define gb_LinkTarget__use_lcms2
2376 $(call gb_LinkTarget_set_include
,$(1),\
2380 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2384 gb_ExternalProject__use_lcms2
:=
2386 else # !SYSTEM_LCMS2
2388 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2392 define gb_ExternalProject__use_lcms2
2393 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2397 ifeq ($(OS
),ANDROID
)
2399 define gb_LinkTarget__use_lcms2
2400 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2401 $(call gb_LinkTarget_set_include
,$(1),\
2402 -I
$(gb_UnpackedTarball_workdir
)/lcms2
/include \
2410 define gb_LinkTarget__use_lcms2
2411 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2412 $(call gb_LinkTarget_set_include
,$(1),\
2413 -I
$(gb_UnpackedTarball_workdir
)/lcms2
/include \
2416 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2421 endif # SYSTEM_LCMS2
2423 ifneq ($(ENABLE_LPSOLVE
),)
2425 ifneq ($(SYSTEM_LPSOLVE
),)
2427 define gb_LinkTarget__use_lpsolve
2428 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2429 $(call gb_LinkTarget_add_defs
,$(1),\
2435 else # !SYSTEM_LPSOLVE
2437 define gb_LinkTarget__use_lpsolve
2438 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2440 $(call gb_LinkTarget_add_libs
,$(1),\
2441 $(gb_UnpackedTarball_workdir
)/lpsolve
/lpsolve55
/lpsolve55.lib \
2444 $(call gb_LinkTarget_add_libs
,$(1),\
2445 -L
$(gb_UnpackedTarball_workdir
)/lpsolve
/lpsolve55
-llpsolve55 \
2448 $(call gb_LinkTarget_set_include
,$(1),\
2449 -I
$(gb_UnpackedTarball_workdir
)/lpsolve \
2455 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2459 endif # SYSTEM_LPSOLVE
2463 gb_LinkTarget__use_lpsolve
:=
2465 endif # ENABLE_LPSOLVE
2467 ifneq ($(ENABLE_COINMP
),)
2469 ifneq ($(SYSTEM_COINMP
),TRUE
)
2471 define gb_LinkTarget__use_coinmp
2472 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2474 $(call gb_LinkTarget_add_libs
,$(1),\
2475 $(gb_UnpackedTarball_workdir
)/coinmp
/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2478 $(call gb_LinkTarget_add_libs
,$(1),\
2479 -L
$(gb_UnpackedTarball_workdir
)/coinmp
/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2480 -L
$(gb_UnpackedTarball_workdir
)/coinmp
/Cgl
/src
/.libs
-lCgl \
2481 -L
$(gb_UnpackedTarball_workdir
)/coinmp
/Clp
/src
/.libs
-lClp \
2482 -L
$(gb_UnpackedTarball_workdir
)/coinmp
/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2483 -L
$(gb_UnpackedTarball_workdir
)/coinmp
/CoinMP
/src
/.libs
-lCoinMP \
2484 -L
$(gb_UnpackedTarball_workdir
)/coinmp
/CoinUtils
/src
/.libs
-lCoinUtils \
2485 -L
$(gb_UnpackedTarball_workdir
)/coinmp
/Osi
/src
/Osi
/.libs
-lOsi \
2488 $(call gb_LinkTarget_set_include
,$(1),\
2489 -I
$(gb_UnpackedTarball_workdir
)/coinmp
/CoinMP
/src \
2490 -I
$(gb_UnpackedTarball_workdir
)/coinmp
/CoinUtils
/src \
2496 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2500 else # SYSTEM_COINMP
2502 define gb_LinkTarget__use_coinmp
2503 $(call gb_LinkTarget_set_include
,$(1),\
2507 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2515 gb_LinkTarget__use_coinmp
:=
2517 endif # ENABLE_COINMP
2519 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2521 define gb_LinkTarget__use_mDNSResponder
2522 $(call gb_LinkTarget_set_include
,$(1),\
2523 -I
$(gb_UnpackedTarball_workdir
)/mDNSResponder
/mDNSShared \
2526 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2529 endif # MDNSRESPONDER
2531 ifeq ($(ENABLE_GIO
),TRUE
)
2533 define gb_LinkTarget__use_gio
2534 $(call gb_LinkTarget_set_include
,$(1),\
2539 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2545 define gb_LinkTarget__use_gio
2551 ifeq ($(ENABLE_AVAHI
),TRUE
)
2553 define gb_LinkTarget__use_avahi
2554 $(call gb_LinkTarget_set_include
,$(1),\
2559 $(call gb_LinkTarget_add_defs
,$(1),\
2563 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2569 gb_LinkTarget__use_avahi
:=
2571 endif # ENABLE_AVAHI
2573 ifeq ($(ENABLE_CPDB
),TRUE
)
2575 define gb_LinkTarget__use_cpdb
2576 $(call gb_LinkTarget_set_include
,$(1),\
2581 $(call gb_LinkTarget_add_libs
,$(1),\
2589 define gb_LinkTarget__use_cpdb
2595 ifeq ($(ENABLE_CUPS
),TRUE
)
2597 define gb_LinkTarget__use_cups
2599 $(call gb_LinkTarget_add_libs
,$(1),\
2607 define gb_LinkTarget__use_cups
2613 ifeq ($(ENABLE_DBUS
),TRUE
)
2615 define gb_LinkTarget__use_dbus
2616 $(call gb_LinkTarget_set_include
,$(1),\
2621 $(call gb_LinkTarget_add_libs
,$(1),\
2629 define gb_LinkTarget__use_dbus
2636 ifneq ($(SYSTEM_LIBPNG
),)
2638 define gb_LinkTarget__use_libpng
2639 $(call gb_LinkTarget_set_include
,$(1),\
2644 $(call gb_LinkTarget_add_libs
,$(1),\
2650 gb_ExternalProject__use_libpng
:=
2652 else # !SYSTEM_LIBPNG
2654 define gb_LinkTarget__use_libpng
2655 $(call gb_LinkTarget_set_include
,$(1),\
2659 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2662 $(call gb_LinkTarget__use_zlib
,$(1))
2666 define gb_ExternalProject__use_libpng
2667 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2673 endif # !SYSTEM_LIBPNG
2675 ifneq ($(SYSTEM_LIBTIFF
),)
2677 define gb_LinkTarget__use_libtiff
2678 $(call gb_LinkTarget_set_include
,$(1),\
2683 $(call gb_LinkTarget_add_libs
,$(1),\
2689 gb_ExternalProject__use_libtiff
:=
2691 else # !SYSTEM_LIBTIFF
2693 define gb_LinkTarget__use_libtiff
2694 $(call gb_LinkTarget_set_include
,$(1),\
2699 $(call gb_LinkTarget_set_include
,$(1),\
2700 -I
$(gb_UnpackedTarball_workdir
)/libtiff
/libtiff \
2704 $(call gb_LinkTarget_add_libs
,$(1),\
2705 $(gb_UnpackedTarball_workdir
)/libtiff
/libtiff
/.libs
/libtiff
$(gb_StaticLibrary_PLAINEXT
) \
2708 $(call gb_LinkTarget_add_libs
,$(1),\
2709 -L
$(gb_UnpackedTarball_workdir
)/libtiff
/libtiff
/.libs
-ltiff \
2712 $(call gb_LinkTarget_use_external_project
,$(1),libtiff
,full
)
2716 define gb_ExternalProject__use_libtiff
2717 $(call gb_ExternalProject_use_external_project
,$(1),libtiff
)
2721 endif # !SYSTEM_LIBTIFF
2723 ifneq ($(SYSTEM_LIBWEBP
),)
2725 define gb_LinkTarget__use_libwebp
2726 $(call gb_LinkTarget_set_include
,$(1),\
2731 $(call gb_LinkTarget_add_libs
,$(1),\
2737 gb_ExternalProject__use_libwebp
:=
2739 else # !SYSTEM_LIBWEBP
2741 define gb_LinkTarget__use_libwebp
2742 $(call gb_LinkTarget_set_include
,$(1),\
2747 $(call gb_LinkTarget_set_include
,$(1),\
2748 -I
$(gb_UnpackedTarball_workdir
)/libwebp
/src \
2752 $(call gb_LinkTarget_add_libs
,$(1),\
2753 $(gb_UnpackedTarball_workdir
)/libwebp
/output
/lib
/libwebp
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
)$(gb_StaticLibrary_PLAINEXT
) \
2756 $(call gb_LinkTarget_add_libs
,$(1),\
2757 -L
$(gb_UnpackedTarball_workdir
)/libwebp
/src
/.libs
-lwebp \
2758 -L
$(gb_UnpackedTarball_workdir
)/libwebp
/sharpyuv
/.libs
-lsharpyuv \
2761 $(call gb_LinkTarget_use_external_project
,$(1),libwebp
)
2765 define gb_ExternalProject__use_libwebp
2766 $(call gb_ExternalProject_use_external_project
,$(1),libwebp
)
2770 endif # !SYSTEM_LIBWEBP
2773 ifneq ($(SYSTEM_CURL
),)
2775 define gb_LinkTarget__use_curl
2776 $(call gb_LinkTarget_add_defs
,$(1),\
2779 $(call gb_LinkTarget_set_include
,$(1),\
2783 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2789 $(if
$(ENABLE_CURL
),\
2790 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2794 define gb_LinkTarget__use_curl
2795 $(call gb_LinkTarget_use_package
,$(1),curl
)
2796 $(call gb_LinkTarget_set_include
,$(1),\
2797 -I
$(gb_UnpackedTarball_workdir
)/curl
/include \
2802 $(call gb_LinkTarget_add_libs
,$(1),\
2803 $(gb_UnpackedTarball_workdir
)/curl
/builds
/libcurl-vc12-
$(gb_MSBUILD_PLATFORM
)-$(gb_MSBUILD_CONFIG
)-dll-zlib-static-ipv6-sspi-schannel
/lib
/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
).lib \
2806 $(call gb_LinkTarget_add_libs
,$(1),\
2807 -L
$(gb_UnpackedTarball_workdir
)/curl
/lib
/.libs
-lcurl \
2815 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2817 define gb_LinkTarget__use_valgrind
2818 $(call gb_LinkTarget_add_defs
,$(1),\
2819 -DHAVE_VALGRIND_HEADERS \
2822 $(call gb_LinkTarget_set_include
,$(1),\
2824 $(VALGRIND_CFLAGS
) \
2829 else # !ENABLE_VALGRIND
2831 define gb_LinkTarget__use_valgrind
2835 endif # ENABLE_VALGRIND
2837 ifeq ($(ENABLE_POPPLER
),TRUE
)
2839 ifneq ($(SYSTEM_POPPLER
),)
2841 define gb_LinkTarget__use_poppler
2842 $(call gb_LinkTarget_set_include
,$(1),\
2847 $(call gb_LinkTarget_add_libs
,$(1),\
2853 else # !SYSTEM_POPPLER
2855 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2859 define gb_LinkTarget__use_poppler
2860 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2861 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2862 $(call gb_LinkTarget_set_include
,$(1),\
2863 -I
$(gb_UnpackedTarball_workdir
)/poppler \
2864 -I
$(gb_UnpackedTarball_workdir
)/poppler
/poppler \
2865 -I
$(gb_UnpackedTarball_workdir
)/poppler
/goo \
2869 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2870 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2873 $(call gb_LinkTarget_add_libs
,$(1),\
2876 else ifeq ($(OS
),LINUX
)
2877 $(call gb_LinkTarget_add_libs
,$(1),\
2880 else ifeq ($(OS
),WNT
)
2881 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2889 endif # SYSTEM_POPPLER
2891 endif # ENABLE_POPPLER
2894 ifneq ($(SYSTEM_CLUCENE
),)
2896 define gb_LinkTarget__use_clucene
2897 $(call gb_LinkTarget_add_defs
,$(1),\
2898 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2902 $(call gb_LinkTarget_set_include
,$(1),\
2903 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2907 $(call gb_LinkTarget_add_libs
,$(1),\
2913 else # !SYSTEM_CLUCENE
2915 define gb_LinkTarget__use_clucene
2916 $(call gb_LinkTarget_set_include
,$(1),\
2917 -I
$(gb_UnpackedTarball_workdir
)/clucene
/src
/core \
2918 -I
$(gb_UnpackedTarball_workdir
)/clucene
/src
/shared \
2919 -I
$(gb_UnpackedTarball_workdir
)/clucene
/src
/contribs-lib \
2923 $(call gb_LinkTarget_use_libraries
,$(1),\
2929 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2930 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2933 endif # SYSTEM_CLUCENE
2935 define gb_LinkTarget__use_gobject
2936 $(call gb_LinkTarget_add_libs
,$(1),\
2940 $(call gb_LinkTarget_set_include
,$(1),\
2946 ifneq ($(SYSTEM_HSQLDB
),)
2948 define gb_LinkTarget__use_hsqldb
2950 $(call gb_LinkTarget_add_defs
,$(1),\
2952 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2957 else # !SYSTEM_HSQLDB
2959 define gb_LinkTarget__use_hsqldb
2963 endif # SYSTEM_HSQLDB
2965 ifeq ($(ENABLE_LDAP
),TRUE
)
2966 ifneq ($(SYSTEM_OPENLDAP
),)
2968 define gb_LinkTarget__use_openldap
2970 $(call gb_LinkTarget_add_libs
,$(1),\
2977 gb_ExternalProject__use_openldap
:=
2979 else # !SYSTEM_OPENLDAP
2981 define gb_LinkTarget__use_openldap
2982 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2983 $(call gb_LinkTarget_set_include
,$(1),\
2984 -I
$(gb_UnpackedTarball_workdir
)/openldap
/include \
2987 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2988 $(call gb_LinkTarget_add_libs
,$(1), \
2989 $(gb_UnpackedTarball_workdir
)/openldap
/libraries
/libldap
/.libs
/libldap.a \
2990 $(gb_UnpackedTarball_workdir
)/openldap
/libraries
/liblber
/.libs
/liblber.a \
2996 define gb_ExternalProject__use_openldap
2997 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
3001 endif # SYSTEM_OPENLDAP
3003 ifneq ($(SYSTEM_LIBTOMMATH
),)
3005 define gb_LinkTarget__use_libtommath
3006 $(call gb_LinkTarget_set_include
,$(1),\
3007 $(LIBTOMMATH_CFLAGS
) \
3010 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
3014 else # !SYSTEM_LIBTOMMATH
3015 define gb_LinkTarget__use_libtommath
3016 $(call gb_LinkTarget_set_include
,$(1),\
3017 -I
${WORKDIR}/UnpackedTarball
/libtommath \
3020 $(call gb_LinkTarget_add_libs
,$(1),\
3021 $(gb_UnpackedTarball_workdir
)/libtommath
/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
3023 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
3027 endif # SYSTEM_LIBTOMMATH
3029 define gb_ExternalProject__use_libtommath
3030 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
3034 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
3036 ifneq ($(SYSTEM_FIREBIRD
),)
3038 define gb_LinkTarget__use_libfbembed
3039 $(call gb_LinkTarget_set_include
,$(1),\
3040 $(FIREBIRD_CFLAGS
) \
3043 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
3047 else # !SYSTEM_FIREBIRD
3049 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
3053 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
3054 #$(call gb_LinkTarget__use_libtommath,$(1))
3056 define gb_LinkTarget__use_libfbembed
3057 $(call gb_LinkTarget_use_package
,$(1),firebird
)
3058 $(call gb_LinkTarget_set_include
,$(1),\
3059 -I
$(gb_UnpackedTarball_workdir
)/firebird
/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
3063 $(call gb_LinkTarget_add_libs
,$(1),\
3064 $(gb_UnpackedTarball_workdir
)/firebird
/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
3067 $(call gb_LinkTarget_add_libs
,$(1),\
3068 -L
$(gb_UnpackedTarball_workdir
)/firebird
/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3077 endif # SYSTEM_FIREBIRD
3079 else # !ENABLE_FIREBIRD_SDBC
3081 gb_LinkTarget__use_firebird
:=
3082 # gb_LinkTarget__use_atomic_ops :=
3083 # gb_LinkTarget__use_libtommath :=
3085 endif # ENABLE_FIREBIRD_SDBC
3088 ifneq ($(SYSTEM_POSTGRESQL
),)
3090 define gb_LinkTarget__use_postgresql
3092 $(call gb_LinkTarget_set_include
,$(1),\
3097 $(call gb_LinkTarget_add_libs
,$(1),\
3101 $(call gb_LinkTarget_add_ldflags
,$(1),\
3107 else # !SYSTEM_POSTGRESQL
3110 $(if
$(MPL_SUBSET
),,\
3111 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3116 define gb_LinkTarget__use_postgresql
3118 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3120 $(call gb_LinkTarget_set_include
,$(1),\
3121 -I
$(gb_UnpackedTarball_workdir
)/postgresql
/src
/include \
3122 -I
$(gb_UnpackedTarball_workdir
)/postgresql
/src
/interfaces
/libpq \
3128 $(call gb_LinkTarget_add_libs
,$(1),\
3129 $(gb_UnpackedTarball_workdir
)/postgresql
/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3134 $(call gb_LinkTarget_add_libs
,$(1),\
3135 $(gb_UnpackedTarball_workdir
)/postgresql
/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3136 $(gb_UnpackedTarball_workdir
)/postgresql
/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3137 $(gb_UnpackedTarball_workdir
)/postgresql
/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3138 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3143 endef # gb_LinkTarget__use_postgresql
3145 endif # !SYSTEM_POSTGRESQL
3147 ifneq (,$(filter TRUE
,$(ENABLE_KF5
) $(ENABLE_GTK3_KDE5
)))
3149 define gb_LinkTarget__use_kf5
3150 $(call gb_LinkTarget_set_include
,$(1),\
3151 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3155 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3156 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3159 $(call gb_LinkTarget_add_libs
,$(1),\
3167 define gb_LinkTarget__use_kf5
3173 ifneq (,$(filter TRUE
,$(ENABLE_KF6
)))
3175 define gb_LinkTarget__use_kf6
3176 $(call gb_LinkTarget_set_include
,$(1),\
3177 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF6_CFLAGS
)))) \
3181 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3182 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF6_CFLAGS
))) \
3185 $(call gb_LinkTarget_add_libs
,$(1),\
3193 define gb_LinkTarget__use_kf6
3199 ifneq (,$(filter TRUE
,$(ENABLE_QT5
) $(ENABLE_GTK3_KDE5
)))
3201 define gb_LinkTarget__use_qt5
3202 $(call gb_LinkTarget_set_include
,$(1),\
3203 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3207 $(call gb_LinkTarget_add_defs
,$(1),\
3208 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3211 $(call gb_LinkTarget_add_libs
,$(1),\
3219 define gb_LinkTarget__use_qt5
3225 ifeq ($(ENABLE_QT6
),TRUE
)
3227 define gb_LinkTarget__use_qt6
3228 $(call gb_LinkTarget_set_include
,$(1),\
3229 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3233 $(call gb_LinkTarget_add_defs
,$(1),\
3234 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3237 $(call gb_LinkTarget_add_libs
,$(1),\
3245 define gb_LinkTarget__use_qt6
3253 # extra python_headers external because pyuno wrapper must not link python
3254 ifneq ($(SYSTEM_PYTHON
),)
3256 define gb_LinkTarget__use_python_headers
3257 $(call gb_LinkTarget_add_defs
,$(1),\
3258 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3261 $(call gb_LinkTarget_set_include
,$(1),\
3262 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3268 define gb_LinkTarget__use_python
3269 $(call gb_LinkTarget__use_python_headers
,$(1))
3271 $(call gb_LinkTarget_add_libs
,$(1),\
3277 else # !SYSTEM_PYTHON
3279 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3281 $(if
$(filter WNT
,$(OS
)),libffi
) \
3284 define gb_LinkTarget__use_python_headers
3285 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3286 $(call gb_LinkTarget_set_include
,$(1),\
3287 -I
$(gb_UnpackedTarball_workdir
)/python3 \
3288 -I
$(gb_UnpackedTarball_workdir
)/python3
/PC \
3289 -I
$(gb_UnpackedTarball_workdir
)/python3
/Include \
3295 define gb_LinkTarget__use_python
3296 $(call gb_LinkTarget__use_python_headers
,$(1))
3298 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3300 $(call gb_LinkTarget_use_package
,$(1),python3
)
3304 ifeq ($(CPUNAME
),X86_64
)
3305 python_arch_subdir
=amd64
/
3306 else ifeq ($(CPUNAME
),AARCH64
)
3307 python_arch_subdir
=arm64
/
3309 python_arch_subdir
=win32
/
3311 $(call gb_LinkTarget_add_libs
,$(1),\
3312 $(gb_UnpackedTarball_workdir
)/python3
/PCbuild
/$(python_arch_subdir
)python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3314 else ifeq ($(OS
),MACOSX
)
3315 $(call gb_LinkTarget_add_libs
,$(1),\
3316 -F
$(gb_UnpackedTarball_workdir
)/python3
/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3319 $(call gb_LinkTarget_add_libs
,$(1),\
3320 -L
$(gb_UnpackedTarball_workdir
)/python3 \
3321 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3327 # this is only used by python currently
3328 define gb_ExternalProject__use_libffi
3329 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3333 endif # SYSTEM_PYTHON
3336 ifneq ($(SYSTEM_LIBORCUS
),)
3338 define gb_LinkTarget__use_orcus
3339 $(call gb_LinkTarget_set_include
,$(1),\
3343 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3346 define gb_LinkTarget__use_orcus-parser
3350 else # !SYSTEM_LIBORCUS
3354 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3359 define gb_LinkTarget__use_orcus
3360 $(call gb_LinkTarget_set_include
,$(1),\
3361 -I
$(gb_UnpackedTarball_workdir
)/liborcus
/include \
3365 $(call gb_LinkTarget_use_libraries
,$(1),\
3371 define gb_LinkTarget__use_orcus-parser
3372 $(call gb_LinkTarget_set_include
,$(1),\
3373 -I
$(gb_UnpackedTarball_workdir
)/liborcus
/include \
3377 $(call gb_LinkTarget_use_libraries
,$(1),\
3385 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3389 define gb_LinkTarget__use_orcus
3390 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3392 $(call gb_LinkTarget_set_include
,$(1),\
3393 -I
$(gb_UnpackedTarball_workdir
)/liborcus
/include \
3397 $(call gb_LinkTarget_add_libs
,$(1),\
3398 -L
$(gb_UnpackedTarball_workdir
)/liborcus
/src
/liborcus
/.libs
-lorcus-0.18 \
3401 $(if
$(SYSTEM_BOOST
), \
3402 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3403 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3408 define gb_LinkTarget__use_orcus-parser
3409 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3411 $(call gb_LinkTarget_set_include
,$(1),\
3412 -I
$(gb_UnpackedTarball_workdir
)/liborcus
/include \
3416 $(call gb_LinkTarget_add_libs
,$(1),\
3417 -L
$(gb_UnpackedTarball_workdir
)/liborcus
/src
/parser
/.libs
-lorcus-parser-0.18 \
3424 endif # SYSTEM_LIBORCUS
3426 ifeq ($(ENABLE_EOT
),TRUE
)
3428 ifneq ($(SYSTEM_LIBEOT
),)
3430 define gb_LinkTarget__use_libeot
3431 $(call gb_LinkTarget_set_include
,$(1),\
3435 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3439 gb_ExternalProject__use_libeot
:=
3441 else # !SYSTEM_LIBEOT
3443 define gb_LinkTarget__use_libeot
3444 $(call gb_LinkTarget_set_include
,$(1),\
3445 -I
$(gb_UnpackedTarball_workdir
)/libeot
/inc \
3448 $(call gb_LinkTarget_add_libs
,$(1),\
3449 $(gb_UnpackedTarball_workdir
)/libeot
/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3451 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3455 define gb_ExternalProject__use_libeot
3456 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3460 endif # SYSTEM_LIBEOT
3464 gb_LinkTarget__use_libeot
:=
3465 gb_ExternalProject__use_libeot
:=
3471 ifeq ($(USING_X11
), TRUE
)
3473 define gb_LinkTarget__use_Xrandr
3474 $(call gb_LinkTarget_set_include
,$(1),\
3479 $(call gb_LinkTarget_add_libs
,$(1),\
3484 define gb_LinkTarget__use_Xrender
3485 $(call gb_LinkTarget_set_include
,$(1),\
3490 $(call gb_LinkTarget_add_libs
,$(1),\
3498 gb_ExternalProject__use_nss3
:=
3501 ifneq ($(SYSTEM_NSS
),)
3503 define gb_LinkTarget__use_nss3
3504 $(call gb_LinkTarget_add_defs
,$(1),\
3508 $(call gb_LinkTarget_set_include
,$(1),\
3513 $(call gb_LinkTarget_add_libs
,$(1),\
3519 define gb_LinkTarget__use_nssutil3
3520 $(call gb_LinkTarget__use_nss3
,$(1))
3524 define gb_LinkTarget__use_plc4
3525 $(call gb_LinkTarget__use_nss3
,$(1))
3529 define gb_LinkTarget__use_ssl3
3530 $(call gb_LinkTarget__use_nss3
,$(1))
3536 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3540 define gb_LinkTarget__use_nss3
3541 $(call gb_LinkTarget_use_package
,$(1),nss
)
3542 $(call gb_LinkTarget_set_include
,$(1),\
3544 -I
$(gb_UnpackedTarball_workdir
)/nss
/dist/public
/nss \
3545 -I
$(gb_UnpackedTarball_workdir
)/nss
/dist/out
/include \
3549 $(call gb_LinkTarget_add_libs
,$(1),\
3550 $(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
/nspr4.lib \
3551 $(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
/nss3.lib \
3552 $(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
/smime3.lib \
3555 $(call gb_LinkTarget_add_libs
,$(1),\
3556 -L
$(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib \
3565 define gb_LinkTarget__use_plc4
3566 $(call gb_LinkTarget_use_package
,$(1),nss
)
3568 $(call gb_LinkTarget_add_libs
,$(1),\
3569 $(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
/plc4.lib \
3572 $(call gb_LinkTarget_add_libs
,$(1),\
3573 -L
$(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
-lplc4 \
3579 define gb_LinkTarget__use_ssl3
3580 $(call gb_LinkTarget_use_package
,$(1),nss
)
3582 $(call gb_LinkTarget_add_libs
,$(1),\
3583 $(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
/ssl3.lib \
3586 $(call gb_LinkTarget_add_libs
,$(1),\
3587 -L
$(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
-lssl3 \
3593 define gb_LinkTarget__use_nssutil3
3594 $(call gb_LinkTarget_use_package
,$(1),nss
)
3595 $(call gb_LinkTarget_set_include
,$(1),\
3597 -I
$(gb_UnpackedTarball_workdir
)/nss
/dist/public
/nss \
3598 -I
$(gb_UnpackedTarball_workdir
)/nss
/dist/out
/include \
3602 $(call gb_LinkTarget_add_libs
,$(1),\
3603 $(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib
/nssutil3.lib \
3606 $(call gb_LinkTarget_add_libs
,$(1),\
3607 -L
$(gb_UnpackedTarball_workdir
)/nss
/dist/out
/lib \
3614 define gb_ExternalProject__use_nss3
3615 $(call gb_ExternalProject_use_package
,$(1),nss
)
3621 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3623 define gb_LinkTarget__use_breakpad
3624 $(call gb_LinkTarget_set_include
,$(1),\
3625 -I
$(gb_UnpackedTarball_workdir
)/breakpad
/src \
3630 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3634 $(call gb_LinkTarget_add_libs
,$(1),\
3635 $(gb_UnpackedTarball_workdir
)/breakpad
/src
/client
/linux
/libbreakpad_client.a \
3639 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3643 endif # ENABLE_BREAKPAD
3645 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3647 ifneq ($(SYSTEM_GPGMEPP
),)
3649 gb_ExternalProject__use_gpgmepp
:=
3650 gb_ExternalProject__use_libassuan
:=
3651 gb_ExternalProject__use_libgpg-error
:=
3653 define gb_LinkTarget__use_gpgmepp
3654 $(call gb_LinkTarget_set_include
,$(1),\
3656 $$(GPGMEPP_CFLAGS
) \
3659 $(call gb_LinkTarget_add_libs
,$(1),\
3665 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3667 define gb_ExternalProject__use_gpgmepp
3668 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3671 define gb_ExternalProject__use_libassuan
3672 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3675 define gb_ExternalProject__use_libgpg-error
3676 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3680 ifneq ($(filter WNT
,$(OS
)),)
3682 define gb_LinkTarget__use_libgpg-error
3683 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3685 $(call gb_LinkTarget_set_include
,$(1),\
3686 $(GPG_ERROR_CFLAGS
) \
3689 $(call gb_LinkTarget_add_libs
,$(1),\
3690 -LIBPATH
:$(gb_UnpackedTarball_workdir
)/libgpg-error
/src
/.libs libgpg-error.lib \
3695 define gb_LinkTarget__use_libassuan
3696 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3698 $(call gb_LinkTarget_set_include
,$(1),\
3699 $(LIBASSUAN_CFLAGS
) \
3702 $(call gb_LinkTarget_add_libs
,$(1),\
3703 -LIBPATH
:$(gb_UnpackedTarball_workdir
)/libassuan
/src
/.libs libassuan.lib \
3708 define gb_LinkTarget__use_gpgmepp
3709 $(call gb_LinkTarget_set_include
,$(1),\
3710 -I
$(gb_UnpackedTarball_workdir
)/gpgmepp
/lang
/cpp/src \
3711 -I
$(gb_UnpackedTarball_workdir
)/gpgmepp
/src \
3712 $$(GPG_ERROR_CFLAGS
) \
3715 $(call gb_LinkTarget_use_libraries
,$(1),\
3721 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3727 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3733 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3735 define gb_LinkTarget__use_gpgmepp
3736 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3738 $(call gb_LinkTarget_set_include
,$(1),\
3739 -I
$(gb_UnpackedTarball_workdir
)/gpgmepp
/lang
/cpp/src \
3740 -I
$(gb_UnpackedTarball_workdir
)/gpgmepp
/src \
3741 $$(GPG_ERROR_CFLAGS
) \
3744 $(call gb_LinkTarget_add_libs
,$(1),\
3745 -L
$(gb_UnpackedTarball_workdir
)/gpgmepp
/lang
/cpp/src
/.libs
/ -lgpgmepp \
3746 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(gb_UnpackedTarball_workdir
)/gpgmepp
/src
/.libs
/ -lgpgme
) \
3747 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3748 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3753 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3763 else # !ENABLE_GPGMEPP
3765 gb_ExternalProject__use_gpgmepp
:=
3766 gb_ExternalProject__use_libassuan
:=
3767 gb_ExternalProject__use_libgpg-error
:=
3769 gb_LinkTarget__use_gpgmepp
:=
3770 gb_LinkTarget__use_libassuan
:=
3771 gb_LinkTarget__use_libgpg-error
:=
3773 endif # ENABLE_GPGMEPP
3775 define gb_LinkTarget__use_dconf
3776 $(call gb_LinkTarget_set_include
,$(1),\
3781 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3784 ### Jars ############################################################
3786 ifneq ($(SYSTEM_HSQLDB
),)
3788 define gb_Jar__use_hsqldb
3789 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3791 define gb_JunitTest__use_hsqldb
3792 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3795 else # !SYSTEM_HSQLDB
3797 ifeq ($(ENABLE_JAVA
),TRUE
)
3798 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3803 define gb_Jar__use_hsqldb
3804 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3806 define gb_JunitTest__use_hsqldb
3807 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3810 endif # SYSTEM_HSQLDB
3813 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3815 ifneq ($(SYSTEM_BSH
),)
3817 define gb_Jar__use_bsh
3818 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3823 ifeq ($(ENABLE_JAVA
),TRUE
)
3824 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3829 define gb_Jar__use_bsh
3830 $(call gb_Jar_use_jar
,$(1),bsh
)
3837 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3839 ifneq ($(SYSTEM_RHINO
),)
3841 define gb_Jar__use_rhino
3842 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3845 else # !SYSTEM_RHINO
3847 ifeq ($(ENABLE_JAVA
),TRUE
)
3848 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3853 define gb_Jar__use_rhino
3854 $(call gb_Jar_use_jar
,$(1),js
)
3857 endif # SYSTEM_RHINO
3861 ifneq ($(SYSTEM_JFREEREPORT
),)
3863 define gb_Jar__use_flow-engine
3864 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3867 define gb_Jar__use_flute
3868 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3871 define gb_Jar__use_libbase
3872 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3875 define gb_Jar__use_libfonts
3876 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3879 define gb_Jar__use_libformula
3880 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3883 define gb_Jar__use_liblayout
3884 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3887 define gb_Jar__use_libloader
3888 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3891 define gb_Jar__use_librepository
3892 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3895 define gb_Jar__use_libserializer
3896 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3899 define gb_Jar__use_libxml
3900 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3903 define gb_Jar__use_sac
3904 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3907 else # !SYSTEM_JFREEREPORT
3909 ifeq ($(ENABLE_JAVA
),TRUE
)
3910 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3918 librepository-1.1
.6 \
3919 libserializer-1.1
.6 \
3925 define gb_Jar__use_flow-engine
3926 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3929 define gb_Jar__use_flute
3930 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3933 define gb_Jar__use_libbase
3934 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3937 define gb_Jar__use_libfonts
3938 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3941 define gb_Jar__use_libformula
3942 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3945 define gb_Jar__use_liblayout
3946 $(call gb_Jar_use_jar
,$(1),liblayout
)
3949 define gb_Jar__use_libloader
3950 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3953 define gb_Jar__use_librepository
3954 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3957 define gb_Jar__use_libserializer
3958 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3961 define gb_Jar__use_libxml
3962 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3965 define gb_Jar__use_sac
3966 $(call gb_Jar_use_jar
,$(1),sac
)
3969 endif # SYSTEM_JFREEREPORT
3971 # As a guide, Java-Websocket was packaged for Fedora 35
3972 # https://src.fedoraproject.org/rpms/Java-WebSocket/tree/f35
3973 ifneq ($(SYSTEM_JAVA_WEBSOCKET
),)
3975 define gb_Jar__use_java_websocket
3976 $(call gb_Jar_use_system_jar
,$(1),$(JAVA_WEBSOCKET_JAR
))
3979 else # !SYSTEM_JAVA_WEBSOCKET
3981 ifeq ($(ENABLE_JAVA
),TRUE
)
3982 $(eval
$(call gb_Helper_register_jars_for_install
,URE
,ure
, \
3987 define gb_Jar__use_java_websocket
3988 $(call gb_Jar_use_jar
,$(1),java_websocket
)
3991 endif # SYSTEM_JAVA_WEBSOCKET
3995 define gb_Executable__register_bestreversemap
3996 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3997 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
4001 # TODO depending on the whole URE might be overkill, but I do not have a
4002 # Windows machine to debug it...
4003 define gb_Executable__register_climaker
4004 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
4005 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
4006 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
4007 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4008 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
4012 define gb_Executable__register_cppumaker
4013 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
4014 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
4018 # This is used to determine what we need for 'build' platform.
4019 define gb_Executable__register_gengal
4020 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
4021 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
4022 $(call gb_Library_get_target_for_build
,localedata_en
) \
4023 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
4024 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
4025 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
4026 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
4027 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
4028 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
4029 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
4030 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
4031 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
4032 $(call gb_UnoApi_get_target_for_build
,offapi
) \
4033 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4037 ifeq ($(SYSTEM_ICU
),)
4039 define gb_Executable__register_gendict
4040 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
4041 $(call gb_Package_get_target_for_build
,icu
) \
4042 $(call gb_Package_get_target_for_build
,icu_ure
) \
4048 define gb_Executable__register_localize
4049 $(call gb_Executable_add_runtime_dependencies
,localize
,\
4050 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
4051 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
4056 # FIXME ure/services.rdb needs cleanup
4057 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
4058 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
4059 define gb_Executable__register_saxparser
4060 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
4061 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
4062 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
4063 $(call gb_Rdb_get_target_for_build
,saxparser
) \
4064 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
4065 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4069 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
4070 # required due to the settings for URE_SERVICES and URE_TYPES in
4071 # cppuhelper/source/unorc
4072 define gb_Executable__register_uno
4073 $(call gb_Executable_add_runtime_dependencies
,uno
,\
4074 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
4075 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
4076 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4081 # External executables
4083 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
4085 gb_ExternalExecutable__register_xmllint
:=
4087 else # ! SYSTEM_LIBXML_FOR_BUILD
4089 define gb_ExternalExecutable__register_xmllint
4090 $(call gb_ExternalExecutable_set_internal
,xmllint
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/libxml2
/$(if
$(filter MSC
,$(COM
)),win32
/bin.msvc
)/xmllint
$(gb_Executable_EXT_for_build
),libxml2
)
4091 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
4092 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4093 $(call gb_Package_get_target
,libxml2
) \
4098 endif # SYSTEM_LIBXML_FOR_BUILD
4100 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
4102 gb_ExternalExecutable__register_xsltproc
:=
4104 else # ! SYSTEM_LIBXSLT_FOR_BUILD
4106 define gb_ExternalExecutable__register_xsltproc
4107 $(call gb_ExternalExecutable_set_internal
,xsltproc
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/libxslt
/$(if
$(filter MSC
,$(COM
)),win32
/bin.msvc
,xsltproc
)/xsltproc
$(gb_Executable_EXT_for_build
),libxslt
)
4108 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
4109 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4110 $(call gb_Package_get_target
,libxml2
) \
4111 $(call gb_Package_get_target
,libxslt
) \
4116 endif # SYSTEM_LIBXSLT_FOR_BUILD
4118 ifeq (,$(PYTHON_FOR_BUILD
))
4120 define gb_ExternalExecutable__register_python
4123 # use set_external, to avoid having the command added as prerequisite for the
4124 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4125 # matching rule to build that specific file)
4126 $(call gb_ExternalExecutable_set_external
,python
,$(gb_UnpackedTarball_workdir
)/python3
/python-inst
/@__________________________________________________OOO
/LibreOfficePython.framework
/Versions
/$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)/bin
/python
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
))
4127 # the Zip ensures that internal python has been built (cannot use the Package
4128 # target, as that is not used on Mac)
4129 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4133 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT_FOR_BUILD
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
4134 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4135 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4143 define gb_ExternalExecutable__register_python
4144 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4148 endif # PYTHON_FOR_BUILD
4150 ifneq ($(SYSTEM_GENBRK
),)
4152 define gb_ExternalExecutable__register_genbrk
4153 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4157 else # ! SYSTEM_GENBRK
4159 define gb_ExternalExecutable__register_genbrk
4160 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4161 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4162 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4163 $(call gb_Package_get_target_for_build
,icu
) \
4164 $(call gb_Package_get_target_for_build
,icu_ure
) \
4171 ifneq ($(SYSTEM_GENCCODE
),)
4173 define gb_ExternalExecutable__register_genccode
4174 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4178 else # ! SYSTEM_GENCCODE
4180 define gb_ExternalExecutable__register_genccode
4181 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4182 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4183 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4184 $(call gb_Package_get_target_for_build
,icu
) \
4185 $(call gb_Package_get_target_for_build
,icu_ure
) \
4192 ifneq ($(SYSTEM_GENCMN
),)
4194 define gb_ExternalExecutable__register_gencmn
4195 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4199 else # ! SYSTEM_GENCMN
4201 define gb_ExternalExecutable__register_gencmn
4202 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4203 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4204 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4205 $(call gb_Package_get_target_for_build
,icu
) \
4206 $(call gb_Package_get_target_for_build
,icu_ure
) \
4213 ifneq ($(SYSTEM_BZIP2
),)
4215 define gb_LinkTarget__use_bzip2
4216 $(call gb_LinkTarget_set_include
,$(1),\
4220 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4224 gb_ExternalProject__use_bzip2
:=
4226 else # !SYSTEM_BZIP2
4228 define gb_LinkTarget__use_bzip2
4229 $(call gb_LinkTarget_set_include
,$(1),\
4230 -I
$(gb_UnpackedTarball_workdir
)/bzip2 \
4235 $(call gb_LinkTarget_add_libs
,$(1),\
4236 $(gb_UnpackedTarball_workdir
)/bzip2
/libbz2.lib \
4239 $(call gb_LinkTarget_add_libs
,$(1),\
4240 -L
$(gb_UnpackedTarball_workdir
)/bzip2
-lbz2 \
4244 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4247 define gb_ExternalProject__use_bzip2
4248 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4251 endif # SYSTEM_BZIP2
4253 define gb_LinkTarget__use_clew
4254 $(call gb_LinkTarget_set_include
,$(1), \
4255 -I
$(SRCDIR
)/external
/clew
/source
/include \
4258 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4261 ifneq ($(ENABLE_PDFIUM
),)
4262 define gb_LinkTarget__use_pdfium
4263 $(call gb_LinkTarget_set_include
,$(1),\
4264 -I
$(gb_UnpackedTarball_workdir
)/pdfium
/public \
4268 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4270 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4275 ifneq ($(SYSTEM_DRAGONBOX
),)
4277 define gb_LinkTarget__use_dragonbox
4278 $(call gb_LinkTarget_set_include
,$(1),\
4280 $$(DRAGONBOX_CFLAGS
) \
4286 define gb_LinkTarget__use_dragonbox
4287 $(call gb_LinkTarget_use_unpacked
,$(1),dragonbox
)
4288 $(call gb_LinkTarget_set_include
,$(1),\
4289 -I
$(gb_UnpackedTarball_workdir
)/dragonbox
/include/\
4296 define gb_LinkTarget__use_dtoa
4297 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4298 $(call gb_LinkTarget_set_include
,$(1),\
4299 -I
$(gb_UnpackedTarball_workdir
)/dtoa
/include/\
4302 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4308 define gb_ExternalProject__use_dtoa
4309 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4313 ifneq ($(SYSTEM_BOX2D
),)
4315 define gb_LinkTarget__use_box2d
4316 $(call gb_LinkTarget_set_include
,$(1),\
4321 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4325 gb_ExternalProject__use_box2d
:=
4327 else # !SYSTEM_BOX2D
4329 define gb_LinkTarget__use_box2d
4330 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4331 $(call gb_LinkTarget_set_include
,$(1),\
4332 -I
$(gb_UnpackedTarball_workdir
)/box2d
/include/\
4335 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4341 define gb_ExternalProject__use_box2d
4342 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4346 endif # SYSTEM_BOX2D
4348 ifneq ($(SYSTEM_ZXCVBN
),)
4349 define gb_LinkTarget__use_zxcvbn-c
4350 $(call gb_LinkTarget_set_include
,$(1),\
4354 $(call gb_LinkTarget_add_libs
,$(1),-lzxcvbn
)
4359 define gb_LinkTarget__use_zxcvbn-c
4360 $(call gb_LinkTarget_use_unpacked
,$(1),zxcvbn-c
)
4361 $(call gb_LinkTarget_set_include
,$(1),\
4362 -I
$(gb_UnpackedTarball_workdir
)/zxcvbn-c\
4365 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4372 ifneq ($(SYSTEM_ZXING
),)
4374 define gb_LinkTarget__use_zxing
4375 $(call gb_LinkTarget_set_include
,$(1),\
4380 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4384 gb_ExternalProject__use_zxing
:=
4386 else # !SYSTEM_ZXING
4388 ifneq ($(ENABLE_ZXING
),)
4390 define gb_LinkTarget__use_zxing
4391 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4392 $(call gb_LinkTarget_set_include
,$(1),\
4393 -I
$(gb_UnpackedTarball_workdir
)/zxing
/core
/src
/\
4396 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4402 define gb_ExternalProject__use_zxing
4403 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4407 else # !ENABLE_ZXING
4409 define gb_LinkTarget__use_zxing
4412 endif # ENABLE_ZXING
4414 endif # SYSTEM_ZXING
4417 ifneq ($(SYSTEM_FROZEN
),)
4418 define gb_LinkTarget__use_frozen
4419 $(call gb_LinkTarget_set_include
,$(1),\
4425 define gb_LinkTarget__use_frozen
4426 $(call gb_LinkTarget_use_unpacked
,$(1),frozen
)
4427 $(call gb_LinkTarget_set_include
,$(1),\
4428 -I
$(gb_UnpackedTarball_workdir
)/frozen
/include/\
4434 # vim: set noet sw=4 ts=4: