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
$(call gb_UnpackedTarball_get_dir
,skia
)/include/core \
127 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/effects \
128 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/gpu \
129 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/config \
130 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/ports \
131 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/private \
132 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/third_party
/vulkan \
133 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/tools
/gpu \
134 -I
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
214 $(call gb_LinkTarget_add_libs
,$(1),\
215 $(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
830 $(call gb_LinkTarget_use_static_libraries
,$(1),\
834 $(call gb_LinkTarget_add_libs
,$(1),\
835 $(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
874 $(call gb_LinkTarget_use_static_libraries
,$(1),\
879 $(call gb_LinkTarget_add_libs
,$(1),\
880 $(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
975 $(call gb_LinkTarget_add_libs
,$(1),\
976 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
979 $(call gb_LinkTarget_add_libs
,$(1),\
980 -L
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
994 $(call gb_LinkTarget_add_libs
,$(1),\
995 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
998 $(call gb_LinkTarget_add_libs
,$(1),\
999 -L
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1124 define gb_LinkTarget__use_raptor_headers
1125 $(call gb_LinkTarget_set_include
,$(1),\
1126 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1132 define gb_LinkTarget__use_rasqal_headers
1133 $(call gb_LinkTarget_set_include
,$(1),\
1134 -I
$(call gb_UnpackedTarball_get_dir
,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
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1167 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1168 -L
$(call gb_UnpackedTarball_get_dir
,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),\
1192 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1193 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1197 else # !SYSTEM_CAIRO
1199 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1201 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1206 define gb_LinkTarget__use_cairo
1207 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1208 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1209 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1210 $(call gb_LinkTarget_set_include
,$(1),\
1211 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1212 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1213 -I
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman \
1216 $(call gb_LinkTarget_add_libs
,$(1),\
1217 $(if
$(filter EMSCRIPTEN
,$(OS
)), \
1218 $(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
/libcairo.a \
1219 $(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
/libpixman-1.a
, \
1220 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1221 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1
) \
1226 endif # !MACOSX, !WNT
1228 endif # !SYSTEM_CAIRO
1230 ifneq ($(SYSTEM_FREETYPE
),)
1232 define gb_LinkTarget__use_freetype_headers
1233 $(call gb_LinkTarget_set_include
,$(1),\
1235 $(FREETYPE_CFLAGS
) \
1240 gb_ExternalProject__use_freetype
:=
1244 define gb_LinkTarget__use_freetype_headers
1245 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1246 $(call gb_LinkTarget_set_include
,$(1),\
1247 $(FREETYPE_CFLAGS
) \
1253 define gb_ExternalProject__use_freetype
1254 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1258 endif # SYSTEM_FREETYPE
1260 define gb_LinkTarget__use_freetype
1261 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1262 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1266 ifneq ($(SYSTEM_FONTCONFIG
),)
1268 define gb_LinkTarget__use_fontconfig
1269 $(call gb_LinkTarget_set_include
,$(1),\
1271 $(FONTCONFIG_CFLAGS
) \
1274 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1278 ifeq ($(OS
),EMSCRIPTEN
)
1279 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1280 libfontconfig_data \
1284 gb_ExternalProject__use_fontconfig
:=
1286 else # SYSTEM_FONTCONFIG
1288 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1290 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1296 define gb_LinkTarget__use_fontconfig
1298 $(call gb_LinkTarget_use_package
,$(1),fontconfig
)
1300 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1302 $(call gb_LinkTarget_set_include
,$(1),\
1303 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1307 $(call gb_LinkTarget_add_libs
,$(1),\
1308 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1313 define gb_ExternalProject__use_fontconfig
1314 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1318 endif # SYSTEM_FONTCONFIG
1320 ifneq ($(SYSTEM_GRAPHITE
),)
1322 define gb_LinkTarget__use_graphite
1323 $(call gb_LinkTarget_set_include
,$(1),\
1325 $(GRAPHITE_CFLAGS
) \
1327 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1331 gb_ExternalProject__use_graphite
:=
1333 else # !SYSTEM_GRAPHITE
1335 define gb_LinkTarget__use_graphite
1336 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1337 $(call gb_LinkTarget_set_include
,$(1),\
1338 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1341 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1347 define gb_ExternalProject__use_graphite
1348 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1353 endif # SYSTEM_GRAPHITE
1355 ifneq ($(SYSTEM_ICU
),)
1357 gb_LinkTarget__use_icu_headers
:=
1358 gb_ExternalProject__use_icu
:=
1360 define gb_LinkTarget__use_icudata
1361 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1364 define gb_LinkTarget__use_icui18n
1365 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1368 define gb_LinkTarget__use_icuuc
1369 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1375 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1379 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1383 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1389 define gb_LinkTarget__use_icu_headers
1390 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1391 $(call gb_LinkTarget_set_include
,$(1),\
1392 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1393 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1394 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1400 define gb_ExternalProject__use_icu
1401 $(call gb_ExternalProject_use_package
,$(1),icu
)
1405 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1406 define gb_LinkTarget__use_icudata
1407 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1410 $(call gb_LinkTarget_add_libs
,$(1),\
1411 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1414 $(call gb_LinkTarget_add_libs
,$(1),\
1415 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1421 define gb_LinkTarget__use_icui18n
1422 $(call gb_LinkTarget_use_package
,$(1),icu
)
1425 $(call gb_LinkTarget_add_libs
,$(1),\
1426 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1429 $(call gb_LinkTarget_add_libs
,$(1),\
1430 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1436 define gb_LinkTarget__use_icuuc
1437 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1440 $(call gb_LinkTarget_add_libs
,$(1),\
1441 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1444 $(call gb_LinkTarget_add_libs
,$(1),\
1445 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1453 ifneq ($(SYSTEM_HARFBUZZ
),)
1455 define gb_LinkTarget__use_harfbuzz
1456 $(call gb_LinkTarget_set_include
,$(1),\
1458 $(HARFBUZZ_CFLAGS
) \
1460 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1464 gb_ExternalProject__use_harfbuzz
:=
1466 else # SYSTEM_HARFBUZZ != TRUE
1468 define gb_LinkTarget__use_harfbuzz
1469 $(call gb_LinkTarget_set_include
,$(1),\
1470 $(HARFBUZZ_CFLAGS
) \
1473 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1474 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1475 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1479 define gb_ExternalProject__use_harfbuzz
1480 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1484 endif # SYSTEM_HARFBUZZ
1486 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1488 gb_ExternalProject__use_openssl
:=
1489 gb_LinkTarget__use_openssl_headers
:=
1490 gb_LinkTarget__use_openssl
:=
1492 else # ENABLE_OPENSSL
1494 ifneq ($(SYSTEM_OPENSSL
),)
1496 gb_LinkTarget__use_openssl_headers
:=
1497 gb_ExternalProject__use_openssl
:=
1499 define gb_LinkTarget__use_openssl
1500 $(call gb_LinkTarget_set_include
,$(1),\
1504 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1508 else # !SYSTEM_OPENSSL
1510 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1514 define gb_ExternalProject__use_openssl
1515 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1519 define gb_LinkTarget__use_openssl_headers
1520 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1521 $(call gb_LinkTarget_set_include
,$(1),\
1522 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1528 define gb_LinkTarget__use_openssl
1529 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1531 $(call gb_LinkTarget_add_libs
,$(1),\
1532 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.lib \
1533 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.lib \
1536 $(call gb_LinkTarget_add_libs
,$(1),\
1537 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1538 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1539 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1541 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1542 ifeq ($(OS
),SOLARIS
)
1543 $(call gb_LinkTarget_add_libs
,$(1),\
1552 endif # SYSTEM_OPENSSL
1553 endif # ENABLE_OPENSSL
1556 ifneq ($(SYSTEM_CDR
),)
1558 define gb_LinkTarget__use_cdr
1559 $(call gb_LinkTarget_set_include
,$(1),\
1563 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1569 define gb_LinkTarget__use_cdr
1570 $(call gb_LinkTarget_set_include
,$(1),\
1571 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1574 $(call gb_LinkTarget_add_libs
,$(1),\
1575 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1577 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1583 ifneq ($(SYSTEM_EBOOK
),)
1585 define gb_LinkTarget__use_ebook
1586 $(call gb_LinkTarget_set_include
,$(1),\
1590 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1594 gb_ExternalProject__use_ebook
:=
1596 else # !SYSTEM_EBOOK
1598 define gb_LinkTarget__use_ebook
1599 $(call gb_LinkTarget_set_include
,$(1),\
1600 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1603 $(call gb_LinkTarget_add_libs
,$(1),\
1604 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1606 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1610 define gb_ExternalProject__use_ebook
1611 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1615 endif # SYSTEM_EBOOK
1618 ifneq ($(SYSTEM_ETONYEK
),)
1620 define gb_LinkTarget__use_etonyek
1621 $(call gb_LinkTarget_set_include
,$(1),\
1625 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1629 gb_ExternalProject__use_etonyek
:=
1631 else # !SYSTEM_ETONYEK
1635 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1639 define gb_LinkTarget__use_etonyek
1640 $(call gb_LinkTarget_set_include
,$(1),\
1641 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1644 $(call gb_LinkTarget_use_libraries
,$(1),\
1652 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1656 define gb_LinkTarget__use_etonyek
1657 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1659 $(call gb_LinkTarget_set_include
,$(1),\
1660 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1661 -DLIBETONYEK_VISIBILITY \
1664 $(call gb_LinkTarget_add_libs
,$(1),\
1665 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1667 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1671 define gb_ExternalProject__use_etonyek
1672 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1678 endif # SYSTEM_ETONYEK
1681 ifneq ($(SYSTEM_FREEHAND
),)
1683 define gb_LinkTarget__use_freehand
1684 $(call gb_LinkTarget_set_include
,$(1),\
1686 $(FREEHAND_CFLAGS
) \
1688 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1692 gb_ExternalProject__use_freehand
:=
1694 else # !SYSTEM_FREEHAND
1696 define gb_LinkTarget__use_freehand
1697 $(call gb_LinkTarget_set_include
,$(1),\
1698 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1701 $(call gb_LinkTarget_add_libs
,$(1),\
1702 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1704 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1708 define gb_ExternalProject__use_freehand
1709 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1713 endif # SYSTEM_FREEHAND
1716 ifneq ($(SYSTEM_ODFGEN
),)
1718 define gb_LinkTarget__use_odfgen
1719 $(call gb_LinkTarget_set_include
,$(1),\
1723 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1727 else # !SYSTEM_ODFGEN
1731 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1735 define gb_LinkTarget__use_odfgen
1736 $(call gb_LinkTarget_set_include
,$(1),\
1737 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1740 $(call gb_LinkTarget_use_libraries
,$(1),\
1748 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1752 define gb_LinkTarget__use_odfgen
1753 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1755 $(call gb_LinkTarget_set_include
,$(1),\
1756 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1757 -DLIBODFGEN_VISIBILITY \
1760 $(call gb_LinkTarget_add_libs
,$(1),\
1761 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1768 endif # SYSTEM_ODFGEN
1770 ifneq ($(SYSTEM_EPUBGEN
),)
1772 define gb_LinkTarget__use_epubgen
1773 $(call gb_LinkTarget_set_include
,$(1),\
1777 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1780 gb_ExternalProject__use_epubgen
:=
1782 else # !SYSTEM_EPUBGEN
1783 ifneq ($(ENABLE_WASM_STRIP_EPUB
),TRUE
)
1785 define gb_LinkTarget__use_epubgen
1786 $(call gb_LinkTarget_set_include
,$(1),\
1787 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1790 $(call gb_LinkTarget_add_libs
,$(1),\
1791 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1793 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1796 define gb_ExternalProject__use_epubgen
1797 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1801 endif # ENABLE_WASM_STRIP_EPUB
1802 endif # SYSTEM_EPUBGEN
1804 ifneq ($(SYSTEM_REVENGE
),)
1806 define gb_LinkTarget__use_revenge
1807 $(call gb_LinkTarget_set_include
,$(1),\
1811 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1815 gb_ExternalProject__use_revenge
:=
1817 else # !SYSTEM_REVENGE
1821 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1825 define gb_LinkTarget__use_revenge
1826 $(call gb_LinkTarget_set_include
,$(1),\
1830 $(call gb_LinkTarget_use_libraries
,$(1),\
1836 define gb_ExternalProject__use_revenge
1837 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1843 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1847 define gb_LinkTarget__use_revenge
1848 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1850 $(call gb_LinkTarget_set_include
,$(1),\
1852 -DLIBREVENGE_VISIBILITY \
1855 $(call gb_LinkTarget_add_libs
,$(1),\
1860 define gb_ExternalProject__use_revenge
1861 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1867 endif # SYSTEM_REVENGE
1870 ifneq ($(SYSTEM_ABW
),)
1872 define gb_LinkTarget__use_abw
1873 $(call gb_LinkTarget_set_include
,$(1),\
1877 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1880 gb_ExternalProject__use_abw
:=
1884 define gb_LinkTarget__use_abw
1885 $(call gb_LinkTarget_set_include
,$(1),\
1886 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1889 $(call gb_LinkTarget_add_libs
,$(1),\
1890 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1892 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1895 define gb_ExternalProject__use_abw
1896 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1903 ifneq ($(SYSTEM_MSPUB
),)
1905 define gb_LinkTarget__use_mspub
1906 $(call gb_LinkTarget_set_include
,$(1),\
1910 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1914 else # !SYSTEM_MSPUB
1916 define gb_LinkTarget__use_mspub
1917 $(call gb_LinkTarget_set_include
,$(1),\
1918 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1921 $(call gb_LinkTarget_add_libs
,$(1),\
1922 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1924 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1928 endif # SYSTEM_MSPUB
1931 ifneq ($(SYSTEM_PAGEMAKER
),)
1933 define gb_LinkTarget__use_pagemaker
1934 $(call gb_LinkTarget_set_include
,$(1),\
1936 $(PAGEMAKER_CFLAGS
) \
1938 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1941 gb_ExternalProject__use_pagemaker
:=
1943 else # !SYSTEM_PAGEMAKER
1945 define gb_LinkTarget__use_pagemaker
1946 $(call gb_LinkTarget_set_include
,$(1),\
1947 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1950 $(call gb_LinkTarget_add_libs
,$(1),\
1951 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1953 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1956 define gb_ExternalProject__use_pagemaker
1957 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1961 endif # SYSTEM_PAGEMAKER
1964 ifneq ($(SYSTEM_QXP
),)
1966 define gb_LinkTarget__use_qxp
1967 $(call gb_LinkTarget_set_include
,$(1),\
1971 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
1974 gb_ExternalProject__use_qxp
:=
1978 define gb_LinkTarget__use_qxp
1979 $(call gb_LinkTarget_set_include
,$(1),\
1980 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
1983 $(call gb_LinkTarget_add_libs
,$(1),\
1984 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1986 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
1989 define gb_ExternalProject__use_qxp
1990 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
1997 ifneq ($(SYSTEM_ZMF
),)
1999 define gb_LinkTarget__use_zmf
2000 $(call gb_LinkTarget_set_include
,$(1),\
2004 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
2007 gb_ExternalProject__use_zmf
:=
2011 define gb_LinkTarget__use_zmf
2012 $(call gb_LinkTarget_set_include
,$(1),\
2013 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2016 $(call gb_LinkTarget_add_libs
,$(1),\
2017 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2019 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2022 define gb_ExternalProject__use_zmf
2023 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2030 ifneq ($(SYSTEM_VISIO
),)
2032 define gb_LinkTarget__use_visio
2033 $(call gb_LinkTarget_set_include
,$(1),\
2037 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2041 else # !SYSTEM_VISIO
2043 define gb_LinkTarget__use_visio
2044 $(call gb_LinkTarget_set_include
,$(1),\
2045 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2048 $(call gb_LinkTarget_add_libs
,$(1),\
2049 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2051 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2055 endif # SYSTEM_VISIO
2058 ifneq ($(SYSTEM_WPD
),)
2060 define gb_LinkTarget__use_wpd
2061 $(call gb_LinkTarget_set_include
,$(1),\
2065 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2068 gb_ExternalProject__use_wpd
:=
2074 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2078 define gb_LinkTarget__use_wpd
2079 $(call gb_LinkTarget_set_include
,$(1),\
2083 $(call gb_LinkTarget_use_libraries
,$(1),\
2089 define gb_ExternalProject__use_wpd
2090 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2096 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2100 define gb_LinkTarget__use_wpd
2101 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2103 $(call gb_LinkTarget_set_include
,$(1),\
2107 $(call gb_LinkTarget_add_libs
,$(1),\
2113 define gb_ExternalProject__use_wpd
2114 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2123 ifneq ($(SYSTEM_WPG
),)
2125 define gb_LinkTarget__use_wpg
2126 $(call gb_LinkTarget_set_include
,$(1),\
2130 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2133 gb_ExternalProject__use_wpg
:=
2139 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2143 define gb_LinkTarget__use_wpg
2144 $(call gb_LinkTarget_set_include
,$(1),\
2145 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2148 $(call gb_LinkTarget_use_libraries
,$(1),\
2156 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2160 define gb_LinkTarget__use_wpg
2161 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2163 $(call gb_LinkTarget_set_include
,$(1),\
2164 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2167 $(call gb_LinkTarget_add_libs
,$(1),\
2168 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2178 ifneq ($(SYSTEM_WPS
),)
2180 define gb_LinkTarget__use_wps
2181 $(call gb_LinkTarget_set_include
,$(1),\
2185 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2188 gb_ExternalProject__use_wps
:=
2194 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2198 define gb_LinkTarget__use_wps
2199 $(call gb_LinkTarget_set_include
,$(1),\
2200 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2204 $(call gb_LinkTarget_use_libraries
,$(1),\
2212 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2216 define gb_LinkTarget__use_wps
2217 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2219 $(call gb_LinkTarget_set_include
,$(1),\
2220 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2223 $(call gb_LinkTarget_add_libs
,$(1),\
2224 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2234 ifneq ($(SYSTEM_MWAW
),)
2236 define gb_LinkTarget__use_mwaw
2237 $(call gb_LinkTarget_set_include
,$(1),\
2241 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2249 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2253 define gb_LinkTarget__use_mwaw
2254 $(call gb_LinkTarget_set_include
,$(1),\
2255 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2259 $(call gb_LinkTarget_use_libraries
,$(1),\
2267 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2271 define gb_LinkTarget__use_mwaw
2272 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2274 $(call gb_LinkTarget_set_include
,$(1),\
2275 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2278 $(call gb_LinkTarget_add_libs
,$(1),\
2279 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2288 ifneq ($(SYSTEM_STAROFFICE
),)
2290 define gb_LinkTarget__use_staroffice
2291 $(call gb_LinkTarget_set_include
,$(1),\
2293 $(STAROFFICE_CFLAGS
) \
2295 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2299 else # !SYSTEM_STAROFFICE
2303 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2307 define gb_LinkTarget__use_staroffice
2308 $(call gb_LinkTarget_set_include
,$(1),\
2309 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2313 $(call gb_LinkTarget_use_libraries
,$(1),\
2321 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2325 define gb_LinkTarget__use_staroffice
2326 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2328 $(call gb_LinkTarget_set_include
,$(1),\
2329 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2332 $(call gb_LinkTarget_add_libs
,$(1),\
2333 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2340 endif # SYSTEM_STAROFFICE
2343 ifneq ($(SYSTEM_LCMS2
),)
2345 define gb_LinkTarget__use_lcms2
2346 $(call gb_LinkTarget_set_include
,$(1),\
2350 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2354 gb_ExternalProject__use_lcms2
:=
2356 else # !SYSTEM_LCMS2
2358 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2362 define gb_ExternalProject__use_lcms2
2363 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2367 ifeq ($(OS
),ANDROID
)
2369 define gb_LinkTarget__use_lcms2
2370 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2371 $(call gb_LinkTarget_set_include
,$(1),\
2372 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2380 define gb_LinkTarget__use_lcms2
2381 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2382 $(call gb_LinkTarget_set_include
,$(1),\
2383 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2386 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2391 endif # SYSTEM_LCMS2
2393 ifneq ($(ENABLE_LPSOLVE
),)
2395 ifneq ($(SYSTEM_LPSOLVE
),)
2397 define gb_LinkTarget__use_lpsolve
2398 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2399 $(call gb_LinkTarget_add_defs
,$(1),\
2405 else # !SYSTEM_LPSOLVE
2407 define gb_LinkTarget__use_lpsolve
2408 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2410 $(call gb_LinkTarget_add_libs
,$(1),\
2411 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2414 $(call gb_LinkTarget_add_libs
,$(1),\
2415 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2418 $(call gb_LinkTarget_set_include
,$(1),\
2419 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2425 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2429 endif # SYSTEM_LPSOLVE
2433 gb_LinkTarget__use_lpsolve
:=
2435 endif # ENABLE_LPSOLVE
2437 ifneq ($(ENABLE_COINMP
),)
2439 ifneq ($(SYSTEM_COINMP
),TRUE
)
2441 define gb_LinkTarget__use_coinmp
2442 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2444 $(call gb_LinkTarget_add_libs
,$(1),\
2445 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2448 $(call gb_LinkTarget_add_libs
,$(1),\
2449 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2450 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2451 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2452 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2453 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2454 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2455 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2458 $(call gb_LinkTarget_set_include
,$(1),\
2459 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2460 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2466 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2470 else # SYSTEM_COINMP
2472 define gb_LinkTarget__use_coinmp
2473 $(call gb_LinkTarget_set_include
,$(1),\
2477 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2485 gb_LinkTarget__use_coinmp
:=
2487 endif # ENABLE_COINMP
2489 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2491 define gb_LinkTarget__use_mDNSResponder
2492 $(call gb_LinkTarget_set_include
,$(1),\
2493 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2496 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2499 endif # MDNSRESPONDER
2501 ifeq ($(ENABLE_GIO
),TRUE
)
2503 define gb_LinkTarget__use_gio
2504 $(call gb_LinkTarget_set_include
,$(1),\
2509 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2515 define gb_LinkTarget__use_gio
2521 ifeq ($(ENABLE_AVAHI
),TRUE
)
2523 define gb_LinkTarget__use_avahi
2524 $(call gb_LinkTarget_set_include
,$(1),\
2529 $(call gb_LinkTarget_add_defs
,$(1),\
2533 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2539 gb_LinkTarget__use_avahi
:=
2541 endif # ENABLE_AVAHI
2543 ifeq ($(ENABLE_CUPS
),TRUE
)
2545 define gb_LinkTarget__use_cups
2546 $(call gb_LinkTarget_add_defs
,$(1),\
2550 $(call gb_LinkTarget_add_libs
,$(1),\
2558 define gb_LinkTarget__use_cups
2564 ifeq ($(ENABLE_DBUS
),TRUE
)
2566 define gb_LinkTarget__use_dbus
2567 $(call gb_LinkTarget_set_include
,$(1),\
2572 $(call gb_LinkTarget_add_libs
,$(1),\
2580 define gb_LinkTarget__use_dbus
2587 ifneq ($(SYSTEM_LIBPNG
),)
2589 define gb_LinkTarget__use_libpng
2590 $(call gb_LinkTarget_set_include
,$(1),\
2595 $(call gb_LinkTarget_add_libs
,$(1),\
2601 gb_ExternalProject__use_libpng
:=
2603 else # !SYSTEM_LIBPNG
2605 define gb_LinkTarget__use_libpng
2606 $(call gb_LinkTarget_set_include
,$(1),\
2610 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2613 $(call gb_LinkTarget__use_zlib
,$(1))
2617 define gb_ExternalProject__use_libpng
2618 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2624 endif # !SYSTEM_LIBPNG
2626 ifneq ($(SYSTEM_LIBTIFF
),)
2628 define gb_LinkTarget__use_libtiff
2629 $(call gb_LinkTarget_set_include
,$(1),\
2634 $(call gb_LinkTarget_add_libs
,$(1),\
2640 gb_ExternalProject__use_libtiff
:=
2642 else # !SYSTEM_LIBTIFF
2644 define gb_LinkTarget__use_libtiff
2645 $(call gb_LinkTarget_set_include
,$(1),\
2650 $(call gb_LinkTarget_set_include
,$(1),\
2651 -I
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff \
2655 $(call gb_LinkTarget_add_libs
,$(1),\
2656 $(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
/libtiff
$(gb_StaticLibrary_PLAINEXT
) \
2659 $(call gb_LinkTarget_add_libs
,$(1),\
2660 -L
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
-ltiff \
2663 $(call gb_LinkTarget_use_external_project
,$(1),libtiff
,full
)
2667 define gb_ExternalProject__use_libtiff
2668 $(call gb_ExternalProject_use_external_project
,$(1),libtiff
)
2672 endif # !SYSTEM_LIBTIFF
2674 ifneq ($(SYSTEM_LIBWEBP
),)
2676 define gb_LinkTarget__use_libwebp
2677 $(call gb_LinkTarget_set_include
,$(1),\
2682 $(call gb_LinkTarget_add_libs
,$(1),\
2688 gb_ExternalProject__use_libwebp
:=
2690 else # !SYSTEM_LIBWEBP
2692 define gb_LinkTarget__use_libwebp
2693 $(call gb_LinkTarget_set_include
,$(1),\
2698 $(call gb_LinkTarget_set_include
,$(1),\
2699 -I
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src \
2703 $(call gb_LinkTarget_add_libs
,$(1),\
2704 $(call gb_UnpackedTarball_get_dir
,libwebp
)/output
/lib
/libwebp
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
)$(gb_StaticLibrary_PLAINEXT
) \
2707 $(call gb_LinkTarget_add_libs
,$(1),\
2708 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src
/.libs
-lwebp \
2709 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/sharpyuv
/.libs
-lsharpyuv \
2712 $(call gb_LinkTarget_use_external_project
,$(1),libwebp
)
2716 define gb_ExternalProject__use_libwebp
2717 $(call gb_ExternalProject_use_external_project
,$(1),libwebp
)
2721 endif # !SYSTEM_LIBWEBP
2724 ifneq ($(SYSTEM_CURL
),)
2726 define gb_LinkTarget__use_curl
2727 $(call gb_LinkTarget_add_defs
,$(1),\
2730 $(call gb_LinkTarget_set_include
,$(1),\
2734 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2740 $(if
$(ENABLE_CURL
),\
2741 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2745 define gb_LinkTarget__use_curl
2746 $(call gb_LinkTarget_use_package
,$(1),curl
)
2747 $(call gb_LinkTarget_set_include
,$(1),\
2748 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2753 $(call gb_LinkTarget_add_libs
,$(1),\
2754 $(call gb_UnpackedTarball_get_dir
,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 \
2757 $(call gb_LinkTarget_add_libs
,$(1),\
2758 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2766 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2768 define gb_LinkTarget__use_valgrind
2769 $(call gb_LinkTarget_add_defs
,$(1),\
2770 -DHAVE_VALGRIND_HEADERS \
2773 $(call gb_LinkTarget_set_include
,$(1),\
2775 $(VALGRIND_CFLAGS
) \
2780 else # !ENABLE_VALGRIND
2782 define gb_LinkTarget__use_valgrind
2786 endif # ENABLE_VALGRIND
2788 ifeq ($(ENABLE_POPPLER
),TRUE
)
2790 ifneq ($(SYSTEM_POPPLER
),)
2792 define gb_LinkTarget__use_poppler
2793 $(call gb_LinkTarget_set_include
,$(1),\
2798 $(call gb_LinkTarget_add_libs
,$(1),\
2804 else # !SYSTEM_POPPLER
2806 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2810 define gb_LinkTarget__use_poppler
2811 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2812 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2813 $(call gb_LinkTarget_set_include
,$(1),\
2814 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2815 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2816 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2820 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2821 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2824 $(call gb_LinkTarget_add_libs
,$(1),\
2827 else ifeq ($(OS
),LINUX
)
2828 $(call gb_LinkTarget_add_libs
,$(1),\
2831 else ifeq ($(OS
),WNT
)
2832 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2840 endif # SYSTEM_POPPLER
2842 endif # ENABLE_POPPLER
2845 ifneq ($(SYSTEM_CLUCENE
),)
2847 define gb_LinkTarget__use_clucene
2848 $(call gb_LinkTarget_add_defs
,$(1),\
2849 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2853 $(call gb_LinkTarget_set_include
,$(1),\
2854 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2858 $(call gb_LinkTarget_add_libs
,$(1),\
2864 else # !SYSTEM_CLUCENE
2866 define gb_LinkTarget__use_clucene
2867 $(call gb_LinkTarget_set_include
,$(1),\
2868 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2869 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2870 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2874 $(call gb_LinkTarget_use_libraries
,$(1),\
2880 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2881 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2884 endif # SYSTEM_CLUCENE
2886 define gb_LinkTarget__use_gobject
2887 $(call gb_LinkTarget_add_libs
,$(1),\
2891 $(call gb_LinkTarget_set_include
,$(1),\
2897 ifneq ($(SYSTEM_HSQLDB
),)
2899 define gb_LinkTarget__use_hsqldb
2901 $(call gb_LinkTarget_add_defs
,$(1),\
2903 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2908 else # !SYSTEM_HSQLDB
2910 define gb_LinkTarget__use_hsqldb
2914 endif # SYSTEM_HSQLDB
2916 ifeq ($(ENABLE_LDAP
),TRUE
)
2917 ifneq ($(SYSTEM_OPENLDAP
),)
2919 define gb_LinkTarget__use_openldap
2921 $(call gb_LinkTarget_add_libs
,$(1),\
2928 gb_ExternalProject__use_openldap
:=
2930 else # !SYSTEM_OPENLDAP
2932 define gb_LinkTarget__use_openldap
2933 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2934 $(call gb_LinkTarget_set_include
,$(1),\
2935 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2938 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2939 $(call gb_LinkTarget_add_libs
,$(1), \
2940 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2941 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2947 define gb_ExternalProject__use_openldap
2948 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2952 endif # SYSTEM_OPENLDAP
2954 ifneq ($(SYSTEM_LIBTOMMATH
),)
2956 define gb_LinkTarget__use_libtommath
2957 $(call gb_LinkTarget_set_include
,$(1),\
2958 $(LIBTOMMATH_CFLAGS
) \
2961 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2965 else # !SYSTEM_LIBTOMMATH
2966 define gb_LinkTarget__use_libtommath
2967 $(call gb_LinkTarget_set_include
,$(1),\
2968 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2971 $(call gb_LinkTarget_add_libs
,$(1),\
2972 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2974 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2978 endif # SYSTEM_LIBTOMMATH
2980 define gb_ExternalProject__use_libtommath
2981 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2985 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2987 ifneq ($(SYSTEM_FIREBIRD
),)
2989 define gb_LinkTarget__use_libfbembed
2990 $(call gb_LinkTarget_set_include
,$(1),\
2991 $(FIREBIRD_CFLAGS
) \
2994 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2998 else # !SYSTEM_FIREBIRD
3000 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
3004 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
3005 #$(call gb_LinkTarget__use_libtommath,$(1))
3007 define gb_LinkTarget__use_libfbembed
3008 $(call gb_LinkTarget_use_package
,$(1),firebird
)
3009 $(call gb_LinkTarget_set_include
,$(1),\
3010 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
3014 $(call gb_LinkTarget_add_libs
,$(1),\
3015 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
3018 $(call gb_LinkTarget_add_libs
,$(1),\
3019 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3028 endif # SYSTEM_FIREBIRD
3030 else # !ENABLE_FIREBIRD_SDBC
3032 gb_LinkTarget__use_firebird
:=
3033 # gb_LinkTarget__use_atomic_ops :=
3034 # gb_LinkTarget__use_libtommath :=
3036 endif # ENABLE_FIREBIRD_SDBC
3039 ifneq ($(SYSTEM_POSTGRESQL
),)
3041 define gb_LinkTarget__use_postgresql
3043 $(call gb_LinkTarget_set_include
,$(1),\
3048 $(call gb_LinkTarget_add_libs
,$(1),\
3052 $(call gb_LinkTarget_add_ldflags
,$(1),\
3058 else # !SYSTEM_POSTGRESQL
3061 $(if
$(MPL_SUBSET
),,\
3062 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3067 define gb_LinkTarget__use_postgresql
3069 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3071 $(call gb_LinkTarget_set_include
,$(1),\
3072 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3073 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3079 $(call gb_LinkTarget_add_libs
,$(1),\
3080 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3085 $(call gb_LinkTarget_add_libs
,$(1),\
3086 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3087 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3088 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3089 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3094 endef # gb_LinkTarget__use_postgresql
3096 endif # !SYSTEM_POSTGRESQL
3098 ifneq (,$(filter TRUE
,$(ENABLE_KF5
) $(ENABLE_GTK3_KDE5
)))
3100 define gb_LinkTarget__use_kf5
3101 $(call gb_LinkTarget_set_include
,$(1),\
3102 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3106 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3107 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3110 $(call gb_LinkTarget_add_libs
,$(1),\
3118 define gb_LinkTarget__use_kf5
3124 ifneq (,$(filter TRUE
,$(ENABLE_KF6
)))
3126 define gb_LinkTarget__use_kf6
3127 $(call gb_LinkTarget_set_include
,$(1),\
3128 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF6_CFLAGS
)))) \
3132 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3133 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF6_CFLAGS
))) \
3136 $(call gb_LinkTarget_add_libs
,$(1),\
3144 define gb_LinkTarget__use_kf6
3150 ifneq (,$(filter TRUE
,$(ENABLE_QT5
) $(ENABLE_GTK3_KDE5
)))
3152 define gb_LinkTarget__use_qt5
3153 $(call gb_LinkTarget_set_include
,$(1),\
3154 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3158 $(call gb_LinkTarget_add_defs
,$(1),\
3159 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3162 $(call gb_LinkTarget_add_libs
,$(1),\
3170 define gb_LinkTarget__use_qt5
3176 ifeq ($(ENABLE_QT6
),TRUE
)
3178 define gb_LinkTarget__use_qt6
3179 $(call gb_LinkTarget_set_include
,$(1),\
3180 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3184 $(call gb_LinkTarget_add_defs
,$(1),\
3185 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3188 $(call gb_LinkTarget_add_libs
,$(1),\
3196 define gb_LinkTarget__use_qt6
3204 # extra python_headers external because pyuno wrapper must not link python
3205 ifneq ($(SYSTEM_PYTHON
),)
3207 define gb_LinkTarget__use_python_headers
3208 $(call gb_LinkTarget_add_defs
,$(1),\
3209 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3212 $(call gb_LinkTarget_set_include
,$(1),\
3213 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3219 define gb_LinkTarget__use_python
3220 $(call gb_LinkTarget__use_python_headers
,$(1))
3222 $(call gb_LinkTarget_add_libs
,$(1),\
3228 else # !SYSTEM_PYTHON
3230 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3232 $(if
$(filter WNT
,$(OS
)),libffi
) \
3235 define gb_LinkTarget__use_python_headers
3236 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3237 $(call gb_LinkTarget_set_include
,$(1),\
3238 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3239 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3240 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3246 define gb_LinkTarget__use_python
3247 $(call gb_LinkTarget__use_python_headers
,$(1))
3249 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3251 $(call gb_LinkTarget_use_package
,$(1),python3
)
3255 ifeq ($(CPUNAME
),X86_64
)
3256 python_arch_subdir
=amd64
/
3257 else ifeq ($(CPUNAME
),AARCH64
)
3258 python_arch_subdir
=arm64
/
3260 python_arch_subdir
=win32
/
3262 $(call gb_LinkTarget_add_libs
,$(1),\
3263 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3265 else ifeq ($(OS
),MACOSX
)
3266 $(call gb_LinkTarget_add_libs
,$(1),\
3267 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3270 $(call gb_LinkTarget_add_libs
,$(1),\
3271 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3272 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3278 # this is only used by python currently
3279 define gb_ExternalProject__use_libffi
3280 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3284 endif # SYSTEM_PYTHON
3287 ifneq ($(SYSTEM_LIBORCUS
),)
3289 define gb_LinkTarget__use_orcus
3290 $(call gb_LinkTarget_set_include
,$(1),\
3294 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3297 define gb_LinkTarget__use_orcus-parser
3301 else # !SYSTEM_LIBORCUS
3305 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3310 define gb_LinkTarget__use_orcus
3311 $(call gb_LinkTarget_set_include
,$(1),\
3312 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3316 $(call gb_LinkTarget_use_libraries
,$(1),\
3322 define gb_LinkTarget__use_orcus-parser
3323 $(call gb_LinkTarget_set_include
,$(1),\
3324 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3328 $(call gb_LinkTarget_use_libraries
,$(1),\
3336 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3340 define gb_LinkTarget__use_orcus
3341 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3343 $(call gb_LinkTarget_set_include
,$(1),\
3344 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3348 $(call gb_LinkTarget_add_libs
,$(1),\
3349 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.18 \
3352 $(if
$(SYSTEM_BOOST
), \
3353 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3354 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3359 define gb_LinkTarget__use_orcus-parser
3360 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3362 $(call gb_LinkTarget_set_include
,$(1),\
3363 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3367 $(call gb_LinkTarget_add_libs
,$(1),\
3368 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.18 \
3375 endif # SYSTEM_LIBORCUS
3377 ifeq ($(ENABLE_EOT
),TRUE
)
3379 ifneq ($(SYSTEM_LIBEOT
),)
3381 define gb_LinkTarget__use_libeot
3382 $(call gb_LinkTarget_set_include
,$(1),\
3386 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3390 gb_ExternalProject__use_libeot
:=
3392 else # !SYSTEM_LIBEOT
3394 define gb_LinkTarget__use_libeot
3395 $(call gb_LinkTarget_set_include
,$(1),\
3396 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3399 $(call gb_LinkTarget_add_libs
,$(1),\
3400 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3402 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3406 define gb_ExternalProject__use_libeot
3407 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3411 endif # SYSTEM_LIBEOT
3415 gb_LinkTarget__use_libeot
:=
3416 gb_ExternalProject__use_libeot
:=
3422 ifeq ($(USING_X11
), TRUE
)
3424 define gb_LinkTarget__use_Xrandr
3425 $(call gb_LinkTarget_set_include
,$(1),\
3430 $(call gb_LinkTarget_add_libs
,$(1),\
3435 define gb_LinkTarget__use_Xrender
3436 $(call gb_LinkTarget_set_include
,$(1),\
3441 $(call gb_LinkTarget_add_libs
,$(1),\
3449 gb_ExternalProject__use_nss3
:=
3452 ifneq ($(SYSTEM_NSS
),)
3454 define gb_LinkTarget__use_nss3
3455 $(call gb_LinkTarget_add_defs
,$(1),\
3459 $(call gb_LinkTarget_set_include
,$(1),\
3464 $(call gb_LinkTarget_add_libs
,$(1),\
3470 define gb_LinkTarget__use_nssutil3
3471 $(call gb_LinkTarget__use_nss3
,$(1))
3475 define gb_LinkTarget__use_plc4
3476 $(call gb_LinkTarget__use_nss3
,$(1))
3480 define gb_LinkTarget__use_ssl3
3481 $(call gb_LinkTarget__use_nss3
,$(1))
3487 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3491 define gb_LinkTarget__use_nss3
3492 $(call gb_LinkTarget_use_package
,$(1),nss
)
3493 $(call gb_LinkTarget_set_include
,$(1),\
3495 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3496 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3500 $(call gb_LinkTarget_add_libs
,$(1),\
3501 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3502 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3503 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3506 $(call gb_LinkTarget_add_libs
,$(1),\
3507 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3516 define gb_LinkTarget__use_plc4
3517 $(call gb_LinkTarget_use_package
,$(1),nss
)
3519 $(call gb_LinkTarget_add_libs
,$(1),\
3520 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3523 $(call gb_LinkTarget_add_libs
,$(1),\
3524 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3530 define gb_LinkTarget__use_ssl3
3531 $(call gb_LinkTarget_use_package
,$(1),nss
)
3533 $(call gb_LinkTarget_add_libs
,$(1),\
3534 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3537 $(call gb_LinkTarget_add_libs
,$(1),\
3538 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3544 define gb_LinkTarget__use_nssutil3
3545 $(call gb_LinkTarget_use_package
,$(1),nss
)
3546 $(call gb_LinkTarget_set_include
,$(1),\
3548 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3549 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3553 $(call gb_LinkTarget_add_libs
,$(1),\
3554 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3557 $(call gb_LinkTarget_add_libs
,$(1),\
3558 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3565 define gb_ExternalProject__use_nss3
3566 $(call gb_ExternalProject_use_package
,$(1),nss
)
3572 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3574 define gb_LinkTarget__use_breakpad
3575 $(call gb_LinkTarget_set_include
,$(1),\
3576 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3581 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3585 $(call gb_LinkTarget_add_libs
,$(1),\
3586 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3590 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3594 endif # ENABLE_BREAKPAD
3596 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3598 ifneq ($(SYSTEM_GPGMEPP
),)
3600 gb_ExternalProject__use_gpgmepp
:=
3601 gb_ExternalProject__use_libassuan
:=
3602 gb_ExternalProject__use_libgpg-error
:=
3604 define gb_LinkTarget__use_gpgmepp
3605 $(call gb_LinkTarget_set_include
,$(1),\
3607 $$(GPGMEPP_CFLAGS
) \
3610 $(call gb_LinkTarget_add_libs
,$(1),\
3616 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3618 define gb_ExternalProject__use_gpgmepp
3619 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3622 define gb_ExternalProject__use_libassuan
3623 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3626 define gb_ExternalProject__use_libgpg-error
3627 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3631 ifneq ($(filter WNT
,$(OS
)),)
3633 define gb_LinkTarget__use_libgpg-error
3634 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3636 $(call gb_LinkTarget_set_include
,$(1),\
3637 $(GPG_ERROR_CFLAGS
) \
3640 $(call gb_LinkTarget_add_libs
,$(1),\
3641 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3646 define gb_LinkTarget__use_libassuan
3647 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3649 $(call gb_LinkTarget_set_include
,$(1),\
3650 $(LIBASSUAN_CFLAGS
) \
3653 $(call gb_LinkTarget_add_libs
,$(1),\
3654 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3659 define gb_LinkTarget__use_gpgmepp
3660 $(call gb_LinkTarget_set_include
,$(1),\
3661 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3662 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3663 $$(GPG_ERROR_CFLAGS
) \
3666 $(call gb_LinkTarget_use_libraries
,$(1),\
3672 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3678 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3684 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3686 define gb_LinkTarget__use_gpgmepp
3687 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3689 $(call gb_LinkTarget_set_include
,$(1),\
3690 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3691 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3692 $$(GPG_ERROR_CFLAGS
) \
3695 $(call gb_LinkTarget_add_libs
,$(1),\
3696 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3697 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3698 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3699 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3704 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3714 else # !ENABLE_GPGMEPP
3716 gb_ExternalProject__use_gpgmepp
:=
3717 gb_ExternalProject__use_libassuan
:=
3718 gb_ExternalProject__use_libgpg-error
:=
3720 gb_LinkTarget__use_gpgmepp
:=
3721 gb_LinkTarget__use_libassuan
:=
3722 gb_LinkTarget__use_libgpg-error
:=
3724 endif # ENABLE_GPGMEPP
3726 define gb_LinkTarget__use_dconf
3727 $(call gb_LinkTarget_set_include
,$(1),\
3732 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3735 ### Jars ############################################################
3737 ifneq ($(SYSTEM_HSQLDB
),)
3739 define gb_Jar__use_hsqldb
3740 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3742 define gb_JunitTest__use_hsqldb
3743 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3746 else # !SYSTEM_HSQLDB
3748 ifeq ($(ENABLE_JAVA
),TRUE
)
3749 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3754 define gb_Jar__use_hsqldb
3755 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3757 define gb_JunitTest__use_hsqldb
3758 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3761 endif # SYSTEM_HSQLDB
3764 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3766 ifneq ($(SYSTEM_BSH
),)
3768 define gb_Jar__use_bsh
3769 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3774 ifeq ($(ENABLE_JAVA
),TRUE
)
3775 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3780 define gb_Jar__use_bsh
3781 $(call gb_Jar_use_jar
,$(1),bsh
)
3788 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3790 ifneq ($(SYSTEM_RHINO
),)
3792 define gb_Jar__use_rhino
3793 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3796 else # !SYSTEM_RHINO
3798 ifeq ($(ENABLE_JAVA
),TRUE
)
3799 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3804 define gb_Jar__use_rhino
3805 $(call gb_Jar_use_jar
,$(1),js
)
3808 endif # SYSTEM_RHINO
3812 ifneq ($(SYSTEM_JFREEREPORT
),)
3814 define gb_Jar__use_flow-engine
3815 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3818 define gb_Jar__use_flute
3819 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3822 define gb_Jar__use_libbase
3823 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3826 define gb_Jar__use_libfonts
3827 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3830 define gb_Jar__use_libformula
3831 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3834 define gb_Jar__use_liblayout
3835 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3838 define gb_Jar__use_libloader
3839 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3842 define gb_Jar__use_librepository
3843 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3846 define gb_Jar__use_libserializer
3847 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3850 define gb_Jar__use_libxml
3851 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3854 define gb_Jar__use_sac
3855 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3858 else # !SYSTEM_JFREEREPORT
3860 ifeq ($(ENABLE_JAVA
),TRUE
)
3861 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3869 librepository-1.1
.6 \
3870 libserializer-1.1
.6 \
3876 define gb_Jar__use_flow-engine
3877 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3880 define gb_Jar__use_flute
3881 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3884 define gb_Jar__use_libbase
3885 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3888 define gb_Jar__use_libfonts
3889 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3892 define gb_Jar__use_libformula
3893 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3896 define gb_Jar__use_liblayout
3897 $(call gb_Jar_use_jar
,$(1),liblayout
)
3900 define gb_Jar__use_libloader
3901 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3904 define gb_Jar__use_librepository
3905 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3908 define gb_Jar__use_libserializer
3909 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3912 define gb_Jar__use_libxml
3913 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3916 define gb_Jar__use_sac
3917 $(call gb_Jar_use_jar
,$(1),sac
)
3920 endif # SYSTEM_JFREEREPORT
3922 # no known distro packaged Java-Websocket at present
3924 ifeq ($(ENABLE_JAVA
),TRUE
)
3925 $(eval
$(call gb_Helper_register_jars_for_install
,URE
,ure
, \
3930 define gb_Jar__use_java_websocket
3931 $(call gb_Jar_use_jar
,$(1),java_websocket
)
3936 define gb_Executable__register_bestreversemap
3937 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3938 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
3942 # TODO depending on the whole URE might be overkill, but I do not have a
3943 # Windows machine to debug it...
3944 define gb_Executable__register_climaker
3945 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3946 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3947 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3948 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3949 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3953 define gb_Executable__register_cppumaker
3954 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3955 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
3959 # This is used to determine what we need for 'build' platform.
3960 define gb_Executable__register_gengal
3961 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3962 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3963 $(call gb_Library_get_target_for_build
,localedata_en
) \
3964 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3965 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3966 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3967 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3968 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3969 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3970 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3971 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3972 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3973 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3974 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3978 ifeq ($(SYSTEM_ICU
),)
3980 define gb_Executable__register_gendict
3981 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3982 $(call gb_Package_get_target_for_build
,icu
) \
3983 $(call gb_Package_get_target_for_build
,icu_ure
) \
3989 define gb_Executable__register_localize
3990 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3991 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3992 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3997 # FIXME ure/services.rdb needs cleanup
3998 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3999 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
4000 define gb_Executable__register_saxparser
4001 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
4002 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
4003 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
4004 $(call gb_Rdb_get_target_for_build
,saxparser
) \
4005 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
4006 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4010 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
4011 # required due to the settings for URE_SERVICES and URE_TYPES in
4012 # cppuhelper/source/unorc
4013 define gb_Executable__register_uno
4014 $(call gb_Executable_add_runtime_dependencies
,uno
,\
4015 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
4016 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
4017 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4022 # External executables
4024 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
4026 gb_ExternalExecutable__register_xmllint
:=
4028 else # ! SYSTEM_LIBXML_FOR_BUILD
4030 define gb_ExternalExecutable__register_xmllint
4031 $(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
)
4032 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
4033 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4034 $(call gb_Package_get_target
,libxml2
) \
4039 endif # SYSTEM_LIBXML_FOR_BUILD
4041 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
4043 gb_ExternalExecutable__register_xsltproc
:=
4045 else # ! SYSTEM_LIBXSLT_FOR_BUILD
4047 define gb_ExternalExecutable__register_xsltproc
4048 $(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
)
4049 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
4050 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4051 $(call gb_Package_get_target
,libxml2
) \
4052 $(call gb_Package_get_target
,libxslt
) \
4057 endif # SYSTEM_LIBXSLT_FOR_BUILD
4059 ifeq (,$(PYTHON_FOR_BUILD
))
4061 define gb_ExternalExecutable__register_python
4064 # use set_external, to avoid having the command added as prerequisite for the
4065 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4066 # matching rule to build that specific file)
4067 $(call gb_ExternalExecutable_set_external
,python
,$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
/LibreOfficePython.framework
/Versions
/$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)/bin
/python
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
))
4068 # the Zip ensures that internal python has been built (cannot use the Package
4069 # target, as that is not used on Mac)
4070 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4074 $(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
))
4075 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4076 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4084 define gb_ExternalExecutable__register_python
4085 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4089 endif # PYTHON_FOR_BUILD
4091 ifneq ($(SYSTEM_GENBRK
),)
4093 define gb_ExternalExecutable__register_genbrk
4094 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4098 else # ! SYSTEM_GENBRK
4100 define gb_ExternalExecutable__register_genbrk
4101 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4102 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4103 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4104 $(call gb_Package_get_target_for_build
,icu
) \
4105 $(call gb_Package_get_target_for_build
,icu_ure
) \
4112 ifneq ($(SYSTEM_GENCCODE
),)
4114 define gb_ExternalExecutable__register_genccode
4115 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4119 else # ! SYSTEM_GENCCODE
4121 define gb_ExternalExecutable__register_genccode
4122 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4123 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4124 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4125 $(call gb_Package_get_target_for_build
,icu
) \
4126 $(call gb_Package_get_target_for_build
,icu_ure
) \
4133 ifneq ($(SYSTEM_GENCMN
),)
4135 define gb_ExternalExecutable__register_gencmn
4136 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4140 else # ! SYSTEM_GENCMN
4142 define gb_ExternalExecutable__register_gencmn
4143 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4144 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4145 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4146 $(call gb_Package_get_target_for_build
,icu
) \
4147 $(call gb_Package_get_target_for_build
,icu_ure
) \
4154 ifneq ($(SYSTEM_BZIP2
),)
4156 define gb_LinkTarget__use_bzip2
4157 $(call gb_LinkTarget_set_include
,$(1),\
4161 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4165 gb_ExternalProject__use_bzip2
:=
4167 else # !SYSTEM_BZIP2
4169 define gb_LinkTarget__use_bzip2
4170 $(call gb_LinkTarget_set_include
,$(1),\
4171 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4176 $(call gb_LinkTarget_add_libs
,$(1),\
4177 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4180 $(call gb_LinkTarget_add_libs
,$(1),\
4181 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4185 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4188 define gb_ExternalProject__use_bzip2
4189 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4192 endif # SYSTEM_BZIP2
4194 define gb_LinkTarget__use_clew
4195 $(call gb_LinkTarget_set_include
,$(1), \
4196 -I
$(SRCDIR
)/external
/clew
/source
/include \
4199 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4202 ifneq ($(ENABLE_PDFIUM
),)
4203 define gb_LinkTarget__use_pdfium
4204 $(call gb_LinkTarget_set_include
,$(1),\
4205 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4209 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4211 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4216 ifneq ($(SYSTEM_DRAGONBOX
),)
4218 define gb_LinkTarget__use_dragonbox
4219 $(call gb_LinkTarget_set_include
,$(1),\
4221 $$(DRAGONBOX_CFLAGS
) \
4227 define gb_LinkTarget__use_dragonbox
4228 $(call gb_LinkTarget_use_unpacked
,$(1),dragonbox
)
4229 $(call gb_LinkTarget_set_include
,$(1),\
4230 -I
$(call gb_UnpackedTarball_get_dir
,dragonbox
/include/)\
4237 define gb_LinkTarget__use_dtoa
4238 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4239 $(call gb_LinkTarget_set_include
,$(1),\
4240 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4243 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4249 define gb_ExternalProject__use_dtoa
4250 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4254 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4255 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4258 ifneq ($(SYSTEM_BOX2D
),)
4260 define gb_LinkTarget__use_box2d
4261 $(call gb_LinkTarget_set_include
,$(1),\
4266 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4270 gb_ExternalProject__use_box2d
:=
4272 else # !SYSTEM_BOX2D
4274 define gb_LinkTarget__use_box2d
4275 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4276 $(call gb_LinkTarget_set_include
,$(1),\
4277 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/include/)\
4280 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4286 define gb_ExternalProject__use_box2d
4287 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4291 endif # SYSTEM_BOX2D
4293 ifneq ($(SYSTEM_ZXCVBN
),)
4294 define gb_LinkTarget__use_zxcvbn-c
4295 $(call gb_LinkTarget_set_include
,$(1),\
4299 $(call gb_LinkTarget_add_libs
,$(1),-lzxcvbn
)
4304 define gb_LinkTarget__use_zxcvbn-c
4305 $(call gb_LinkTarget_use_unpacked
,$(1),zxcvbn-c
)
4306 $(call gb_LinkTarget_set_include
,$(1),\
4307 -I
$(call gb_UnpackedTarball_get_dir
,zxcvbn-c
)\
4310 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4317 ifneq ($(SYSTEM_ZXING
),)
4319 define gb_LinkTarget__use_zxing
4320 $(call gb_LinkTarget_set_include
,$(1),\
4325 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4329 gb_ExternalProject__use_zxing
:=
4331 else # !SYSTEM_ZXING
4333 ifneq ($(ENABLE_ZXING
),)
4335 define gb_LinkTarget__use_zxing
4336 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4337 $(call gb_LinkTarget_set_include
,$(1),\
4338 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4341 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4347 define gb_ExternalProject__use_zxing
4348 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4352 else # !ENABLE_ZXING
4354 define gb_LinkTarget__use_zxing
4357 endif # ENABLE_ZXING
4359 endif # SYSTEM_ZXING
4362 ifneq ($(SYSTEM_FROZEN
),)
4363 define gb_LinkTarget__use_frozen
4364 $(call gb_LinkTarget_set_include
,$(1),\
4370 define gb_LinkTarget__use_frozen
4371 $(call gb_LinkTarget_use_unpacked
,$(1),frozen
)
4372 $(call gb_LinkTarget_set_include
,$(1),\
4373 -I
$(call gb_UnpackedTarball_get_dir
,frozen
/include/)\
4379 # vim: set noet sw=4 ts=4: