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),\
318 define gb_ExternalProject__use_mariadb-connector-c
319 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
323 endif # SYSTEM_MARIADB_CONNECTOR_C
326 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
328 define gb_LinkTarget__use_mysql
330 $(call gb_LinkTarget_add_defs
,$(1),\
334 $(call gb_LinkTarget_add_libs
,$(1),\
338 $(call gb_LinkTarget_set_include
,$(1),\
346 define gb_LinkTarget__use_mysql
348 $(call gb_LinkTarget_set_include
,$(1),\
356 ifneq ($(SYSTEM_ZLIB
),)
358 define gb_LinkTarget__use_zlib
359 $(call gb_LinkTarget_add_defs
,$(1),\
363 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
368 define gb_LinkTarget__use_zlib_x64
372 gb_ExternalProject__use_zlib
:=
376 define gb_LinkTarget__use_zlib_multiarch
377 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
379 $(call gb_LinkTarget_add_defs
,$(1), \
383 $(call gb_LinkTarget_set_include
,$(1),\
388 $(call gb_LinkTarget_use_static_libraries
,$(1),\
394 define gb_LinkTarget__use_zlib
395 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
399 define gb_LinkTarget__use_zlib_x64
400 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
404 define gb_ExternalProject__use_zlib
405 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
412 ifneq ($(SYSTEM_LIBJPEG
),)
414 define gb_LinkTarget__use_libjpeg
415 $(call gb_LinkTarget_set_include
,$(1),\
419 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
420 $(call gb_LinkTarget_set_ldflags
,$(1),\
421 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
426 gb_ExternalProject__use_libjpeg
:=
430 define gb_LinkTarget__use_libjpeg
431 $(call gb_LinkTarget_set_include
,$(1),\
432 -I
$(call gb_UnpackedTarball_get_dir
,libjpeg-turbo
) \
435 $(call gb_LinkTarget_use_static_libraries
,$(1),libjpeg-turbo
)
439 define gb_ExternalProject__use_libjpeg
440 $(call gb_ExternalProject_use_static_libraries
,$(1),libjpeg-turbo
)
444 endif # SYSTEM_LIBJPEG
446 ifneq ($(SYSTEM_MYTHES
),)
448 define gb_LinkTarget__use_mythes
449 $(call gb_LinkTarget_set_include
,$(1),\
453 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
457 else # !SYSTEM_MYTHES
459 define gb_LinkTarget__use_mythes
460 $(call gb_LinkTarget_set_include
,$(1),\
461 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
466 $(call gb_LinkTarget_use_static_libraries
,$(1),\
470 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
471 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
476 endif # SYSTEM_MYTHES
479 ifneq ($(SYSTEM_EXPAT
),)
481 define gb_LinkTarget__use_expat_impl
482 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
484 $(call gb_LinkTarget_add_defs
,$(1),\
488 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
492 gb_ExternalProject__use_expat
:=
496 define gb_LinkTarget__use_expat_impl
497 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
499 $(call gb_LinkTarget_set_include
,$(1),\
500 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
504 $(call gb_LinkTarget_use_static_libraries
,$(1),\
510 define gb_ExternalProject__use_expat
511 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
517 define gb_LinkTarget__use_expat
518 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
522 define gb_LinkTarget__use_expat_x64
523 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
527 ifneq ($(SYSTEM_HYPH
),)
529 define gb_LinkTarget__use_hyphen
530 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
536 define gb_LinkTarget__use_hyphen
537 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
538 $(call gb_LinkTarget_set_include
,$(1),\
539 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
544 $(call gb_LinkTarget_use_static_libraries
,$(1),\
548 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
549 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
556 ifneq ($(SYSTEM_HUNSPELL
),)
558 define gb_LinkTarget__use_hunspell
559 $(call gb_LinkTarget_set_include
,$(1),\
563 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
567 gb_ExternalProject__use_hunspell
:=
569 else # !SYSTEM_HUNSPELL
570 ifneq ($(ENABLE_WASM_STRIP_HUNSPELL
),TRUE
)
572 define gb_LinkTarget__use_hunspell
573 $(call gb_LinkTarget_add_defs
,$(1),\
576 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
577 $(call gb_LinkTarget_set_include
,$(1),\
578 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
583 $(call gb_LinkTarget_use_static_libraries
,$(1),\
587 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
588 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
593 define gb_ExternalProject__use_hunspell
594 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
598 endif # ENABLE_WASM_STRIP_HUNSPELL
599 endif # SYSTEM_HUNSPELL
602 ifneq ($(SYSTEM_BOOST
),)
604 define gb_LinkTarget__use_boost_lib
605 $(call gb_LinkTarget_set_include
,$(1),\
610 $(call gb_LinkTarget_add_ldflags
,$(1),\
614 $(call gb_LinkTarget_add_libs
,$(1),$(2))
618 define gb_LinkTarget__use_boost_locale
619 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
623 define gb_LinkTarget__use_boost_date_time
624 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
628 define gb_LinkTarget__use_boost_filesystem
629 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
633 gb_ExternalProject__use_boost_filesystem
:=
635 define gb_LinkTarget__use_boost_iostreams
636 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
640 gb_ExternalProject__use_boost_iostreams
:=
642 define gb_LinkTarget__use_boost_system
643 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
647 gb_ExternalProject__use_boost_system
:=
649 define gb_LinkTarget__use_boost_headers
650 $(call gb_LinkTarget_set_include
,$(1),\
657 gb_ExternalProject__use_boost_headers
:=
661 define gb_LinkTarget__use_boost_lib
662 $(call gb_LinkTarget_add_defs
,$(1),\
666 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
670 define gb_LinkTarget__use_boost_locale
671 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
672 $(call gb_LinkTarget_add_libs
,$(1),\
673 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
678 define gb_LinkTarget__use_boost_date_time
679 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
683 define gb_LinkTarget__use_boost_filesystem
684 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
688 define gb_ExternalProject__use_boost_filesystem
689 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
692 define gb_LinkTarget__use_boost_iostreams
693 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
697 define gb_ExternalProject__use_boost_iostreams
698 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
701 define gb_LinkTarget__use_boost_system
702 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
706 define gb_ExternalProject__use_boost_system
707 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
710 define gb_LinkTarget__use_boost_headers
711 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
712 $(call gb_LinkTarget_set_include
,$(1),\
719 define gb_ExternalProject__use_boost_headers
720 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
727 ifneq ($(SYSTEM_LIBCMIS
),)
729 define gb_LinkTarget__use_libcmis
730 $(call gb_LinkTarget_set_include
,$(1),\
734 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
738 else # !SYSTEM_LIBCMIS
740 define gb_LinkTarget__use_libcmis
741 $(call gb_LinkTarget_set_include
,$(1),\
742 -I
$(call gb_UnpackedTarball_get_dir
,libcmis
)/inc \
745 $(call gb_LinkTarget_use_static_libraries
,$(1),\
751 endif # SYSTEM_LIBCMIS
753 ifeq ($(ENABLE_JAVA
),TRUE
)
755 define gb_LinkTarget__use_jawt
756 $(call gb_LinkTarget_add_libs
,$(1),\
764 gb_LinkTarget__use_jawt
:=
768 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
770 define gb_LinkTarget__use_libatomic_ops
771 $(call gb_LinkTarget_set_include
,$(1),\
773 $(LIBATOMIC_OPS_CFLAGS
) \
775 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
778 gb_ExternalProject__use_libatomic_ops
:=
780 else # !SYSTEM_LIBATOMIC_OPS
782 define gb_LinkTarget__use_libatomic_ops
783 $(call gb_LinkTarget_set_include
,$(1),\
784 $(LIBATOMIC_OPS_CFLAGS
) \
786 $(LIBATOMIC_OPS_CFLAGS
) \
788 $(call gb_LinkTarget_use_external_project
,$(1),\
792 $(call gb_LinkTarget_add_libs
,$(1),\
793 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
798 define gb_ExternalProject__use_libatomic_ops
799 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
803 endif # SYSTEM_LIBATOMIC_OPS
806 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
808 define gb_LinkTarget__use_libexttextcat
809 $(call gb_LinkTarget_set_include
,$(1),\
811 $(LIBEXTTEXTCAT_CFLAGS
) \
813 $(call gb_LinkTarget_add_defs
,$(1),\
814 -DSYSTEM_LIBEXTTEXTCAT \
816 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
820 else # !SYSTEM_LIBEXTTEXTCAT
822 define gb_LinkTarget__use_libexttextcat
823 $(call gb_LinkTarget_set_include
,$(1),\
824 -I
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
829 $(call gb_LinkTarget_use_static_libraries
,$(1),\
833 $(call gb_LinkTarget_add_libs
,$(1),\
834 $(call gb_UnpackedTarball_get_dir
,libexttextcat
)/src
/.libs
/libexttextcat-2.0.a\
836 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
842 endif # SYSTEM_LIBEXTTEXTCAT
845 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
847 define gb_LinkTarget__use_libnumbertext
848 $(call gb_LinkTarget_set_include
,$(1),\
850 $(LIBNUMBERTEXT_CFLAGS
) \
852 $(call gb_LinkTarget_add_defs
,$(1),\
853 -DSYSTEM_LIBNUMBERTEXT \
855 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
859 else # !SYSTEM_LIBNUMBERTEXT
861 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
862 libnumbertext_numbertext \
865 define gb_LinkTarget__use_libnumbertext
866 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
867 $(call gb_LinkTarget_set_include
,$(1),\
868 -I
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
873 $(call gb_LinkTarget_use_static_libraries
,$(1),\
878 $(call gb_LinkTarget_add_libs
,$(1),\
879 $(call gb_UnpackedTarball_get_dir
,libnumbertext
)/src
/.libs
/libnumbertext-1.0.a\
881 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
887 endif # SYSTEM_LIBNUMBERTEXT
890 ifneq ($(SYSTEM_LIBXML
),)
892 define gb_LinkTarget__use_libxml2
893 $(call gb_LinkTarget_add_defs
,$(1),\
896 $(call gb_LinkTarget_set_include
,$(1),\
900 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
903 gb_ExternalProject__use_libxml2
:=
905 else # !SYSTEM_LIBXML
907 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
911 define gb_LinkTarget__use_libxml2
912 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
913 $(call gb_LinkTarget_set_include
,$(1),\
918 $(call gb_LinkTarget_add_libs
,$(1),\
923 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
927 define gb_ExternalProject__use_libxml2
928 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
931 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
936 endif # SYSTEM_LIBXML
939 ifneq ($(SYSTEM_LIBXSLT
),)
941 define gb_LinkTarget__use_libxslt
942 $(call gb_LinkTarget_set_include
,$(1),\
946 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
950 define gb_LinkTarget__use_libexslt
951 $(call gb_LinkTarget_set_include
,$(1),\
956 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
960 else # !SYSTEM_LIBXSLT
962 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
966 define gb_LinkTarget__use_libxslt
967 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
968 $(call gb_LinkTarget_set_include
,$(1),\
970 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
974 $(call gb_LinkTarget_add_libs
,$(1),\
975 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
978 $(call gb_LinkTarget_add_libs
,$(1),\
979 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libxslt
/.libs
-lxslt \
985 define gb_LinkTarget__use_libexslt
986 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
987 $(call gb_LinkTarget_set_include
,$(1),\
989 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
993 $(call gb_LinkTarget_add_libs
,$(1),\
994 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
997 $(call gb_LinkTarget_add_libs
,$(1),\
998 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libexslt
/.libs
-lexslt \
1004 endif # SYSTEM_LIBXSLT
1007 ifneq ($(SYSTEM_XMLSEC
),)
1009 define gb_LinkTarget__use_xmlsec
1010 $(call gb_LinkTarget_add_defs
,$(1),\
1013 $(call gb_LinkTarget_set_include
,$(1),\
1017 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
1021 gb_ExternalProject__use_xmlsec
:=
1023 else # !SYSTEM_XMLSEC
1025 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1029 define gb_LinkTarget__use_xmlsec
1033 endif # SYSTEM_XMLSEC
1035 ifneq ($(SYSTEM_LIBLANGTAG
),)
1037 define gb_LinkTarget__use_liblangtag
1038 $(call gb_LinkTarget_set_include
,$(1),\
1040 $(LIBLANGTAG_CFLAGS
) \
1043 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1047 gb_ExternalProject__use_liblangtag
:=
1049 else # !SYSTEM_LIBLANGTAG
1051 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1057 define gb_LinkTarget__use_liblangtag
1058 $(call gb_LinkTarget_set_include
,$(1),\
1059 $(LIBLANGTAG_CFLAGS
) \
1062 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1063 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1069 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1073 define gb_LinkTarget__use_liblangtag
1074 $(call gb_LinkTarget_set_include
,$(1),\
1075 $(LIBLANGTAG_CFLAGS
) \
1078 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1079 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1085 define gb_ExternalProject__use_liblangtag
1086 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1090 endif # SYSTEM_LIBLANGTAG
1093 ifneq ($(SYSTEM_REDLAND
),)
1095 define gb_LinkTarget__use_librdf
1096 $(call gb_LinkTarget_add_defs
,$(1),\
1099 $(call gb_LinkTarget_set_include
,$(1),\
1103 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1107 gb_LinkTarget__use_redland_headers
:=
1109 gb_LinkTarget__use_raptor_headers
:=
1111 gb_LinkTarget__use_rasqal_headers
:=
1113 else # !SYSTEM_REDLAND
1115 define gb_LinkTarget__use_redland_headers
1116 $(call gb_LinkTarget_set_include
,$(1),\
1117 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1123 define gb_LinkTarget__use_raptor_headers
1124 $(call gb_LinkTarget_set_include
,$(1),\
1125 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1131 define gb_LinkTarget__use_rasqal_headers
1132 $(call gb_LinkTarget_set_include
,$(1),\
1133 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1139 ifneq ($(OS
),ANDROID
)
1142 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1148 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1155 define gb_LinkTarget__use_librdf
1157 $(call gb_LinkTarget_use_libraries
,$(1),\
1162 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1164 $(call gb_LinkTarget_add_libs
,$(1),\
1165 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1166 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1167 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1175 define gb_LinkTarget__use_librdf
1176 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1182 endif # SYSTEM_REDLAND
1184 ifneq ($(SYSTEM_CAIRO
),)
1186 define gb_LinkTarget__use_cairo
1187 $(call gb_LinkTarget_set_include
,$(1),\
1191 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1192 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1196 else # !SYSTEM_CAIRO
1198 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1200 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1205 define gb_LinkTarget__use_cairo
1206 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1207 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1208 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1209 $(call gb_LinkTarget_set_include
,$(1),\
1210 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1211 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1212 -I
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman \
1215 $(call gb_LinkTarget_add_libs
,$(1),\
1216 $(if
$(filter EMSCRIPTEN
,$(OS
)), \
1217 $(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
/libcairo.a \
1218 $(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
/libpixman-1.a
, \
1219 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1220 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1
) \
1225 endif # !MACOSX, !WNT
1227 endif # !SYSTEM_CAIRO
1229 ifneq ($(SYSTEM_FREETYPE
),)
1231 define gb_LinkTarget__use_freetype_headers
1232 $(call gb_LinkTarget_set_include
,$(1),\
1234 $(FREETYPE_CFLAGS
) \
1239 gb_ExternalProject__use_freetype
:=
1243 define gb_LinkTarget__use_freetype_headers
1244 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1245 $(call gb_LinkTarget_set_include
,$(1),\
1246 $(FREETYPE_CFLAGS
) \
1252 define gb_ExternalProject__use_freetype
1253 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1257 endif # SYSTEM_FREETYPE
1259 define gb_LinkTarget__use_freetype
1260 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1261 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1265 ifneq ($(SYSTEM_FONTCONFIG
),)
1267 define gb_LinkTarget__use_fontconfig
1268 $(call gb_LinkTarget_set_include
,$(1),\
1270 $(FONTCONFIG_CFLAGS
) \
1273 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1277 ifeq ($(OS
),EMSCRIPTEN
)
1278 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1279 libfontconfig_data \
1283 gb_ExternalProject__use_fontconfig
:=
1285 else # SYSTEM_FONTCONFIG
1287 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1289 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1295 define gb_LinkTarget__use_fontconfig
1297 $(call gb_LinkTarget_use_package
,$(1),fontconfig
)
1299 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1301 $(call gb_LinkTarget_set_include
,$(1),\
1302 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1306 $(call gb_LinkTarget_add_libs
,$(1),\
1307 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1312 define gb_ExternalProject__use_fontconfig
1313 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1317 endif # SYSTEM_FONTCONFIG
1319 ifneq ($(SYSTEM_GRAPHITE
),)
1321 define gb_LinkTarget__use_graphite
1322 $(call gb_LinkTarget_set_include
,$(1),\
1324 $(GRAPHITE_CFLAGS
) \
1326 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1330 gb_ExternalProject__use_graphite
:=
1332 else # !SYSTEM_GRAPHITE
1334 define gb_LinkTarget__use_graphite
1335 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1336 $(call gb_LinkTarget_set_include
,$(1),\
1337 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1340 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1346 define gb_ExternalProject__use_graphite
1347 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1352 endif # SYSTEM_GRAPHITE
1354 ifneq ($(SYSTEM_ICU
),)
1356 gb_LinkTarget__use_icu_headers
:=
1357 gb_ExternalProject__use_icu
:=
1359 define gb_LinkTarget__use_icudata
1360 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1363 define gb_LinkTarget__use_icui18n
1364 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1367 define gb_LinkTarget__use_icuuc
1368 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1374 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1378 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1382 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1388 define gb_LinkTarget__use_icu_headers
1389 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1390 $(call gb_LinkTarget_set_include
,$(1),\
1391 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1392 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1393 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1399 define gb_ExternalProject__use_icu
1400 $(call gb_ExternalProject_use_package
,$(1),icu
)
1404 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1405 define gb_LinkTarget__use_icudata
1406 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1409 $(call gb_LinkTarget_add_libs
,$(1),\
1410 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1413 $(call gb_LinkTarget_add_libs
,$(1),\
1414 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1420 define gb_LinkTarget__use_icui18n
1421 $(call gb_LinkTarget_use_package
,$(1),icu
)
1424 $(call gb_LinkTarget_add_libs
,$(1),\
1425 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1428 $(call gb_LinkTarget_add_libs
,$(1),\
1429 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1435 define gb_LinkTarget__use_icuuc
1436 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1439 $(call gb_LinkTarget_add_libs
,$(1),\
1440 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1443 $(call gb_LinkTarget_add_libs
,$(1),\
1444 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1452 ifneq ($(SYSTEM_HARFBUZZ
),)
1454 define gb_LinkTarget__use_harfbuzz
1455 $(call gb_LinkTarget_set_include
,$(1),\
1457 $(HARFBUZZ_CFLAGS
) \
1459 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1463 gb_ExternalProject__use_harfbuzz
:=
1465 else # SYSTEM_HARFBUZZ != TRUE
1467 define gb_LinkTarget__use_harfbuzz
1468 $(call gb_LinkTarget_set_include
,$(1),\
1469 $(HARFBUZZ_CFLAGS
) \
1472 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1473 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1474 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1478 define gb_ExternalProject__use_harfbuzz
1479 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1483 endif # SYSTEM_HARFBUZZ
1485 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1487 gb_ExternalProject__use_openssl
:=
1488 gb_LinkTarget__use_openssl_headers
:=
1489 gb_LinkTarget__use_openssl
:=
1491 else # ENABLE_OPENSSL
1493 ifneq ($(SYSTEM_OPENSSL
),)
1495 gb_LinkTarget__use_openssl_headers
:=
1496 gb_ExternalProject__use_openssl
:=
1498 define gb_LinkTarget__use_openssl
1499 $(call gb_LinkTarget_set_include
,$(1),\
1503 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1507 else # !SYSTEM_OPENSSL
1509 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1513 define gb_ExternalProject__use_openssl
1514 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1518 define gb_LinkTarget__use_openssl_headers
1519 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1520 $(call gb_LinkTarget_set_include
,$(1),\
1521 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1527 define gb_LinkTarget__use_openssl
1528 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1530 $(call gb_LinkTarget_add_libs
,$(1),\
1531 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.lib \
1532 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.lib \
1535 $(call gb_LinkTarget_add_libs
,$(1),\
1536 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1537 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1538 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1540 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1541 ifeq ($(OS
),SOLARIS
)
1542 $(call gb_LinkTarget_add_libs
,$(1),\
1551 endif # SYSTEM_OPENSSL
1552 endif # ENABLE_OPENSSL
1555 ifneq ($(SYSTEM_CDR
),)
1557 define gb_LinkTarget__use_cdr
1558 $(call gb_LinkTarget_set_include
,$(1),\
1562 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1568 define gb_LinkTarget__use_cdr
1569 $(call gb_LinkTarget_set_include
,$(1),\
1570 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1573 $(call gb_LinkTarget_add_libs
,$(1),\
1574 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1576 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1582 ifneq ($(SYSTEM_EBOOK
),)
1584 define gb_LinkTarget__use_ebook
1585 $(call gb_LinkTarget_set_include
,$(1),\
1589 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1593 gb_ExternalProject__use_ebook
:=
1595 else # !SYSTEM_EBOOK
1597 define gb_LinkTarget__use_ebook
1598 $(call gb_LinkTarget_set_include
,$(1),\
1599 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1602 $(call gb_LinkTarget_add_libs
,$(1),\
1603 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1605 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1609 define gb_ExternalProject__use_ebook
1610 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1614 endif # SYSTEM_EBOOK
1617 ifneq ($(SYSTEM_ETONYEK
),)
1619 define gb_LinkTarget__use_etonyek
1620 $(call gb_LinkTarget_set_include
,$(1),\
1624 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1628 gb_ExternalProject__use_etonyek
:=
1630 else # !SYSTEM_ETONYEK
1634 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1638 define gb_LinkTarget__use_etonyek
1639 $(call gb_LinkTarget_set_include
,$(1),\
1640 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1643 $(call gb_LinkTarget_use_libraries
,$(1),\
1651 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1655 define gb_LinkTarget__use_etonyek
1656 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1658 $(call gb_LinkTarget_set_include
,$(1),\
1659 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1660 -DLIBETONYEK_VISIBILITY \
1663 $(call gb_LinkTarget_add_libs
,$(1),\
1664 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1666 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1670 define gb_ExternalProject__use_etonyek
1671 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1677 endif # SYSTEM_ETONYEK
1680 ifneq ($(SYSTEM_FREEHAND
),)
1682 define gb_LinkTarget__use_freehand
1683 $(call gb_LinkTarget_set_include
,$(1),\
1685 $(FREEHAND_CFLAGS
) \
1687 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1691 gb_ExternalProject__use_freehand
:=
1693 else # !SYSTEM_FREEHAND
1695 define gb_LinkTarget__use_freehand
1696 $(call gb_LinkTarget_set_include
,$(1),\
1697 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1700 $(call gb_LinkTarget_add_libs
,$(1),\
1701 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1703 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1707 define gb_ExternalProject__use_freehand
1708 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1712 endif # SYSTEM_FREEHAND
1715 ifneq ($(SYSTEM_ODFGEN
),)
1717 define gb_LinkTarget__use_odfgen
1718 $(call gb_LinkTarget_set_include
,$(1),\
1722 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1726 else # !SYSTEM_ODFGEN
1730 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1734 define gb_LinkTarget__use_odfgen
1735 $(call gb_LinkTarget_set_include
,$(1),\
1736 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1739 $(call gb_LinkTarget_use_libraries
,$(1),\
1747 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1751 define gb_LinkTarget__use_odfgen
1752 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1754 $(call gb_LinkTarget_set_include
,$(1),\
1755 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1756 -DLIBODFGEN_VISIBILITY \
1759 $(call gb_LinkTarget_add_libs
,$(1),\
1760 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1767 endif # SYSTEM_ODFGEN
1769 ifneq ($(SYSTEM_EPUBGEN
),)
1771 define gb_LinkTarget__use_epubgen
1772 $(call gb_LinkTarget_set_include
,$(1),\
1776 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1779 gb_ExternalProject__use_epubgen
:=
1781 else # !SYSTEM_EPUBGEN
1782 ifneq ($(ENABLE_WASM_STRIP_EPUB
),TRUE
)
1784 define gb_LinkTarget__use_epubgen
1785 $(call gb_LinkTarget_set_include
,$(1),\
1786 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1789 $(call gb_LinkTarget_add_libs
,$(1),\
1790 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1792 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1795 define gb_ExternalProject__use_epubgen
1796 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1800 endif # ENABLE_WASM_STRIP_EPUB
1801 endif # SYSTEM_EPUBGEN
1803 ifneq ($(SYSTEM_REVENGE
),)
1805 define gb_LinkTarget__use_revenge
1806 $(call gb_LinkTarget_set_include
,$(1),\
1810 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1814 gb_ExternalProject__use_revenge
:=
1816 else # !SYSTEM_REVENGE
1820 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1824 define gb_LinkTarget__use_revenge
1825 $(call gb_LinkTarget_set_include
,$(1),\
1829 $(call gb_LinkTarget_use_libraries
,$(1),\
1835 define gb_ExternalProject__use_revenge
1836 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1842 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1846 define gb_LinkTarget__use_revenge
1847 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1849 $(call gb_LinkTarget_set_include
,$(1),\
1851 -DLIBREVENGE_VISIBILITY \
1854 $(call gb_LinkTarget_add_libs
,$(1),\
1859 define gb_ExternalProject__use_revenge
1860 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1866 endif # SYSTEM_REVENGE
1869 ifneq ($(SYSTEM_ABW
),)
1871 define gb_LinkTarget__use_abw
1872 $(call gb_LinkTarget_set_include
,$(1),\
1876 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1879 gb_ExternalProject__use_abw
:=
1883 define gb_LinkTarget__use_abw
1884 $(call gb_LinkTarget_set_include
,$(1),\
1885 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1888 $(call gb_LinkTarget_add_libs
,$(1),\
1889 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1891 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1894 define gb_ExternalProject__use_abw
1895 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1902 ifneq ($(SYSTEM_MSPUB
),)
1904 define gb_LinkTarget__use_mspub
1905 $(call gb_LinkTarget_set_include
,$(1),\
1909 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1913 else # !SYSTEM_MSPUB
1915 define gb_LinkTarget__use_mspub
1916 $(call gb_LinkTarget_set_include
,$(1),\
1917 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1920 $(call gb_LinkTarget_add_libs
,$(1),\
1921 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1923 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1927 endif # SYSTEM_MSPUB
1930 ifneq ($(SYSTEM_PAGEMAKER
),)
1932 define gb_LinkTarget__use_pagemaker
1933 $(call gb_LinkTarget_set_include
,$(1),\
1935 $(PAGEMAKER_CFLAGS
) \
1937 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1940 gb_ExternalProject__use_pagemaker
:=
1942 else # !SYSTEM_PAGEMAKER
1944 define gb_LinkTarget__use_pagemaker
1945 $(call gb_LinkTarget_set_include
,$(1),\
1946 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1949 $(call gb_LinkTarget_add_libs
,$(1),\
1950 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1952 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1955 define gb_ExternalProject__use_pagemaker
1956 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1960 endif # SYSTEM_PAGEMAKER
1963 ifneq ($(SYSTEM_QXP
),)
1965 define gb_LinkTarget__use_qxp
1966 $(call gb_LinkTarget_set_include
,$(1),\
1970 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
1973 gb_ExternalProject__use_qxp
:=
1977 define gb_LinkTarget__use_qxp
1978 $(call gb_LinkTarget_set_include
,$(1),\
1979 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
1982 $(call gb_LinkTarget_add_libs
,$(1),\
1983 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1985 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
1988 define gb_ExternalProject__use_qxp
1989 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
1996 ifneq ($(SYSTEM_ZMF
),)
1998 define gb_LinkTarget__use_zmf
1999 $(call gb_LinkTarget_set_include
,$(1),\
2003 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
2006 gb_ExternalProject__use_zmf
:=
2010 define gb_LinkTarget__use_zmf
2011 $(call gb_LinkTarget_set_include
,$(1),\
2012 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2015 $(call gb_LinkTarget_add_libs
,$(1),\
2016 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2018 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2021 define gb_ExternalProject__use_zmf
2022 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2029 ifneq ($(SYSTEM_VISIO
),)
2031 define gb_LinkTarget__use_visio
2032 $(call gb_LinkTarget_set_include
,$(1),\
2036 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2040 else # !SYSTEM_VISIO
2042 define gb_LinkTarget__use_visio
2043 $(call gb_LinkTarget_set_include
,$(1),\
2044 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2047 $(call gb_LinkTarget_add_libs
,$(1),\
2048 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2050 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2054 endif # SYSTEM_VISIO
2057 ifneq ($(SYSTEM_WPD
),)
2059 define gb_LinkTarget__use_wpd
2060 $(call gb_LinkTarget_set_include
,$(1),\
2064 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2067 gb_ExternalProject__use_wpd
:=
2073 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2077 define gb_LinkTarget__use_wpd
2078 $(call gb_LinkTarget_set_include
,$(1),\
2082 $(call gb_LinkTarget_use_libraries
,$(1),\
2088 define gb_ExternalProject__use_wpd
2089 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2095 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2099 define gb_LinkTarget__use_wpd
2100 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2102 $(call gb_LinkTarget_set_include
,$(1),\
2106 $(call gb_LinkTarget_add_libs
,$(1),\
2112 define gb_ExternalProject__use_wpd
2113 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2122 ifneq ($(SYSTEM_WPG
),)
2124 define gb_LinkTarget__use_wpg
2125 $(call gb_LinkTarget_set_include
,$(1),\
2129 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2132 gb_ExternalProject__use_wpg
:=
2138 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2142 define gb_LinkTarget__use_wpg
2143 $(call gb_LinkTarget_set_include
,$(1),\
2144 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2147 $(call gb_LinkTarget_use_libraries
,$(1),\
2155 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2159 define gb_LinkTarget__use_wpg
2160 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2162 $(call gb_LinkTarget_set_include
,$(1),\
2163 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2166 $(call gb_LinkTarget_add_libs
,$(1),\
2167 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2177 ifneq ($(SYSTEM_WPS
),)
2179 define gb_LinkTarget__use_wps
2180 $(call gb_LinkTarget_set_include
,$(1),\
2184 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2187 gb_ExternalProject__use_wps
:=
2193 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2197 define gb_LinkTarget__use_wps
2198 $(call gb_LinkTarget_set_include
,$(1),\
2199 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2203 $(call gb_LinkTarget_use_libraries
,$(1),\
2211 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2215 define gb_LinkTarget__use_wps
2216 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2218 $(call gb_LinkTarget_set_include
,$(1),\
2219 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2222 $(call gb_LinkTarget_add_libs
,$(1),\
2223 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2233 ifneq ($(SYSTEM_MWAW
),)
2235 define gb_LinkTarget__use_mwaw
2236 $(call gb_LinkTarget_set_include
,$(1),\
2240 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2248 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2252 define gb_LinkTarget__use_mwaw
2253 $(call gb_LinkTarget_set_include
,$(1),\
2254 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2258 $(call gb_LinkTarget_use_libraries
,$(1),\
2266 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2270 define gb_LinkTarget__use_mwaw
2271 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2273 $(call gb_LinkTarget_set_include
,$(1),\
2274 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2277 $(call gb_LinkTarget_add_libs
,$(1),\
2278 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2287 ifneq ($(SYSTEM_STAROFFICE
),)
2289 define gb_LinkTarget__use_staroffice
2290 $(call gb_LinkTarget_set_include
,$(1),\
2292 $(STAROFFICE_CFLAGS
) \
2294 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2298 else # !SYSTEM_STAROFFICE
2302 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2306 define gb_LinkTarget__use_staroffice
2307 $(call gb_LinkTarget_set_include
,$(1),\
2308 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2312 $(call gb_LinkTarget_use_libraries
,$(1),\
2320 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2324 define gb_LinkTarget__use_staroffice
2325 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2327 $(call gb_LinkTarget_set_include
,$(1),\
2328 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2331 $(call gb_LinkTarget_add_libs
,$(1),\
2332 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2339 endif # SYSTEM_STAROFFICE
2342 ifneq ($(SYSTEM_LCMS2
),)
2344 define gb_LinkTarget__use_lcms2
2345 $(call gb_LinkTarget_set_include
,$(1),\
2349 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2353 gb_ExternalProject__use_lcms2
:=
2355 else # !SYSTEM_LCMS2
2357 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2361 define gb_ExternalProject__use_lcms2
2362 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2366 ifeq ($(OS
),ANDROID
)
2368 define gb_LinkTarget__use_lcms2
2369 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2370 $(call gb_LinkTarget_set_include
,$(1),\
2371 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2379 define gb_LinkTarget__use_lcms2
2380 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2381 $(call gb_LinkTarget_set_include
,$(1),\
2382 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2385 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2390 endif # SYSTEM_LCMS2
2392 ifneq ($(ENABLE_LPSOLVE
),)
2394 ifneq ($(SYSTEM_LPSOLVE
),)
2396 define gb_LinkTarget__use_lpsolve
2397 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2398 $(call gb_LinkTarget_add_defs
,$(1),\
2404 else # !SYSTEM_LPSOLVE
2406 define gb_LinkTarget__use_lpsolve
2407 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2409 $(call gb_LinkTarget_add_libs
,$(1),\
2410 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2413 $(call gb_LinkTarget_add_libs
,$(1),\
2414 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2417 $(call gb_LinkTarget_set_include
,$(1),\
2418 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2424 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2428 endif # SYSTEM_LPSOLVE
2432 gb_LinkTarget__use_lpsolve
:=
2434 endif # ENABLE_LPSOLVE
2436 ifneq ($(ENABLE_COINMP
),)
2438 ifneq ($(SYSTEM_COINMP
),TRUE
)
2440 define gb_LinkTarget__use_coinmp
2441 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2443 $(call gb_LinkTarget_add_libs
,$(1),\
2444 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2447 $(call gb_LinkTarget_add_libs
,$(1),\
2448 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2449 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2450 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2451 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2452 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2453 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2454 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2457 $(call gb_LinkTarget_set_include
,$(1),\
2458 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2459 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2465 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2469 else # SYSTEM_COINMP
2471 define gb_LinkTarget__use_coinmp
2472 $(call gb_LinkTarget_set_include
,$(1),\
2476 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2484 gb_LinkTarget__use_coinmp
:=
2486 endif # ENABLE_COINMP
2488 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2490 define gb_LinkTarget__use_mDNSResponder
2491 $(call gb_LinkTarget_set_include
,$(1),\
2492 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2495 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2498 endif # MDNSRESPONDER
2500 ifeq ($(ENABLE_GIO
),TRUE
)
2502 define gb_LinkTarget__use_gio
2503 $(call gb_LinkTarget_set_include
,$(1),\
2508 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2514 define gb_LinkTarget__use_gio
2520 ifeq ($(ENABLE_AVAHI
),TRUE
)
2522 define gb_LinkTarget__use_avahi
2523 $(call gb_LinkTarget_set_include
,$(1),\
2528 $(call gb_LinkTarget_add_defs
,$(1),\
2532 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2538 gb_LinkTarget__use_avahi
:=
2540 endif # ENABLE_AVAHI
2542 ifeq ($(ENABLE_CUPS
),TRUE
)
2544 define gb_LinkTarget__use_cups
2545 $(call gb_LinkTarget_add_defs
,$(1),\
2549 $(call gb_LinkTarget_add_libs
,$(1),\
2557 define gb_LinkTarget__use_cups
2563 ifeq ($(ENABLE_DBUS
),TRUE
)
2565 define gb_LinkTarget__use_dbus
2566 $(call gb_LinkTarget_set_include
,$(1),\
2571 $(call gb_LinkTarget_add_libs
,$(1),\
2579 define gb_LinkTarget__use_dbus
2586 ifneq ($(SYSTEM_LIBPNG
),)
2588 define gb_LinkTarget__use_libpng
2589 $(call gb_LinkTarget_set_include
,$(1),\
2594 $(call gb_LinkTarget_add_libs
,$(1),\
2600 gb_ExternalProject__use_libpng
:=
2602 else # !SYSTEM_LIBPNG
2604 define gb_LinkTarget__use_libpng
2605 $(call gb_LinkTarget_set_include
,$(1),\
2609 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2612 $(call gb_LinkTarget__use_zlib
,$(1))
2616 define gb_ExternalProject__use_libpng
2617 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2623 endif # !SYSTEM_LIBPNG
2625 ifneq ($(SYSTEM_LIBTIFF
),)
2627 define gb_LinkTarget__use_libtiff
2628 $(call gb_LinkTarget_set_include
,$(1),\
2633 $(call gb_LinkTarget_add_libs
,$(1),\
2639 gb_ExternalProject__use_libtiff
:=
2641 else # !SYSTEM_LIBTIFF
2643 define gb_LinkTarget__use_libtiff
2644 $(call gb_LinkTarget_set_include
,$(1),\
2649 $(call gb_LinkTarget_set_include
,$(1),\
2650 -I
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff \
2654 $(call gb_LinkTarget_add_libs
,$(1),\
2655 $(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
/libtiff
$(gb_StaticLibrary_PLAINEXT
) \
2658 $(call gb_LinkTarget_add_libs
,$(1),\
2659 -L
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
-ltiff \
2662 $(call gb_LinkTarget_use_external_project
,$(1),libtiff
,full
)
2666 define gb_ExternalProject__use_libtiff
2667 $(call gb_ExternalProject_use_external_project
,$(1),libtiff
)
2671 endif # !SYSTEM_LIBTIFF
2673 ifneq ($(SYSTEM_LIBWEBP
),)
2675 define gb_LinkTarget__use_libwebp
2676 $(call gb_LinkTarget_set_include
,$(1),\
2681 $(call gb_LinkTarget_add_libs
,$(1),\
2687 gb_ExternalProject__use_libwebp
:=
2689 else # !SYSTEM_LIBWEBP
2691 define gb_LinkTarget__use_libwebp
2692 $(call gb_LinkTarget_set_include
,$(1),\
2697 $(call gb_LinkTarget_set_include
,$(1),\
2698 -I
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src \
2702 $(call gb_LinkTarget_add_libs
,$(1),\
2703 $(call gb_UnpackedTarball_get_dir
,libwebp
)/output
/lib
/libwebp
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
)$(gb_StaticLibrary_PLAINEXT
) \
2706 $(call gb_LinkTarget_add_libs
,$(1),\
2707 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src
/.libs
-lwebp \
2708 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/sharpyuv
/.libs
-lsharpyuv \
2711 $(call gb_LinkTarget_use_external_project
,$(1),libwebp
)
2715 define gb_ExternalProject__use_libwebp
2716 $(call gb_ExternalProject_use_external_project
,$(1),libwebp
)
2720 endif # !SYSTEM_LIBWEBP
2723 ifneq ($(SYSTEM_CURL
),)
2725 define gb_LinkTarget__use_curl
2726 $(call gb_LinkTarget_add_defs
,$(1),\
2729 $(call gb_LinkTarget_set_include
,$(1),\
2733 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2739 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2743 define gb_LinkTarget__use_curl
2744 $(call gb_LinkTarget_use_package
,$(1),curl
)
2745 $(call gb_LinkTarget_set_include
,$(1),\
2746 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2751 $(call gb_LinkTarget_add_libs
,$(1),\
2752 $(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 \
2755 $(call gb_LinkTarget_add_libs
,$(1),\
2756 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2764 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2766 define gb_LinkTarget__use_valgrind
2767 $(call gb_LinkTarget_add_defs
,$(1),\
2768 -DHAVE_VALGRIND_HEADERS \
2771 $(call gb_LinkTarget_set_include
,$(1),\
2773 $(VALGRIND_CFLAGS
) \
2778 else # !ENABLE_VALGRIND
2780 define gb_LinkTarget__use_valgrind
2784 endif # ENABLE_VALGRIND
2786 ifeq ($(ENABLE_POPPLER
),TRUE
)
2788 ifneq ($(SYSTEM_POPPLER
),)
2790 define gb_LinkTarget__use_poppler
2791 $(call gb_LinkTarget_set_include
,$(1),\
2796 $(call gb_LinkTarget_add_libs
,$(1),\
2802 else # !SYSTEM_POPPLER
2804 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2808 define gb_LinkTarget__use_poppler
2809 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2810 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2811 $(call gb_LinkTarget_set_include
,$(1),\
2812 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2813 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2814 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2818 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2819 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2822 $(call gb_LinkTarget_add_libs
,$(1),\
2825 else ifeq ($(OS
),LINUX
)
2826 $(call gb_LinkTarget_add_libs
,$(1),\
2829 else ifeq ($(OS
),WNT
)
2830 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2838 endif # SYSTEM_POPPLER
2840 endif # ENABLE_POPPLER
2843 ifneq ($(SYSTEM_CLUCENE
),)
2845 define gb_LinkTarget__use_clucene
2846 $(call gb_LinkTarget_add_defs
,$(1),\
2847 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2850 $(call gb_LinkTarget_set_include
,$(1),\
2851 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2855 $(call gb_LinkTarget_add_libs
,$(1),\
2861 else # !SYSTEM_CLUCENE
2863 define gb_LinkTarget__use_clucene
2864 $(call gb_LinkTarget_set_include
,$(1),\
2865 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2866 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2867 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2871 $(call gb_LinkTarget_use_libraries
,$(1),\
2877 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2878 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2881 endif # SYSTEM_CLUCENE
2883 define gb_LinkTarget__use_gobject
2884 $(call gb_LinkTarget_add_libs
,$(1),\
2888 $(call gb_LinkTarget_set_include
,$(1),\
2894 ifneq ($(SYSTEM_HSQLDB
),)
2896 define gb_LinkTarget__use_hsqldb
2898 $(call gb_LinkTarget_add_defs
,$(1),\
2900 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2905 else # !SYSTEM_HSQLDB
2907 define gb_LinkTarget__use_hsqldb
2911 endif # SYSTEM_HSQLDB
2913 ifeq ($(ENABLE_LDAP
),TRUE
)
2914 ifneq ($(SYSTEM_OPENLDAP
),)
2916 define gb_LinkTarget__use_openldap
2918 $(call gb_LinkTarget_add_libs
,$(1),\
2925 gb_ExternalProject__use_openldap
:=
2927 else # !SYSTEM_OPENLDAP
2929 define gb_LinkTarget__use_openldap
2930 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2931 $(call gb_LinkTarget_set_include
,$(1),\
2932 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2935 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2936 $(call gb_LinkTarget_add_libs
,$(1), \
2937 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2938 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2944 define gb_ExternalProject__use_openldap
2945 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2949 endif # SYSTEM_OPENLDAP
2951 ifneq ($(SYSTEM_LIBTOMMATH
),)
2953 define gb_LinkTarget__use_libtommath
2954 $(call gb_LinkTarget_set_include
,$(1),\
2955 $(LIBTOMMATH_CFLAGS
) \
2958 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2962 else # !SYSTEM_LIBTOMMATH
2963 define gb_LinkTarget__use_libtommath
2964 $(call gb_LinkTarget_set_include
,$(1),\
2965 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2968 $(call gb_LinkTarget_add_libs
,$(1),\
2969 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2971 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2975 endif # SYSTEM_LIBTOMMATH
2977 define gb_ExternalProject__use_libtommath
2978 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2982 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2984 ifneq ($(SYSTEM_FIREBIRD
),)
2986 define gb_LinkTarget__use_libfbembed
2987 $(call gb_LinkTarget_set_include
,$(1),\
2988 $(FIREBIRD_CFLAGS
) \
2991 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2995 else # !SYSTEM_FIREBIRD
2997 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
3001 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
3002 #$(call gb_LinkTarget__use_libtommath,$(1))
3004 define gb_LinkTarget__use_libfbembed
3005 $(call gb_LinkTarget_use_package
,$(1),firebird
)
3006 $(call gb_LinkTarget_set_include
,$(1),\
3007 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
3011 $(call gb_LinkTarget_add_libs
,$(1),\
3012 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
3015 $(call gb_LinkTarget_add_libs
,$(1),\
3016 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3025 endif # SYSTEM_FIREBIRD
3027 else # !ENABLE_FIREBIRD_SDBC
3029 gb_LinkTarget__use_firebird
:=
3030 # gb_LinkTarget__use_atomic_ops :=
3031 # gb_LinkTarget__use_libtommath :=
3033 endif # ENABLE_FIREBIRD_SDBC
3036 ifneq ($(SYSTEM_POSTGRESQL
),)
3038 define gb_LinkTarget__use_postgresql
3040 $(call gb_LinkTarget_set_include
,$(1),\
3045 $(call gb_LinkTarget_add_libs
,$(1),\
3049 $(call gb_LinkTarget_add_ldflags
,$(1),\
3055 else # !SYSTEM_POSTGRESQL
3058 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3063 define gb_LinkTarget__use_postgresql
3065 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3067 $(call gb_LinkTarget_set_include
,$(1),\
3068 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3069 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3075 $(call gb_LinkTarget_add_libs
,$(1),\
3076 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3081 $(call gb_LinkTarget_add_libs
,$(1),\
3082 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3083 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3084 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3085 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3090 endef # gb_LinkTarget__use_postgresql
3092 endif # !SYSTEM_POSTGRESQL
3094 ifneq (,$(filter TRUE
,$(ENABLE_KF5
) $(ENABLE_GTK3_KDE5
)))
3096 define gb_LinkTarget__use_kf5
3097 $(call gb_LinkTarget_set_include
,$(1),\
3098 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3102 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3103 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3106 $(call gb_LinkTarget_add_libs
,$(1),\
3114 define gb_LinkTarget__use_kf5
3122 ifneq (,$(filter TRUE
,$(ENABLE_QT5
) $(ENABLE_GTK3_KDE5
)))
3124 define gb_LinkTarget__use_qt5
3125 $(call gb_LinkTarget_set_include
,$(1),\
3126 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3130 $(call gb_LinkTarget_add_defs
,$(1),\
3131 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3134 $(call gb_LinkTarget_add_libs
,$(1),\
3142 define gb_LinkTarget__use_qt5
3148 ifeq ($(ENABLE_QT6
),TRUE
)
3150 define gb_LinkTarget__use_qt6
3151 $(call gb_LinkTarget_set_include
,$(1),\
3152 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3156 $(call gb_LinkTarget_add_defs
,$(1),\
3157 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3160 $(call gb_LinkTarget_add_libs
,$(1),\
3168 define gb_LinkTarget__use_qt6
3176 # extra python_headers external because pyuno wrapper must not link python
3177 ifneq ($(SYSTEM_PYTHON
),)
3179 define gb_LinkTarget__use_python_headers
3180 $(call gb_LinkTarget_add_defs
,$(1),\
3181 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3184 $(call gb_LinkTarget_set_include
,$(1),\
3185 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3191 define gb_LinkTarget__use_python
3192 $(call gb_LinkTarget__use_python_headers
,$(1))
3194 $(call gb_LinkTarget_add_libs
,$(1),\
3200 else # !SYSTEM_PYTHON
3202 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3204 $(if
$(filter WNT
,$(OS
)),libffi
) \
3207 define gb_LinkTarget__use_python_headers
3208 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3209 $(call gb_LinkTarget_set_include
,$(1),\
3210 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3211 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3212 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3218 define gb_LinkTarget__use_python
3219 $(call gb_LinkTarget__use_python_headers
,$(1))
3221 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3223 $(call gb_LinkTarget_use_package
,$(1),python3
)
3227 ifeq ($(CPUNAME
),X86_64
)
3228 python_arch_subdir
=amd64
/
3229 else ifeq ($(CPUNAME
),AARCH64
)
3230 python_arch_subdir
=arm64
/
3232 python_arch_subdir
=win32
/
3234 $(call gb_LinkTarget_add_libs
,$(1),\
3235 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3237 else ifeq ($(OS
),MACOSX
)
3238 $(call gb_LinkTarget_add_libs
,$(1),\
3239 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3242 $(call gb_LinkTarget_add_libs
,$(1),\
3243 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3244 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3250 # this is only used by python currently
3251 define gb_ExternalProject__use_libffi
3252 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3256 endif # SYSTEM_PYTHON
3259 ifneq ($(SYSTEM_LIBORCUS
),)
3261 define gb_LinkTarget__use_orcus
3262 $(call gb_LinkTarget_set_include
,$(1),\
3266 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3269 define gb_LinkTarget__use_orcus-parser
3273 else # !SYSTEM_LIBORCUS
3277 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3282 define gb_LinkTarget__use_orcus
3283 $(call gb_LinkTarget_set_include
,$(1),\
3284 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3288 $(call gb_LinkTarget_use_libraries
,$(1),\
3294 define gb_LinkTarget__use_orcus-parser
3295 $(call gb_LinkTarget_set_include
,$(1),\
3296 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3300 $(call gb_LinkTarget_use_libraries
,$(1),\
3308 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3312 define gb_LinkTarget__use_orcus
3313 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3315 $(call gb_LinkTarget_set_include
,$(1),\
3316 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3320 $(call gb_LinkTarget_add_libs
,$(1),\
3321 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.18 \
3324 $(if
$(SYSTEM_BOOST
), \
3325 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3326 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3331 define gb_LinkTarget__use_orcus-parser
3332 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3334 $(call gb_LinkTarget_set_include
,$(1),\
3335 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3339 $(call gb_LinkTarget_add_libs
,$(1),\
3340 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.18 \
3347 endif # SYSTEM_LIBORCUS
3349 ifeq ($(ENABLE_EOT
),TRUE
)
3351 ifneq ($(SYSTEM_LIBEOT
),)
3353 define gb_LinkTarget__use_libeot
3354 $(call gb_LinkTarget_set_include
,$(1),\
3358 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3362 gb_ExternalProject__use_libeot
:=
3364 else # !SYSTEM_LIBEOT
3366 define gb_LinkTarget__use_libeot
3367 $(call gb_LinkTarget_set_include
,$(1),\
3368 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3371 $(call gb_LinkTarget_add_libs
,$(1),\
3372 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3374 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3378 define gb_ExternalProject__use_libeot
3379 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3383 endif # SYSTEM_LIBEOT
3387 gb_LinkTarget__use_libeot
:=
3388 gb_ExternalProject__use_libeot
:=
3394 ifeq ($(USING_X11
), TRUE
)
3396 define gb_LinkTarget__use_Xrandr
3397 $(call gb_LinkTarget_set_include
,$(1),\
3402 $(call gb_LinkTarget_add_libs
,$(1),\
3407 define gb_LinkTarget__use_Xrender
3408 $(call gb_LinkTarget_set_include
,$(1),\
3413 $(call gb_LinkTarget_add_libs
,$(1),\
3421 gb_ExternalProject__use_nss3
:=
3424 ifneq ($(SYSTEM_NSS
),)
3426 define gb_LinkTarget__use_nss3
3427 $(call gb_LinkTarget_add_defs
,$(1),\
3431 $(call gb_LinkTarget_set_include
,$(1),\
3436 $(call gb_LinkTarget_add_libs
,$(1),\
3442 define gb_LinkTarget__use_nssutil3
3443 $(call gb_LinkTarget__use_nss3
,$(1))
3447 define gb_LinkTarget__use_plc4
3448 $(call gb_LinkTarget__use_nss3
,$(1))
3452 define gb_LinkTarget__use_ssl3
3453 $(call gb_LinkTarget__use_nss3
,$(1))
3459 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3463 define gb_LinkTarget__use_nss3
3464 $(call gb_LinkTarget_use_package
,$(1),nss
)
3465 $(call gb_LinkTarget_set_include
,$(1),\
3467 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3468 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3472 $(call gb_LinkTarget_add_libs
,$(1),\
3473 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3474 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3475 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3478 $(call gb_LinkTarget_add_libs
,$(1),\
3479 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3488 define gb_LinkTarget__use_plc4
3489 $(call gb_LinkTarget_use_package
,$(1),nss
)
3491 $(call gb_LinkTarget_add_libs
,$(1),\
3492 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3495 $(call gb_LinkTarget_add_libs
,$(1),\
3496 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3502 define gb_LinkTarget__use_ssl3
3503 $(call gb_LinkTarget_use_package
,$(1),nss
)
3505 $(call gb_LinkTarget_add_libs
,$(1),\
3506 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3509 $(call gb_LinkTarget_add_libs
,$(1),\
3510 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3516 define gb_LinkTarget__use_nssutil3
3517 $(call gb_LinkTarget_use_package
,$(1),nss
)
3518 $(call gb_LinkTarget_set_include
,$(1),\
3520 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3521 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3525 $(call gb_LinkTarget_add_libs
,$(1),\
3526 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3529 $(call gb_LinkTarget_add_libs
,$(1),\
3530 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3537 define gb_ExternalProject__use_nss3
3538 $(call gb_ExternalProject_use_package
,$(1),nss
)
3544 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3546 define gb_LinkTarget__use_breakpad
3547 $(call gb_LinkTarget_set_include
,$(1),\
3548 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3553 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3557 $(call gb_LinkTarget_add_libs
,$(1),\
3558 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3562 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3566 endif # ENABLE_BREAKPAD
3568 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3570 ifneq ($(SYSTEM_GPGMEPP
),)
3572 gb_ExternalProject__use_gpgmepp
:=
3573 gb_ExternalProject__use_libassuan
:=
3574 gb_ExternalProject__use_libgpg-error
:=
3576 define gb_LinkTarget__use_gpgmepp
3577 $(call gb_LinkTarget_set_include
,$(1),\
3579 $$(GPGMEPP_CFLAGS
) \
3582 $(call gb_LinkTarget_add_libs
,$(1),\
3588 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3590 define gb_ExternalProject__use_gpgmepp
3591 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3594 define gb_ExternalProject__use_libassuan
3595 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3598 define gb_ExternalProject__use_libgpg-error
3599 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3603 ifneq ($(filter WNT
,$(OS
)),)
3605 define gb_LinkTarget__use_libgpg-error
3606 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3608 $(call gb_LinkTarget_set_include
,$(1),\
3609 $(GPG_ERROR_CFLAGS
) \
3612 $(call gb_LinkTarget_add_libs
,$(1),\
3613 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3618 define gb_LinkTarget__use_libassuan
3619 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3621 $(call gb_LinkTarget_set_include
,$(1),\
3622 $(LIBASSUAN_CFLAGS
) \
3625 $(call gb_LinkTarget_add_libs
,$(1),\
3626 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3631 define gb_LinkTarget__use_gpgmepp
3632 $(call gb_LinkTarget_set_include
,$(1),\
3633 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3634 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3635 $$(GPG_ERROR_CFLAGS
) \
3638 $(call gb_LinkTarget_use_libraries
,$(1),\
3644 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3650 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3656 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3658 define gb_LinkTarget__use_gpgmepp
3659 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3661 $(call gb_LinkTarget_set_include
,$(1),\
3662 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3663 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3664 $$(GPG_ERROR_CFLAGS
) \
3667 $(call gb_LinkTarget_add_libs
,$(1),\
3668 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3669 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3670 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3671 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3676 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3686 else # !ENABLE_GPGMEPP
3688 gb_ExternalProject__use_gpgmepp
:=
3689 gb_ExternalProject__use_libassuan
:=
3690 gb_ExternalProject__use_libgpg-error
:=
3692 gb_LinkTarget__use_gpgmepp
:=
3693 gb_LinkTarget__use_libassuan
:=
3694 gb_LinkTarget__use_libgpg-error
:=
3696 endif # ENABLE_GPGMEPP
3698 define gb_LinkTarget__use_dconf
3699 $(call gb_LinkTarget_set_include
,$(1),\
3704 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3707 ### Jars ############################################################
3709 ifneq ($(SYSTEM_HSQLDB
),)
3711 define gb_Jar__use_hsqldb
3712 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3714 define gb_JunitTest__use_hsqldb
3715 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3718 else # !SYSTEM_HSQLDB
3720 ifeq ($(ENABLE_JAVA
),TRUE
)
3721 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3726 define gb_Jar__use_hsqldb
3727 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3729 define gb_JunitTest__use_hsqldb
3730 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3733 endif # SYSTEM_HSQLDB
3736 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3738 ifneq ($(SYSTEM_BSH
),)
3740 define gb_Jar__use_bsh
3741 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3746 ifeq ($(ENABLE_JAVA
),TRUE
)
3747 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3752 define gb_Jar__use_bsh
3753 $(call gb_Jar_use_jar
,$(1),bsh
)
3760 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3762 ifneq ($(SYSTEM_RHINO
),)
3764 define gb_Jar__use_rhino
3765 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3768 else # !SYSTEM_RHINO
3770 ifeq ($(ENABLE_JAVA
),TRUE
)
3771 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3776 define gb_Jar__use_rhino
3777 $(call gb_Jar_use_jar
,$(1),js
)
3780 endif # SYSTEM_RHINO
3784 ifneq ($(SYSTEM_JFREEREPORT
),)
3786 define gb_Jar__use_flow-engine
3787 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3790 define gb_Jar__use_flute
3791 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3794 define gb_Jar__use_libbase
3795 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3798 define gb_Jar__use_libfonts
3799 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3802 define gb_Jar__use_libformula
3803 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3806 define gb_Jar__use_liblayout
3807 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3810 define gb_Jar__use_libloader
3811 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3814 define gb_Jar__use_librepository
3815 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3818 define gb_Jar__use_libserializer
3819 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3822 define gb_Jar__use_libxml
3823 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3826 define gb_Jar__use_sac
3827 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3830 else # !SYSTEM_JFREEREPORT
3832 ifeq ($(ENABLE_JAVA
),TRUE
)
3833 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3841 librepository-1.1
.6 \
3842 libserializer-1.1
.6 \
3848 define gb_Jar__use_flow-engine
3849 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3852 define gb_Jar__use_flute
3853 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3856 define gb_Jar__use_libbase
3857 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3860 define gb_Jar__use_libfonts
3861 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3864 define gb_Jar__use_libformula
3865 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3868 define gb_Jar__use_liblayout
3869 $(call gb_Jar_use_jar
,$(1),liblayout
)
3872 define gb_Jar__use_libloader
3873 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3876 define gb_Jar__use_librepository
3877 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3880 define gb_Jar__use_libserializer
3881 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3884 define gb_Jar__use_libxml
3885 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3888 define gb_Jar__use_sac
3889 $(call gb_Jar_use_jar
,$(1),sac
)
3892 endif # SYSTEM_JFREEREPORT
3897 define gb_Executable__register_bestreversemap
3898 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3899 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
3903 # TODO depending on the whole URE might be overkill, but I do not have a
3904 # Windows machine to debug it...
3905 define gb_Executable__register_climaker
3906 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3907 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3908 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3909 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3910 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3914 define gb_Executable__register_cppumaker
3915 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3916 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
3920 # This is used to determine what we need for 'build' platform.
3921 define gb_Executable__register_gengal
3922 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3923 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3924 $(call gb_Library_get_target_for_build
,localedata_en
) \
3925 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3926 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3927 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3928 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3929 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3930 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3931 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3932 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3933 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3934 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3935 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3939 ifeq ($(SYSTEM_ICU
),)
3941 define gb_Executable__register_gendict
3942 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3943 $(call gb_Package_get_target_for_build
,icu
) \
3944 $(call gb_Package_get_target_for_build
,icu_ure
) \
3950 define gb_Executable__register_localize
3951 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3952 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3953 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3958 # FIXME ure/services.rdb needs cleanup
3959 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3960 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3961 define gb_Executable__register_saxparser
3962 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3963 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3964 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3965 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3966 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3967 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3971 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3972 # required due to the settings for URE_SERVICES and URE_TYPES in
3973 # cppuhelper/source/unorc
3974 define gb_Executable__register_uno
3975 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3976 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3977 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3978 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3983 # External executables
3985 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3987 gb_ExternalExecutable__register_xmllint
:=
3989 else # ! SYSTEM_LIBXML_FOR_BUILD
3991 define gb_ExternalExecutable__register_xmllint
3992 $(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
)
3993 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3994 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3995 $(call gb_Package_get_target
,libxml2
) \
4000 endif # SYSTEM_LIBXML_FOR_BUILD
4002 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
4004 gb_ExternalExecutable__register_xsltproc
:=
4006 else # ! SYSTEM_LIBXSLT_FOR_BUILD
4008 define gb_ExternalExecutable__register_xsltproc
4009 $(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
)
4010 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
4011 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4012 $(call gb_Package_get_target
,libxml2
) \
4013 $(call gb_Package_get_target
,libxslt
) \
4018 endif # SYSTEM_LIBXSLT_FOR_BUILD
4020 ifeq (,$(PYTHON_FOR_BUILD
))
4022 define gb_ExternalExecutable__register_python
4025 # use set_external, to avoid having the command added as prerequisite for the
4026 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4027 # matching rule to build that specific file)
4028 $(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
))
4029 # the Zip ensures that internal python has been built (cannot use the Package
4030 # target, as that is not used on Mac)
4031 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4035 $(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
))
4036 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4037 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4045 define gb_ExternalExecutable__register_python
4046 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4050 endif # PYTHON_FOR_BUILD
4052 ifneq ($(SYSTEM_GENBRK
),)
4054 define gb_ExternalExecutable__register_genbrk
4055 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4059 else # ! SYSTEM_GENBRK
4061 define gb_ExternalExecutable__register_genbrk
4062 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4063 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4064 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4065 $(call gb_Package_get_target_for_build
,icu
) \
4066 $(call gb_Package_get_target_for_build
,icu_ure
) \
4073 ifneq ($(SYSTEM_GENCCODE
),)
4075 define gb_ExternalExecutable__register_genccode
4076 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4080 else # ! SYSTEM_GENCCODE
4082 define gb_ExternalExecutable__register_genccode
4083 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4084 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4085 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4086 $(call gb_Package_get_target_for_build
,icu
) \
4087 $(call gb_Package_get_target_for_build
,icu_ure
) \
4094 ifneq ($(SYSTEM_GENCMN
),)
4096 define gb_ExternalExecutable__register_gencmn
4097 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4101 else # ! SYSTEM_GENCMN
4103 define gb_ExternalExecutable__register_gencmn
4104 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4105 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4106 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4107 $(call gb_Package_get_target_for_build
,icu
) \
4108 $(call gb_Package_get_target_for_build
,icu_ure
) \
4115 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4116 ifneq ($(SYSTEM_BZIP2
),)
4118 define gb_LinkTarget__use_bzip2
4119 $(call gb_LinkTarget_set_include
,$(1),\
4123 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4127 gb_ExternalProject__use_bzip2
:=
4129 else # !SYSTEM_BZIP2
4131 define gb_LinkTarget__use_bzip2
4132 $(call gb_LinkTarget_set_include
,$(1),\
4133 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4138 $(call gb_LinkTarget_add_libs
,$(1),\
4139 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4142 $(call gb_LinkTarget_add_libs
,$(1),\
4143 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4147 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4150 define gb_ExternalProject__use_bzip2
4151 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4157 define gb_LinkTarget__use_clew
4158 $(call gb_LinkTarget_set_include
,$(1), \
4159 -I
$(SRCDIR
)/external
/clew
/source
/include \
4162 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4165 ifneq ($(ENABLE_PDFIUM
),)
4166 define gb_LinkTarget__use_pdfium
4167 $(call gb_LinkTarget_set_include
,$(1),\
4168 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4172 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4174 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4179 ifneq ($(SYSTEM_DRAGONBOX
),)
4181 define gb_LinkTarget__use_dragonbox
4182 $(call gb_LinkTarget_set_include
,$(1),\
4184 $$(DRAGONBOX_CFLAGS
) \
4190 define gb_LinkTarget__use_dragonbox
4191 $(call gb_LinkTarget_use_unpacked
,$(1),dragonbox
)
4192 $(call gb_LinkTarget_set_include
,$(1),\
4193 -I
$(call gb_UnpackedTarball_get_dir
,dragonbox
/include/)\
4200 define gb_LinkTarget__use_dtoa
4201 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4202 $(call gb_LinkTarget_set_include
,$(1),\
4203 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4206 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4212 define gb_ExternalProject__use_dtoa
4213 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4217 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4218 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4221 ifneq ($(SYSTEM_BOX2D
),)
4223 define gb_LinkTarget__use_box2d
4224 $(call gb_LinkTarget_set_include
,$(1),\
4229 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4233 gb_ExternalProject__use_box2d
:=
4235 else # !SYSTEM_BOX2D
4237 define gb_LinkTarget__use_box2d
4238 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4239 $(call gb_LinkTarget_set_include
,$(1),\
4240 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/include/)\
4243 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4249 define gb_ExternalProject__use_box2d
4250 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4254 endif # SYSTEM_BOX2D
4256 ifneq ($(SYSTEM_ZXING
),)
4258 define gb_LinkTarget__use_zxing
4259 $(call gb_LinkTarget_set_include
,$(1),\
4264 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4268 gb_ExternalProject__use_zxing
:=
4270 else # !SYSTEM_ZXING
4272 ifneq ($(ENABLE_ZXING
),)
4274 define gb_LinkTarget__use_zxing
4275 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4276 $(call gb_LinkTarget_set_include
,$(1),\
4277 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4280 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4286 define gb_ExternalProject__use_zxing
4287 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4291 else # !ENABLE_ZXING
4293 define gb_LinkTarget__use_zxing
4296 endif # ENABLE_ZXING
4298 endif # SYSTEM_ZXING
4300 # vim: set noet sw=4 ts=4: