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
2611 ifneq ($(SYSTEM_LIBWEBP
),)
2613 define gb_LinkTarget__use_libwebp
2614 $(call gb_LinkTarget_set_include
,$(1),\
2619 $(call gb_LinkTarget_add_libs
,$(1),\
2625 gb_ExternalProject__use_libwebp
:=
2627 else # !SYSTEM_LIBWEBP
2629 define gb_LinkTarget__use_libwebp
2630 $(call gb_LinkTarget_set_include
,$(1),\
2635 $(call gb_LinkTarget_set_include
,$(1),\
2636 -I
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src \
2640 $(call gb_LinkTarget_add_libs
,$(1),\
2641 $(call gb_UnpackedTarball_get_dir
,libwebp
)/output
/lib
/libwebp
$(gb_StaticLibrary_PLAINEXT
) \
2644 $(call gb_LinkTarget_add_libs
,$(1),\
2645 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src
/.libs
-lwebp \
2648 $(call gb_LinkTarget_use_external_project
,$(1),libwebp
)
2652 define gb_ExternalProject__use_libwebp
2653 $(call gb_ExternalProject_use_external_project
,$(1),\
2659 endif # !SYSTEM_LIBWEBP
2662 ifneq ($(SYSTEM_CURL
),)
2664 define gb_LinkTarget__use_curl
2665 $(call gb_LinkTarget_add_defs
,$(1),\
2668 $(call gb_LinkTarget_set_include
,$(1),\
2672 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2678 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2682 define gb_LinkTarget__use_curl
2683 $(call gb_LinkTarget_use_package
,$(1),curl
)
2684 $(call gb_LinkTarget_set_include
,$(1),\
2685 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2690 $(call gb_LinkTarget_add_libs
,$(1),\
2691 $(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 \
2694 $(call gb_LinkTarget_add_libs
,$(1),\
2695 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2703 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2705 define gb_LinkTarget__use_valgrind
2706 $(call gb_LinkTarget_add_defs
,$(1),\
2707 -DHAVE_VALGRIND_HEADERS \
2710 $(call gb_LinkTarget_set_include
,$(1),\
2712 $(VALGRIND_CFLAGS
) \
2717 else # !ENABLE_VALGRIND
2719 define gb_LinkTarget__use_valgrind
2723 endif # ENABLE_VALGRIND
2725 ifeq ($(ENABLE_POPPLER
),TRUE
)
2727 ifneq ($(SYSTEM_POPPLER
),)
2729 define gb_LinkTarget__use_poppler
2730 $(call gb_LinkTarget_set_include
,$(1),\
2735 $(call gb_LinkTarget_add_libs
,$(1),\
2741 else # !SYSTEM_POPPLER
2743 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2747 define gb_LinkTarget__use_poppler
2748 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2749 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2750 $(call gb_LinkTarget_set_include
,$(1),\
2751 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2752 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2753 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2757 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2758 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2761 $(call gb_LinkTarget_add_libs
,$(1),\
2764 else ifeq ($(OS
),LINUX
)
2765 $(call gb_LinkTarget_add_libs
,$(1),\
2768 else ifeq ($(OS
),WNT
)
2769 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2777 endif # SYSTEM_POPPLER
2779 endif # ENABLE_POPPLER
2782 ifneq ($(SYSTEM_CLUCENE
),)
2784 define gb_LinkTarget__use_clucene
2785 $(call gb_LinkTarget_add_defs
,$(1),\
2786 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2789 $(call gb_LinkTarget_set_include
,$(1),\
2790 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2794 $(call gb_LinkTarget_add_libs
,$(1),\
2800 else # !SYSTEM_CLUCENE
2802 define gb_LinkTarget__use_clucene
2803 $(call gb_LinkTarget_set_include
,$(1),\
2804 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2805 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2806 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2810 $(call gb_LinkTarget_use_libraries
,$(1),\
2816 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2817 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2820 endif # SYSTEM_CLUCENE
2822 define gb_LinkTarget__use_gobject
2823 $(call gb_LinkTarget_add_libs
,$(1),\
2827 $(call gb_LinkTarget_set_include
,$(1),\
2833 ifneq ($(SYSTEM_HSQLDB
),)
2835 define gb_LinkTarget__use_hsqldb
2837 $(call gb_LinkTarget_add_defs
,$(1),\
2839 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2844 else # !SYSTEM_HSQLDB
2846 define gb_LinkTarget__use_hsqldb
2850 endif # SYSTEM_HSQLDB
2852 ifeq ($(ENABLE_LDAP
),TRUE
)
2853 ifneq ($(SYSTEM_OPENLDAP
),)
2855 define gb_LinkTarget__use_openldap
2857 $(call gb_LinkTarget_add_libs
,$(1),\
2864 gb_ExternalProject__use_openldap
:=
2866 else # !SYSTEM_OPENLDAP
2868 define gb_LinkTarget__use_openldap
2869 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2870 $(call gb_LinkTarget_set_include
,$(1),\
2871 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2874 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2875 $(call gb_LinkTarget_add_libs
,$(1), \
2876 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2877 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2883 define gb_ExternalProject__use_openldap
2884 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2888 endif # SYSTEM_OPENLDAP
2890 ifneq ($(SYSTEM_LIBTOMMATH
),)
2892 define gb_LinkTarget__use_libtommath
2893 $(call gb_LinkTarget_set_include
,$(1),\
2894 $(LIBTOMMATH_CFLAGS
) \
2897 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2901 else # !SYSTEM_LIBTOMMATH
2902 define gb_LinkTarget__use_libtommath
2903 $(call gb_LinkTarget_set_include
,$(1),\
2904 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2907 $(call gb_LinkTarget_add_libs
,$(1),\
2908 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2910 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2914 endif # SYSTEM_LIBTOMMATH
2916 define gb_ExternalProject__use_libtommath
2917 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2921 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2923 ifneq ($(SYSTEM_FIREBIRD
),)
2925 define gb_LinkTarget__use_libfbembed
2926 $(call gb_LinkTarget_set_include
,$(1),\
2927 $(FIREBIRD_CFLAGS
) \
2930 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2934 else # !SYSTEM_FIREBIRD
2936 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
2940 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2941 #$(call gb_LinkTarget__use_libtommath,$(1))
2943 define gb_LinkTarget__use_libfbembed
2944 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2945 $(call gb_LinkTarget_set_include
,$(1),\
2946 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
2950 $(call gb_LinkTarget_add_libs
,$(1),\
2951 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
2954 $(call gb_LinkTarget_add_libs
,$(1),\
2955 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
2964 endif # SYSTEM_FIREBIRD
2966 else # !ENABLE_FIREBIRD_SDBC
2968 gb_LinkTarget__use_firebird
:=
2969 # gb_LinkTarget__use_atomic_ops :=
2970 # gb_LinkTarget__use_libtommath :=
2972 endif # ENABLE_FIREBIRD_SDBC
2975 ifneq ($(SYSTEM_POSTGRESQL
),)
2977 define gb_LinkTarget__use_postgresql
2979 $(call gb_LinkTarget_set_include
,$(1),\
2984 $(call gb_LinkTarget_add_libs
,$(1),\
2988 $(call gb_LinkTarget_add_ldflags
,$(1),\
2994 else # !SYSTEM_POSTGRESQL
2997 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3002 define gb_LinkTarget__use_postgresql
3004 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3006 $(call gb_LinkTarget_set_include
,$(1),\
3007 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3008 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3014 $(call gb_LinkTarget_add_libs
,$(1),\
3015 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3020 $(call gb_LinkTarget_add_libs
,$(1),\
3021 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3022 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3023 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3024 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3029 endef # gb_LinkTarget__use_postgresql
3031 endif # !SYSTEM_POSTGRESQL
3033 ifneq (,$(filter TRUE
,$(ENABLE_KF5
) $(ENABLE_GTK3_KDE5
)))
3035 define gb_LinkTarget__use_kf5
3036 $(call gb_LinkTarget_set_include
,$(1),\
3037 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3041 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3042 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3045 $(call gb_LinkTarget_add_libs
,$(1),\
3053 define gb_LinkTarget__use_kf5
3061 ifneq (,$(filter TRUE
,$(ENABLE_QT5
) $(ENABLE_GTK3_KDE5
)))
3063 define gb_LinkTarget__use_qt5
3064 $(call gb_LinkTarget_set_include
,$(1),\
3065 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3069 $(call gb_LinkTarget_add_defs
,$(1),\
3070 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3073 $(call gb_LinkTarget_add_libs
,$(1),\
3081 define gb_LinkTarget__use_qt5
3087 ifeq ($(ENABLE_QT6
),TRUE
)
3089 define gb_LinkTarget__use_qt6
3090 $(call gb_LinkTarget_set_include
,$(1),\
3091 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3095 $(call gb_LinkTarget_add_defs
,$(1),\
3096 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3099 $(call gb_LinkTarget_add_libs
,$(1),\
3107 define gb_LinkTarget__use_qt6
3115 # extra python_headers external because pyuno wrapper must not link python
3116 ifneq ($(SYSTEM_PYTHON
),)
3118 define gb_LinkTarget__use_python_headers
3119 $(call gb_LinkTarget_add_defs
,$(1),\
3120 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3123 $(call gb_LinkTarget_set_include
,$(1),\
3124 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3130 define gb_LinkTarget__use_python
3131 $(call gb_LinkTarget__use_python_headers
,$(1))
3133 $(call gb_LinkTarget_add_libs
,$(1),\
3139 else # !SYSTEM_PYTHON
3141 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3143 $(if
$(filter WNT
,$(OS
)),libffi
) \
3146 define gb_LinkTarget__use_python_headers
3147 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3148 $(call gb_LinkTarget_set_include
,$(1),\
3149 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3150 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3151 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3157 define gb_LinkTarget__use_python
3158 $(call gb_LinkTarget__use_python_headers
,$(1))
3160 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3162 $(call gb_LinkTarget_use_package
,$(1),python3
)
3166 ifeq ($(CPUNAME
),X86_64
)
3167 python_arch_subdir
=amd64
/
3168 else ifeq ($(CPUNAME
),AARCH64
)
3169 python_arch_subdir
=arm64
/
3171 python_arch_subdir
=win32
/
3173 $(call gb_LinkTarget_add_libs
,$(1),\
3174 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3176 else ifeq ($(OS
),MACOSX
)
3177 $(call gb_LinkTarget_add_libs
,$(1),\
3178 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3181 $(call gb_LinkTarget_add_libs
,$(1),\
3182 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3183 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3189 # this is only used by python currently
3190 define gb_ExternalProject__use_libffi
3191 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3195 endif # SYSTEM_PYTHON
3198 ifneq ($(SYSTEM_LIBORCUS
),)
3200 define gb_LinkTarget__use_orcus
3201 $(call gb_LinkTarget_set_include
,$(1),\
3205 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3208 define gb_LinkTarget__use_orcus-parser
3212 else # !SYSTEM_LIBORCUS
3216 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3221 define gb_LinkTarget__use_orcus
3222 $(call gb_LinkTarget_set_include
,$(1),\
3223 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3227 $(call gb_LinkTarget_use_libraries
,$(1),\
3233 define gb_LinkTarget__use_orcus-parser
3234 $(call gb_LinkTarget_set_include
,$(1),\
3235 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3239 $(call gb_LinkTarget_use_libraries
,$(1),\
3247 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3251 define gb_LinkTarget__use_orcus
3252 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3254 $(call gb_LinkTarget_set_include
,$(1),\
3255 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3259 $(call gb_LinkTarget_add_libs
,$(1),\
3260 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.17 \
3263 $(if
$(SYSTEM_BOOST
), \
3264 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3265 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3270 define gb_LinkTarget__use_orcus-parser
3271 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3273 $(call gb_LinkTarget_set_include
,$(1),\
3274 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3278 $(call gb_LinkTarget_add_libs
,$(1),\
3279 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.17 \
3286 endif # SYSTEM_LIBORCUS
3289 ifeq ($(ENABLE_LIBEOT
),TRUE
)
3290 ifeq ($(SYSTEM_LIBEOT
),TRUE
)
3292 define gb_LinkTarget__use_libeot
3293 $(call gb_LinkTarget_set_include
,$(1),\
3297 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3301 gb_ExternalProject__use_libeot
:=
3303 else # !SYSTEM_LIBEOT
3305 define gb_LinkTarget__use_libeot
3306 $(call gb_LinkTarget_set_include
,$(1),\
3307 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3310 $(call gb_LinkTarget_add_libs
,$(1),\
3311 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3313 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3317 define gb_ExternalProject__use_libeot
3318 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3322 endif # !SYSTEM_LIBEOT
3323 else # !ENABLE_LIBEOT
3325 gb_LinkTarget__use_libeot
:=
3326 gb_ExternalProject__use_libeot
:=
3328 endif # !ENABLE_LIBEOT
3331 ifeq ($(USING_X11
), TRUE
)
3333 define gb_LinkTarget__use_Xrandr
3334 $(call gb_LinkTarget_set_include
,$(1),\
3339 $(call gb_LinkTarget_add_libs
,$(1),\
3344 define gb_LinkTarget__use_Xrender
3345 $(call gb_LinkTarget_set_include
,$(1),\
3350 $(call gb_LinkTarget_add_libs
,$(1),\
3358 gb_ExternalProject__use_nss3
:=
3361 ifneq ($(SYSTEM_NSS
),)
3363 define gb_LinkTarget__use_nss3
3364 $(call gb_LinkTarget_add_defs
,$(1),\
3368 $(call gb_LinkTarget_set_include
,$(1),\
3373 $(call gb_LinkTarget_add_libs
,$(1),\
3379 define gb_LinkTarget__use_nssutil3
3380 $(call gb_LinkTarget__use_nss3
,$(1))
3384 define gb_LinkTarget__use_plc4
3385 $(call gb_LinkTarget__use_nss3
,$(1))
3389 define gb_LinkTarget__use_ssl3
3390 $(call gb_LinkTarget__use_nss3
,$(1))
3396 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3400 define gb_LinkTarget__use_nss3
3401 $(call gb_LinkTarget_use_package
,$(1),nss
)
3402 $(call gb_LinkTarget_set_include
,$(1),\
3404 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3405 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3409 $(call gb_LinkTarget_add_libs
,$(1),\
3410 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3411 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3412 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3415 $(call gb_LinkTarget_add_libs
,$(1),\
3416 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3425 define gb_LinkTarget__use_plc4
3426 $(call gb_LinkTarget_use_package
,$(1),nss
)
3428 $(call gb_LinkTarget_add_libs
,$(1),\
3429 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3432 $(call gb_LinkTarget_add_libs
,$(1),\
3433 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3439 define gb_LinkTarget__use_ssl3
3440 $(call gb_LinkTarget_use_package
,$(1),nss
)
3442 $(call gb_LinkTarget_add_libs
,$(1),\
3443 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3446 $(call gb_LinkTarget_add_libs
,$(1),\
3447 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3453 define gb_LinkTarget__use_nssutil3
3454 $(call gb_LinkTarget_use_package
,$(1),nss
)
3455 $(call gb_LinkTarget_set_include
,$(1),\
3457 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3458 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3462 $(call gb_LinkTarget_add_libs
,$(1),\
3463 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3466 $(call gb_LinkTarget_add_libs
,$(1),\
3467 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3474 define gb_ExternalProject__use_nss3
3475 $(call gb_ExternalProject_use_package
,$(1),nss
)
3481 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3483 define gb_LinkTarget__use_breakpad
3484 $(call gb_LinkTarget_set_include
,$(1),\
3485 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3490 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3494 $(call gb_LinkTarget_add_libs
,$(1),\
3495 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3499 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3503 endif # ENABLE_BREAKPAD
3505 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3507 ifneq ($(SYSTEM_GPGMEPP
),)
3509 gb_ExternalProject__use_gpgmepp
:=
3510 gb_ExternalProject__use_libassuan
:=
3511 gb_ExternalProject__use_libgpg-error
:=
3513 define gb_LinkTarget__use_gpgmepp
3514 $(call gb_LinkTarget_set_include
,$(1),\
3516 $$(GPGMEPP_CFLAGS
) \
3519 $(call gb_LinkTarget_add_libs
,$(1),\
3525 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3527 define gb_ExternalProject__use_gpgmepp
3528 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3531 define gb_ExternalProject__use_libassuan
3532 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3535 define gb_ExternalProject__use_libgpg-error
3536 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3540 ifneq ($(filter WNT
,$(OS
)),)
3542 define gb_LinkTarget__use_libgpg-error
3543 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3545 $(call gb_LinkTarget_set_include
,$(1),\
3546 $(GPG_ERROR_CFLAGS
) \
3549 $(call gb_LinkTarget_add_libs
,$(1),\
3550 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3555 define gb_LinkTarget__use_libassuan
3556 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3558 $(call gb_LinkTarget_set_include
,$(1),\
3559 $(LIBASSUAN_CFLAGS
) \
3562 $(call gb_LinkTarget_add_libs
,$(1),\
3563 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3568 define gb_LinkTarget__use_gpgmepp
3569 $(call gb_LinkTarget_set_include
,$(1),\
3570 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3571 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3572 $$(GPG_ERROR_CFLAGS
) \
3575 $(call gb_LinkTarget_use_libraries
,$(1),\
3581 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3587 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3593 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3595 define gb_LinkTarget__use_gpgmepp
3596 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3598 $(call gb_LinkTarget_set_include
,$(1),\
3599 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3600 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3601 $$(GPG_ERROR_CFLAGS
) \
3604 $(call gb_LinkTarget_add_libs
,$(1),\
3605 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3606 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3607 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3608 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3613 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3623 else # !ENABLE_GPGMEPP
3625 gb_ExternalProject__use_gpgmepp
:=
3626 gb_ExternalProject__use_libassuan
:=
3627 gb_ExternalProject__use_libgpg-error
:=
3629 gb_LinkTarget__use_gpgmepp
:=
3630 gb_LinkTarget__use_libassuan
:=
3631 gb_LinkTarget__use_libgpg-error
:=
3633 endif # ENABLE_GPGMEPP
3635 define gb_LinkTarget__use_dconf
3636 $(call gb_LinkTarget_set_include
,$(1),\
3641 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3644 ### Jars ############################################################
3646 ifneq ($(SYSTEM_HSQLDB
),)
3648 define gb_Jar__use_hsqldb
3649 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3651 define gb_JunitTest__use_hsqldb
3652 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3655 else # !SYSTEM_HSQLDB
3657 ifeq ($(ENABLE_JAVA
),TRUE
)
3658 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3663 define gb_Jar__use_hsqldb
3664 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3666 define gb_JunitTest__use_hsqldb
3667 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3670 endif # SYSTEM_HSQLDB
3673 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3675 ifneq ($(SYSTEM_BSH
),)
3677 define gb_Jar__use_bsh
3678 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3683 ifeq ($(ENABLE_JAVA
),TRUE
)
3684 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3689 define gb_Jar__use_bsh
3690 $(call gb_Jar_use_jar
,$(1),bsh
)
3697 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3699 ifneq ($(SYSTEM_RHINO
),)
3701 define gb_Jar__use_rhino
3702 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3705 else # !SYSTEM_RHINO
3707 ifeq ($(ENABLE_JAVA
),TRUE
)
3708 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3713 define gb_Jar__use_rhino
3714 $(call gb_Jar_use_jar
,$(1),js
)
3717 endif # SYSTEM_RHINO
3721 ifneq ($(SYSTEM_JFREEREPORT
),)
3723 define gb_Jar__use_flow-engine
3724 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3727 define gb_Jar__use_flute
3728 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3731 define gb_Jar__use_libbase
3732 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3735 define gb_Jar__use_libfonts
3736 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3739 define gb_Jar__use_libformula
3740 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3743 define gb_Jar__use_liblayout
3744 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3747 define gb_Jar__use_libloader
3748 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3751 define gb_Jar__use_librepository
3752 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3755 define gb_Jar__use_libserializer
3756 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3759 define gb_Jar__use_libxml
3760 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3763 define gb_Jar__use_sac
3764 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3767 else # !SYSTEM_JFREEREPORT
3769 ifeq ($(ENABLE_JAVA
),TRUE
)
3770 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3778 librepository-1.1
.6 \
3779 libserializer-1.1
.6 \
3785 define gb_Jar__use_flow-engine
3786 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3789 define gb_Jar__use_flute
3790 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3793 define gb_Jar__use_libbase
3794 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3797 define gb_Jar__use_libfonts
3798 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3801 define gb_Jar__use_libformula
3802 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3805 define gb_Jar__use_liblayout
3806 $(call gb_Jar_use_jar
,$(1),liblayout
)
3809 define gb_Jar__use_libloader
3810 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3813 define gb_Jar__use_librepository
3814 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3817 define gb_Jar__use_libserializer
3818 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3821 define gb_Jar__use_libxml
3822 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3825 define gb_Jar__use_sac
3826 $(call gb_Jar_use_jar
,$(1),sac
)
3829 endif # SYSTEM_JFREEREPORT
3834 define gb_Executable__register_bestreversemap
3835 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3836 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
3840 # TODO depending on the whole URE might be overkill, but I do not have a
3841 # Windows machine to debug it...
3842 define gb_Executable__register_climaker
3843 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3844 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3845 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3846 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3847 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3851 define gb_Executable__register_cppumaker
3852 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3853 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
3857 # This is used to determine what we need for 'build' platform.
3858 define gb_Executable__register_gengal
3859 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3860 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3861 $(call gb_Library_get_target_for_build
,localedata_en
) \
3862 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3863 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3864 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3865 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3866 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3867 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3868 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3869 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3870 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3871 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3872 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3876 ifeq ($(SYSTEM_ICU
),)
3878 define gb_Executable__register_gendict
3879 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3880 $(call gb_Package_get_target_for_build
,icu
) \
3881 $(call gb_Package_get_target_for_build
,icu_ure
) \
3887 define gb_Executable__register_idlc
3888 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3889 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3893 define gb_Executable__register_localize
3894 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3895 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3896 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3901 # FIXME ure/services.rdb needs cleanup
3902 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3903 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3904 define gb_Executable__register_saxparser
3905 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3906 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3907 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3908 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3909 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3910 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3914 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3915 # required due to the settings for URE_SERVICES and URE_TYPES in
3916 # cppuhelper/source/unorc
3917 define gb_Executable__register_uno
3918 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3919 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3920 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3921 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3926 # External executables
3928 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3930 gb_ExternalExecutable__register_xmllint
:=
3932 else # ! SYSTEM_LIBXML_FOR_BUILD
3934 define gb_ExternalExecutable__register_xmllint
3935 $(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
)
3936 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3937 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3938 $(call gb_Package_get_target
,libxml2
) \
3943 endif # SYSTEM_LIBXML_FOR_BUILD
3945 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3947 gb_ExternalExecutable__register_xsltproc
:=
3949 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3951 define gb_ExternalExecutable__register_xsltproc
3952 $(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
)
3953 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3954 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3955 $(call gb_Package_get_target
,libxml2
) \
3956 $(call gb_Package_get_target
,libxslt
) \
3961 endif # SYSTEM_LIBXSLT_FOR_BUILD
3963 ifneq (,$(SYSTEM_UCPP
))
3965 gb_ExternalExecutable__register_ucpp
:=
3967 else # ! SYSTEM_UCPP
3969 define gb_ExternalExecutable__register_ucpp
3970 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3976 ifeq (,$(PYTHON_FOR_BUILD
))
3978 define gb_ExternalExecutable__register_python
3981 # use set_external, to avoid having the command added as prerequisite for the
3982 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3983 # matching rule to build that specific file)
3984 $(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
))
3985 # the Zip ensures that internal python has been built (cannot use the Package
3986 # target, as that is not used on Mac)
3987 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3991 $(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
))
3992 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
3993 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4001 define gb_ExternalExecutable__register_python
4002 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4006 endif # PYTHON_FOR_BUILD
4008 ifneq ($(SYSTEM_GENBRK
),)
4010 define gb_ExternalExecutable__register_genbrk
4011 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4015 else # ! SYSTEM_GENBRK
4017 define gb_ExternalExecutable__register_genbrk
4018 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4019 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4020 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4021 $(call gb_Package_get_target_for_build
,icu
) \
4022 $(call gb_Package_get_target_for_build
,icu_ure
) \
4029 ifneq ($(SYSTEM_GENCCODE
),)
4031 define gb_ExternalExecutable__register_genccode
4032 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4036 else # ! SYSTEM_GENCCODE
4038 define gb_ExternalExecutable__register_genccode
4039 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4040 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4041 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4042 $(call gb_Package_get_target_for_build
,icu
) \
4043 $(call gb_Package_get_target_for_build
,icu_ure
) \
4050 ifneq ($(SYSTEM_GENCMN
),)
4052 define gb_ExternalExecutable__register_gencmn
4053 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4057 else # ! SYSTEM_GENCMN
4059 define gb_ExternalExecutable__register_gencmn
4060 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4061 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4062 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4063 $(call gb_Package_get_target_for_build
,icu
) \
4064 $(call gb_Package_get_target_for_build
,icu_ure
) \
4071 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4072 ifneq ($(SYSTEM_BZIP2
),)
4074 define gb_LinkTarget__use_bzip2
4075 $(call gb_LinkTarget_set_include
,$(1),\
4079 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4083 gb_ExternalProject__use_bzip2
:=
4085 else # !SYSTEM_BZIP2
4087 define gb_LinkTarget__use_bzip2
4088 $(call gb_LinkTarget_set_include
,$(1),\
4089 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4094 $(call gb_LinkTarget_add_libs
,$(1),\
4095 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4098 $(call gb_LinkTarget_add_libs
,$(1),\
4099 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4103 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4106 define gb_ExternalProject__use_bzip2
4107 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4113 define gb_LinkTarget__use_clew
4114 $(call gb_LinkTarget_set_include
,$(1), \
4115 -I
$(SRCDIR
)/external
/clew
/source
/include \
4118 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4121 ifneq ($(ENABLE_PDFIUM
),)
4122 define gb_LinkTarget__use_pdfium
4123 $(call gb_LinkTarget_set_include
,$(1),\
4124 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4128 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4130 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4135 ifneq ($(SYSTEM_DRAGONBOX
),)
4137 define gb_LinkTarget__use_dragonbox
4138 $(call gb_LinkTarget_set_include
,$(1),\
4140 $$(DRAGONBOX_CFLAGS
) \
4146 define gb_LinkTarget__use_dragonbox
4147 $(call gb_LinkTarget_use_unpacked
,$(1),dragonbox
)
4148 $(call gb_LinkTarget_set_include
,$(1),\
4149 -I
$(call gb_UnpackedTarball_get_dir
,dragonbox
/include/)\
4156 define gb_LinkTarget__use_dtoa
4157 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4158 $(call gb_LinkTarget_set_include
,$(1),\
4159 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4162 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4168 define gb_ExternalProject__use_dtoa
4169 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4173 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4174 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4177 ifneq ($(SYSTEM_BOX2D
),)
4179 define gb_LinkTarget__use_box2d
4180 $(call gb_LinkTarget_set_include
,$(1),\
4185 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4189 gb_ExternalProject__use_box2d
:=
4191 else # !SYSTEM_BOX2D
4193 define gb_LinkTarget__use_box2d
4194 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4195 $(call gb_LinkTarget_set_include
,$(1),\
4196 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/include/)\
4199 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4205 define gb_ExternalProject__use_box2d
4206 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4210 endif # SYSTEM_BOX2D
4212 ifneq ($(SYSTEM_ZXING
),)
4214 define gb_LinkTarget__use_zxing
4215 $(call gb_LinkTarget_set_include
,$(1),\
4220 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4224 gb_ExternalProject__use_zxing
:=
4226 else # !SYSTEM_ZXING
4228 ifneq ($(ENABLE_ZXING
),)
4230 define gb_LinkTarget__use_zxing
4231 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4232 $(call gb_LinkTarget_set_include
,$(1),\
4233 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4236 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4242 define gb_ExternalProject__use_zxing
4243 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4247 else # !ENABLE_ZXING
4249 define gb_LinkTarget__use_zxing
4252 endif # ENABLE_ZXING
4254 endif # SYSTEM_ZXING
4258 ifneq ($(SYSTEM_CUCKOO
),)
4260 gb_ExternalProject__use_cuckoo_headers
:=
4262 define gb_LinkTarget__use_cuckoo_headers
4263 $(call gb_LinkTarget_set_include
,$(1),\
4269 else # !SYSTEM_CUCKOO
4271 define gb_ExternalProject__use_cuckoo_headers
4272 $(call gb_ExternalProject_use_unpacked
,$(1),cuckoo
)
4276 define gb_LinkTarget__use_cuckoo_headers
4277 $(call gb_LinkTarget_use_unpacked
,$(1),cuckoo
)
4278 $(call gb_LinkTarget_set_include
,$(1),\
4279 -I
$(call gb_UnpackedTarball_get_dir
,cuckoo
) \
4285 endif # SYSTEM_CUCKOO
4288 # vim: set noet sw=4 ts=4: