1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # this file describes all the external libraries
21 # depending on the configure options these may be taken from the system,
22 # or the internal/bundled copy may be built.
24 # for every external, a function gb_LinkTarget__use_FOO is defined,
25 # once for the system case, once for the internal case.
27 # in the system case, no libraries should be registered, but the target-local
28 # variable LIBS should be set to FOO_LIBS, and INCLUDES to FOO_CFLAGS.
31 ifeq ($(CPUNAME
),X86_64
)
32 wnt_arch_subdir_optional
=x64
/
33 wnt_arch_subdir_mandatory
=x64
34 else ifeq ($(CPUNAME
),INTEL
)
35 wnt_arch_subdir_mandatory
=Win32
40 ifneq ($(SYSTEM_ODBC_HEADERS
),)
42 define gb_LinkTarget__use_odbc_headers
43 $(call gb_LinkTarget_add_defs
,$(1),\
44 -DSYSTEM_ODBC_HEADERS \
49 else # !SYSTEM_ODBC_HEADERS
51 define gb_LinkTarget__use_odbc_headers
52 $(call gb_LinkTarget_set_include
,$(1),\
53 -I
$(SRCDIR
)/external
/unixODBC
/inc \
59 endif # SYSTEM_ODBC_HEADERS
61 ifneq ($(SYSTEM_MDDS
),)
63 gb_ExternalProject__use_mdds_headers
:=
65 define gb_LinkTarget__use_mdds_headers
66 $(call gb_LinkTarget_set_include
,$(1),\
75 define gb_ExternalProject__use_mdds_headers
76 $(call gb_ExternalProject_use_unpacked
,$(1),mdds
)
80 define gb_LinkTarget__use_mdds_headers
81 $(call gb_LinkTarget_use_unpacked
,$(1),mdds
)
82 $(call gb_LinkTarget_set_include
,$(1),\
91 ifneq ($(SYSTEM_GLM
),)
93 define gb_LinkTarget__use_glm_headers
94 $(call gb_LinkTarget_add_defs
,$(1),\
95 -DGLM_FORCE_CTOR_INIT \
100 gb_ExternalProject__use_glm_headers
:=
104 define gb_LinkTarget__use_glm_headers
105 $(call gb_LinkTarget_add_defs
,$(1),\
106 -DGLM_FORCE_CTOR_INIT \
108 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
109 $(call gb_LinkTarget_set_include
,$(1),\
116 define gb_ExternalProject__use_glm_headers
117 $(call gb_ExternalProject_use_unpacked
,$(1),glm
)
123 ifneq ($(ENABLE_SKIA
),)
124 define gb_LinkTarget__use_skia
125 $(call gb_LinkTarget_set_include
,$(1),\
126 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/core \
127 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/effects \
128 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/gpu \
129 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/config \
130 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/ports \
131 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/private \
132 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/third_party
/vulkan \
133 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/tools
/gpu \
134 -I
$(call gb_UnpackedTarball_get_dir
,skia
) \
135 -I
$(SRCDIR
)/external
/skia
/inc
/ \
138 $(call gb_LinkTarget_use_libraries
,$(1),skia
)
139 $(call gb_LinkTarget_add_defs
,$(1),\
140 -DSK_USER_CONFIG_HEADER
="<$(BUILDDIR)/config_host/config_skia.h>" \
144 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
149 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
151 define gb_LinkTarget__use_sane_headers
152 $(call gb_LinkTarget_set_include
,$(1),\
153 $(if
$(filter WNT
,$(OS
)), \
154 -I
$(call gb_UnpackedTarball_get_dir
,twain_dsm
/pub
/include), \
155 -I
$(SRCDIR
)/external
/sane
/inc
) \
160 $(call gb_LinkTarget_use_unpacked
,$(1),twain_dsm
)
167 gb_LinkTarget__use_sane_headers
:=
171 ifneq ($(SYSTEM_BLUEZ
),)
173 gb_LinkTarget__use_bluez_bluetooth_headers
:=
177 define gb_LinkTarget__use_bluez_bluetooth_headers
178 $(call gb_LinkTarget_set_include
,$(1),\
179 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
189 ifneq ($(SYSTEM_CPPUNIT
),)
191 define gb_LinkTarget__use_cppunit
192 $(call gb_LinkTarget_set_include
,$(1),\
197 $(call gb_LinkTarget_add_libs
,$(1),\
203 else # !SYSTEM_CPPUNIT
205 define gb_LinkTarget__use_cppunit
206 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
208 $(call gb_LinkTarget_set_include
,$(1),\
209 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
214 $(call gb_LinkTarget_add_libs
,$(1),\
215 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
218 $(call gb_LinkTarget_add_libs
,$(1),\
219 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
225 endif # SYSTEM_CPPUNIT
228 ifeq ($(ENABLE_EPOXY
),TRUE
)
229 ifeq ($(SYSTEM_EPOXY
),TRUE
)
231 define gb_LinkTarget__use_epoxy
232 $(call gb_LinkTarget_set_include
,$(1),\
236 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
240 gb_ExternalProject__use_epoxy
:=
244 define gb_LinkTarget__use_epoxy
245 $(call gb_LinkTarget_set_include
,$(1),\
246 -I
$(call gb_UnpackedTarball_get_dir
,epoxy
/include) \
250 $(call gb_LinkTarget_use_libraries
,$(1),\
256 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
260 define gb_ExternalProject__use_epoxy
261 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
265 endif # !SYSTEM_EPOXY
268 gb_LinkTarget__use_epoxy
:=
269 gb_ExternalProject__use_epoxy
:=
271 endif # !ENABLE_EPOXY
274 define gb_LinkTarget__use_iconv
276 $(call gb_LinkTarget_add_libs
,$(1),libiconv.lib
)
278 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
282 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
284 define gb_LinkTarget__use_mariadb-connector-c
285 $(call gb_LinkTarget_set_include
,$(1),\
289 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
292 gb_ExternalProject__use_mariadb-connector-c
:=
294 else # !SYSTEM_MARIADB_CONNECTOR_C
296 define gb_LinkTarget__use_mariadb-connector-c
297 $(call gb_LinkTarget_set_include
,$(1),\
301 $(call gb_LinkTarget_use_static_libraries
,$(1),\
302 mariadb-connector-c \
305 $(call gb_LinkTarget_add_libs
,$(1),\
309 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
318 define gb_ExternalProject__use_mariadb-connector-c
319 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
323 endif # SYSTEM_MARIADB_CONNECTOR_C
326 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
328 define gb_LinkTarget__use_mysql
330 $(call gb_LinkTarget_add_defs
,$(1),\
334 $(call gb_LinkTarget_add_libs
,$(1),\
338 $(call gb_LinkTarget_set_include
,$(1),\
346 define gb_LinkTarget__use_mysql
348 $(call gb_LinkTarget_set_include
,$(1),\
356 ifneq ($(SYSTEM_ZLIB
),)
358 define gb_LinkTarget__use_zlib
359 $(call gb_LinkTarget_add_defs
,$(1),\
363 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
368 define gb_LinkTarget__use_zlib_x64
372 gb_ExternalProject__use_zlib
:=
376 define gb_LinkTarget__use_zlib_multiarch
377 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
379 $(call gb_LinkTarget_add_defs
,$(1), \
383 $(call gb_LinkTarget_set_include
,$(1),\
388 $(call gb_LinkTarget_use_static_libraries
,$(1),\
394 define gb_LinkTarget__use_zlib
395 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
399 define gb_LinkTarget__use_zlib_x64
400 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
404 define gb_ExternalProject__use_zlib
405 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
412 ifneq ($(SYSTEM_LIBJPEG
),)
414 define gb_LinkTarget__use_libjpeg
415 $(call gb_LinkTarget_set_include
,$(1),\
419 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
420 $(call gb_LinkTarget_set_ldflags
,$(1),\
421 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
426 gb_ExternalProject__use_libjpeg
:=
430 define gb_LinkTarget__use_libjpeg
431 $(call gb_LinkTarget_set_include
,$(1),\
432 -I
$(call gb_UnpackedTarball_get_dir
,libjpeg-turbo
) \
435 $(call gb_LinkTarget_use_static_libraries
,$(1),libjpeg-turbo
)
439 define gb_ExternalProject__use_libjpeg
440 $(call gb_ExternalProject_use_static_libraries
,$(1),libjpeg-turbo
)
444 endif # SYSTEM_LIBJPEG
446 ifneq ($(SYSTEM_MYTHES
),)
448 define gb_LinkTarget__use_mythes
449 $(call gb_LinkTarget_set_include
,$(1),\
453 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
457 else # !SYSTEM_MYTHES
459 define gb_LinkTarget__use_mythes
460 $(call gb_LinkTarget_set_include
,$(1),\
461 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
466 $(call gb_LinkTarget_use_static_libraries
,$(1),\
470 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
471 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
476 endif # SYSTEM_MYTHES
479 ifneq ($(SYSTEM_EXPAT
),)
481 define gb_LinkTarget__use_expat_impl
482 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
484 $(call gb_LinkTarget_add_defs
,$(1),\
488 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
492 gb_ExternalProject__use_expat
:=
496 define gb_LinkTarget__use_expat_impl
497 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
499 $(call gb_LinkTarget_set_include
,$(1),\
500 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
504 $(call gb_LinkTarget_use_static_libraries
,$(1),\
510 define gb_ExternalProject__use_expat
511 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
517 define gb_LinkTarget__use_expat
518 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
522 define gb_LinkTarget__use_expat_x64
523 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
527 ifneq ($(SYSTEM_HYPH
),)
529 define gb_LinkTarget__use_hyphen
530 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
536 define gb_LinkTarget__use_hyphen
537 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
538 $(call gb_LinkTarget_set_include
,$(1),\
539 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
544 $(call gb_LinkTarget_use_static_libraries
,$(1),\
548 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
549 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
556 ifneq ($(SYSTEM_HUNSPELL
),)
558 define gb_LinkTarget__use_hunspell
559 $(call gb_LinkTarget_set_include
,$(1),\
563 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
567 gb_ExternalProject__use_hunspell
:=
569 else # !SYSTEM_HUNSPELL
570 ifneq ($(ENABLE_WASM_STRIP_HUNSPELL
),TRUE
)
572 define gb_LinkTarget__use_hunspell
573 $(call gb_LinkTarget_add_defs
,$(1),\
576 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
577 $(call gb_LinkTarget_set_include
,$(1),\
578 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
583 $(call gb_LinkTarget_use_static_libraries
,$(1),\
587 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
588 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
593 define gb_ExternalProject__use_hunspell
594 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
598 endif # ENABLE_WASM_STRIP_HUNSPELL
599 endif # SYSTEM_HUNSPELL
602 ifneq ($(SYSTEM_BOOST
),)
604 define gb_LinkTarget__use_boost_lib
605 $(call gb_LinkTarget_set_include
,$(1),\
610 $(call gb_LinkTarget_add_ldflags
,$(1),\
614 $(call gb_LinkTarget_add_libs
,$(1),$(2))
618 define gb_LinkTarget__use_boost_locale
619 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
623 define gb_LinkTarget__use_boost_date_time
624 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
628 define gb_LinkTarget__use_boost_filesystem
629 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
633 gb_ExternalProject__use_boost_filesystem
:=
635 define gb_LinkTarget__use_boost_iostreams
636 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
640 gb_ExternalProject__use_boost_iostreams
:=
642 define gb_LinkTarget__use_boost_system
643 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
647 gb_ExternalProject__use_boost_system
:=
649 define gb_LinkTarget__use_boost_headers
650 $(call gb_LinkTarget_set_include
,$(1),\
657 gb_ExternalProject__use_boost_headers
:=
661 define gb_LinkTarget__use_boost_lib
662 $(call gb_LinkTarget_add_defs
,$(1),\
666 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
670 define gb_LinkTarget__use_boost_locale
671 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
672 $(call gb_LinkTarget_add_libs
,$(1),\
673 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
678 define gb_LinkTarget__use_boost_date_time
679 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
683 define gb_LinkTarget__use_boost_filesystem
684 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
688 define gb_ExternalProject__use_boost_filesystem
689 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
692 define gb_LinkTarget__use_boost_iostreams
693 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
697 define gb_ExternalProject__use_boost_iostreams
698 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
701 define gb_LinkTarget__use_boost_system
702 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
706 define gb_ExternalProject__use_boost_system
707 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
710 define gb_LinkTarget__use_boost_headers
711 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
712 $(call gb_LinkTarget_set_include
,$(1),\
719 define gb_ExternalProject__use_boost_headers
720 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
727 ifneq ($(SYSTEM_LIBCMIS
),)
729 define gb_LinkTarget__use_libcmis
730 $(call gb_LinkTarget_set_include
,$(1),\
734 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
738 else # !SYSTEM_LIBCMIS
740 define gb_LinkTarget__use_libcmis
741 $(call gb_LinkTarget_set_include
,$(1),\
742 -I
$(call gb_UnpackedTarball_get_dir
,libcmis
)/inc \
745 $(call gb_LinkTarget_use_static_libraries
,$(1),\
751 endif # SYSTEM_LIBCMIS
753 ifeq ($(ENABLE_JAVA
),TRUE
)
755 define gb_LinkTarget__use_jawt
756 $(call gb_LinkTarget_add_libs
,$(1),\
764 gb_LinkTarget__use_jawt
:=
768 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
770 define gb_LinkTarget__use_libatomic_ops
771 $(call gb_LinkTarget_set_include
,$(1),\
773 $(LIBATOMIC_OPS_CFLAGS
) \
775 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
778 gb_ExternalProject__use_libatomic_ops
:=
780 else # !SYSTEM_LIBATOMIC_OPS
782 define gb_LinkTarget__use_libatomic_ops
783 $(call gb_LinkTarget_set_include
,$(1),\
784 $(LIBATOMIC_OPS_CFLAGS
) \
786 $(LIBATOMIC_OPS_CFLAGS
) \
788 $(call gb_LinkTarget_use_external_project
,$(1),\
792 $(call gb_LinkTarget_add_libs
,$(1),\
793 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
798 define gb_ExternalProject__use_libatomic_ops
799 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
803 endif # SYSTEM_LIBATOMIC_OPS
806 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
808 define gb_LinkTarget__use_libexttextcat
809 $(call gb_LinkTarget_set_include
,$(1),\
811 $(LIBEXTTEXTCAT_CFLAGS
) \
813 $(call gb_LinkTarget_add_defs
,$(1),\
814 -DSYSTEM_LIBEXTTEXTCAT \
816 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
820 else # !SYSTEM_LIBEXTTEXTCAT
822 define gb_LinkTarget__use_libexttextcat
823 $(call gb_LinkTarget_set_include
,$(1),\
824 -I
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
829 $(call gb_LinkTarget_use_static_libraries
,$(1),\
833 $(call gb_LinkTarget_add_libs
,$(1),\
834 $(call gb_UnpackedTarball_get_dir
,libexttextcat
)/src
/.libs
/libexttextcat-2.0.a\
836 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
842 endif # SYSTEM_LIBEXTTEXTCAT
845 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
847 define gb_LinkTarget__use_libnumbertext
848 $(call gb_LinkTarget_set_include
,$(1),\
850 $(LIBNUMBERTEXT_CFLAGS
) \
852 $(call gb_LinkTarget_add_defs
,$(1),\
853 -DSYSTEM_LIBNUMBERTEXT \
855 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
859 else # !SYSTEM_LIBNUMBERTEXT
861 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
862 libnumbertext_numbertext \
865 define gb_LinkTarget__use_libnumbertext
866 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
867 $(call gb_LinkTarget_set_include
,$(1),\
868 -I
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
873 $(call gb_LinkTarget_use_static_libraries
,$(1),\
878 $(call gb_LinkTarget_add_libs
,$(1),\
879 $(call gb_UnpackedTarball_get_dir
,libnumbertext
)/src
/.libs
/libnumbertext-1.0.a\
881 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
887 endif # SYSTEM_LIBNUMBERTEXT
890 ifneq ($(SYSTEM_LIBXML
),)
892 define gb_LinkTarget__use_libxml2
893 $(call gb_LinkTarget_add_defs
,$(1),\
896 $(call gb_LinkTarget_set_include
,$(1),\
900 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
903 gb_ExternalProject__use_libxml2
:=
905 else # !SYSTEM_LIBXML
907 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
911 define gb_LinkTarget__use_libxml2
912 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
913 $(call gb_LinkTarget_set_include
,$(1),\
918 $(call gb_LinkTarget_add_libs
,$(1),\
923 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
927 define gb_ExternalProject__use_libxml2
928 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
931 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
936 endif # SYSTEM_LIBXML
939 ifneq ($(SYSTEM_LIBXSLT
),)
941 define gb_LinkTarget__use_libxslt
942 $(call gb_LinkTarget_set_include
,$(1),\
946 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
950 define gb_LinkTarget__use_libexslt
951 $(call gb_LinkTarget_set_include
,$(1),\
956 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
960 else # !SYSTEM_LIBXSLT
962 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
966 define gb_LinkTarget__use_libxslt
967 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
968 $(call gb_LinkTarget_set_include
,$(1),\
970 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
974 $(call gb_LinkTarget_add_libs
,$(1),\
975 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
978 $(call gb_LinkTarget_add_libs
,$(1),\
979 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libxslt
/.libs
-lxslt \
985 define gb_LinkTarget__use_libexslt
986 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
987 $(call gb_LinkTarget_set_include
,$(1),\
989 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
993 $(call gb_LinkTarget_add_libs
,$(1),\
994 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
997 $(call gb_LinkTarget_add_libs
,$(1),\
998 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libexslt
/.libs
-lexslt \
1004 endif # SYSTEM_LIBXSLT
1007 ifneq ($(SYSTEM_XMLSEC
),)
1009 define gb_LinkTarget__use_xmlsec
1010 $(call gb_LinkTarget_add_defs
,$(1),\
1013 $(call gb_LinkTarget_set_include
,$(1),\
1017 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
1021 gb_ExternalProject__use_xmlsec
:=
1023 else # !SYSTEM_XMLSEC
1025 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1029 define gb_LinkTarget__use_xmlsec
1033 endif # SYSTEM_XMLSEC
1035 ifneq ($(SYSTEM_LIBLANGTAG
),)
1037 define gb_LinkTarget__use_liblangtag
1038 $(call gb_LinkTarget_set_include
,$(1),\
1040 $(LIBLANGTAG_CFLAGS
) \
1043 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1047 gb_ExternalProject__use_liblangtag
:=
1049 else # !SYSTEM_LIBLANGTAG
1051 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1057 define gb_LinkTarget__use_liblangtag
1058 $(call gb_LinkTarget_set_include
,$(1),\
1059 $(LIBLANGTAG_CFLAGS
) \
1062 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1063 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1069 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1073 define gb_LinkTarget__use_liblangtag
1074 $(call gb_LinkTarget_set_include
,$(1),\
1075 $(LIBLANGTAG_CFLAGS
) \
1078 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1079 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1085 define gb_ExternalProject__use_liblangtag
1086 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1090 endif # SYSTEM_LIBLANGTAG
1093 ifneq ($(SYSTEM_REDLAND
),)
1095 define gb_LinkTarget__use_librdf
1096 $(call gb_LinkTarget_add_defs
,$(1),\
1099 $(call gb_LinkTarget_set_include
,$(1),\
1103 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1107 gb_LinkTarget__use_redland_headers
:=
1109 gb_LinkTarget__use_raptor_headers
:=
1111 gb_LinkTarget__use_rasqal_headers
:=
1113 else # !SYSTEM_REDLAND
1115 define gb_LinkTarget__use_redland_headers
1116 $(call gb_LinkTarget_set_include
,$(1),\
1117 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1123 define gb_LinkTarget__use_raptor_headers
1124 $(call gb_LinkTarget_set_include
,$(1),\
1125 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1131 define gb_LinkTarget__use_rasqal_headers
1132 $(call gb_LinkTarget_set_include
,$(1),\
1133 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1139 ifneq ($(OS
),ANDROID
)
1142 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1148 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1155 define gb_LinkTarget__use_librdf
1157 $(call gb_LinkTarget_use_libraries
,$(1),\
1162 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1164 $(call gb_LinkTarget_add_libs
,$(1),\
1165 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1166 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1167 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1175 define gb_LinkTarget__use_librdf
1176 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1182 endif # SYSTEM_REDLAND
1184 ifneq ($(SYSTEM_CAIRO
),)
1186 define gb_LinkTarget__use_cairo
1187 $(call gb_LinkTarget_set_include
,$(1),\
1191 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1192 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1196 else # !SYSTEM_CAIRO
1198 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1200 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1205 define gb_LinkTarget__use_cairo
1206 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1207 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1208 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1209 $(call gb_LinkTarget_set_include
,$(1),\
1210 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1211 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1212 -I
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman \
1215 $(call gb_LinkTarget_add_libs
,$(1),\
1216 $(if
$(filter EMSCRIPTEN
,$(OS
)), \
1217 $(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
/libcairo.a \
1218 $(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
/libpixman-1.a
, \
1219 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1220 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1
) \
1225 endif # !MACOSX, !WNT
1227 endif # !SYSTEM_CAIRO
1229 ifneq ($(SYSTEM_FREETYPE
),)
1231 define gb_LinkTarget__use_freetype_headers
1232 $(call gb_LinkTarget_set_include
,$(1),\
1234 $(FREETYPE_CFLAGS
) \
1239 gb_ExternalProject__use_freetype
:=
1243 define gb_LinkTarget__use_freetype_headers
1244 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1245 $(call gb_LinkTarget_set_include
,$(1),\
1246 $(FREETYPE_CFLAGS
) \
1252 define gb_ExternalProject__use_freetype
1253 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1257 endif # SYSTEM_FREETYPE
1259 define gb_LinkTarget__use_freetype
1260 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1261 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1265 ifneq ($(SYSTEM_FONTCONFIG
),)
1267 define gb_LinkTarget__use_fontconfig
1268 $(call gb_LinkTarget_set_include
,$(1),\
1270 $(FONTCONFIG_CFLAGS
) \
1273 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1277 ifeq ($(OS
),EMSCRIPTEN
)
1278 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1279 libfontconfig_data \
1283 gb_ExternalProject__use_fontconfig
:=
1285 else # SYSTEM_FONTCONFIG
1287 define gb_LinkTarget__use_fontconfig
1288 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1289 $(call gb_LinkTarget_set_include
,$(1),\
1290 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1294 $(call gb_LinkTarget_add_libs
,$(1),\
1295 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1300 define gb_ExternalProject__use_fontconfig
1301 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1305 endif # SYSTEM_FONTCONFIG
1307 ifneq ($(SYSTEM_GRAPHITE
),)
1309 define gb_LinkTarget__use_graphite
1310 $(call gb_LinkTarget_set_include
,$(1),\
1312 $(GRAPHITE_CFLAGS
) \
1314 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1318 gb_ExternalProject__use_graphite
:=
1320 else # !SYSTEM_GRAPHITE
1322 define gb_LinkTarget__use_graphite
1323 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1324 $(call gb_LinkTarget_set_include
,$(1),\
1325 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1328 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1334 define gb_ExternalProject__use_graphite
1335 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1340 endif # SYSTEM_GRAPHITE
1342 ifneq ($(SYSTEM_ICU
),)
1344 gb_LinkTarget__use_icu_headers
:=
1345 gb_ExternalProject__use_icu
:=
1347 define gb_LinkTarget__use_icudata
1348 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1351 define gb_LinkTarget__use_icui18n
1352 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1355 define gb_LinkTarget__use_icuuc
1356 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1362 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1366 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1370 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1376 define gb_LinkTarget__use_icu_headers
1377 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1378 $(call gb_LinkTarget_set_include
,$(1),\
1379 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1380 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1381 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1387 define gb_ExternalProject__use_icu
1388 $(call gb_ExternalProject_use_package
,$(1),icu
)
1392 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1393 define gb_LinkTarget__use_icudata
1394 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1397 $(call gb_LinkTarget_add_libs
,$(1),\
1398 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1401 $(call gb_LinkTarget_add_libs
,$(1),\
1402 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1408 define gb_LinkTarget__use_icui18n
1409 $(call gb_LinkTarget_use_package
,$(1),icu
)
1412 $(call gb_LinkTarget_add_libs
,$(1),\
1413 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1416 $(call gb_LinkTarget_add_libs
,$(1),\
1417 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1423 define gb_LinkTarget__use_icuuc
1424 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1427 $(call gb_LinkTarget_add_libs
,$(1),\
1428 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1431 $(call gb_LinkTarget_add_libs
,$(1),\
1432 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1440 ifneq ($(SYSTEM_HARFBUZZ
),)
1442 define gb_LinkTarget__use_harfbuzz
1443 $(call gb_LinkTarget_set_include
,$(1),\
1445 $(HARFBUZZ_CFLAGS
) \
1447 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1451 gb_ExternalProject__use_harfbuzz
:=
1453 else # SYSTEM_HARFBUZZ != TRUE
1455 define gb_LinkTarget__use_harfbuzz
1456 $(call gb_LinkTarget_set_include
,$(1),\
1457 $(HARFBUZZ_CFLAGS
) \
1460 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1461 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1462 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1466 define gb_ExternalProject__use_harfbuzz
1467 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1471 endif # SYSTEM_HARFBUZZ
1473 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1475 gb_ExternalProject__use_openssl
:=
1476 gb_LinkTarget__use_openssl_headers
:=
1477 gb_LinkTarget__use_openssl
:=
1479 else # ENABLE_OPENSSL
1481 ifneq ($(SYSTEM_OPENSSL
),)
1483 gb_LinkTarget__use_openssl_headers
:=
1484 gb_ExternalProject__use_openssl
:=
1486 define gb_LinkTarget__use_openssl
1487 $(call gb_LinkTarget_set_include
,$(1),\
1491 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1495 else # !SYSTEM_OPENSSL
1497 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1501 define gb_ExternalProject__use_openssl
1502 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1506 define gb_LinkTarget__use_openssl_headers
1507 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1508 $(call gb_LinkTarget_set_include
,$(1),\
1509 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1515 define gb_LinkTarget__use_openssl
1516 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1518 $(call gb_LinkTarget_add_libs
,$(1),\
1519 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.lib \
1520 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.lib \
1523 $(call gb_LinkTarget_add_libs
,$(1),\
1524 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1525 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1526 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1528 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1529 ifeq ($(OS
),SOLARIS
)
1530 $(call gb_LinkTarget_add_libs
,$(1),\
1539 endif # SYSTEM_OPENSSL
1540 endif # ENABLE_OPENSSL
1543 ifneq ($(SYSTEM_CDR
),)
1545 define gb_LinkTarget__use_cdr
1546 $(call gb_LinkTarget_set_include
,$(1),\
1550 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1556 define gb_LinkTarget__use_cdr
1557 $(call gb_LinkTarget_set_include
,$(1),\
1558 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1561 $(call gb_LinkTarget_add_libs
,$(1),\
1562 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1564 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1570 ifneq ($(SYSTEM_EBOOK
),)
1572 define gb_LinkTarget__use_ebook
1573 $(call gb_LinkTarget_set_include
,$(1),\
1577 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1581 gb_ExternalProject__use_ebook
:=
1583 else # !SYSTEM_EBOOK
1585 define gb_LinkTarget__use_ebook
1586 $(call gb_LinkTarget_set_include
,$(1),\
1587 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1590 $(call gb_LinkTarget_add_libs
,$(1),\
1591 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1593 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1597 define gb_ExternalProject__use_ebook
1598 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1602 endif # SYSTEM_EBOOK
1605 ifneq ($(SYSTEM_ETONYEK
),)
1607 define gb_LinkTarget__use_etonyek
1608 $(call gb_LinkTarget_set_include
,$(1),\
1612 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1616 gb_ExternalProject__use_etonyek
:=
1618 else # !SYSTEM_ETONYEK
1622 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1626 define gb_LinkTarget__use_etonyek
1627 $(call gb_LinkTarget_set_include
,$(1),\
1628 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1631 $(call gb_LinkTarget_use_libraries
,$(1),\
1639 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1643 define gb_LinkTarget__use_etonyek
1644 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1646 $(call gb_LinkTarget_set_include
,$(1),\
1647 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1648 -DLIBETONYEK_VISIBILITY \
1651 $(call gb_LinkTarget_add_libs
,$(1),\
1652 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1654 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1658 define gb_ExternalProject__use_etonyek
1659 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1665 endif # SYSTEM_ETONYEK
1668 ifneq ($(SYSTEM_FREEHAND
),)
1670 define gb_LinkTarget__use_freehand
1671 $(call gb_LinkTarget_set_include
,$(1),\
1673 $(FREEHAND_CFLAGS
) \
1675 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1679 gb_ExternalProject__use_freehand
:=
1681 else # !SYSTEM_FREEHAND
1683 define gb_LinkTarget__use_freehand
1684 $(call gb_LinkTarget_set_include
,$(1),\
1685 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1688 $(call gb_LinkTarget_add_libs
,$(1),\
1689 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1691 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1695 define gb_ExternalProject__use_freehand
1696 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1700 endif # SYSTEM_FREEHAND
1703 ifneq ($(SYSTEM_ODFGEN
),)
1705 define gb_LinkTarget__use_odfgen
1706 $(call gb_LinkTarget_set_include
,$(1),\
1710 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1714 else # !SYSTEM_ODFGEN
1718 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1722 define gb_LinkTarget__use_odfgen
1723 $(call gb_LinkTarget_set_include
,$(1),\
1724 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1727 $(call gb_LinkTarget_use_libraries
,$(1),\
1735 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1739 define gb_LinkTarget__use_odfgen
1740 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1742 $(call gb_LinkTarget_set_include
,$(1),\
1743 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1744 -DLIBODFGEN_VISIBILITY \
1747 $(call gb_LinkTarget_add_libs
,$(1),\
1748 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1755 endif # SYSTEM_ODFGEN
1757 ifneq ($(SYSTEM_EPUBGEN
),)
1759 define gb_LinkTarget__use_epubgen
1760 $(call gb_LinkTarget_set_include
,$(1),\
1764 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1767 gb_ExternalProject__use_epubgen
:=
1769 else # !SYSTEM_EPUBGEN
1770 ifneq ($(ENABLE_WASM_STRIP_EPUB
),TRUE
)
1772 define gb_LinkTarget__use_epubgen
1773 $(call gb_LinkTarget_set_include
,$(1),\
1774 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1777 $(call gb_LinkTarget_add_libs
,$(1),\
1778 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1780 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1783 define gb_ExternalProject__use_epubgen
1784 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1788 endif # ENABLE_WASM_STRIP_EPUB
1789 endif # SYSTEM_EPUBGEN
1791 ifneq ($(SYSTEM_REVENGE
),)
1793 define gb_LinkTarget__use_revenge
1794 $(call gb_LinkTarget_set_include
,$(1),\
1798 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1802 gb_ExternalProject__use_revenge
:=
1804 else # !SYSTEM_REVENGE
1808 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1812 define gb_LinkTarget__use_revenge
1813 $(call gb_LinkTarget_set_include
,$(1),\
1817 $(call gb_LinkTarget_use_libraries
,$(1),\
1823 define gb_ExternalProject__use_revenge
1824 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1830 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1834 define gb_LinkTarget__use_revenge
1835 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1837 $(call gb_LinkTarget_set_include
,$(1),\
1839 -DLIBREVENGE_VISIBILITY \
1842 $(call gb_LinkTarget_add_libs
,$(1),\
1847 define gb_ExternalProject__use_revenge
1848 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1854 endif # SYSTEM_REVENGE
1857 ifneq ($(SYSTEM_ABW
),)
1859 define gb_LinkTarget__use_abw
1860 $(call gb_LinkTarget_set_include
,$(1),\
1864 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1867 gb_ExternalProject__use_abw
:=
1871 define gb_LinkTarget__use_abw
1872 $(call gb_LinkTarget_set_include
,$(1),\
1873 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1876 $(call gb_LinkTarget_add_libs
,$(1),\
1877 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1879 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1882 define gb_ExternalProject__use_abw
1883 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1890 ifneq ($(SYSTEM_MSPUB
),)
1892 define gb_LinkTarget__use_mspub
1893 $(call gb_LinkTarget_set_include
,$(1),\
1897 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1901 else # !SYSTEM_MSPUB
1903 define gb_LinkTarget__use_mspub
1904 $(call gb_LinkTarget_set_include
,$(1),\
1905 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1908 $(call gb_LinkTarget_add_libs
,$(1),\
1909 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1911 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1915 endif # SYSTEM_MSPUB
1918 ifneq ($(SYSTEM_PAGEMAKER
),)
1920 define gb_LinkTarget__use_pagemaker
1921 $(call gb_LinkTarget_set_include
,$(1),\
1923 $(PAGEMAKER_CFLAGS
) \
1925 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1928 gb_ExternalProject__use_pagemaker
:=
1930 else # !SYSTEM_PAGEMAKER
1932 define gb_LinkTarget__use_pagemaker
1933 $(call gb_LinkTarget_set_include
,$(1),\
1934 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1937 $(call gb_LinkTarget_add_libs
,$(1),\
1938 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1940 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1943 define gb_ExternalProject__use_pagemaker
1944 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1948 endif # SYSTEM_PAGEMAKER
1951 ifneq ($(SYSTEM_QXP
),)
1953 define gb_LinkTarget__use_qxp
1954 $(call gb_LinkTarget_set_include
,$(1),\
1958 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
1961 gb_ExternalProject__use_qxp
:=
1965 define gb_LinkTarget__use_qxp
1966 $(call gb_LinkTarget_set_include
,$(1),\
1967 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
1970 $(call gb_LinkTarget_add_libs
,$(1),\
1971 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1973 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
1976 define gb_ExternalProject__use_qxp
1977 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
1984 ifneq ($(SYSTEM_ZMF
),)
1986 define gb_LinkTarget__use_zmf
1987 $(call gb_LinkTarget_set_include
,$(1),\
1991 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
1994 gb_ExternalProject__use_zmf
:=
1998 define gb_LinkTarget__use_zmf
1999 $(call gb_LinkTarget_set_include
,$(1),\
2000 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2003 $(call gb_LinkTarget_add_libs
,$(1),\
2004 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2006 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2009 define gb_ExternalProject__use_zmf
2010 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2017 ifneq ($(SYSTEM_VISIO
),)
2019 define gb_LinkTarget__use_visio
2020 $(call gb_LinkTarget_set_include
,$(1),\
2024 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2028 else # !SYSTEM_VISIO
2030 define gb_LinkTarget__use_visio
2031 $(call gb_LinkTarget_set_include
,$(1),\
2032 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2035 $(call gb_LinkTarget_add_libs
,$(1),\
2036 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2038 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2042 endif # SYSTEM_VISIO
2045 ifneq ($(SYSTEM_WPD
),)
2047 define gb_LinkTarget__use_wpd
2048 $(call gb_LinkTarget_set_include
,$(1),\
2052 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2055 gb_ExternalProject__use_wpd
:=
2061 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2065 define gb_LinkTarget__use_wpd
2066 $(call gb_LinkTarget_set_include
,$(1),\
2070 $(call gb_LinkTarget_use_libraries
,$(1),\
2076 define gb_ExternalProject__use_wpd
2077 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2083 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2087 define gb_LinkTarget__use_wpd
2088 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2090 $(call gb_LinkTarget_set_include
,$(1),\
2094 $(call gb_LinkTarget_add_libs
,$(1),\
2100 define gb_ExternalProject__use_wpd
2101 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2110 ifneq ($(SYSTEM_WPG
),)
2112 define gb_LinkTarget__use_wpg
2113 $(call gb_LinkTarget_set_include
,$(1),\
2117 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2120 gb_ExternalProject__use_wpg
:=
2126 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2130 define gb_LinkTarget__use_wpg
2131 $(call gb_LinkTarget_set_include
,$(1),\
2132 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2135 $(call gb_LinkTarget_use_libraries
,$(1),\
2143 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2147 define gb_LinkTarget__use_wpg
2148 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2150 $(call gb_LinkTarget_set_include
,$(1),\
2151 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2154 $(call gb_LinkTarget_add_libs
,$(1),\
2155 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2165 ifneq ($(SYSTEM_WPS
),)
2167 define gb_LinkTarget__use_wps
2168 $(call gb_LinkTarget_set_include
,$(1),\
2172 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2175 gb_ExternalProject__use_wps
:=
2181 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2185 define gb_LinkTarget__use_wps
2186 $(call gb_LinkTarget_set_include
,$(1),\
2187 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2191 $(call gb_LinkTarget_use_libraries
,$(1),\
2199 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2203 define gb_LinkTarget__use_wps
2204 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2206 $(call gb_LinkTarget_set_include
,$(1),\
2207 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2210 $(call gb_LinkTarget_add_libs
,$(1),\
2211 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2221 ifneq ($(SYSTEM_MWAW
),)
2223 define gb_LinkTarget__use_mwaw
2224 $(call gb_LinkTarget_set_include
,$(1),\
2228 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2236 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2240 define gb_LinkTarget__use_mwaw
2241 $(call gb_LinkTarget_set_include
,$(1),\
2242 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2246 $(call gb_LinkTarget_use_libraries
,$(1),\
2254 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2258 define gb_LinkTarget__use_mwaw
2259 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2261 $(call gb_LinkTarget_set_include
,$(1),\
2262 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2265 $(call gb_LinkTarget_add_libs
,$(1),\
2266 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2275 ifneq ($(SYSTEM_STAROFFICE
),)
2277 define gb_LinkTarget__use_staroffice
2278 $(call gb_LinkTarget_set_include
,$(1),\
2280 $(STAROFFICE_CFLAGS
) \
2282 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2286 else # !SYSTEM_STAROFFICE
2290 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2294 define gb_LinkTarget__use_staroffice
2295 $(call gb_LinkTarget_set_include
,$(1),\
2296 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2300 $(call gb_LinkTarget_use_libraries
,$(1),\
2308 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2312 define gb_LinkTarget__use_staroffice
2313 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2315 $(call gb_LinkTarget_set_include
,$(1),\
2316 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2319 $(call gb_LinkTarget_add_libs
,$(1),\
2320 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2327 endif # SYSTEM_STAROFFICE
2330 ifneq ($(SYSTEM_LCMS2
),)
2332 define gb_LinkTarget__use_lcms2
2333 $(call gb_LinkTarget_set_include
,$(1),\
2337 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2341 gb_ExternalProject__use_lcms2
:=
2343 else # !SYSTEM_LCMS2
2345 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2349 define gb_ExternalProject__use_lcms2
2350 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2354 ifeq ($(OS
),ANDROID
)
2356 define gb_LinkTarget__use_lcms2
2357 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2358 $(call gb_LinkTarget_set_include
,$(1),\
2359 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2367 define gb_LinkTarget__use_lcms2
2368 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2369 $(call gb_LinkTarget_set_include
,$(1),\
2370 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2373 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2378 endif # SYSTEM_LCMS2
2380 ifneq ($(ENABLE_LPSOLVE
),)
2382 ifneq ($(SYSTEM_LPSOLVE
),)
2384 define gb_LinkTarget__use_lpsolve
2385 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2386 $(call gb_LinkTarget_add_defs
,$(1),\
2392 else # !SYSTEM_LPSOLVE
2394 define gb_LinkTarget__use_lpsolve
2395 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2397 $(call gb_LinkTarget_add_libs
,$(1),\
2398 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2401 $(call gb_LinkTarget_add_libs
,$(1),\
2402 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2405 $(call gb_LinkTarget_set_include
,$(1),\
2406 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2412 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2416 endif # SYSTEM_LPSOLVE
2420 gb_LinkTarget__use_lpsolve
:=
2422 endif # ENABLE_LPSOLVE
2424 ifneq ($(ENABLE_COINMP
),)
2426 ifneq ($(SYSTEM_COINMP
),TRUE
)
2428 define gb_LinkTarget__use_coinmp
2429 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2431 $(call gb_LinkTarget_add_libs
,$(1),\
2432 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2435 $(call gb_LinkTarget_add_libs
,$(1),\
2436 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2437 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2438 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2439 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2440 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2441 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2442 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2445 $(call gb_LinkTarget_set_include
,$(1),\
2446 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2447 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2453 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2457 else # SYSTEM_COINMP
2459 define gb_LinkTarget__use_coinmp
2460 $(call gb_LinkTarget_set_include
,$(1),\
2464 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2472 gb_LinkTarget__use_coinmp
:=
2474 endif # ENABLE_COINMP
2476 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2478 define gb_LinkTarget__use_mDNSResponder
2479 $(call gb_LinkTarget_set_include
,$(1),\
2480 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2483 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2486 endif # MDNSRESPONDER
2488 ifeq ($(ENABLE_GIO
),TRUE
)
2490 define gb_LinkTarget__use_gio
2491 $(call gb_LinkTarget_set_include
,$(1),\
2496 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2502 define gb_LinkTarget__use_gio
2508 ifeq ($(ENABLE_AVAHI
),TRUE
)
2510 define gb_LinkTarget__use_avahi
2511 $(call gb_LinkTarget_set_include
,$(1),\
2516 $(call gb_LinkTarget_add_defs
,$(1),\
2520 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2526 gb_LinkTarget__use_avahi
:=
2528 endif # ENABLE_AVAHI
2530 ifeq ($(ENABLE_CUPS
),TRUE
)
2532 define gb_LinkTarget__use_cups
2533 $(call gb_LinkTarget_add_defs
,$(1),\
2537 $(call gb_LinkTarget_add_libs
,$(1),\
2545 define gb_LinkTarget__use_cups
2551 ifeq ($(ENABLE_DBUS
),TRUE
)
2553 define gb_LinkTarget__use_dbus
2554 $(call gb_LinkTarget_set_include
,$(1),\
2559 $(call gb_LinkTarget_add_libs
,$(1),\
2567 define gb_LinkTarget__use_dbus
2574 ifneq ($(SYSTEM_LIBPNG
),)
2576 define gb_LinkTarget__use_libpng
2577 $(call gb_LinkTarget_set_include
,$(1),\
2582 $(call gb_LinkTarget_add_libs
,$(1),\
2588 gb_ExternalProject__use_libpng
:=
2590 else # !SYSTEM_LIBPNG
2592 define gb_LinkTarget__use_libpng
2593 $(call gb_LinkTarget_set_include
,$(1),\
2597 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2600 $(call gb_LinkTarget__use_zlib
,$(1))
2604 define gb_ExternalProject__use_libpng
2605 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2611 endif # !SYSTEM_LIBPNG
2613 ifneq ($(SYSTEM_LIBTIFF
),)
2615 define gb_LinkTarget__use_libtiff
2616 $(call gb_LinkTarget_set_include
,$(1),\
2621 $(call gb_LinkTarget_add_libs
,$(1),\
2627 gb_ExternalProject__use_libtiff
:=
2629 else # !SYSTEM_LIBTIFF
2631 define gb_LinkTarget__use_libtiff
2632 $(call gb_LinkTarget_set_include
,$(1),\
2637 $(call gb_LinkTarget_set_include
,$(1),\
2638 -I
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff \
2642 $(call gb_LinkTarget_add_libs
,$(1),\
2643 $(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
/libtiff
$(gb_StaticLibrary_PLAINEXT
) \
2646 $(call gb_LinkTarget_add_libs
,$(1),\
2647 -L
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
-ltiff \
2650 $(call gb_LinkTarget_use_external_project
,$(1),libtiff
,full
)
2654 define gb_ExternalProject__use_libtiff
2655 $(call gb_ExternalProject_use_external_project
,$(1),libtiff
)
2659 endif # !SYSTEM_LIBTIFF
2661 ifneq ($(SYSTEM_LIBWEBP
),)
2663 define gb_LinkTarget__use_libwebp
2664 $(call gb_LinkTarget_set_include
,$(1),\
2669 $(call gb_LinkTarget_add_libs
,$(1),\
2675 gb_ExternalProject__use_libwebp
:=
2677 else # !SYSTEM_LIBWEBP
2679 define gb_LinkTarget__use_libwebp
2680 $(call gb_LinkTarget_set_include
,$(1),\
2685 $(call gb_LinkTarget_set_include
,$(1),\
2686 -I
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src \
2690 $(call gb_LinkTarget_add_libs
,$(1),\
2691 $(call gb_UnpackedTarball_get_dir
,libwebp
)/output
/lib
/libwebp
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
)$(gb_StaticLibrary_PLAINEXT
) \
2694 $(call gb_LinkTarget_add_libs
,$(1),\
2695 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src
/.libs
-lwebp \
2698 $(call gb_LinkTarget_use_external_project
,$(1),libwebp
)
2702 define gb_ExternalProject__use_libwebp
2703 $(call gb_ExternalProject_use_external_project
,$(1),libwebp
)
2707 endif # !SYSTEM_LIBWEBP
2710 ifneq ($(SYSTEM_CURL
),)
2712 define gb_LinkTarget__use_curl
2713 $(call gb_LinkTarget_add_defs
,$(1),\
2716 $(call gb_LinkTarget_set_include
,$(1),\
2720 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2726 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2730 define gb_LinkTarget__use_curl
2731 $(call gb_LinkTarget_use_package
,$(1),curl
)
2732 $(call gb_LinkTarget_set_include
,$(1),\
2733 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2738 $(call gb_LinkTarget_add_libs
,$(1),\
2739 $(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 \
2742 $(call gb_LinkTarget_add_libs
,$(1),\
2743 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2751 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2753 define gb_LinkTarget__use_valgrind
2754 $(call gb_LinkTarget_add_defs
,$(1),\
2755 -DHAVE_VALGRIND_HEADERS \
2758 $(call gb_LinkTarget_set_include
,$(1),\
2760 $(VALGRIND_CFLAGS
) \
2765 else # !ENABLE_VALGRIND
2767 define gb_LinkTarget__use_valgrind
2771 endif # ENABLE_VALGRIND
2773 ifeq ($(ENABLE_POPPLER
),TRUE
)
2775 ifneq ($(SYSTEM_POPPLER
),)
2777 define gb_LinkTarget__use_poppler
2778 $(call gb_LinkTarget_set_include
,$(1),\
2783 $(call gb_LinkTarget_add_libs
,$(1),\
2789 else # !SYSTEM_POPPLER
2791 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2795 define gb_LinkTarget__use_poppler
2796 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2797 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2798 $(call gb_LinkTarget_set_include
,$(1),\
2799 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2800 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2801 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2805 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2806 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2809 $(call gb_LinkTarget_add_libs
,$(1),\
2812 else ifeq ($(OS
),LINUX
)
2813 $(call gb_LinkTarget_add_libs
,$(1),\
2816 else ifeq ($(OS
),WNT
)
2817 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2825 endif # SYSTEM_POPPLER
2827 endif # ENABLE_POPPLER
2830 ifneq ($(SYSTEM_CLUCENE
),)
2832 define gb_LinkTarget__use_clucene
2833 $(call gb_LinkTarget_add_defs
,$(1),\
2834 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2837 $(call gb_LinkTarget_set_include
,$(1),\
2838 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2842 $(call gb_LinkTarget_add_libs
,$(1),\
2848 else # !SYSTEM_CLUCENE
2850 define gb_LinkTarget__use_clucene
2851 $(call gb_LinkTarget_set_include
,$(1),\
2852 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2853 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2854 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2858 $(call gb_LinkTarget_use_libraries
,$(1),\
2864 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2865 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2868 endif # SYSTEM_CLUCENE
2870 define gb_LinkTarget__use_gobject
2871 $(call gb_LinkTarget_add_libs
,$(1),\
2875 $(call gb_LinkTarget_set_include
,$(1),\
2881 ifneq ($(SYSTEM_HSQLDB
),)
2883 define gb_LinkTarget__use_hsqldb
2885 $(call gb_LinkTarget_add_defs
,$(1),\
2887 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2892 else # !SYSTEM_HSQLDB
2894 define gb_LinkTarget__use_hsqldb
2898 endif # SYSTEM_HSQLDB
2900 ifeq ($(ENABLE_LDAP
),TRUE
)
2901 ifneq ($(SYSTEM_OPENLDAP
),)
2903 define gb_LinkTarget__use_openldap
2905 $(call gb_LinkTarget_add_libs
,$(1),\
2912 gb_ExternalProject__use_openldap
:=
2914 else # !SYSTEM_OPENLDAP
2916 define gb_LinkTarget__use_openldap
2917 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2918 $(call gb_LinkTarget_set_include
,$(1),\
2919 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2922 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2923 $(call gb_LinkTarget_add_libs
,$(1), \
2924 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2925 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2931 define gb_ExternalProject__use_openldap
2932 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2936 endif # SYSTEM_OPENLDAP
2938 ifneq ($(SYSTEM_LIBTOMMATH
),)
2940 define gb_LinkTarget__use_libtommath
2941 $(call gb_LinkTarget_set_include
,$(1),\
2942 $(LIBTOMMATH_CFLAGS
) \
2945 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2949 else # !SYSTEM_LIBTOMMATH
2950 define gb_LinkTarget__use_libtommath
2951 $(call gb_LinkTarget_set_include
,$(1),\
2952 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2955 $(call gb_LinkTarget_add_libs
,$(1),\
2956 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2958 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2962 endif # SYSTEM_LIBTOMMATH
2964 define gb_ExternalProject__use_libtommath
2965 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2969 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2971 ifneq ($(SYSTEM_FIREBIRD
),)
2973 define gb_LinkTarget__use_libfbembed
2974 $(call gb_LinkTarget_set_include
,$(1),\
2975 $(FIREBIRD_CFLAGS
) \
2978 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2982 else # !SYSTEM_FIREBIRD
2984 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
2988 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2989 #$(call gb_LinkTarget__use_libtommath,$(1))
2991 define gb_LinkTarget__use_libfbembed
2992 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2993 $(call gb_LinkTarget_set_include
,$(1),\
2994 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
2998 $(call gb_LinkTarget_add_libs
,$(1),\
2999 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
3002 $(call gb_LinkTarget_add_libs
,$(1),\
3003 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3012 endif # SYSTEM_FIREBIRD
3014 else # !ENABLE_FIREBIRD_SDBC
3016 gb_LinkTarget__use_firebird
:=
3017 # gb_LinkTarget__use_atomic_ops :=
3018 # gb_LinkTarget__use_libtommath :=
3020 endif # ENABLE_FIREBIRD_SDBC
3023 ifneq ($(SYSTEM_POSTGRESQL
),)
3025 define gb_LinkTarget__use_postgresql
3027 $(call gb_LinkTarget_set_include
,$(1),\
3032 $(call gb_LinkTarget_add_libs
,$(1),\
3036 $(call gb_LinkTarget_add_ldflags
,$(1),\
3042 else # !SYSTEM_POSTGRESQL
3045 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3050 define gb_LinkTarget__use_postgresql
3052 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3054 $(call gb_LinkTarget_set_include
,$(1),\
3055 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3056 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3062 $(call gb_LinkTarget_add_libs
,$(1),\
3063 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3068 $(call gb_LinkTarget_add_libs
,$(1),\
3069 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3070 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3071 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3072 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3077 endef # gb_LinkTarget__use_postgresql
3079 endif # !SYSTEM_POSTGRESQL
3081 ifneq (,$(filter TRUE
,$(ENABLE_KF5
) $(ENABLE_GTK3_KDE5
)))
3083 define gb_LinkTarget__use_kf5
3084 $(call gb_LinkTarget_set_include
,$(1),\
3085 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3089 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3090 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3093 $(call gb_LinkTarget_add_libs
,$(1),\
3101 define gb_LinkTarget__use_kf5
3109 ifneq (,$(filter TRUE
,$(ENABLE_QT5
) $(ENABLE_GTK3_KDE5
)))
3111 define gb_LinkTarget__use_qt5
3112 $(call gb_LinkTarget_set_include
,$(1),\
3113 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3117 $(call gb_LinkTarget_add_defs
,$(1),\
3118 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3121 $(call gb_LinkTarget_add_libs
,$(1),\
3129 define gb_LinkTarget__use_qt5
3135 ifeq ($(ENABLE_QT6
),TRUE
)
3137 define gb_LinkTarget__use_qt6
3138 $(call gb_LinkTarget_set_include
,$(1),\
3139 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3143 $(call gb_LinkTarget_add_defs
,$(1),\
3144 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3147 $(call gb_LinkTarget_add_libs
,$(1),\
3155 define gb_LinkTarget__use_qt6
3163 # extra python_headers external because pyuno wrapper must not link python
3164 ifneq ($(SYSTEM_PYTHON
),)
3166 define gb_LinkTarget__use_python_headers
3167 $(call gb_LinkTarget_add_defs
,$(1),\
3168 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3171 $(call gb_LinkTarget_set_include
,$(1),\
3172 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3178 define gb_LinkTarget__use_python
3179 $(call gb_LinkTarget__use_python_headers
,$(1))
3181 $(call gb_LinkTarget_add_libs
,$(1),\
3187 else # !SYSTEM_PYTHON
3189 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3191 $(if
$(filter WNT
,$(OS
)),libffi
) \
3194 define gb_LinkTarget__use_python_headers
3195 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3196 $(call gb_LinkTarget_set_include
,$(1),\
3197 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3198 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3199 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3205 define gb_LinkTarget__use_python
3206 $(call gb_LinkTarget__use_python_headers
,$(1))
3208 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3210 $(call gb_LinkTarget_use_package
,$(1),python3
)
3214 ifeq ($(CPUNAME
),X86_64
)
3215 python_arch_subdir
=amd64
/
3216 else ifeq ($(CPUNAME
),AARCH64
)
3217 python_arch_subdir
=arm64
/
3219 python_arch_subdir
=win32
/
3221 $(call gb_LinkTarget_add_libs
,$(1),\
3222 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3224 else ifeq ($(OS
),MACOSX
)
3225 $(call gb_LinkTarget_add_libs
,$(1),\
3226 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3229 $(call gb_LinkTarget_add_libs
,$(1),\
3230 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3231 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3237 # this is only used by python currently
3238 define gb_ExternalProject__use_libffi
3239 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3243 endif # SYSTEM_PYTHON
3246 ifneq ($(SYSTEM_LIBORCUS
),)
3248 define gb_LinkTarget__use_orcus
3249 $(call gb_LinkTarget_set_include
,$(1),\
3253 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3256 define gb_LinkTarget__use_orcus-parser
3260 else # !SYSTEM_LIBORCUS
3264 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3269 define gb_LinkTarget__use_orcus
3270 $(call gb_LinkTarget_set_include
,$(1),\
3271 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3275 $(call gb_LinkTarget_use_libraries
,$(1),\
3281 define gb_LinkTarget__use_orcus-parser
3282 $(call gb_LinkTarget_set_include
,$(1),\
3283 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3287 $(call gb_LinkTarget_use_libraries
,$(1),\
3295 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3299 define gb_LinkTarget__use_orcus
3300 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3302 $(call gb_LinkTarget_set_include
,$(1),\
3303 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3307 $(call gb_LinkTarget_add_libs
,$(1),\
3308 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.17 \
3311 $(if
$(SYSTEM_BOOST
), \
3312 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3313 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3318 define gb_LinkTarget__use_orcus-parser
3319 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3321 $(call gb_LinkTarget_set_include
,$(1),\
3322 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3326 $(call gb_LinkTarget_add_libs
,$(1),\
3327 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.17 \
3334 endif # SYSTEM_LIBORCUS
3336 ifeq ($(ENABLE_EOT
),TRUE
)
3338 ifneq ($(SYSTEM_LIBEOT
),)
3340 define gb_LinkTarget__use_libeot
3341 $(call gb_LinkTarget_set_include
,$(1),\
3345 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3349 gb_ExternalProject__use_libeot
:=
3351 else # !SYSTEM_LIBEOT
3353 define gb_LinkTarget__use_libeot
3354 $(call gb_LinkTarget_set_include
,$(1),\
3355 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3358 $(call gb_LinkTarget_add_libs
,$(1),\
3359 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3361 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3365 define gb_ExternalProject__use_libeot
3366 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3370 endif # SYSTEM_LIBEOT
3374 gb_LinkTarget__use_libeot
:=
3375 gb_ExternalProject__use_libeot
:=
3381 ifeq ($(USING_X11
), TRUE
)
3383 define gb_LinkTarget__use_Xrandr
3384 $(call gb_LinkTarget_set_include
,$(1),\
3389 $(call gb_LinkTarget_add_libs
,$(1),\
3394 define gb_LinkTarget__use_Xrender
3395 $(call gb_LinkTarget_set_include
,$(1),\
3400 $(call gb_LinkTarget_add_libs
,$(1),\
3408 gb_ExternalProject__use_nss3
:=
3411 ifneq ($(SYSTEM_NSS
),)
3413 define gb_LinkTarget__use_nss3
3414 $(call gb_LinkTarget_add_defs
,$(1),\
3418 $(call gb_LinkTarget_set_include
,$(1),\
3423 $(call gb_LinkTarget_add_libs
,$(1),\
3429 define gb_LinkTarget__use_nssutil3
3430 $(call gb_LinkTarget__use_nss3
,$(1))
3434 define gb_LinkTarget__use_plc4
3435 $(call gb_LinkTarget__use_nss3
,$(1))
3439 define gb_LinkTarget__use_ssl3
3440 $(call gb_LinkTarget__use_nss3
,$(1))
3446 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3450 define gb_LinkTarget__use_nss3
3451 $(call gb_LinkTarget_use_package
,$(1),nss
)
3452 $(call gb_LinkTarget_set_include
,$(1),\
3454 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3455 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3459 $(call gb_LinkTarget_add_libs
,$(1),\
3460 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3461 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3462 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3465 $(call gb_LinkTarget_add_libs
,$(1),\
3466 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3475 define gb_LinkTarget__use_plc4
3476 $(call gb_LinkTarget_use_package
,$(1),nss
)
3478 $(call gb_LinkTarget_add_libs
,$(1),\
3479 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3482 $(call gb_LinkTarget_add_libs
,$(1),\
3483 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3489 define gb_LinkTarget__use_ssl3
3490 $(call gb_LinkTarget_use_package
,$(1),nss
)
3492 $(call gb_LinkTarget_add_libs
,$(1),\
3493 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3496 $(call gb_LinkTarget_add_libs
,$(1),\
3497 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3503 define gb_LinkTarget__use_nssutil3
3504 $(call gb_LinkTarget_use_package
,$(1),nss
)
3505 $(call gb_LinkTarget_set_include
,$(1),\
3507 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3508 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3512 $(call gb_LinkTarget_add_libs
,$(1),\
3513 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3516 $(call gb_LinkTarget_add_libs
,$(1),\
3517 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3524 define gb_ExternalProject__use_nss3
3525 $(call gb_ExternalProject_use_package
,$(1),nss
)
3531 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3533 define gb_LinkTarget__use_breakpad
3534 $(call gb_LinkTarget_set_include
,$(1),\
3535 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3540 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3544 $(call gb_LinkTarget_add_libs
,$(1),\
3545 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3549 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3553 endif # ENABLE_BREAKPAD
3555 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3557 ifneq ($(SYSTEM_GPGMEPP
),)
3559 gb_ExternalProject__use_gpgmepp
:=
3560 gb_ExternalProject__use_libassuan
:=
3561 gb_ExternalProject__use_libgpg-error
:=
3563 define gb_LinkTarget__use_gpgmepp
3564 $(call gb_LinkTarget_set_include
,$(1),\
3566 $$(GPGMEPP_CFLAGS
) \
3569 $(call gb_LinkTarget_add_libs
,$(1),\
3575 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3577 define gb_ExternalProject__use_gpgmepp
3578 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3581 define gb_ExternalProject__use_libassuan
3582 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3585 define gb_ExternalProject__use_libgpg-error
3586 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3590 ifneq ($(filter WNT
,$(OS
)),)
3592 define gb_LinkTarget__use_libgpg-error
3593 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3595 $(call gb_LinkTarget_set_include
,$(1),\
3596 $(GPG_ERROR_CFLAGS
) \
3599 $(call gb_LinkTarget_add_libs
,$(1),\
3600 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3605 define gb_LinkTarget__use_libassuan
3606 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3608 $(call gb_LinkTarget_set_include
,$(1),\
3609 $(LIBASSUAN_CFLAGS
) \
3612 $(call gb_LinkTarget_add_libs
,$(1),\
3613 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3618 define gb_LinkTarget__use_gpgmepp
3619 $(call gb_LinkTarget_set_include
,$(1),\
3620 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3621 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3622 $$(GPG_ERROR_CFLAGS
) \
3625 $(call gb_LinkTarget_use_libraries
,$(1),\
3631 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3637 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3643 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3645 define gb_LinkTarget__use_gpgmepp
3646 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3648 $(call gb_LinkTarget_set_include
,$(1),\
3649 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3650 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3651 $$(GPG_ERROR_CFLAGS
) \
3654 $(call gb_LinkTarget_add_libs
,$(1),\
3655 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3656 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3657 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3658 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3663 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3673 else # !ENABLE_GPGMEPP
3675 gb_ExternalProject__use_gpgmepp
:=
3676 gb_ExternalProject__use_libassuan
:=
3677 gb_ExternalProject__use_libgpg-error
:=
3679 gb_LinkTarget__use_gpgmepp
:=
3680 gb_LinkTarget__use_libassuan
:=
3681 gb_LinkTarget__use_libgpg-error
:=
3683 endif # ENABLE_GPGMEPP
3685 define gb_LinkTarget__use_dconf
3686 $(call gb_LinkTarget_set_include
,$(1),\
3691 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3694 ### Jars ############################################################
3696 ifneq ($(SYSTEM_HSQLDB
),)
3698 define gb_Jar__use_hsqldb
3699 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3701 define gb_JunitTest__use_hsqldb
3702 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3705 else # !SYSTEM_HSQLDB
3707 ifeq ($(ENABLE_JAVA
),TRUE
)
3708 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3713 define gb_Jar__use_hsqldb
3714 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3716 define gb_JunitTest__use_hsqldb
3717 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3720 endif # SYSTEM_HSQLDB
3723 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3725 ifneq ($(SYSTEM_BSH
),)
3727 define gb_Jar__use_bsh
3728 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3733 ifeq ($(ENABLE_JAVA
),TRUE
)
3734 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3739 define gb_Jar__use_bsh
3740 $(call gb_Jar_use_jar
,$(1),bsh
)
3747 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3749 ifneq ($(SYSTEM_RHINO
),)
3751 define gb_Jar__use_rhino
3752 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3755 else # !SYSTEM_RHINO
3757 ifeq ($(ENABLE_JAVA
),TRUE
)
3758 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3763 define gb_Jar__use_rhino
3764 $(call gb_Jar_use_jar
,$(1),js
)
3767 endif # SYSTEM_RHINO
3771 ifneq ($(SYSTEM_JFREEREPORT
),)
3773 define gb_Jar__use_flow-engine
3774 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3777 define gb_Jar__use_flute
3778 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3781 define gb_Jar__use_libbase
3782 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3785 define gb_Jar__use_libfonts
3786 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3789 define gb_Jar__use_libformula
3790 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3793 define gb_Jar__use_liblayout
3794 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3797 define gb_Jar__use_libloader
3798 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3801 define gb_Jar__use_librepository
3802 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3805 define gb_Jar__use_libserializer
3806 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3809 define gb_Jar__use_libxml
3810 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3813 define gb_Jar__use_sac
3814 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3817 else # !SYSTEM_JFREEREPORT
3819 ifeq ($(ENABLE_JAVA
),TRUE
)
3820 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3828 librepository-1.1
.6 \
3829 libserializer-1.1
.6 \
3835 define gb_Jar__use_flow-engine
3836 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3839 define gb_Jar__use_flute
3840 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3843 define gb_Jar__use_libbase
3844 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3847 define gb_Jar__use_libfonts
3848 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3851 define gb_Jar__use_libformula
3852 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3855 define gb_Jar__use_liblayout
3856 $(call gb_Jar_use_jar
,$(1),liblayout
)
3859 define gb_Jar__use_libloader
3860 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3863 define gb_Jar__use_librepository
3864 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3867 define gb_Jar__use_libserializer
3868 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3871 define gb_Jar__use_libxml
3872 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3875 define gb_Jar__use_sac
3876 $(call gb_Jar_use_jar
,$(1),sac
)
3879 endif # SYSTEM_JFREEREPORT
3884 define gb_Executable__register_bestreversemap
3885 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3886 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
3890 # TODO depending on the whole URE might be overkill, but I do not have a
3891 # Windows machine to debug it...
3892 define gb_Executable__register_climaker
3893 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3894 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3895 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3896 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3897 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3901 define gb_Executable__register_cppumaker
3902 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3903 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
3907 # This is used to determine what we need for 'build' platform.
3908 define gb_Executable__register_gengal
3909 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3910 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3911 $(call gb_Library_get_target_for_build
,localedata_en
) \
3912 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3913 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3914 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3915 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3916 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3917 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3918 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3919 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3920 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3921 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3922 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3926 ifeq ($(SYSTEM_ICU
),)
3928 define gb_Executable__register_gendict
3929 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3930 $(call gb_Package_get_target_for_build
,icu
) \
3931 $(call gb_Package_get_target_for_build
,icu_ure
) \
3937 define gb_Executable__register_localize
3938 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3939 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3940 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3945 # FIXME ure/services.rdb needs cleanup
3946 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3947 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3948 define gb_Executable__register_saxparser
3949 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3950 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3951 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3952 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3953 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3954 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3958 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3959 # required due to the settings for URE_SERVICES and URE_TYPES in
3960 # cppuhelper/source/unorc
3961 define gb_Executable__register_uno
3962 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3963 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3964 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3965 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3970 # External executables
3972 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3974 gb_ExternalExecutable__register_xmllint
:=
3976 else # ! SYSTEM_LIBXML_FOR_BUILD
3978 define gb_ExternalExecutable__register_xmllint
3979 $(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
)
3980 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3981 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3982 $(call gb_Package_get_target
,libxml2
) \
3987 endif # SYSTEM_LIBXML_FOR_BUILD
3989 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3991 gb_ExternalExecutable__register_xsltproc
:=
3993 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3995 define gb_ExternalExecutable__register_xsltproc
3996 $(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
)
3997 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3998 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3999 $(call gb_Package_get_target
,libxml2
) \
4000 $(call gb_Package_get_target
,libxslt
) \
4005 endif # SYSTEM_LIBXSLT_FOR_BUILD
4007 ifeq (,$(PYTHON_FOR_BUILD
))
4009 define gb_ExternalExecutable__register_python
4012 # use set_external, to avoid having the command added as prerequisite for the
4013 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4014 # matching rule to build that specific file)
4015 $(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
))
4016 # the Zip ensures that internal python has been built (cannot use the Package
4017 # target, as that is not used on Mac)
4018 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4022 $(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
))
4023 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4024 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4032 define gb_ExternalExecutable__register_python
4033 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4037 endif # PYTHON_FOR_BUILD
4039 ifneq ($(SYSTEM_GENBRK
),)
4041 define gb_ExternalExecutable__register_genbrk
4042 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4046 else # ! SYSTEM_GENBRK
4048 define gb_ExternalExecutable__register_genbrk
4049 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4050 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4051 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4052 $(call gb_Package_get_target_for_build
,icu
) \
4053 $(call gb_Package_get_target_for_build
,icu_ure
) \
4060 ifneq ($(SYSTEM_GENCCODE
),)
4062 define gb_ExternalExecutable__register_genccode
4063 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4067 else # ! SYSTEM_GENCCODE
4069 define gb_ExternalExecutable__register_genccode
4070 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4071 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4072 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4073 $(call gb_Package_get_target_for_build
,icu
) \
4074 $(call gb_Package_get_target_for_build
,icu_ure
) \
4081 ifneq ($(SYSTEM_GENCMN
),)
4083 define gb_ExternalExecutable__register_gencmn
4084 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4088 else # ! SYSTEM_GENCMN
4090 define gb_ExternalExecutable__register_gencmn
4091 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4092 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4093 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4094 $(call gb_Package_get_target_for_build
,icu
) \
4095 $(call gb_Package_get_target_for_build
,icu_ure
) \
4102 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4103 ifneq ($(SYSTEM_BZIP2
),)
4105 define gb_LinkTarget__use_bzip2
4106 $(call gb_LinkTarget_set_include
,$(1),\
4110 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4114 gb_ExternalProject__use_bzip2
:=
4116 else # !SYSTEM_BZIP2
4118 define gb_LinkTarget__use_bzip2
4119 $(call gb_LinkTarget_set_include
,$(1),\
4120 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4125 $(call gb_LinkTarget_add_libs
,$(1),\
4126 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4129 $(call gb_LinkTarget_add_libs
,$(1),\
4130 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4134 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4137 define gb_ExternalProject__use_bzip2
4138 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4144 define gb_LinkTarget__use_clew
4145 $(call gb_LinkTarget_set_include
,$(1), \
4146 -I
$(SRCDIR
)/external
/clew
/source
/include \
4149 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4152 ifneq ($(ENABLE_PDFIUM
),)
4153 define gb_LinkTarget__use_pdfium
4154 $(call gb_LinkTarget_set_include
,$(1),\
4155 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4159 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4161 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4166 ifneq ($(SYSTEM_DRAGONBOX
),)
4168 define gb_LinkTarget__use_dragonbox
4169 $(call gb_LinkTarget_set_include
,$(1),\
4171 $$(DRAGONBOX_CFLAGS
) \
4177 define gb_LinkTarget__use_dragonbox
4178 $(call gb_LinkTarget_use_unpacked
,$(1),dragonbox
)
4179 $(call gb_LinkTarget_set_include
,$(1),\
4180 -I
$(call gb_UnpackedTarball_get_dir
,dragonbox
/include/)\
4187 define gb_LinkTarget__use_dtoa
4188 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4189 $(call gb_LinkTarget_set_include
,$(1),\
4190 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4193 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4199 define gb_ExternalProject__use_dtoa
4200 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4204 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4205 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4208 ifneq ($(SYSTEM_BOX2D
),)
4210 define gb_LinkTarget__use_box2d
4211 $(call gb_LinkTarget_set_include
,$(1),\
4216 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4220 gb_ExternalProject__use_box2d
:=
4222 else # !SYSTEM_BOX2D
4224 define gb_LinkTarget__use_box2d
4225 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4226 $(call gb_LinkTarget_set_include
,$(1),\
4227 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/include/)\
4230 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4236 define gb_ExternalProject__use_box2d
4237 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4241 endif # SYSTEM_BOX2D
4243 ifneq ($(SYSTEM_ZXING
),)
4245 define gb_LinkTarget__use_zxing
4246 $(call gb_LinkTarget_set_include
,$(1),\
4251 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4255 gb_ExternalProject__use_zxing
:=
4257 else # !SYSTEM_ZXING
4259 ifneq ($(ENABLE_ZXING
),)
4261 define gb_LinkTarget__use_zxing
4262 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4263 $(call gb_LinkTarget_set_include
,$(1),\
4264 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4267 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4273 define gb_ExternalProject__use_zxing
4274 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4278 else # !ENABLE_ZXING
4280 define gb_LinkTarget__use_zxing
4283 endif # ENABLE_ZXING
4285 endif # SYSTEM_ZXING
4287 # vim: set noet sw=4 ts=4: