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 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1217 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1222 endif # !MACOSX, !WNT
1224 endif # !SYSTEM_CAIRO
1226 ifneq ($(SYSTEM_FREETYPE
),)
1228 define gb_LinkTarget__use_freetype_headers
1229 $(call gb_LinkTarget_set_include
,$(1),\
1231 $(FREETYPE_CFLAGS
) \
1236 gb_ExternalProject__use_freetype
:=
1240 define gb_LinkTarget__use_freetype_headers
1241 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1242 $(call gb_LinkTarget_set_include
,$(1),\
1243 $(FREETYPE_CFLAGS
) \
1249 define gb_ExternalProject__use_freetype
1250 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1254 endif # SYSTEM_FREETYPE
1256 define gb_LinkTarget__use_freetype
1257 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1258 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1262 ifneq ($(SYSTEM_FONTCONFIG
),)
1264 define gb_LinkTarget__use_fontconfig
1265 $(call gb_LinkTarget_set_include
,$(1),\
1267 $(FONTCONFIG_CFLAGS
) \
1270 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1274 ifeq ($(OS
),EMSCRIPTEN
)
1275 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1276 libfontconfig_data \
1280 gb_ExternalProject__use_fontconfig
:=
1282 else # SYSTEM_FONTCONFIG
1284 define gb_LinkTarget__use_fontconfig
1285 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1286 $(call gb_LinkTarget_set_include
,$(1),\
1287 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1291 $(call gb_LinkTarget_add_libs
,$(1),\
1292 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1297 define gb_ExternalProject__use_fontconfig
1298 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1302 endif # SYSTEM_FONTCONFIG
1304 ifneq ($(SYSTEM_GRAPHITE
),)
1306 define gb_LinkTarget__use_graphite
1307 $(call gb_LinkTarget_set_include
,$(1),\
1309 $(GRAPHITE_CFLAGS
) \
1311 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1315 gb_ExternalProject__use_graphite
:=
1317 else # !SYSTEM_GRAPHITE
1319 define gb_LinkTarget__use_graphite
1320 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1321 $(call gb_LinkTarget_set_include
,$(1),\
1322 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1325 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1331 define gb_ExternalProject__use_graphite
1332 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1337 endif # SYSTEM_GRAPHITE
1339 ifneq ($(SYSTEM_ICU
),)
1341 gb_LinkTarget__use_icu_headers
:=
1342 gb_ExternalProject__use_icu
:=
1344 define gb_LinkTarget__use_icudata
1345 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1348 define gb_LinkTarget__use_icui18n
1349 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1352 define gb_LinkTarget__use_icuuc
1353 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1359 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1363 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1367 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1373 define gb_LinkTarget__use_icu_headers
1374 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1375 $(call gb_LinkTarget_set_include
,$(1),\
1376 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1377 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1378 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1384 define gb_ExternalProject__use_icu
1385 $(call gb_ExternalProject_use_package
,$(1),icu
)
1389 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1390 define gb_LinkTarget__use_icudata
1391 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1394 $(call gb_LinkTarget_add_libs
,$(1),\
1395 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1398 $(call gb_LinkTarget_add_libs
,$(1),\
1399 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1405 define gb_LinkTarget__use_icui18n
1406 $(call gb_LinkTarget_use_package
,$(1),icu
)
1409 $(call gb_LinkTarget_add_libs
,$(1),\
1410 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1413 $(call gb_LinkTarget_add_libs
,$(1),\
1414 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1420 define gb_LinkTarget__use_icuuc
1421 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1424 $(call gb_LinkTarget_add_libs
,$(1),\
1425 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1428 $(call gb_LinkTarget_add_libs
,$(1),\
1429 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1437 ifneq ($(SYSTEM_HARFBUZZ
),)
1439 define gb_LinkTarget__use_harfbuzz
1440 $(call gb_LinkTarget_set_include
,$(1),\
1442 $(HARFBUZZ_CFLAGS
) \
1444 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1448 gb_ExternalProject__use_harfbuzz
:=
1450 else # SYSTEM_HARFBUZZ != TRUE
1452 define gb_LinkTarget__use_harfbuzz
1453 $(call gb_LinkTarget_set_include
,$(1),\
1454 $(HARFBUZZ_CFLAGS
) \
1457 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1458 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1459 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1463 define gb_ExternalProject__use_harfbuzz
1464 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1468 endif # SYSTEM_HARFBUZZ
1470 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1472 gb_ExternalProject__use_openssl
:=
1473 gb_LinkTarget__use_openssl_headers
:=
1474 gb_LinkTarget__use_openssl
:=
1476 else # ENABLE_OPENSSL
1478 ifneq ($(SYSTEM_OPENSSL
),)
1480 gb_LinkTarget__use_openssl_headers
:=
1481 gb_ExternalProject__use_openssl
:=
1483 define gb_LinkTarget__use_openssl
1484 $(call gb_LinkTarget_set_include
,$(1),\
1488 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1492 else # !SYSTEM_OPENSSL
1494 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1498 define gb_ExternalProject__use_openssl
1499 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1503 define gb_LinkTarget__use_openssl_headers
1504 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1505 $(call gb_LinkTarget_set_include
,$(1),\
1506 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1512 define gb_LinkTarget__use_openssl
1513 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1515 $(call gb_LinkTarget_add_libs
,$(1),\
1516 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.lib \
1517 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.lib \
1520 $(call gb_LinkTarget_add_libs
,$(1),\
1521 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1522 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1523 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1525 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1526 ifeq ($(OS
),SOLARIS
)
1527 $(call gb_LinkTarget_add_libs
,$(1),\
1536 endif # SYSTEM_OPENSSL
1537 endif # ENABLE_OPENSSL
1540 ifneq ($(SYSTEM_CDR
),)
1542 define gb_LinkTarget__use_cdr
1543 $(call gb_LinkTarget_set_include
,$(1),\
1547 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1553 define gb_LinkTarget__use_cdr
1554 $(call gb_LinkTarget_set_include
,$(1),\
1555 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1558 $(call gb_LinkTarget_add_libs
,$(1),\
1559 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1561 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1567 ifneq ($(SYSTEM_EBOOK
),)
1569 define gb_LinkTarget__use_ebook
1570 $(call gb_LinkTarget_set_include
,$(1),\
1574 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1578 gb_ExternalProject__use_ebook
:=
1580 else # !SYSTEM_EBOOK
1582 define gb_LinkTarget__use_ebook
1583 $(call gb_LinkTarget_set_include
,$(1),\
1584 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1587 $(call gb_LinkTarget_add_libs
,$(1),\
1588 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1590 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1594 define gb_ExternalProject__use_ebook
1595 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1599 endif # SYSTEM_EBOOK
1602 ifneq ($(SYSTEM_ETONYEK
),)
1604 define gb_LinkTarget__use_etonyek
1605 $(call gb_LinkTarget_set_include
,$(1),\
1609 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1613 gb_ExternalProject__use_etonyek
:=
1615 else # !SYSTEM_ETONYEK
1619 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1623 define gb_LinkTarget__use_etonyek
1624 $(call gb_LinkTarget_set_include
,$(1),\
1625 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1628 $(call gb_LinkTarget_use_libraries
,$(1),\
1636 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1640 define gb_LinkTarget__use_etonyek
1641 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1643 $(call gb_LinkTarget_set_include
,$(1),\
1644 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1645 -DLIBETONYEK_VISIBILITY \
1648 $(call gb_LinkTarget_add_libs
,$(1),\
1649 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1651 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1655 define gb_ExternalProject__use_etonyek
1656 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1662 endif # SYSTEM_ETONYEK
1665 ifneq ($(SYSTEM_FREEHAND
),)
1667 define gb_LinkTarget__use_freehand
1668 $(call gb_LinkTarget_set_include
,$(1),\
1670 $(FREEHAND_CFLAGS
) \
1672 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1676 gb_ExternalProject__use_freehand
:=
1678 else # !SYSTEM_FREEHAND
1680 define gb_LinkTarget__use_freehand
1681 $(call gb_LinkTarget_set_include
,$(1),\
1682 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1685 $(call gb_LinkTarget_add_libs
,$(1),\
1686 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1688 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1692 define gb_ExternalProject__use_freehand
1693 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1697 endif # SYSTEM_FREEHAND
1700 ifneq ($(SYSTEM_ODFGEN
),)
1702 define gb_LinkTarget__use_odfgen
1703 $(call gb_LinkTarget_set_include
,$(1),\
1707 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1711 else # !SYSTEM_ODFGEN
1715 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1719 define gb_LinkTarget__use_odfgen
1720 $(call gb_LinkTarget_set_include
,$(1),\
1721 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1724 $(call gb_LinkTarget_use_libraries
,$(1),\
1732 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1736 define gb_LinkTarget__use_odfgen
1737 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1739 $(call gb_LinkTarget_set_include
,$(1),\
1740 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1741 -DLIBODFGEN_VISIBILITY \
1744 $(call gb_LinkTarget_add_libs
,$(1),\
1745 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1752 endif # SYSTEM_ODFGEN
1754 ifneq ($(SYSTEM_EPUBGEN
),)
1756 define gb_LinkTarget__use_epubgen
1757 $(call gb_LinkTarget_set_include
,$(1),\
1761 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1764 gb_ExternalProject__use_epubgen
:=
1766 else # !SYSTEM_EPUBGEN
1767 ifneq ($(ENABLE_WASM_STRIP_EPUB
),TRUE
)
1769 define gb_LinkTarget__use_epubgen
1770 $(call gb_LinkTarget_set_include
,$(1),\
1771 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1774 $(call gb_LinkTarget_add_libs
,$(1),\
1775 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1777 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1780 define gb_ExternalProject__use_epubgen
1781 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1785 endif # ENABLE_WASM_STRIP_EPUB
1786 endif # SYSTEM_EPUBGEN
1788 ifneq ($(SYSTEM_REVENGE
),)
1790 define gb_LinkTarget__use_revenge
1791 $(call gb_LinkTarget_set_include
,$(1),\
1795 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1799 gb_ExternalProject__use_revenge
:=
1801 else # !SYSTEM_REVENGE
1805 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1809 define gb_LinkTarget__use_revenge
1810 $(call gb_LinkTarget_set_include
,$(1),\
1814 $(call gb_LinkTarget_use_libraries
,$(1),\
1820 define gb_ExternalProject__use_revenge
1821 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1827 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1831 define gb_LinkTarget__use_revenge
1832 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1834 $(call gb_LinkTarget_set_include
,$(1),\
1836 -DLIBREVENGE_VISIBILITY \
1839 $(call gb_LinkTarget_add_libs
,$(1),\
1844 define gb_ExternalProject__use_revenge
1845 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1851 endif # SYSTEM_REVENGE
1854 ifneq ($(SYSTEM_ABW
),)
1856 define gb_LinkTarget__use_abw
1857 $(call gb_LinkTarget_set_include
,$(1),\
1861 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1864 gb_ExternalProject__use_abw
:=
1868 define gb_LinkTarget__use_abw
1869 $(call gb_LinkTarget_set_include
,$(1),\
1870 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1873 $(call gb_LinkTarget_add_libs
,$(1),\
1874 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1876 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1879 define gb_ExternalProject__use_abw
1880 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1887 ifneq ($(SYSTEM_MSPUB
),)
1889 define gb_LinkTarget__use_mspub
1890 $(call gb_LinkTarget_set_include
,$(1),\
1894 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1898 else # !SYSTEM_MSPUB
1900 define gb_LinkTarget__use_mspub
1901 $(call gb_LinkTarget_set_include
,$(1),\
1902 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1905 $(call gb_LinkTarget_add_libs
,$(1),\
1906 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1908 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1912 endif # SYSTEM_MSPUB
1915 ifneq ($(SYSTEM_PAGEMAKER
),)
1917 define gb_LinkTarget__use_pagemaker
1918 $(call gb_LinkTarget_set_include
,$(1),\
1920 $(PAGEMAKER_CFLAGS
) \
1922 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1925 gb_ExternalProject__use_pagemaker
:=
1927 else # !SYSTEM_PAGEMAKER
1929 define gb_LinkTarget__use_pagemaker
1930 $(call gb_LinkTarget_set_include
,$(1),\
1931 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1934 $(call gb_LinkTarget_add_libs
,$(1),\
1935 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1937 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1940 define gb_ExternalProject__use_pagemaker
1941 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1945 endif # SYSTEM_PAGEMAKER
1948 ifneq ($(SYSTEM_QXP
),)
1950 define gb_LinkTarget__use_qxp
1951 $(call gb_LinkTarget_set_include
,$(1),\
1955 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
1958 gb_ExternalProject__use_qxp
:=
1962 define gb_LinkTarget__use_qxp
1963 $(call gb_LinkTarget_set_include
,$(1),\
1964 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
1967 $(call gb_LinkTarget_add_libs
,$(1),\
1968 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1970 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
1973 define gb_ExternalProject__use_qxp
1974 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
1981 ifneq ($(SYSTEM_ZMF
),)
1983 define gb_LinkTarget__use_zmf
1984 $(call gb_LinkTarget_set_include
,$(1),\
1988 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
1991 gb_ExternalProject__use_zmf
:=
1995 define gb_LinkTarget__use_zmf
1996 $(call gb_LinkTarget_set_include
,$(1),\
1997 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2000 $(call gb_LinkTarget_add_libs
,$(1),\
2001 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2003 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2006 define gb_ExternalProject__use_zmf
2007 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2014 ifneq ($(SYSTEM_VISIO
),)
2016 define gb_LinkTarget__use_visio
2017 $(call gb_LinkTarget_set_include
,$(1),\
2021 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2025 else # !SYSTEM_VISIO
2027 define gb_LinkTarget__use_visio
2028 $(call gb_LinkTarget_set_include
,$(1),\
2029 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2032 $(call gb_LinkTarget_add_libs
,$(1),\
2033 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2035 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2039 endif # SYSTEM_VISIO
2042 ifneq ($(SYSTEM_WPD
),)
2044 define gb_LinkTarget__use_wpd
2045 $(call gb_LinkTarget_set_include
,$(1),\
2049 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2052 gb_ExternalProject__use_wpd
:=
2058 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2062 define gb_LinkTarget__use_wpd
2063 $(call gb_LinkTarget_set_include
,$(1),\
2067 $(call gb_LinkTarget_use_libraries
,$(1),\
2073 define gb_ExternalProject__use_wpd
2074 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2080 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2084 define gb_LinkTarget__use_wpd
2085 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2087 $(call gb_LinkTarget_set_include
,$(1),\
2091 $(call gb_LinkTarget_add_libs
,$(1),\
2097 define gb_ExternalProject__use_wpd
2098 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2107 ifneq ($(SYSTEM_WPG
),)
2109 define gb_LinkTarget__use_wpg
2110 $(call gb_LinkTarget_set_include
,$(1),\
2114 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2117 gb_ExternalProject__use_wpg
:=
2123 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2127 define gb_LinkTarget__use_wpg
2128 $(call gb_LinkTarget_set_include
,$(1),\
2129 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2132 $(call gb_LinkTarget_use_libraries
,$(1),\
2140 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2144 define gb_LinkTarget__use_wpg
2145 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2147 $(call gb_LinkTarget_set_include
,$(1),\
2148 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2151 $(call gb_LinkTarget_add_libs
,$(1),\
2152 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2162 ifneq ($(SYSTEM_WPS
),)
2164 define gb_LinkTarget__use_wps
2165 $(call gb_LinkTarget_set_include
,$(1),\
2169 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2172 gb_ExternalProject__use_wps
:=
2178 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2182 define gb_LinkTarget__use_wps
2183 $(call gb_LinkTarget_set_include
,$(1),\
2184 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2188 $(call gb_LinkTarget_use_libraries
,$(1),\
2196 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2200 define gb_LinkTarget__use_wps
2201 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2203 $(call gb_LinkTarget_set_include
,$(1),\
2204 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2207 $(call gb_LinkTarget_add_libs
,$(1),\
2208 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2218 ifneq ($(SYSTEM_MWAW
),)
2220 define gb_LinkTarget__use_mwaw
2221 $(call gb_LinkTarget_set_include
,$(1),\
2225 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2233 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2237 define gb_LinkTarget__use_mwaw
2238 $(call gb_LinkTarget_set_include
,$(1),\
2239 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2243 $(call gb_LinkTarget_use_libraries
,$(1),\
2251 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2255 define gb_LinkTarget__use_mwaw
2256 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2258 $(call gb_LinkTarget_set_include
,$(1),\
2259 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2262 $(call gb_LinkTarget_add_libs
,$(1),\
2263 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2272 ifneq ($(SYSTEM_STAROFFICE
),)
2274 define gb_LinkTarget__use_staroffice
2275 $(call gb_LinkTarget_set_include
,$(1),\
2277 $(STAROFFICE_CFLAGS
) \
2279 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2283 else # !SYSTEM_STAROFFICE
2287 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2291 define gb_LinkTarget__use_staroffice
2292 $(call gb_LinkTarget_set_include
,$(1),\
2293 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2297 $(call gb_LinkTarget_use_libraries
,$(1),\
2305 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2309 define gb_LinkTarget__use_staroffice
2310 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2312 $(call gb_LinkTarget_set_include
,$(1),\
2313 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2316 $(call gb_LinkTarget_add_libs
,$(1),\
2317 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2324 endif # SYSTEM_STAROFFICE
2327 ifneq ($(SYSTEM_LCMS2
),)
2329 define gb_LinkTarget__use_lcms2
2330 $(call gb_LinkTarget_set_include
,$(1),\
2334 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2338 gb_ExternalProject__use_lcms2
:=
2340 else # !SYSTEM_LCMS2
2342 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2346 define gb_ExternalProject__use_lcms2
2347 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2351 ifeq ($(OS
),ANDROID
)
2353 define gb_LinkTarget__use_lcms2
2354 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2355 $(call gb_LinkTarget_set_include
,$(1),\
2356 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2364 define gb_LinkTarget__use_lcms2
2365 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2366 $(call gb_LinkTarget_set_include
,$(1),\
2367 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2370 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2375 endif # SYSTEM_LCMS2
2377 ifneq ($(ENABLE_LPSOLVE
),)
2379 ifneq ($(SYSTEM_LPSOLVE
),)
2381 define gb_LinkTarget__use_lpsolve
2382 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2383 $(call gb_LinkTarget_add_defs
,$(1),\
2389 else # !SYSTEM_LPSOLVE
2391 define gb_LinkTarget__use_lpsolve
2392 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2394 $(call gb_LinkTarget_add_libs
,$(1),\
2395 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2398 $(call gb_LinkTarget_add_libs
,$(1),\
2399 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2402 $(call gb_LinkTarget_set_include
,$(1),\
2403 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2409 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2413 endif # SYSTEM_LPSOLVE
2417 gb_LinkTarget__use_lpsolve
:=
2419 endif # ENABLE_LPSOLVE
2421 ifneq ($(ENABLE_COINMP
),)
2423 ifneq ($(SYSTEM_COINMP
),TRUE
)
2425 define gb_LinkTarget__use_coinmp
2426 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2428 $(call gb_LinkTarget_add_libs
,$(1),\
2429 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2432 $(call gb_LinkTarget_add_libs
,$(1),\
2433 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2434 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2435 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2436 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2437 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2438 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2439 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2442 $(call gb_LinkTarget_set_include
,$(1),\
2443 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2444 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2450 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2454 else # SYSTEM_COINMP
2456 define gb_LinkTarget__use_coinmp
2457 $(call gb_LinkTarget_set_include
,$(1),\
2461 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2469 gb_LinkTarget__use_coinmp
:=
2471 endif # ENABLE_COINMP
2473 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2475 define gb_LinkTarget__use_mDNSResponder
2476 $(call gb_LinkTarget_set_include
,$(1),\
2477 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2480 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2483 endif # MDNSRESPONDER
2485 ifeq ($(ENABLE_GIO
),TRUE
)
2487 define gb_LinkTarget__use_gio
2488 $(call gb_LinkTarget_set_include
,$(1),\
2493 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2499 define gb_LinkTarget__use_gio
2505 ifeq ($(ENABLE_AVAHI
),TRUE
)
2507 define gb_LinkTarget__use_avahi
2508 $(call gb_LinkTarget_set_include
,$(1),\
2513 $(call gb_LinkTarget_add_defs
,$(1),\
2517 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2523 gb_LinkTarget__use_avahi
:=
2525 endif # ENABLE_AVAHI
2527 ifeq ($(ENABLE_CUPS
),TRUE
)
2529 define gb_LinkTarget__use_cups
2530 $(call gb_LinkTarget_add_defs
,$(1),\
2534 $(call gb_LinkTarget_add_libs
,$(1),\
2542 define gb_LinkTarget__use_cups
2548 ifeq ($(ENABLE_DBUS
),TRUE
)
2550 define gb_LinkTarget__use_dbus
2551 $(call gb_LinkTarget_set_include
,$(1),\
2556 $(call gb_LinkTarget_add_libs
,$(1),\
2564 define gb_LinkTarget__use_dbus
2571 ifneq ($(SYSTEM_LIBPNG
),)
2573 define gb_LinkTarget__use_libpng
2574 $(call gb_LinkTarget_set_include
,$(1),\
2579 $(call gb_LinkTarget_add_libs
,$(1),\
2585 gb_ExternalProject__use_libpng
:=
2587 else # !SYSTEM_LIBPNG
2589 define gb_LinkTarget__use_libpng
2590 $(call gb_LinkTarget_set_include
,$(1),\
2594 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2597 $(call gb_LinkTarget__use_zlib
,$(1))
2601 define gb_ExternalProject__use_libpng
2602 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2608 endif # !SYSTEM_LIBPNG
2610 ifneq ($(SYSTEM_LIBTIFF
),)
2612 define gb_LinkTarget__use_libtiff
2613 $(call gb_LinkTarget_set_include
,$(1),\
2618 $(call gb_LinkTarget_add_libs
,$(1),\
2624 gb_ExternalProject__use_libtiff
:=
2626 else # !SYSTEM_LIBTIFF
2628 define gb_LinkTarget__use_libtiff
2629 $(call gb_LinkTarget_set_include
,$(1),\
2634 $(call gb_LinkTarget_set_include
,$(1),\
2635 -I
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff \
2639 $(call gb_LinkTarget_add_libs
,$(1),\
2640 $(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
/libtiff
$(gb_StaticLibrary_PLAINEXT
) \
2643 $(call gb_LinkTarget_add_libs
,$(1),\
2644 -L
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
-ltiff \
2647 $(call gb_LinkTarget_use_external_project
,$(1),libtiff
,full
)
2651 define gb_ExternalProject__use_libtiff
2652 $(call gb_ExternalProject_use_external_project
,$(1),libtiff
)
2656 endif # !SYSTEM_LIBTIFF
2658 ifneq ($(SYSTEM_LIBWEBP
),)
2660 define gb_LinkTarget__use_libwebp
2661 $(call gb_LinkTarget_set_include
,$(1),\
2666 $(call gb_LinkTarget_add_libs
,$(1),\
2672 gb_ExternalProject__use_libwebp
:=
2674 else # !SYSTEM_LIBWEBP
2676 define gb_LinkTarget__use_libwebp
2677 $(call gb_LinkTarget_set_include
,$(1),\
2682 $(call gb_LinkTarget_set_include
,$(1),\
2683 -I
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src \
2687 $(call gb_LinkTarget_add_libs
,$(1),\
2688 $(call gb_UnpackedTarball_get_dir
,libwebp
)/output
/lib
/libwebp
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
)$(gb_StaticLibrary_PLAINEXT
) \
2691 $(call gb_LinkTarget_add_libs
,$(1),\
2692 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src
/.libs
-lwebp \
2695 $(call gb_LinkTarget_use_external_project
,$(1),libwebp
)
2699 define gb_ExternalProject__use_libwebp
2700 $(call gb_ExternalProject_use_external_project
,$(1),libwebp
)
2704 endif # !SYSTEM_LIBWEBP
2707 ifneq ($(SYSTEM_CURL
),)
2709 define gb_LinkTarget__use_curl
2710 $(call gb_LinkTarget_add_defs
,$(1),\
2713 $(call gb_LinkTarget_set_include
,$(1),\
2717 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2723 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2727 define gb_LinkTarget__use_curl
2728 $(call gb_LinkTarget_use_package
,$(1),curl
)
2729 $(call gb_LinkTarget_set_include
,$(1),\
2730 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2735 $(call gb_LinkTarget_add_libs
,$(1),\
2736 $(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 \
2739 $(call gb_LinkTarget_add_libs
,$(1),\
2740 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2748 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2750 define gb_LinkTarget__use_valgrind
2751 $(call gb_LinkTarget_add_defs
,$(1),\
2752 -DHAVE_VALGRIND_HEADERS \
2755 $(call gb_LinkTarget_set_include
,$(1),\
2757 $(VALGRIND_CFLAGS
) \
2762 else # !ENABLE_VALGRIND
2764 define gb_LinkTarget__use_valgrind
2768 endif # ENABLE_VALGRIND
2770 ifeq ($(ENABLE_POPPLER
),TRUE
)
2772 ifneq ($(SYSTEM_POPPLER
),)
2774 define gb_LinkTarget__use_poppler
2775 $(call gb_LinkTarget_set_include
,$(1),\
2780 $(call gb_LinkTarget_add_libs
,$(1),\
2786 else # !SYSTEM_POPPLER
2788 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2792 define gb_LinkTarget__use_poppler
2793 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2794 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2795 $(call gb_LinkTarget_set_include
,$(1),\
2796 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2797 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2798 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2802 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2803 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2806 $(call gb_LinkTarget_add_libs
,$(1),\
2809 else ifeq ($(OS
),LINUX
)
2810 $(call gb_LinkTarget_add_libs
,$(1),\
2813 else ifeq ($(OS
),WNT
)
2814 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2822 endif # SYSTEM_POPPLER
2824 endif # ENABLE_POPPLER
2827 ifneq ($(SYSTEM_CLUCENE
),)
2829 define gb_LinkTarget__use_clucene
2830 $(call gb_LinkTarget_add_defs
,$(1),\
2831 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2834 $(call gb_LinkTarget_set_include
,$(1),\
2835 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2839 $(call gb_LinkTarget_add_libs
,$(1),\
2845 else # !SYSTEM_CLUCENE
2847 define gb_LinkTarget__use_clucene
2848 $(call gb_LinkTarget_set_include
,$(1),\
2849 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2850 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2851 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2855 $(call gb_LinkTarget_use_libraries
,$(1),\
2861 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2862 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2865 endif # SYSTEM_CLUCENE
2867 define gb_LinkTarget__use_gobject
2868 $(call gb_LinkTarget_add_libs
,$(1),\
2872 $(call gb_LinkTarget_set_include
,$(1),\
2878 ifneq ($(SYSTEM_HSQLDB
),)
2880 define gb_LinkTarget__use_hsqldb
2882 $(call gb_LinkTarget_add_defs
,$(1),\
2884 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2889 else # !SYSTEM_HSQLDB
2891 define gb_LinkTarget__use_hsqldb
2895 endif # SYSTEM_HSQLDB
2897 ifeq ($(ENABLE_LDAP
),TRUE
)
2898 ifneq ($(SYSTEM_OPENLDAP
),)
2900 define gb_LinkTarget__use_openldap
2902 $(call gb_LinkTarget_add_libs
,$(1),\
2909 gb_ExternalProject__use_openldap
:=
2911 else # !SYSTEM_OPENLDAP
2913 define gb_LinkTarget__use_openldap
2914 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2915 $(call gb_LinkTarget_set_include
,$(1),\
2916 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2919 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2920 $(call gb_LinkTarget_add_libs
,$(1), \
2921 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2922 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2928 define gb_ExternalProject__use_openldap
2929 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2933 endif # SYSTEM_OPENLDAP
2935 ifneq ($(SYSTEM_LIBTOMMATH
),)
2937 define gb_LinkTarget__use_libtommath
2938 $(call gb_LinkTarget_set_include
,$(1),\
2939 $(LIBTOMMATH_CFLAGS
) \
2942 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2946 else # !SYSTEM_LIBTOMMATH
2947 define gb_LinkTarget__use_libtommath
2948 $(call gb_LinkTarget_set_include
,$(1),\
2949 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2952 $(call gb_LinkTarget_add_libs
,$(1),\
2953 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2955 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2959 endif # SYSTEM_LIBTOMMATH
2961 define gb_ExternalProject__use_libtommath
2962 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2966 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2968 ifneq ($(SYSTEM_FIREBIRD
),)
2970 define gb_LinkTarget__use_libfbembed
2971 $(call gb_LinkTarget_set_include
,$(1),\
2972 $(FIREBIRD_CFLAGS
) \
2975 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2979 else # !SYSTEM_FIREBIRD
2981 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
2985 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2986 #$(call gb_LinkTarget__use_libtommath,$(1))
2988 define gb_LinkTarget__use_libfbembed
2989 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2990 $(call gb_LinkTarget_set_include
,$(1),\
2991 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
2995 $(call gb_LinkTarget_add_libs
,$(1),\
2996 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
2999 $(call gb_LinkTarget_add_libs
,$(1),\
3000 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3009 endif # SYSTEM_FIREBIRD
3011 else # !ENABLE_FIREBIRD_SDBC
3013 gb_LinkTarget__use_firebird
:=
3014 # gb_LinkTarget__use_atomic_ops :=
3015 # gb_LinkTarget__use_libtommath :=
3017 endif # ENABLE_FIREBIRD_SDBC
3020 ifneq ($(SYSTEM_POSTGRESQL
),)
3022 define gb_LinkTarget__use_postgresql
3024 $(call gb_LinkTarget_set_include
,$(1),\
3029 $(call gb_LinkTarget_add_libs
,$(1),\
3033 $(call gb_LinkTarget_add_ldflags
,$(1),\
3039 else # !SYSTEM_POSTGRESQL
3042 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3047 define gb_LinkTarget__use_postgresql
3049 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3051 $(call gb_LinkTarget_set_include
,$(1),\
3052 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3053 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3059 $(call gb_LinkTarget_add_libs
,$(1),\
3060 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3065 $(call gb_LinkTarget_add_libs
,$(1),\
3066 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3067 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3068 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3069 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3074 endef # gb_LinkTarget__use_postgresql
3076 endif # !SYSTEM_POSTGRESQL
3078 ifneq (,$(filter TRUE
,$(ENABLE_KF5
) $(ENABLE_GTK3_KDE5
)))
3080 define gb_LinkTarget__use_kf5
3081 $(call gb_LinkTarget_set_include
,$(1),\
3082 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3086 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3087 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3090 $(call gb_LinkTarget_add_libs
,$(1),\
3098 define gb_LinkTarget__use_kf5
3106 ifneq (,$(filter TRUE
,$(ENABLE_QT5
) $(ENABLE_GTK3_KDE5
)))
3108 define gb_LinkTarget__use_qt5
3109 $(call gb_LinkTarget_set_include
,$(1),\
3110 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3114 $(call gb_LinkTarget_add_defs
,$(1),\
3115 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3118 $(call gb_LinkTarget_add_libs
,$(1),\
3126 define gb_LinkTarget__use_qt5
3132 ifeq ($(ENABLE_QT6
),TRUE
)
3134 define gb_LinkTarget__use_qt6
3135 $(call gb_LinkTarget_set_include
,$(1),\
3136 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3140 $(call gb_LinkTarget_add_defs
,$(1),\
3141 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3144 $(call gb_LinkTarget_add_libs
,$(1),\
3152 define gb_LinkTarget__use_qt6
3160 # extra python_headers external because pyuno wrapper must not link python
3161 ifneq ($(SYSTEM_PYTHON
),)
3163 define gb_LinkTarget__use_python_headers
3164 $(call gb_LinkTarget_add_defs
,$(1),\
3165 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3168 $(call gb_LinkTarget_set_include
,$(1),\
3169 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3175 define gb_LinkTarget__use_python
3176 $(call gb_LinkTarget__use_python_headers
,$(1))
3178 $(call gb_LinkTarget_add_libs
,$(1),\
3184 else # !SYSTEM_PYTHON
3186 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3188 $(if
$(filter WNT
,$(OS
)),libffi
) \
3191 define gb_LinkTarget__use_python_headers
3192 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3193 $(call gb_LinkTarget_set_include
,$(1),\
3194 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3195 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3196 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3202 define gb_LinkTarget__use_python
3203 $(call gb_LinkTarget__use_python_headers
,$(1))
3205 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3207 $(call gb_LinkTarget_use_package
,$(1),python3
)
3211 ifeq ($(CPUNAME
),X86_64
)
3212 python_arch_subdir
=amd64
/
3213 else ifeq ($(CPUNAME
),AARCH64
)
3214 python_arch_subdir
=arm64
/
3216 python_arch_subdir
=win32
/
3218 $(call gb_LinkTarget_add_libs
,$(1),\
3219 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3221 else ifeq ($(OS
),MACOSX
)
3222 $(call gb_LinkTarget_add_libs
,$(1),\
3223 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3226 $(call gb_LinkTarget_add_libs
,$(1),\
3227 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3228 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3234 # this is only used by python currently
3235 define gb_ExternalProject__use_libffi
3236 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3240 endif # SYSTEM_PYTHON
3243 ifneq ($(SYSTEM_LIBORCUS
),)
3245 define gb_LinkTarget__use_orcus
3246 $(call gb_LinkTarget_set_include
,$(1),\
3250 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3253 define gb_LinkTarget__use_orcus-parser
3257 else # !SYSTEM_LIBORCUS
3261 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3266 define gb_LinkTarget__use_orcus
3267 $(call gb_LinkTarget_set_include
,$(1),\
3268 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3272 $(call gb_LinkTarget_use_libraries
,$(1),\
3278 define gb_LinkTarget__use_orcus-parser
3279 $(call gb_LinkTarget_set_include
,$(1),\
3280 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3284 $(call gb_LinkTarget_use_libraries
,$(1),\
3292 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3296 define gb_LinkTarget__use_orcus
3297 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3299 $(call gb_LinkTarget_set_include
,$(1),\
3300 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3304 $(call gb_LinkTarget_add_libs
,$(1),\
3305 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.17 \
3308 $(if
$(SYSTEM_BOOST
), \
3309 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3310 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3315 define gb_LinkTarget__use_orcus-parser
3316 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3318 $(call gb_LinkTarget_set_include
,$(1),\
3319 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3323 $(call gb_LinkTarget_add_libs
,$(1),\
3324 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.17 \
3331 endif # SYSTEM_LIBORCUS
3333 ifeq ($(ENABLE_EOT
),TRUE
)
3335 ifneq ($(SYSTEM_LIBEOT
),)
3337 define gb_LinkTarget__use_libeot
3338 $(call gb_LinkTarget_set_include
,$(1),\
3342 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3346 gb_ExternalProject__use_libeot
:=
3348 else # !SYSTEM_LIBEOT
3350 define gb_LinkTarget__use_libeot
3351 $(call gb_LinkTarget_set_include
,$(1),\
3352 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3355 $(call gb_LinkTarget_add_libs
,$(1),\
3356 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3358 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3362 define gb_ExternalProject__use_libeot
3363 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3367 endif # SYSTEM_LIBEOT
3371 gb_LinkTarget__use_libeot
:=
3372 gb_ExternalProject__use_libeot
:=
3378 ifeq ($(USING_X11
), TRUE
)
3380 define gb_LinkTarget__use_Xrandr
3381 $(call gb_LinkTarget_set_include
,$(1),\
3386 $(call gb_LinkTarget_add_libs
,$(1),\
3391 define gb_LinkTarget__use_Xrender
3392 $(call gb_LinkTarget_set_include
,$(1),\
3397 $(call gb_LinkTarget_add_libs
,$(1),\
3405 gb_ExternalProject__use_nss3
:=
3408 ifneq ($(SYSTEM_NSS
),)
3410 define gb_LinkTarget__use_nss3
3411 $(call gb_LinkTarget_add_defs
,$(1),\
3415 $(call gb_LinkTarget_set_include
,$(1),\
3420 $(call gb_LinkTarget_add_libs
,$(1),\
3426 define gb_LinkTarget__use_nssutil3
3427 $(call gb_LinkTarget__use_nss3
,$(1))
3431 define gb_LinkTarget__use_plc4
3432 $(call gb_LinkTarget__use_nss3
,$(1))
3436 define gb_LinkTarget__use_ssl3
3437 $(call gb_LinkTarget__use_nss3
,$(1))
3443 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3447 define gb_LinkTarget__use_nss3
3448 $(call gb_LinkTarget_use_package
,$(1),nss
)
3449 $(call gb_LinkTarget_set_include
,$(1),\
3451 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3452 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3456 $(call gb_LinkTarget_add_libs
,$(1),\
3457 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3458 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3459 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3462 $(call gb_LinkTarget_add_libs
,$(1),\
3463 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3472 define gb_LinkTarget__use_plc4
3473 $(call gb_LinkTarget_use_package
,$(1),nss
)
3475 $(call gb_LinkTarget_add_libs
,$(1),\
3476 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3479 $(call gb_LinkTarget_add_libs
,$(1),\
3480 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3486 define gb_LinkTarget__use_ssl3
3487 $(call gb_LinkTarget_use_package
,$(1),nss
)
3489 $(call gb_LinkTarget_add_libs
,$(1),\
3490 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3493 $(call gb_LinkTarget_add_libs
,$(1),\
3494 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3500 define gb_LinkTarget__use_nssutil3
3501 $(call gb_LinkTarget_use_package
,$(1),nss
)
3502 $(call gb_LinkTarget_set_include
,$(1),\
3504 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3505 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3509 $(call gb_LinkTarget_add_libs
,$(1),\
3510 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3513 $(call gb_LinkTarget_add_libs
,$(1),\
3514 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3521 define gb_ExternalProject__use_nss3
3522 $(call gb_ExternalProject_use_package
,$(1),nss
)
3528 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3530 define gb_LinkTarget__use_breakpad
3531 $(call gb_LinkTarget_set_include
,$(1),\
3532 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3537 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3541 $(call gb_LinkTarget_add_libs
,$(1),\
3542 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3546 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3550 endif # ENABLE_BREAKPAD
3552 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3554 ifneq ($(SYSTEM_GPGMEPP
),)
3556 gb_ExternalProject__use_gpgmepp
:=
3557 gb_ExternalProject__use_libassuan
:=
3558 gb_ExternalProject__use_libgpg-error
:=
3560 define gb_LinkTarget__use_gpgmepp
3561 $(call gb_LinkTarget_set_include
,$(1),\
3563 $$(GPGMEPP_CFLAGS
) \
3566 $(call gb_LinkTarget_add_libs
,$(1),\
3572 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3574 define gb_ExternalProject__use_gpgmepp
3575 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3578 define gb_ExternalProject__use_libassuan
3579 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3582 define gb_ExternalProject__use_libgpg-error
3583 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3587 ifneq ($(filter WNT
,$(OS
)),)
3589 define gb_LinkTarget__use_libgpg-error
3590 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3592 $(call gb_LinkTarget_set_include
,$(1),\
3593 $(GPG_ERROR_CFLAGS
) \
3596 $(call gb_LinkTarget_add_libs
,$(1),\
3597 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3602 define gb_LinkTarget__use_libassuan
3603 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3605 $(call gb_LinkTarget_set_include
,$(1),\
3606 $(LIBASSUAN_CFLAGS
) \
3609 $(call gb_LinkTarget_add_libs
,$(1),\
3610 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3615 define gb_LinkTarget__use_gpgmepp
3616 $(call gb_LinkTarget_set_include
,$(1),\
3617 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3618 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3619 $$(GPG_ERROR_CFLAGS
) \
3622 $(call gb_LinkTarget_use_libraries
,$(1),\
3628 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3634 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3640 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3642 define gb_LinkTarget__use_gpgmepp
3643 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3645 $(call gb_LinkTarget_set_include
,$(1),\
3646 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3647 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3648 $$(GPG_ERROR_CFLAGS
) \
3651 $(call gb_LinkTarget_add_libs
,$(1),\
3652 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3653 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3654 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3655 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3660 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3670 else # !ENABLE_GPGMEPP
3672 gb_ExternalProject__use_gpgmepp
:=
3673 gb_ExternalProject__use_libassuan
:=
3674 gb_ExternalProject__use_libgpg-error
:=
3676 gb_LinkTarget__use_gpgmepp
:=
3677 gb_LinkTarget__use_libassuan
:=
3678 gb_LinkTarget__use_libgpg-error
:=
3680 endif # ENABLE_GPGMEPP
3682 define gb_LinkTarget__use_dconf
3683 $(call gb_LinkTarget_set_include
,$(1),\
3688 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3691 ### Jars ############################################################
3693 ifneq ($(SYSTEM_HSQLDB
),)
3695 define gb_Jar__use_hsqldb
3696 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3698 define gb_JunitTest__use_hsqldb
3699 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3702 else # !SYSTEM_HSQLDB
3704 ifeq ($(ENABLE_JAVA
),TRUE
)
3705 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3710 define gb_Jar__use_hsqldb
3711 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3713 define gb_JunitTest__use_hsqldb
3714 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3717 endif # SYSTEM_HSQLDB
3720 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3722 ifneq ($(SYSTEM_BSH
),)
3724 define gb_Jar__use_bsh
3725 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3730 ifeq ($(ENABLE_JAVA
),TRUE
)
3731 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3736 define gb_Jar__use_bsh
3737 $(call gb_Jar_use_jar
,$(1),bsh
)
3744 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3746 ifneq ($(SYSTEM_RHINO
),)
3748 define gb_Jar__use_rhino
3749 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3752 else # !SYSTEM_RHINO
3754 ifeq ($(ENABLE_JAVA
),TRUE
)
3755 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3760 define gb_Jar__use_rhino
3761 $(call gb_Jar_use_jar
,$(1),js
)
3764 endif # SYSTEM_RHINO
3768 ifneq ($(SYSTEM_JFREEREPORT
),)
3770 define gb_Jar__use_flow-engine
3771 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3774 define gb_Jar__use_flute
3775 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3778 define gb_Jar__use_libbase
3779 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3782 define gb_Jar__use_libfonts
3783 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3786 define gb_Jar__use_libformula
3787 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3790 define gb_Jar__use_liblayout
3791 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3794 define gb_Jar__use_libloader
3795 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3798 define gb_Jar__use_librepository
3799 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3802 define gb_Jar__use_libserializer
3803 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3806 define gb_Jar__use_libxml
3807 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3810 define gb_Jar__use_sac
3811 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3814 else # !SYSTEM_JFREEREPORT
3816 ifeq ($(ENABLE_JAVA
),TRUE
)
3817 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3825 librepository-1.1
.6 \
3826 libserializer-1.1
.6 \
3832 define gb_Jar__use_flow-engine
3833 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3836 define gb_Jar__use_flute
3837 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3840 define gb_Jar__use_libbase
3841 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3844 define gb_Jar__use_libfonts
3845 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3848 define gb_Jar__use_libformula
3849 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3852 define gb_Jar__use_liblayout
3853 $(call gb_Jar_use_jar
,$(1),liblayout
)
3856 define gb_Jar__use_libloader
3857 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3860 define gb_Jar__use_librepository
3861 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3864 define gb_Jar__use_libserializer
3865 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3868 define gb_Jar__use_libxml
3869 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3872 define gb_Jar__use_sac
3873 $(call gb_Jar_use_jar
,$(1),sac
)
3876 endif # SYSTEM_JFREEREPORT
3881 define gb_Executable__register_bestreversemap
3882 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3883 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
3887 # TODO depending on the whole URE might be overkill, but I do not have a
3888 # Windows machine to debug it...
3889 define gb_Executable__register_climaker
3890 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3891 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3892 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3893 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3894 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3898 define gb_Executable__register_cppumaker
3899 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3900 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
3904 # This is used to determine what we need for 'build' platform.
3905 define gb_Executable__register_gengal
3906 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3907 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3908 $(call gb_Library_get_target_for_build
,localedata_en
) \
3909 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3910 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3911 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3912 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3913 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3914 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3915 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3916 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3917 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3918 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3919 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3923 ifeq ($(SYSTEM_ICU
),)
3925 define gb_Executable__register_gendict
3926 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3927 $(call gb_Package_get_target_for_build
,icu
) \
3928 $(call gb_Package_get_target_for_build
,icu_ure
) \
3934 define gb_Executable__register_localize
3935 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3936 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3937 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3942 # FIXME ure/services.rdb needs cleanup
3943 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3944 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3945 define gb_Executable__register_saxparser
3946 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3947 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3948 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3949 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3950 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3951 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3955 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3956 # required due to the settings for URE_SERVICES and URE_TYPES in
3957 # cppuhelper/source/unorc
3958 define gb_Executable__register_uno
3959 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3960 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3961 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3962 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3967 # External executables
3969 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3971 gb_ExternalExecutable__register_xmllint
:=
3973 else # ! SYSTEM_LIBXML_FOR_BUILD
3975 define gb_ExternalExecutable__register_xmllint
3976 $(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
)
3977 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3978 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3979 $(call gb_Package_get_target
,libxml2
) \
3984 endif # SYSTEM_LIBXML_FOR_BUILD
3986 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3988 gb_ExternalExecutable__register_xsltproc
:=
3990 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3992 define gb_ExternalExecutable__register_xsltproc
3993 $(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
)
3994 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3995 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3996 $(call gb_Package_get_target
,libxml2
) \
3997 $(call gb_Package_get_target
,libxslt
) \
4002 endif # SYSTEM_LIBXSLT_FOR_BUILD
4004 ifeq (,$(PYTHON_FOR_BUILD
))
4006 define gb_ExternalExecutable__register_python
4009 # use set_external, to avoid having the command added as prerequisite for the
4010 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4011 # matching rule to build that specific file)
4012 $(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
))
4013 # the Zip ensures that internal python has been built (cannot use the Package
4014 # target, as that is not used on Mac)
4015 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4019 $(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
))
4020 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4021 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4029 define gb_ExternalExecutable__register_python
4030 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4034 endif # PYTHON_FOR_BUILD
4036 ifneq ($(SYSTEM_GENBRK
),)
4038 define gb_ExternalExecutable__register_genbrk
4039 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4043 else # ! SYSTEM_GENBRK
4045 define gb_ExternalExecutable__register_genbrk
4046 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4047 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4048 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4049 $(call gb_Package_get_target_for_build
,icu
) \
4050 $(call gb_Package_get_target_for_build
,icu_ure
) \
4057 ifneq ($(SYSTEM_GENCCODE
),)
4059 define gb_ExternalExecutable__register_genccode
4060 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4064 else # ! SYSTEM_GENCCODE
4066 define gb_ExternalExecutable__register_genccode
4067 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4068 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4069 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4070 $(call gb_Package_get_target_for_build
,icu
) \
4071 $(call gb_Package_get_target_for_build
,icu_ure
) \
4078 ifneq ($(SYSTEM_GENCMN
),)
4080 define gb_ExternalExecutable__register_gencmn
4081 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4085 else # ! SYSTEM_GENCMN
4087 define gb_ExternalExecutable__register_gencmn
4088 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4089 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4090 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4091 $(call gb_Package_get_target_for_build
,icu
) \
4092 $(call gb_Package_get_target_for_build
,icu_ure
) \
4099 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4100 ifneq ($(SYSTEM_BZIP2
),)
4102 define gb_LinkTarget__use_bzip2
4103 $(call gb_LinkTarget_set_include
,$(1),\
4107 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4111 gb_ExternalProject__use_bzip2
:=
4113 else # !SYSTEM_BZIP2
4115 define gb_LinkTarget__use_bzip2
4116 $(call gb_LinkTarget_set_include
,$(1),\
4117 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4122 $(call gb_LinkTarget_add_libs
,$(1),\
4123 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4126 $(call gb_LinkTarget_add_libs
,$(1),\
4127 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4131 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4134 define gb_ExternalProject__use_bzip2
4135 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4141 define gb_LinkTarget__use_clew
4142 $(call gb_LinkTarget_set_include
,$(1), \
4143 -I
$(SRCDIR
)/external
/clew
/source
/include \
4146 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4149 ifneq ($(ENABLE_PDFIUM
),)
4150 define gb_LinkTarget__use_pdfium
4151 $(call gb_LinkTarget_set_include
,$(1),\
4152 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4156 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4158 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4163 ifneq ($(SYSTEM_DRAGONBOX
),)
4165 define gb_LinkTarget__use_dragonbox
4166 $(call gb_LinkTarget_set_include
,$(1),\
4168 $$(DRAGONBOX_CFLAGS
) \
4174 define gb_LinkTarget__use_dragonbox
4175 $(call gb_LinkTarget_use_unpacked
,$(1),dragonbox
)
4176 $(call gb_LinkTarget_set_include
,$(1),\
4177 -I
$(call gb_UnpackedTarball_get_dir
,dragonbox
/include/)\
4184 define gb_LinkTarget__use_dtoa
4185 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4186 $(call gb_LinkTarget_set_include
,$(1),\
4187 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4190 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4196 define gb_ExternalProject__use_dtoa
4197 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4201 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4202 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4205 ifneq ($(SYSTEM_BOX2D
),)
4207 define gb_LinkTarget__use_box2d
4208 $(call gb_LinkTarget_set_include
,$(1),\
4213 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4217 gb_ExternalProject__use_box2d
:=
4219 else # !SYSTEM_BOX2D
4221 define gb_LinkTarget__use_box2d
4222 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4223 $(call gb_LinkTarget_set_include
,$(1),\
4224 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/include/)\
4227 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4233 define gb_ExternalProject__use_box2d
4234 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4238 endif # SYSTEM_BOX2D
4240 ifneq ($(SYSTEM_ZXING
),)
4242 define gb_LinkTarget__use_zxing
4243 $(call gb_LinkTarget_set_include
,$(1),\
4248 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4252 gb_ExternalProject__use_zxing
:=
4254 else # !SYSTEM_ZXING
4256 ifneq ($(ENABLE_ZXING
),)
4258 define gb_LinkTarget__use_zxing
4259 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4260 $(call gb_LinkTarget_set_include
,$(1),\
4261 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4264 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4270 define gb_ExternalProject__use_zxing
4271 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4275 else # !ENABLE_ZXING
4277 define gb_LinkTarget__use_zxing
4280 endif # ENABLE_ZXING
4282 endif # SYSTEM_ZXING
4284 # vim: set noet sw=4 ts=4: