1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # this file describes all the external libraries
21 # depending on the configure options these may be taken from the system,
22 # or the internal/bundled copy may be built.
24 # for every external, a function gb_LinkTarget__use_FOO is defined,
25 # once for the system case, once for the internal case.
27 # in the system case, no libraries should be registered, but the target-local
28 # variable LIBS should be set to FOO_LIBS, and INCLUDES to FOO_CFLAGS.
31 ifeq ($(CPUNAME
),X86_64
)
32 wnt_arch_subdir_optional
=x64
/
33 wnt_arch_subdir_mandatory
=x64
34 else ifeq ($(CPUNAME
),INTEL
)
35 wnt_arch_subdir_mandatory
=Win32
40 ifneq ($(SYSTEM_ODBC_HEADERS
),)
42 define gb_LinkTarget__use_odbc_headers
43 $(call gb_LinkTarget_add_defs
,$(1),\
44 -DSYSTEM_ODBC_HEADERS \
49 else # !SYSTEM_ODBC_HEADERS
51 define gb_LinkTarget__use_odbc_headers
52 $(call gb_LinkTarget_set_include
,$(1),\
53 -I
$(SRCDIR
)/external
/unixODBC
/inc \
59 endif # SYSTEM_ODBC_HEADERS
61 ifneq ($(SYSTEM_MDDS
),)
63 gb_ExternalProject__use_mdds_headers
:=
65 define gb_LinkTarget__use_mdds_headers
66 $(call gb_LinkTarget_set_include
,$(1),\
75 define gb_ExternalProject__use_mdds_headers
76 $(call gb_ExternalProject_use_unpacked
,$(1),mdds
)
80 define gb_LinkTarget__use_mdds_headers
81 $(call gb_LinkTarget_use_unpacked
,$(1),mdds
)
82 $(call gb_LinkTarget_set_include
,$(1),\
91 ifneq ($(SYSTEM_GLM
),)
93 define gb_LinkTarget__use_glm_headers
94 $(call gb_LinkTarget_add_defs
,$(1),\
95 -DGLM_FORCE_CTOR_INIT \
100 gb_ExternalProject__use_glm_headers
:=
104 define gb_LinkTarget__use_glm_headers
105 $(call gb_LinkTarget_add_defs
,$(1),\
106 -DGLM_FORCE_CTOR_INIT \
108 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
109 $(call gb_LinkTarget_set_include
,$(1),\
116 define gb_ExternalProject__use_glm_headers
117 $(call gb_ExternalProject_use_unpacked
,$(1),glm
)
123 ifneq ($(ENABLE_SKIA
),)
124 define gb_LinkTarget__use_skia
125 $(call gb_LinkTarget_set_include
,$(1),\
126 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/core \
127 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/effects \
128 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/gpu \
129 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/config \
130 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/ports \
131 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/private \
132 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/third_party
/vulkan \
133 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/tools
/gpu \
134 -I
$(call gb_UnpackedTarball_get_dir
,skia
) \
135 -I
$(SRCDIR
)/external
/skia
/inc
/ \
138 $(call gb_LinkTarget_use_libraries
,$(1),skia
)
139 $(call gb_LinkTarget_add_defs
,$(1),\
140 -DSK_USER_CONFIG_HEADER
="<$(BUILDDIR)/config_host/config_skia.h>" \
144 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
149 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
151 define gb_LinkTarget__use_sane_headers
152 $(call gb_LinkTarget_set_include
,$(1),\
153 $(if
$(filter WNT
,$(OS
)), \
154 -I
$(call gb_UnpackedTarball_get_dir
,twain_dsm
/pub
/include), \
155 -I
$(SRCDIR
)/external
/sane
/inc
) \
160 $(call gb_LinkTarget_use_unpacked
,$(1),twain_dsm
)
167 gb_LinkTarget__use_sane_headers
:=
171 ifneq ($(SYSTEM_BLUEZ
),)
173 gb_LinkTarget__use_bluez_bluetooth_headers
:=
177 define gb_LinkTarget__use_bluez_bluetooth_headers
178 $(call gb_LinkTarget_set_include
,$(1),\
179 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
189 ifneq ($(SYSTEM_CPPUNIT
),)
191 define gb_LinkTarget__use_cppunit
192 $(call gb_LinkTarget_set_include
,$(1),\
197 $(call gb_LinkTarget_add_libs
,$(1),\
203 else # !SYSTEM_CPPUNIT
205 define gb_LinkTarget__use_cppunit
206 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
208 $(call gb_LinkTarget_set_include
,$(1),\
209 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
214 $(call gb_LinkTarget_add_libs
,$(1),\
215 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
218 $(call gb_LinkTarget_add_libs
,$(1),\
219 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
225 endif # SYSTEM_CPPUNIT
228 ifeq ($(ENABLE_EPOXY
),TRUE
)
229 ifeq ($(SYSTEM_EPOXY
),TRUE
)
231 define gb_LinkTarget__use_epoxy
232 $(call gb_LinkTarget_set_include
,$(1),\
236 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
240 gb_ExternalProject__use_epoxy
:=
244 define gb_LinkTarget__use_epoxy
245 $(call gb_LinkTarget_set_include
,$(1),\
246 -I
$(call gb_UnpackedTarball_get_dir
,epoxy
/include) \
250 $(call gb_LinkTarget_use_libraries
,$(1),\
256 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
260 define gb_ExternalProject__use_epoxy
261 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
265 endif # !SYSTEM_EPOXY
268 gb_LinkTarget__use_epoxy
:=
269 gb_ExternalProject__use_epoxy
:=
271 endif # !ENABLE_EPOXY
274 define gb_LinkTarget__use_iconv
276 $(call gb_LinkTarget_add_libs
,$(1),libiconv.lib
)
278 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
282 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
284 define gb_LinkTarget__use_mariadb-connector-c
285 $(call gb_LinkTarget_set_include
,$(1),\
289 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
292 gb_ExternalProject__use_mariadb-connector-c
:=
294 else # !SYSTEM_MARIADB_CONNECTOR_C
296 define gb_LinkTarget__use_mariadb-connector-c
297 $(call gb_LinkTarget_set_include
,$(1),\
301 $(call gb_LinkTarget_use_static_libraries
,$(1),\
302 mariadb-connector-c \
305 $(call gb_LinkTarget_add_libs
,$(1),\
309 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
318 define gb_ExternalProject__use_mariadb-connector-c
319 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
323 endif # SYSTEM_MARIADB_CONNECTOR_C
326 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
328 define gb_LinkTarget__use_mysql
330 $(call gb_LinkTarget_add_defs
,$(1),\
334 $(call gb_LinkTarget_add_libs
,$(1),\
338 $(call gb_LinkTarget_set_include
,$(1),\
346 define gb_LinkTarget__use_mysql
348 $(call gb_LinkTarget_set_include
,$(1),\
356 ifneq ($(SYSTEM_ZLIB
),)
358 define gb_LinkTarget__use_zlib
359 $(call gb_LinkTarget_add_defs
,$(1),\
363 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
368 define gb_LinkTarget__use_zlib_x64
372 gb_ExternalProject__use_zlib
:=
376 define gb_LinkTarget__use_zlib_multiarch
377 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
379 $(call gb_LinkTarget_add_defs
,$(1), \
383 $(call gb_LinkTarget_set_include
,$(1),\
388 $(call gb_LinkTarget_use_static_libraries
,$(1),\
394 define gb_LinkTarget__use_zlib
395 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
399 define gb_LinkTarget__use_zlib_x64
400 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
404 define gb_ExternalProject__use_zlib
405 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
412 ifneq ($(SYSTEM_LIBJPEG
),)
414 define gb_LinkTarget__use_libjpeg
415 $(call gb_LinkTarget_set_include
,$(1),\
419 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
420 $(call gb_LinkTarget_set_ldflags
,$(1),\
421 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
426 gb_ExternalProject__use_libjpeg
:=
430 define gb_LinkTarget__use_libjpeg
431 $(call gb_LinkTarget_set_include
,$(1),\
432 -I
$(call gb_UnpackedTarball_get_dir
,libjpeg-turbo
) \
435 $(call gb_LinkTarget_use_static_libraries
,$(1),libjpeg-turbo
)
439 define gb_ExternalProject__use_libjpeg
440 $(call gb_ExternalProject_use_static_libraries
,$(1),libjpeg-turbo
)
444 endif # SYSTEM_LIBJPEG
446 ifneq ($(SYSTEM_MYTHES
),)
448 define gb_LinkTarget__use_mythes
449 $(call gb_LinkTarget_set_include
,$(1),\
453 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
457 else # !SYSTEM_MYTHES
459 define gb_LinkTarget__use_mythes
460 $(call gb_LinkTarget_set_include
,$(1),\
461 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
466 $(call gb_LinkTarget_use_static_libraries
,$(1),\
470 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
471 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
476 endif # SYSTEM_MYTHES
479 ifneq ($(SYSTEM_EXPAT
),)
481 define gb_LinkTarget__use_expat_impl
482 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
484 $(call gb_LinkTarget_add_defs
,$(1),\
488 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
492 gb_ExternalProject__use_expat
:=
496 define gb_LinkTarget__use_expat_impl
497 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
499 $(call gb_LinkTarget_set_include
,$(1),\
500 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
504 $(call gb_LinkTarget_use_static_libraries
,$(1),\
510 define gb_ExternalProject__use_expat
511 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
517 define gb_LinkTarget__use_expat
518 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
522 define gb_LinkTarget__use_expat_x64
523 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
527 ifneq ($(SYSTEM_HYPH
),)
529 define gb_LinkTarget__use_hyphen
530 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
536 define gb_LinkTarget__use_hyphen
537 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
538 $(call gb_LinkTarget_set_include
,$(1),\
539 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
544 $(call gb_LinkTarget_use_static_libraries
,$(1),\
548 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
549 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
556 ifneq ($(SYSTEM_HUNSPELL
),)
558 define gb_LinkTarget__use_hunspell
559 $(call gb_LinkTarget_set_include
,$(1),\
563 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
567 gb_ExternalProject__use_hunspell
:=
569 else # !SYSTEM_HUNSPELL
570 ifneq ($(ENABLE_WASM_STRIP_HUNSPELL
),TRUE
)
572 define gb_LinkTarget__use_hunspell
573 $(call gb_LinkTarget_add_defs
,$(1),\
576 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
577 $(call gb_LinkTarget_set_include
,$(1),\
578 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
583 $(call gb_LinkTarget_use_static_libraries
,$(1),\
587 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
588 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
593 define gb_ExternalProject__use_hunspell
594 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
598 endif # ENABLE_WASM_STRIP_HUNSPELL
599 endif # SYSTEM_HUNSPELL
602 ifneq ($(SYSTEM_BOOST
),)
604 define gb_LinkTarget__use_boost_lib
605 $(call gb_LinkTarget_set_include
,$(1),\
610 $(call gb_LinkTarget_add_ldflags
,$(1),\
614 $(call gb_LinkTarget_add_libs
,$(1),$(2))
618 define gb_LinkTarget__use_boost_locale
619 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
623 define gb_LinkTarget__use_boost_date_time
624 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
628 define gb_LinkTarget__use_boost_filesystem
629 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
633 gb_ExternalProject__use_boost_filesystem
:=
635 define gb_LinkTarget__use_boost_iostreams
636 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
640 gb_ExternalProject__use_boost_iostreams
:=
642 define gb_LinkTarget__use_boost_system
643 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
647 gb_ExternalProject__use_boost_system
:=
649 define gb_LinkTarget__use_boost_headers
650 $(call gb_LinkTarget_set_include
,$(1),\
657 gb_ExternalProject__use_boost_headers
:=
661 define gb_LinkTarget__use_boost_lib
662 $(call gb_LinkTarget_add_defs
,$(1),\
666 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
670 define gb_LinkTarget__use_boost_locale
671 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
672 $(call gb_LinkTarget_add_libs
,$(1),\
673 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
678 define gb_LinkTarget__use_boost_date_time
679 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
683 define gb_LinkTarget__use_boost_filesystem
684 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
688 define gb_ExternalProject__use_boost_filesystem
689 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
692 define gb_LinkTarget__use_boost_iostreams
693 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
697 define gb_ExternalProject__use_boost_iostreams
698 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
701 define gb_LinkTarget__use_boost_system
702 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
706 define gb_ExternalProject__use_boost_system
707 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
710 define gb_LinkTarget__use_boost_headers
711 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
712 $(call gb_LinkTarget_set_include
,$(1),\
719 define gb_ExternalProject__use_boost_headers
720 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
727 ifneq ($(SYSTEM_LIBCMIS
),)
729 define gb_LinkTarget__use_libcmis
730 $(call gb_LinkTarget_set_include
,$(1),\
734 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
738 else # !SYSTEM_LIBCMIS
740 define gb_LinkTarget__use_libcmis
741 $(call gb_LinkTarget_set_include
,$(1),\
742 -I
$(call gb_UnpackedTarball_get_dir
,libcmis
)/inc \
745 $(call gb_LinkTarget_use_static_libraries
,$(1),\
751 endif # SYSTEM_LIBCMIS
753 ifeq ($(ENABLE_JAVA
),TRUE
)
755 define gb_LinkTarget__use_jawt
756 $(call gb_LinkTarget_add_libs
,$(1),\
764 gb_LinkTarget__use_jawt
:=
768 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
770 define gb_LinkTarget__use_libatomic_ops
771 $(call gb_LinkTarget_set_include
,$(1),\
773 $(LIBATOMIC_OPS_CFLAGS
) \
775 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
778 gb_ExternalProject__use_libatomic_ops
:=
780 else # !SYSTEM_LIBATOMIC_OPS
782 define gb_LinkTarget__use_libatomic_ops
783 $(call gb_LinkTarget_set_include
,$(1),\
784 $(LIBATOMIC_OPS_CFLAGS
) \
786 $(LIBATOMIC_OPS_CFLAGS
) \
788 $(call gb_LinkTarget_use_external_project
,$(1),\
792 $(call gb_LinkTarget_add_libs
,$(1),\
793 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
798 define gb_ExternalProject__use_libatomic_ops
799 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
803 endif # SYSTEM_LIBATOMIC_OPS
806 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
808 define gb_LinkTarget__use_libexttextcat
809 $(call gb_LinkTarget_set_include
,$(1),\
811 $(LIBEXTTEXTCAT_CFLAGS
) \
813 $(call gb_LinkTarget_add_defs
,$(1),\
814 -DSYSTEM_LIBEXTTEXTCAT \
816 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
820 else # !SYSTEM_LIBEXTTEXTCAT
822 define gb_LinkTarget__use_libexttextcat
823 $(call gb_LinkTarget_set_include
,$(1),\
824 -I
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
829 $(call gb_LinkTarget_use_static_libraries
,$(1),\
833 $(call gb_LinkTarget_add_libs
,$(1),\
834 $(call gb_UnpackedTarball_get_dir
,libexttextcat
)/src
/.libs
/libexttextcat-2.0.a\
836 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
842 endif # SYSTEM_LIBEXTTEXTCAT
845 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
847 define gb_LinkTarget__use_libnumbertext
848 $(call gb_LinkTarget_set_include
,$(1),\
850 $(LIBNUMBERTEXT_CFLAGS
) \
852 $(call gb_LinkTarget_add_defs
,$(1),\
853 -DSYSTEM_LIBNUMBERTEXT \
855 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
859 else # !SYSTEM_LIBNUMBERTEXT
861 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
862 libnumbertext_numbertext \
865 define gb_LinkTarget__use_libnumbertext
866 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
867 $(call gb_LinkTarget_set_include
,$(1),\
868 -I
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
873 $(call gb_LinkTarget_use_static_libraries
,$(1),\
878 $(call gb_LinkTarget_add_libs
,$(1),\
879 $(call gb_UnpackedTarball_get_dir
,libnumbertext
)/src
/.libs
/libnumbertext-1.0.a\
881 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
887 endif # SYSTEM_LIBNUMBERTEXT
890 ifneq ($(SYSTEM_LIBXML
),)
892 define gb_LinkTarget__use_libxml2
893 $(call gb_LinkTarget_add_defs
,$(1),\
896 $(call gb_LinkTarget_set_include
,$(1),\
900 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
903 gb_ExternalProject__use_libxml2
:=
905 else # !SYSTEM_LIBXML
907 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
911 define gb_LinkTarget__use_libxml2
912 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
913 $(call gb_LinkTarget_set_include
,$(1),\
918 $(call gb_LinkTarget_add_libs
,$(1),\
923 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
927 define gb_ExternalProject__use_libxml2
928 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
931 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
936 endif # SYSTEM_LIBXML
939 ifneq ($(SYSTEM_LIBXSLT
),)
941 define gb_LinkTarget__use_libxslt
942 $(call gb_LinkTarget_set_include
,$(1),\
946 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
950 define gb_LinkTarget__use_libexslt
951 $(call gb_LinkTarget_set_include
,$(1),\
956 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
960 else # !SYSTEM_LIBXSLT
962 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
966 define gb_LinkTarget__use_libxslt
967 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
968 $(call gb_LinkTarget_set_include
,$(1),\
970 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
974 $(call gb_LinkTarget_add_libs
,$(1),\
975 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
978 $(call gb_LinkTarget_add_libs
,$(1),\
979 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libxslt
/.libs
-lxslt \
985 define gb_LinkTarget__use_libexslt
986 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
987 $(call gb_LinkTarget_set_include
,$(1),\
989 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
993 $(call gb_LinkTarget_add_libs
,$(1),\
994 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
997 $(call gb_LinkTarget_add_libs
,$(1),\
998 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libexslt
/.libs
-lexslt \
1004 endif # SYSTEM_LIBXSLT
1007 ifneq ($(SYSTEM_XMLSEC
),)
1009 define gb_LinkTarget__use_xmlsec
1010 $(call gb_LinkTarget_add_defs
,$(1),\
1013 $(call gb_LinkTarget_set_include
,$(1),\
1017 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
1021 gb_ExternalProject__use_xmlsec
:=
1023 else # !SYSTEM_XMLSEC
1025 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1029 define gb_LinkTarget__use_xmlsec
1033 endif # SYSTEM_XMLSEC
1035 ifneq ($(SYSTEM_LIBLANGTAG
),)
1037 define gb_LinkTarget__use_liblangtag
1038 $(call gb_LinkTarget_set_include
,$(1),\
1040 $(LIBLANGTAG_CFLAGS
) \
1043 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1047 gb_ExternalProject__use_liblangtag
:=
1049 else # !SYSTEM_LIBLANGTAG
1051 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1057 define gb_LinkTarget__use_liblangtag
1058 $(call gb_LinkTarget_set_include
,$(1),\
1059 $(LIBLANGTAG_CFLAGS
) \
1062 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1063 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1069 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1073 define gb_LinkTarget__use_liblangtag
1074 $(call gb_LinkTarget_set_include
,$(1),\
1075 $(LIBLANGTAG_CFLAGS
) \
1078 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1079 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1085 define gb_ExternalProject__use_liblangtag
1086 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1090 endif # SYSTEM_LIBLANGTAG
1093 ifneq ($(SYSTEM_REDLAND
),)
1095 define gb_LinkTarget__use_librdf
1096 $(call gb_LinkTarget_add_defs
,$(1),\
1099 $(call gb_LinkTarget_set_include
,$(1),\
1103 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1107 gb_LinkTarget__use_redland_headers
:=
1109 gb_LinkTarget__use_raptor_headers
:=
1111 gb_LinkTarget__use_rasqal_headers
:=
1113 else # !SYSTEM_REDLAND
1115 define gb_LinkTarget__use_redland_headers
1116 $(call gb_LinkTarget_set_include
,$(1),\
1117 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1123 define gb_LinkTarget__use_raptor_headers
1124 $(call gb_LinkTarget_set_include
,$(1),\
1125 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1131 define gb_LinkTarget__use_rasqal_headers
1132 $(call gb_LinkTarget_set_include
,$(1),\
1133 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1139 ifneq ($(OS
),ANDROID
)
1142 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1148 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1155 define gb_LinkTarget__use_librdf
1157 $(call gb_LinkTarget_use_libraries
,$(1),\
1162 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1164 $(call gb_LinkTarget_add_libs
,$(1),\
1165 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1166 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1167 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1175 define gb_LinkTarget__use_librdf
1176 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1182 endif # SYSTEM_REDLAND
1184 ifneq ($(SYSTEM_CAIRO
),)
1186 define gb_LinkTarget__use_cairo
1187 $(call gb_LinkTarget_set_include
,$(1),\
1191 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1192 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1196 else # !SYSTEM_CAIRO
1198 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1200 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1205 define gb_LinkTarget__use_cairo
1206 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1207 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1208 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1209 $(call gb_LinkTarget_set_include
,$(1),\
1210 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1211 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1212 -I
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman \
1215 $(call gb_LinkTarget_add_libs
,$(1),\
1216 $(if
$(filter EMSCRIPTEN
,$(OS
)), \
1217 $(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
/libcairo.a \
1218 $(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
/libpixman-1.a
, \
1219 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1220 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1
) \
1225 endif # !MACOSX, !WNT
1227 endif # !SYSTEM_CAIRO
1229 ifneq ($(SYSTEM_FREETYPE
),)
1231 define gb_LinkTarget__use_freetype_headers
1232 $(call gb_LinkTarget_set_include
,$(1),\
1234 $(FREETYPE_CFLAGS
) \
1239 gb_ExternalProject__use_freetype
:=
1243 define gb_LinkTarget__use_freetype_headers
1244 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1245 $(call gb_LinkTarget_set_include
,$(1),\
1246 $(FREETYPE_CFLAGS
) \
1252 define gb_ExternalProject__use_freetype
1253 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1257 endif # SYSTEM_FREETYPE
1259 define gb_LinkTarget__use_freetype
1260 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1261 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1265 ifneq ($(SYSTEM_FONTCONFIG
),)
1267 define gb_LinkTarget__use_fontconfig
1268 $(call gb_LinkTarget_set_include
,$(1),\
1270 $(FONTCONFIG_CFLAGS
) \
1273 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1277 ifeq ($(OS
),EMSCRIPTEN
)
1278 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1279 libfontconfig_data \
1283 gb_ExternalProject__use_fontconfig
:=
1285 else # SYSTEM_FONTCONFIG
1287 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1289 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1295 define gb_LinkTarget__use_fontconfig
1297 $(call gb_LinkTarget_use_package
,$(1),fontconfig
)
1299 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1301 $(call gb_LinkTarget_set_include
,$(1),\
1302 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1306 $(call gb_LinkTarget_add_libs
,$(1),\
1307 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1312 define gb_ExternalProject__use_fontconfig
1313 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1317 endif # SYSTEM_FONTCONFIG
1319 ifneq ($(SYSTEM_GRAPHITE
),)
1321 define gb_LinkTarget__use_graphite
1322 $(call gb_LinkTarget_set_include
,$(1),\
1324 $(GRAPHITE_CFLAGS
) \
1326 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1330 gb_ExternalProject__use_graphite
:=
1332 else # !SYSTEM_GRAPHITE
1334 define gb_LinkTarget__use_graphite
1335 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1336 $(call gb_LinkTarget_set_include
,$(1),\
1337 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1340 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1346 define gb_ExternalProject__use_graphite
1347 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1352 endif # SYSTEM_GRAPHITE
1354 ifneq ($(SYSTEM_ICU
),)
1356 gb_LinkTarget__use_icu_headers
:=
1357 gb_ExternalProject__use_icu
:=
1359 define gb_LinkTarget__use_icudata
1360 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1363 define gb_LinkTarget__use_icui18n
1364 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1367 define gb_LinkTarget__use_icuuc
1368 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1374 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1378 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1382 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1388 define gb_LinkTarget__use_icu_headers
1389 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1390 $(call gb_LinkTarget_set_include
,$(1),\
1391 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1392 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1393 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1399 define gb_ExternalProject__use_icu
1400 $(call gb_ExternalProject_use_package
,$(1),icu
)
1404 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1405 define gb_LinkTarget__use_icudata
1406 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1409 $(call gb_LinkTarget_add_libs
,$(1),\
1410 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1413 $(call gb_LinkTarget_add_libs
,$(1),\
1414 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1420 define gb_LinkTarget__use_icui18n
1421 $(call gb_LinkTarget_use_package
,$(1),icu
)
1424 $(call gb_LinkTarget_add_libs
,$(1),\
1425 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1428 $(call gb_LinkTarget_add_libs
,$(1),\
1429 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1435 define gb_LinkTarget__use_icuuc
1436 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1439 $(call gb_LinkTarget_add_libs
,$(1),\
1440 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1443 $(call gb_LinkTarget_add_libs
,$(1),\
1444 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1452 ifneq ($(SYSTEM_HARFBUZZ
),)
1454 define gb_LinkTarget__use_harfbuzz
1455 $(call gb_LinkTarget_set_include
,$(1),\
1457 $(HARFBUZZ_CFLAGS
) \
1459 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1463 gb_ExternalProject__use_harfbuzz
:=
1465 else # SYSTEM_HARFBUZZ != TRUE
1467 define gb_LinkTarget__use_harfbuzz
1468 $(call gb_LinkTarget_set_include
,$(1),\
1469 $(HARFBUZZ_CFLAGS
) \
1472 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1473 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1474 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1478 define gb_ExternalProject__use_harfbuzz
1479 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1483 endif # SYSTEM_HARFBUZZ
1485 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1487 gb_ExternalProject__use_openssl
:=
1488 gb_LinkTarget__use_openssl_headers
:=
1489 gb_LinkTarget__use_openssl
:=
1491 else # ENABLE_OPENSSL
1493 ifneq ($(SYSTEM_OPENSSL
),)
1495 gb_LinkTarget__use_openssl_headers
:=
1496 gb_ExternalProject__use_openssl
:=
1498 define gb_LinkTarget__use_openssl
1499 $(call gb_LinkTarget_set_include
,$(1),\
1503 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1507 else # !SYSTEM_OPENSSL
1509 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1513 define gb_ExternalProject__use_openssl
1514 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1518 define gb_LinkTarget__use_openssl_headers
1519 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1520 $(call gb_LinkTarget_set_include
,$(1),\
1521 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1527 define gb_LinkTarget__use_openssl
1528 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1530 $(call gb_LinkTarget_add_libs
,$(1),\
1531 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.lib \
1532 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.lib \
1535 $(call gb_LinkTarget_add_libs
,$(1),\
1536 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1537 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1538 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1540 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1541 ifeq ($(OS
),SOLARIS
)
1542 $(call gb_LinkTarget_add_libs
,$(1),\
1551 endif # SYSTEM_OPENSSL
1552 endif # ENABLE_OPENSSL
1555 ifneq ($(SYSTEM_CDR
),)
1557 define gb_LinkTarget__use_cdr
1558 $(call gb_LinkTarget_set_include
,$(1),\
1562 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1568 define gb_LinkTarget__use_cdr
1569 $(call gb_LinkTarget_set_include
,$(1),\
1570 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1573 $(call gb_LinkTarget_add_libs
,$(1),\
1574 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1576 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1582 ifneq ($(SYSTEM_EBOOK
),)
1584 define gb_LinkTarget__use_ebook
1585 $(call gb_LinkTarget_set_include
,$(1),\
1589 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1593 gb_ExternalProject__use_ebook
:=
1595 else # !SYSTEM_EBOOK
1597 define gb_LinkTarget__use_ebook
1598 $(call gb_LinkTarget_set_include
,$(1),\
1599 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1602 $(call gb_LinkTarget_add_libs
,$(1),\
1603 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1605 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1609 define gb_ExternalProject__use_ebook
1610 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1614 endif # SYSTEM_EBOOK
1617 ifneq ($(SYSTEM_ETONYEK
),)
1619 define gb_LinkTarget__use_etonyek
1620 $(call gb_LinkTarget_set_include
,$(1),\
1624 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1628 gb_ExternalProject__use_etonyek
:=
1630 else # !SYSTEM_ETONYEK
1634 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1638 define gb_LinkTarget__use_etonyek
1639 $(call gb_LinkTarget_set_include
,$(1),\
1640 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1643 $(call gb_LinkTarget_use_libraries
,$(1),\
1651 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1655 define gb_LinkTarget__use_etonyek
1656 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1658 $(call gb_LinkTarget_set_include
,$(1),\
1659 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1660 -DLIBETONYEK_VISIBILITY \
1663 $(call gb_LinkTarget_add_libs
,$(1),\
1664 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1666 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1670 define gb_ExternalProject__use_etonyek
1671 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1677 endif # SYSTEM_ETONYEK
1680 ifneq ($(SYSTEM_FREEHAND
),)
1682 define gb_LinkTarget__use_freehand
1683 $(call gb_LinkTarget_set_include
,$(1),\
1685 $(FREEHAND_CFLAGS
) \
1687 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1691 gb_ExternalProject__use_freehand
:=
1693 else # !SYSTEM_FREEHAND
1695 define gb_LinkTarget__use_freehand
1696 $(call gb_LinkTarget_set_include
,$(1),\
1697 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1700 $(call gb_LinkTarget_add_libs
,$(1),\
1701 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1703 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1707 define gb_ExternalProject__use_freehand
1708 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1712 endif # SYSTEM_FREEHAND
1715 ifneq ($(SYSTEM_ODFGEN
),)
1717 define gb_LinkTarget__use_odfgen
1718 $(call gb_LinkTarget_set_include
,$(1),\
1722 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1726 else # !SYSTEM_ODFGEN
1730 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1734 define gb_LinkTarget__use_odfgen
1735 $(call gb_LinkTarget_set_include
,$(1),\
1736 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1739 $(call gb_LinkTarget_use_libraries
,$(1),\
1747 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1751 define gb_LinkTarget__use_odfgen
1752 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1754 $(call gb_LinkTarget_set_include
,$(1),\
1755 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1756 -DLIBODFGEN_VISIBILITY \
1759 $(call gb_LinkTarget_add_libs
,$(1),\
1760 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1767 endif # SYSTEM_ODFGEN
1769 ifneq ($(SYSTEM_EPUBGEN
),)
1771 define gb_LinkTarget__use_epubgen
1772 $(call gb_LinkTarget_set_include
,$(1),\
1776 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1779 gb_ExternalProject__use_epubgen
:=
1781 else # !SYSTEM_EPUBGEN
1782 ifneq ($(ENABLE_WASM_STRIP_EPUB
),TRUE
)
1784 define gb_LinkTarget__use_epubgen
1785 $(call gb_LinkTarget_set_include
,$(1),\
1786 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1789 $(call gb_LinkTarget_add_libs
,$(1),\
1790 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1792 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1795 define gb_ExternalProject__use_epubgen
1796 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1800 endif # ENABLE_WASM_STRIP_EPUB
1801 endif # SYSTEM_EPUBGEN
1803 ifneq ($(SYSTEM_REVENGE
),)
1805 define gb_LinkTarget__use_revenge
1806 $(call gb_LinkTarget_set_include
,$(1),\
1810 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1814 gb_ExternalProject__use_revenge
:=
1816 else # !SYSTEM_REVENGE
1820 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1824 define gb_LinkTarget__use_revenge
1825 $(call gb_LinkTarget_set_include
,$(1),\
1829 $(call gb_LinkTarget_use_libraries
,$(1),\
1835 define gb_ExternalProject__use_revenge
1836 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1842 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1846 define gb_LinkTarget__use_revenge
1847 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1849 $(call gb_LinkTarget_set_include
,$(1),\
1851 -DLIBREVENGE_VISIBILITY \
1854 $(call gb_LinkTarget_add_libs
,$(1),\
1859 define gb_ExternalProject__use_revenge
1860 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1866 endif # SYSTEM_REVENGE
1869 ifneq ($(SYSTEM_ABW
),)
1871 define gb_LinkTarget__use_abw
1872 $(call gb_LinkTarget_set_include
,$(1),\
1876 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1879 gb_ExternalProject__use_abw
:=
1883 define gb_LinkTarget__use_abw
1884 $(call gb_LinkTarget_set_include
,$(1),\
1885 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1888 $(call gb_LinkTarget_add_libs
,$(1),\
1889 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1891 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1894 define gb_ExternalProject__use_abw
1895 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1902 ifneq ($(SYSTEM_MSPUB
),)
1904 define gb_LinkTarget__use_mspub
1905 $(call gb_LinkTarget_set_include
,$(1),\
1909 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1913 else # !SYSTEM_MSPUB
1915 define gb_LinkTarget__use_mspub
1916 $(call gb_LinkTarget_set_include
,$(1),\
1917 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1920 $(call gb_LinkTarget_add_libs
,$(1),\
1921 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1923 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1927 endif # SYSTEM_MSPUB
1930 ifneq ($(SYSTEM_PAGEMAKER
),)
1932 define gb_LinkTarget__use_pagemaker
1933 $(call gb_LinkTarget_set_include
,$(1),\
1935 $(PAGEMAKER_CFLAGS
) \
1937 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1940 gb_ExternalProject__use_pagemaker
:=
1942 else # !SYSTEM_PAGEMAKER
1944 define gb_LinkTarget__use_pagemaker
1945 $(call gb_LinkTarget_set_include
,$(1),\
1946 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1949 $(call gb_LinkTarget_add_libs
,$(1),\
1950 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1952 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1955 define gb_ExternalProject__use_pagemaker
1956 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1960 endif # SYSTEM_PAGEMAKER
1963 ifneq ($(SYSTEM_QXP
),)
1965 define gb_LinkTarget__use_qxp
1966 $(call gb_LinkTarget_set_include
,$(1),\
1970 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
1973 gb_ExternalProject__use_qxp
:=
1977 define gb_LinkTarget__use_qxp
1978 $(call gb_LinkTarget_set_include
,$(1),\
1979 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
1982 $(call gb_LinkTarget_add_libs
,$(1),\
1983 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1985 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
1988 define gb_ExternalProject__use_qxp
1989 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
1996 ifneq ($(SYSTEM_ZMF
),)
1998 define gb_LinkTarget__use_zmf
1999 $(call gb_LinkTarget_set_include
,$(1),\
2003 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
2006 gb_ExternalProject__use_zmf
:=
2010 define gb_LinkTarget__use_zmf
2011 $(call gb_LinkTarget_set_include
,$(1),\
2012 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2015 $(call gb_LinkTarget_add_libs
,$(1),\
2016 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2018 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2021 define gb_ExternalProject__use_zmf
2022 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2029 ifneq ($(SYSTEM_VISIO
),)
2031 define gb_LinkTarget__use_visio
2032 $(call gb_LinkTarget_set_include
,$(1),\
2036 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2040 else # !SYSTEM_VISIO
2042 define gb_LinkTarget__use_visio
2043 $(call gb_LinkTarget_set_include
,$(1),\
2044 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2047 $(call gb_LinkTarget_add_libs
,$(1),\
2048 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2050 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2054 endif # SYSTEM_VISIO
2057 ifneq ($(SYSTEM_WPD
),)
2059 define gb_LinkTarget__use_wpd
2060 $(call gb_LinkTarget_set_include
,$(1),\
2064 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2067 gb_ExternalProject__use_wpd
:=
2073 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2077 define gb_LinkTarget__use_wpd
2078 $(call gb_LinkTarget_set_include
,$(1),\
2082 $(call gb_LinkTarget_use_libraries
,$(1),\
2088 define gb_ExternalProject__use_wpd
2089 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2095 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2099 define gb_LinkTarget__use_wpd
2100 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2102 $(call gb_LinkTarget_set_include
,$(1),\
2106 $(call gb_LinkTarget_add_libs
,$(1),\
2112 define gb_ExternalProject__use_wpd
2113 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2122 ifneq ($(SYSTEM_WPG
),)
2124 define gb_LinkTarget__use_wpg
2125 $(call gb_LinkTarget_set_include
,$(1),\
2129 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2132 gb_ExternalProject__use_wpg
:=
2138 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2142 define gb_LinkTarget__use_wpg
2143 $(call gb_LinkTarget_set_include
,$(1),\
2144 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2147 $(call gb_LinkTarget_use_libraries
,$(1),\
2155 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2159 define gb_LinkTarget__use_wpg
2160 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2162 $(call gb_LinkTarget_set_include
,$(1),\
2163 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2166 $(call gb_LinkTarget_add_libs
,$(1),\
2167 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2177 ifneq ($(SYSTEM_WPS
),)
2179 define gb_LinkTarget__use_wps
2180 $(call gb_LinkTarget_set_include
,$(1),\
2184 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2187 gb_ExternalProject__use_wps
:=
2193 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2197 define gb_LinkTarget__use_wps
2198 $(call gb_LinkTarget_set_include
,$(1),\
2199 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2203 $(call gb_LinkTarget_use_libraries
,$(1),\
2211 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2215 define gb_LinkTarget__use_wps
2216 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2218 $(call gb_LinkTarget_set_include
,$(1),\
2219 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2222 $(call gb_LinkTarget_add_libs
,$(1),\
2223 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2233 ifneq ($(SYSTEM_MWAW
),)
2235 define gb_LinkTarget__use_mwaw
2236 $(call gb_LinkTarget_set_include
,$(1),\
2240 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2248 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2252 define gb_LinkTarget__use_mwaw
2253 $(call gb_LinkTarget_set_include
,$(1),\
2254 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2258 $(call gb_LinkTarget_use_libraries
,$(1),\
2266 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2270 define gb_LinkTarget__use_mwaw
2271 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2273 $(call gb_LinkTarget_set_include
,$(1),\
2274 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2277 $(call gb_LinkTarget_add_libs
,$(1),\
2278 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2287 ifneq ($(SYSTEM_STAROFFICE
),)
2289 define gb_LinkTarget__use_staroffice
2290 $(call gb_LinkTarget_set_include
,$(1),\
2292 $(STAROFFICE_CFLAGS
) \
2294 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2298 else # !SYSTEM_STAROFFICE
2302 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2306 define gb_LinkTarget__use_staroffice
2307 $(call gb_LinkTarget_set_include
,$(1),\
2308 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2312 $(call gb_LinkTarget_use_libraries
,$(1),\
2320 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2324 define gb_LinkTarget__use_staroffice
2325 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2327 $(call gb_LinkTarget_set_include
,$(1),\
2328 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2331 $(call gb_LinkTarget_add_libs
,$(1),\
2332 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2339 endif # SYSTEM_STAROFFICE
2342 ifneq ($(SYSTEM_LCMS2
),)
2344 define gb_LinkTarget__use_lcms2
2345 $(call gb_LinkTarget_set_include
,$(1),\
2349 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2353 gb_ExternalProject__use_lcms2
:=
2355 else # !SYSTEM_LCMS2
2357 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2361 define gb_ExternalProject__use_lcms2
2362 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2366 ifeq ($(OS
),ANDROID
)
2368 define gb_LinkTarget__use_lcms2
2369 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2370 $(call gb_LinkTarget_set_include
,$(1),\
2371 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2379 define gb_LinkTarget__use_lcms2
2380 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2381 $(call gb_LinkTarget_set_include
,$(1),\
2382 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2385 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2390 endif # SYSTEM_LCMS2
2392 ifneq ($(ENABLE_LPSOLVE
),)
2394 ifneq ($(SYSTEM_LPSOLVE
),)
2396 define gb_LinkTarget__use_lpsolve
2397 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2398 $(call gb_LinkTarget_add_defs
,$(1),\
2404 else # !SYSTEM_LPSOLVE
2406 define gb_LinkTarget__use_lpsolve
2407 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2409 $(call gb_LinkTarget_add_libs
,$(1),\
2410 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2413 $(call gb_LinkTarget_add_libs
,$(1),\
2414 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2417 $(call gb_LinkTarget_set_include
,$(1),\
2418 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2424 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2428 endif # SYSTEM_LPSOLVE
2432 gb_LinkTarget__use_lpsolve
:=
2434 endif # ENABLE_LPSOLVE
2436 ifneq ($(ENABLE_COINMP
),)
2438 ifneq ($(SYSTEM_COINMP
),TRUE
)
2440 define gb_LinkTarget__use_coinmp
2441 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2443 $(call gb_LinkTarget_add_libs
,$(1),\
2444 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2447 $(call gb_LinkTarget_add_libs
,$(1),\
2448 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2449 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2450 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2451 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2452 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2453 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2454 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2457 $(call gb_LinkTarget_set_include
,$(1),\
2458 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2459 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2465 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2469 else # SYSTEM_COINMP
2471 define gb_LinkTarget__use_coinmp
2472 $(call gb_LinkTarget_set_include
,$(1),\
2476 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2484 gb_LinkTarget__use_coinmp
:=
2486 endif # ENABLE_COINMP
2488 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2490 define gb_LinkTarget__use_mDNSResponder
2491 $(call gb_LinkTarget_set_include
,$(1),\
2492 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2495 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2498 endif # MDNSRESPONDER
2500 ifeq ($(ENABLE_GIO
),TRUE
)
2502 define gb_LinkTarget__use_gio
2503 $(call gb_LinkTarget_set_include
,$(1),\
2508 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2514 define gb_LinkTarget__use_gio
2520 ifeq ($(ENABLE_AVAHI
),TRUE
)
2522 define gb_LinkTarget__use_avahi
2523 $(call gb_LinkTarget_set_include
,$(1),\
2528 $(call gb_LinkTarget_add_defs
,$(1),\
2532 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2538 gb_LinkTarget__use_avahi
:=
2540 endif # ENABLE_AVAHI
2542 ifeq ($(ENABLE_CUPS
),TRUE
)
2544 define gb_LinkTarget__use_cups
2545 $(call gb_LinkTarget_add_defs
,$(1),\
2549 $(call gb_LinkTarget_add_libs
,$(1),\
2557 define gb_LinkTarget__use_cups
2563 ifeq ($(ENABLE_DBUS
),TRUE
)
2565 define gb_LinkTarget__use_dbus
2566 $(call gb_LinkTarget_set_include
,$(1),\
2571 $(call gb_LinkTarget_add_libs
,$(1),\
2579 define gb_LinkTarget__use_dbus
2586 ifneq ($(SYSTEM_LIBPNG
),)
2588 define gb_LinkTarget__use_libpng
2589 $(call gb_LinkTarget_set_include
,$(1),\
2594 $(call gb_LinkTarget_add_libs
,$(1),\
2600 gb_ExternalProject__use_libpng
:=
2602 else # !SYSTEM_LIBPNG
2604 define gb_LinkTarget__use_libpng
2605 $(call gb_LinkTarget_set_include
,$(1),\
2609 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2612 $(call gb_LinkTarget__use_zlib
,$(1))
2616 define gb_ExternalProject__use_libpng
2617 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2623 endif # !SYSTEM_LIBPNG
2625 ifneq ($(SYSTEM_LIBTIFF
),)
2627 define gb_LinkTarget__use_libtiff
2628 $(call gb_LinkTarget_set_include
,$(1),\
2633 $(call gb_LinkTarget_add_libs
,$(1),\
2639 gb_ExternalProject__use_libtiff
:=
2641 else # !SYSTEM_LIBTIFF
2643 define gb_LinkTarget__use_libtiff
2644 $(call gb_LinkTarget_set_include
,$(1),\
2649 $(call gb_LinkTarget_set_include
,$(1),\
2650 -I
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff \
2654 $(call gb_LinkTarget_add_libs
,$(1),\
2655 $(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
/libtiff
$(gb_StaticLibrary_PLAINEXT
) \
2658 $(call gb_LinkTarget_add_libs
,$(1),\
2659 -L
$(call gb_UnpackedTarball_get_dir
,libtiff
)/libtiff
/.libs
-ltiff \
2662 $(call gb_LinkTarget_use_external_project
,$(1),libtiff
,full
)
2666 define gb_ExternalProject__use_libtiff
2667 $(call gb_ExternalProject_use_external_project
,$(1),libtiff
)
2671 endif # !SYSTEM_LIBTIFF
2673 ifneq ($(SYSTEM_LIBWEBP
),)
2675 define gb_LinkTarget__use_libwebp
2676 $(call gb_LinkTarget_set_include
,$(1),\
2681 $(call gb_LinkTarget_add_libs
,$(1),\
2687 gb_ExternalProject__use_libwebp
:=
2689 else # !SYSTEM_LIBWEBP
2691 define gb_LinkTarget__use_libwebp
2692 $(call gb_LinkTarget_set_include
,$(1),\
2697 $(call gb_LinkTarget_set_include
,$(1),\
2698 -I
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src \
2702 $(call gb_LinkTarget_add_libs
,$(1),\
2703 $(call gb_UnpackedTarball_get_dir
,libwebp
)/output
/lib
/libwebp
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
)$(gb_StaticLibrary_PLAINEXT
) \
2706 $(call gb_LinkTarget_add_libs
,$(1),\
2707 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/src
/.libs
-lwebp \
2708 -L
$(call gb_UnpackedTarball_get_dir
,libwebp
)/sharpyuv
/.libs
-lsharpyuv \
2711 $(call gb_LinkTarget_use_external_project
,$(1),libwebp
)
2715 define gb_ExternalProject__use_libwebp
2716 $(call gb_ExternalProject_use_external_project
,$(1),libwebp
)
2720 endif # !SYSTEM_LIBWEBP
2723 ifneq ($(SYSTEM_CURL
),)
2725 define gb_LinkTarget__use_curl
2726 $(call gb_LinkTarget_add_defs
,$(1),\
2729 $(call gb_LinkTarget_set_include
,$(1),\
2733 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2739 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2743 define gb_LinkTarget__use_curl
2744 $(call gb_LinkTarget_use_package
,$(1),curl
)
2745 $(call gb_LinkTarget_set_include
,$(1),\
2746 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2751 $(call gb_LinkTarget_add_libs
,$(1),\
2752 $(call gb_UnpackedTarball_get_dir
,curl
)/builds
/libcurl-vc12-
$(gb_MSBUILD_PLATFORM
)-$(gb_MSBUILD_CONFIG
)-dll-zlib-static-ipv6-sspi-schannel
/lib
/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
).lib \
2755 $(call gb_LinkTarget_add_libs
,$(1),\
2756 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2764 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2766 define gb_LinkTarget__use_valgrind
2767 $(call gb_LinkTarget_add_defs
,$(1),\
2768 -DHAVE_VALGRIND_HEADERS \
2771 $(call gb_LinkTarget_set_include
,$(1),\
2773 $(VALGRIND_CFLAGS
) \
2778 else # !ENABLE_VALGRIND
2780 define gb_LinkTarget__use_valgrind
2784 endif # ENABLE_VALGRIND
2786 ifeq ($(ENABLE_POPPLER
),TRUE
)
2788 ifneq ($(SYSTEM_POPPLER
),)
2790 define gb_LinkTarget__use_poppler
2791 $(call gb_LinkTarget_set_include
,$(1),\
2796 $(call gb_LinkTarget_add_libs
,$(1),\
2802 else # !SYSTEM_POPPLER
2804 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2808 define gb_LinkTarget__use_poppler
2809 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2810 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2811 $(call gb_LinkTarget_set_include
,$(1),\
2812 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2813 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2814 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2818 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2819 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2822 $(call gb_LinkTarget_add_libs
,$(1),\
2825 else ifeq ($(OS
),LINUX
)
2826 $(call gb_LinkTarget_add_libs
,$(1),\
2829 else ifeq ($(OS
),WNT
)
2830 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2838 endif # SYSTEM_POPPLER
2840 endif # ENABLE_POPPLER
2843 ifneq ($(SYSTEM_CLUCENE
),)
2845 define gb_LinkTarget__use_clucene
2846 $(call gb_LinkTarget_add_defs
,$(1),\
2847 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2850 $(call gb_LinkTarget_set_include
,$(1),\
2851 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2855 $(call gb_LinkTarget_add_libs
,$(1),\
2861 else # !SYSTEM_CLUCENE
2863 define gb_LinkTarget__use_clucene
2864 $(call gb_LinkTarget_set_include
,$(1),\
2865 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2866 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2867 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2871 $(call gb_LinkTarget_use_libraries
,$(1),\
2877 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2878 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2881 endif # SYSTEM_CLUCENE
2883 define gb_LinkTarget__use_gobject
2884 $(call gb_LinkTarget_add_libs
,$(1),\
2888 $(call gb_LinkTarget_set_include
,$(1),\
2894 ifneq ($(SYSTEM_HSQLDB
),)
2896 define gb_LinkTarget__use_hsqldb
2898 $(call gb_LinkTarget_add_defs
,$(1),\
2900 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2905 else # !SYSTEM_HSQLDB
2907 define gb_LinkTarget__use_hsqldb
2911 endif # SYSTEM_HSQLDB
2913 ifeq ($(ENABLE_LDAP
),TRUE
)
2914 ifneq ($(SYSTEM_OPENLDAP
),)
2916 define gb_LinkTarget__use_openldap
2918 $(call gb_LinkTarget_add_libs
,$(1),\
2925 gb_ExternalProject__use_openldap
:=
2927 else # !SYSTEM_OPENLDAP
2929 define gb_LinkTarget__use_openldap
2930 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2931 $(call gb_LinkTarget_set_include
,$(1),\
2932 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2935 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2936 $(call gb_LinkTarget_add_libs
,$(1), \
2937 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2938 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2944 define gb_ExternalProject__use_openldap
2945 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2949 endif # SYSTEM_OPENLDAP
2951 ifneq ($(SYSTEM_LIBTOMMATH
),)
2953 define gb_LinkTarget__use_libtommath
2954 $(call gb_LinkTarget_set_include
,$(1),\
2955 $(LIBTOMMATH_CFLAGS
) \
2958 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2962 else # !SYSTEM_LIBTOMMATH
2963 define gb_LinkTarget__use_libtommath
2964 $(call gb_LinkTarget_set_include
,$(1),\
2965 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2968 $(call gb_LinkTarget_add_libs
,$(1),\
2969 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2971 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2975 endif # SYSTEM_LIBTOMMATH
2977 define gb_ExternalProject__use_libtommath
2978 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2982 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2984 ifneq ($(SYSTEM_FIREBIRD
),)
2986 define gb_LinkTarget__use_libfbembed
2987 $(call gb_LinkTarget_set_include
,$(1),\
2988 $(FIREBIRD_CFLAGS
) \
2991 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2995 else # !SYSTEM_FIREBIRD
2997 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
3001 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
3002 #$(call gb_LinkTarget__use_libtommath,$(1))
3004 define gb_LinkTarget__use_libfbembed
3005 $(call gb_LinkTarget_use_package
,$(1),firebird
)
3006 $(call gb_LinkTarget_set_include
,$(1),\
3007 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
3011 $(call gb_LinkTarget_add_libs
,$(1),\
3012 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
3015 $(call gb_LinkTarget_add_libs
,$(1),\
3016 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3025 endif # SYSTEM_FIREBIRD
3027 else # !ENABLE_FIREBIRD_SDBC
3029 gb_LinkTarget__use_firebird
:=
3030 # gb_LinkTarget__use_atomic_ops :=
3031 # gb_LinkTarget__use_libtommath :=
3033 endif # ENABLE_FIREBIRD_SDBC
3036 ifneq ($(SYSTEM_POSTGRESQL
),)
3038 define gb_LinkTarget__use_postgresql
3040 $(call gb_LinkTarget_set_include
,$(1),\
3045 $(call gb_LinkTarget_add_libs
,$(1),\
3049 $(call gb_LinkTarget_add_ldflags
,$(1),\
3055 else # !SYSTEM_POSTGRESQL
3058 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3063 define gb_LinkTarget__use_postgresql
3065 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3067 $(call gb_LinkTarget_set_include
,$(1),\
3068 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3069 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3075 $(call gb_LinkTarget_add_libs
,$(1),\
3076 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3081 $(call gb_LinkTarget_add_libs
,$(1),\
3082 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3083 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3084 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3085 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3090 endef # gb_LinkTarget__use_postgresql
3092 endif # !SYSTEM_POSTGRESQL
3094 ifneq (,$(filter TRUE
,$(ENABLE_KF5
) $(ENABLE_GTK3_KDE5
)))
3096 define gb_LinkTarget__use_kf5
3097 $(call gb_LinkTarget_set_include
,$(1),\
3098 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3102 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3103 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3106 $(call gb_LinkTarget_add_libs
,$(1),\
3114 define gb_LinkTarget__use_kf5
3120 ifneq (,$(filter TRUE
,$(ENABLE_KF6
)))
3122 define gb_LinkTarget__use_kf6
3123 $(call gb_LinkTarget_set_include
,$(1),\
3124 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF6_CFLAGS
)))) \
3128 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3129 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF6_CFLAGS
))) \
3132 $(call gb_LinkTarget_add_libs
,$(1),\
3140 define gb_LinkTarget__use_kf6
3146 ifneq (,$(filter TRUE
,$(ENABLE_QT5
) $(ENABLE_GTK3_KDE5
)))
3148 define gb_LinkTarget__use_qt5
3149 $(call gb_LinkTarget_set_include
,$(1),\
3150 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3154 $(call gb_LinkTarget_add_defs
,$(1),\
3155 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3158 $(call gb_LinkTarget_add_libs
,$(1),\
3166 define gb_LinkTarget__use_qt5
3172 ifeq ($(ENABLE_QT6
),TRUE
)
3174 define gb_LinkTarget__use_qt6
3175 $(call gb_LinkTarget_set_include
,$(1),\
3176 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3180 $(call gb_LinkTarget_add_defs
,$(1),\
3181 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3184 $(call gb_LinkTarget_add_libs
,$(1),\
3192 define gb_LinkTarget__use_qt6
3200 # extra python_headers external because pyuno wrapper must not link python
3201 ifneq ($(SYSTEM_PYTHON
),)
3203 define gb_LinkTarget__use_python_headers
3204 $(call gb_LinkTarget_add_defs
,$(1),\
3205 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3208 $(call gb_LinkTarget_set_include
,$(1),\
3209 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3215 define gb_LinkTarget__use_python
3216 $(call gb_LinkTarget__use_python_headers
,$(1))
3218 $(call gb_LinkTarget_add_libs
,$(1),\
3224 else # !SYSTEM_PYTHON
3226 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3228 $(if
$(filter WNT
,$(OS
)),libffi
) \
3231 define gb_LinkTarget__use_python_headers
3232 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3233 $(call gb_LinkTarget_set_include
,$(1),\
3234 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3235 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3236 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3242 define gb_LinkTarget__use_python
3243 $(call gb_LinkTarget__use_python_headers
,$(1))
3245 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3247 $(call gb_LinkTarget_use_package
,$(1),python3
)
3251 ifeq ($(CPUNAME
),X86_64
)
3252 python_arch_subdir
=amd64
/
3253 else ifeq ($(CPUNAME
),AARCH64
)
3254 python_arch_subdir
=arm64
/
3256 python_arch_subdir
=win32
/
3258 $(call gb_LinkTarget_add_libs
,$(1),\
3259 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3261 else ifeq ($(OS
),MACOSX
)
3262 $(call gb_LinkTarget_add_libs
,$(1),\
3263 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3266 $(call gb_LinkTarget_add_libs
,$(1),\
3267 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3268 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3274 # this is only used by python currently
3275 define gb_ExternalProject__use_libffi
3276 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3280 endif # SYSTEM_PYTHON
3283 ifneq ($(SYSTEM_LIBORCUS
),)
3285 define gb_LinkTarget__use_orcus
3286 $(call gb_LinkTarget_set_include
,$(1),\
3290 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3293 define gb_LinkTarget__use_orcus-parser
3297 else # !SYSTEM_LIBORCUS
3301 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3306 define gb_LinkTarget__use_orcus
3307 $(call gb_LinkTarget_set_include
,$(1),\
3308 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3312 $(call gb_LinkTarget_use_libraries
,$(1),\
3318 define gb_LinkTarget__use_orcus-parser
3319 $(call gb_LinkTarget_set_include
,$(1),\
3320 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3324 $(call gb_LinkTarget_use_libraries
,$(1),\
3332 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3336 define gb_LinkTarget__use_orcus
3337 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3339 $(call gb_LinkTarget_set_include
,$(1),\
3340 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3344 $(call gb_LinkTarget_add_libs
,$(1),\
3345 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.18 \
3348 $(if
$(SYSTEM_BOOST
), \
3349 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3350 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3355 define gb_LinkTarget__use_orcus-parser
3356 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3358 $(call gb_LinkTarget_set_include
,$(1),\
3359 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3363 $(call gb_LinkTarget_add_libs
,$(1),\
3364 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.18 \
3371 endif # SYSTEM_LIBORCUS
3373 ifeq ($(ENABLE_EOT
),TRUE
)
3375 ifneq ($(SYSTEM_LIBEOT
),)
3377 define gb_LinkTarget__use_libeot
3378 $(call gb_LinkTarget_set_include
,$(1),\
3382 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3386 gb_ExternalProject__use_libeot
:=
3388 else # !SYSTEM_LIBEOT
3390 define gb_LinkTarget__use_libeot
3391 $(call gb_LinkTarget_set_include
,$(1),\
3392 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3395 $(call gb_LinkTarget_add_libs
,$(1),\
3396 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3398 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3402 define gb_ExternalProject__use_libeot
3403 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3407 endif # SYSTEM_LIBEOT
3411 gb_LinkTarget__use_libeot
:=
3412 gb_ExternalProject__use_libeot
:=
3418 ifeq ($(USING_X11
), TRUE
)
3420 define gb_LinkTarget__use_Xrandr
3421 $(call gb_LinkTarget_set_include
,$(1),\
3426 $(call gb_LinkTarget_add_libs
,$(1),\
3431 define gb_LinkTarget__use_Xrender
3432 $(call gb_LinkTarget_set_include
,$(1),\
3437 $(call gb_LinkTarget_add_libs
,$(1),\
3445 gb_ExternalProject__use_nss3
:=
3448 ifneq ($(SYSTEM_NSS
),)
3450 define gb_LinkTarget__use_nss3
3451 $(call gb_LinkTarget_add_defs
,$(1),\
3455 $(call gb_LinkTarget_set_include
,$(1),\
3460 $(call gb_LinkTarget_add_libs
,$(1),\
3466 define gb_LinkTarget__use_nssutil3
3467 $(call gb_LinkTarget__use_nss3
,$(1))
3471 define gb_LinkTarget__use_plc4
3472 $(call gb_LinkTarget__use_nss3
,$(1))
3476 define gb_LinkTarget__use_ssl3
3477 $(call gb_LinkTarget__use_nss3
,$(1))
3483 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3487 define gb_LinkTarget__use_nss3
3488 $(call gb_LinkTarget_use_package
,$(1),nss
)
3489 $(call gb_LinkTarget_set_include
,$(1),\
3491 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3492 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3496 $(call gb_LinkTarget_add_libs
,$(1),\
3497 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3498 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3499 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3502 $(call gb_LinkTarget_add_libs
,$(1),\
3503 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3512 define gb_LinkTarget__use_plc4
3513 $(call gb_LinkTarget_use_package
,$(1),nss
)
3515 $(call gb_LinkTarget_add_libs
,$(1),\
3516 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3519 $(call gb_LinkTarget_add_libs
,$(1),\
3520 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3526 define gb_LinkTarget__use_ssl3
3527 $(call gb_LinkTarget_use_package
,$(1),nss
)
3529 $(call gb_LinkTarget_add_libs
,$(1),\
3530 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3533 $(call gb_LinkTarget_add_libs
,$(1),\
3534 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3540 define gb_LinkTarget__use_nssutil3
3541 $(call gb_LinkTarget_use_package
,$(1),nss
)
3542 $(call gb_LinkTarget_set_include
,$(1),\
3544 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3545 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3549 $(call gb_LinkTarget_add_libs
,$(1),\
3550 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3553 $(call gb_LinkTarget_add_libs
,$(1),\
3554 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3561 define gb_ExternalProject__use_nss3
3562 $(call gb_ExternalProject_use_package
,$(1),nss
)
3568 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3570 define gb_LinkTarget__use_breakpad
3571 $(call gb_LinkTarget_set_include
,$(1),\
3572 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3577 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3581 $(call gb_LinkTarget_add_libs
,$(1),\
3582 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3586 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3590 endif # ENABLE_BREAKPAD
3592 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3594 ifneq ($(SYSTEM_GPGMEPP
),)
3596 gb_ExternalProject__use_gpgmepp
:=
3597 gb_ExternalProject__use_libassuan
:=
3598 gb_ExternalProject__use_libgpg-error
:=
3600 define gb_LinkTarget__use_gpgmepp
3601 $(call gb_LinkTarget_set_include
,$(1),\
3603 $$(GPGMEPP_CFLAGS
) \
3606 $(call gb_LinkTarget_add_libs
,$(1),\
3612 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3614 define gb_ExternalProject__use_gpgmepp
3615 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3618 define gb_ExternalProject__use_libassuan
3619 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3622 define gb_ExternalProject__use_libgpg-error
3623 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3627 ifneq ($(filter WNT
,$(OS
)),)
3629 define gb_LinkTarget__use_libgpg-error
3630 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3632 $(call gb_LinkTarget_set_include
,$(1),\
3633 $(GPG_ERROR_CFLAGS
) \
3636 $(call gb_LinkTarget_add_libs
,$(1),\
3637 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3642 define gb_LinkTarget__use_libassuan
3643 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3645 $(call gb_LinkTarget_set_include
,$(1),\
3646 $(LIBASSUAN_CFLAGS
) \
3649 $(call gb_LinkTarget_add_libs
,$(1),\
3650 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3655 define gb_LinkTarget__use_gpgmepp
3656 $(call gb_LinkTarget_set_include
,$(1),\
3657 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3658 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3659 $$(GPG_ERROR_CFLAGS
) \
3662 $(call gb_LinkTarget_use_libraries
,$(1),\
3668 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3674 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3680 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3682 define gb_LinkTarget__use_gpgmepp
3683 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3685 $(call gb_LinkTarget_set_include
,$(1),\
3686 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3687 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3688 $$(GPG_ERROR_CFLAGS
) \
3691 $(call gb_LinkTarget_add_libs
,$(1),\
3692 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3693 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3694 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3695 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3700 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3710 else # !ENABLE_GPGMEPP
3712 gb_ExternalProject__use_gpgmepp
:=
3713 gb_ExternalProject__use_libassuan
:=
3714 gb_ExternalProject__use_libgpg-error
:=
3716 gb_LinkTarget__use_gpgmepp
:=
3717 gb_LinkTarget__use_libassuan
:=
3718 gb_LinkTarget__use_libgpg-error
:=
3720 endif # ENABLE_GPGMEPP
3722 define gb_LinkTarget__use_dconf
3723 $(call gb_LinkTarget_set_include
,$(1),\
3728 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3731 ### Jars ############################################################
3733 ifneq ($(SYSTEM_HSQLDB
),)
3735 define gb_Jar__use_hsqldb
3736 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3738 define gb_JunitTest__use_hsqldb
3739 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3742 else # !SYSTEM_HSQLDB
3744 ifeq ($(ENABLE_JAVA
),TRUE
)
3745 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3750 define gb_Jar__use_hsqldb
3751 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3753 define gb_JunitTest__use_hsqldb
3754 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3757 endif # SYSTEM_HSQLDB
3760 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3762 ifneq ($(SYSTEM_BSH
),)
3764 define gb_Jar__use_bsh
3765 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3770 ifeq ($(ENABLE_JAVA
),TRUE
)
3771 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3776 define gb_Jar__use_bsh
3777 $(call gb_Jar_use_jar
,$(1),bsh
)
3784 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3786 ifneq ($(SYSTEM_RHINO
),)
3788 define gb_Jar__use_rhino
3789 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3792 else # !SYSTEM_RHINO
3794 ifeq ($(ENABLE_JAVA
),TRUE
)
3795 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3800 define gb_Jar__use_rhino
3801 $(call gb_Jar_use_jar
,$(1),js
)
3804 endif # SYSTEM_RHINO
3808 ifneq ($(SYSTEM_JFREEREPORT
),)
3810 define gb_Jar__use_flow-engine
3811 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3814 define gb_Jar__use_flute
3815 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3818 define gb_Jar__use_libbase
3819 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3822 define gb_Jar__use_libfonts
3823 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3826 define gb_Jar__use_libformula
3827 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3830 define gb_Jar__use_liblayout
3831 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3834 define gb_Jar__use_libloader
3835 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3838 define gb_Jar__use_librepository
3839 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3842 define gb_Jar__use_libserializer
3843 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3846 define gb_Jar__use_libxml
3847 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3850 define gb_Jar__use_sac
3851 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3854 else # !SYSTEM_JFREEREPORT
3856 ifeq ($(ENABLE_JAVA
),TRUE
)
3857 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3865 librepository-1.1
.6 \
3866 libserializer-1.1
.6 \
3872 define gb_Jar__use_flow-engine
3873 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3876 define gb_Jar__use_flute
3877 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3880 define gb_Jar__use_libbase
3881 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3884 define gb_Jar__use_libfonts
3885 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3888 define gb_Jar__use_libformula
3889 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3892 define gb_Jar__use_liblayout
3893 $(call gb_Jar_use_jar
,$(1),liblayout
)
3896 define gb_Jar__use_libloader
3897 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3900 define gb_Jar__use_librepository
3901 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3904 define gb_Jar__use_libserializer
3905 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3908 define gb_Jar__use_libxml
3909 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3912 define gb_Jar__use_sac
3913 $(call gb_Jar_use_jar
,$(1),sac
)
3916 endif # SYSTEM_JFREEREPORT
3918 # no known distro packaged Java-Websocket at present
3920 ifeq ($(ENABLE_JAVA
),TRUE
)
3921 $(eval
$(call gb_Helper_register_jars_for_install
,URE
,ure
, \
3926 define gb_Jar__use_java_websocket
3927 $(call gb_Jar_use_jar
,$(1),java_websocket
)
3932 define gb_Executable__register_bestreversemap
3933 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3934 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
3938 # TODO depending on the whole URE might be overkill, but I do not have a
3939 # Windows machine to debug it...
3940 define gb_Executable__register_climaker
3941 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3942 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3943 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3944 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3945 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3949 define gb_Executable__register_cppumaker
3950 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3951 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
3955 # This is used to determine what we need for 'build' platform.
3956 define gb_Executable__register_gengal
3957 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3958 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3959 $(call gb_Library_get_target_for_build
,localedata_en
) \
3960 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3961 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3962 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3963 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3964 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3965 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3966 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3967 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3968 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3969 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3970 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3974 ifeq ($(SYSTEM_ICU
),)
3976 define gb_Executable__register_gendict
3977 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3978 $(call gb_Package_get_target_for_build
,icu
) \
3979 $(call gb_Package_get_target_for_build
,icu_ure
) \
3985 define gb_Executable__register_localize
3986 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3987 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3988 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3993 # FIXME ure/services.rdb needs cleanup
3994 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3995 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3996 define gb_Executable__register_saxparser
3997 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3998 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3999 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
4000 $(call gb_Rdb_get_target_for_build
,saxparser
) \
4001 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
4002 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4006 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
4007 # required due to the settings for URE_SERVICES and URE_TYPES in
4008 # cppuhelper/source/unorc
4009 define gb_Executable__register_uno
4010 $(call gb_Executable_add_runtime_dependencies
,uno
,\
4011 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
4012 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
4013 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
4018 # External executables
4020 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
4022 gb_ExternalExecutable__register_xmllint
:=
4024 else # ! SYSTEM_LIBXML_FOR_BUILD
4026 define gb_ExternalExecutable__register_xmllint
4027 $(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
)
4028 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
4029 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4030 $(call gb_Package_get_target
,libxml2
) \
4035 endif # SYSTEM_LIBXML_FOR_BUILD
4037 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
4039 gb_ExternalExecutable__register_xsltproc
:=
4041 else # ! SYSTEM_LIBXSLT_FOR_BUILD
4043 define gb_ExternalExecutable__register_xsltproc
4044 $(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
)
4045 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
4046 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4047 $(call gb_Package_get_target
,libxml2
) \
4048 $(call gb_Package_get_target
,libxslt
) \
4053 endif # SYSTEM_LIBXSLT_FOR_BUILD
4055 ifeq (,$(PYTHON_FOR_BUILD
))
4057 define gb_ExternalExecutable__register_python
4060 # use set_external, to avoid having the command added as prerequisite for the
4061 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4062 # matching rule to build that specific file)
4063 $(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
))
4064 # the Zip ensures that internal python has been built (cannot use the Package
4065 # target, as that is not used on Mac)
4066 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4070 $(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
))
4071 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4072 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4080 define gb_ExternalExecutable__register_python
4081 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4085 endif # PYTHON_FOR_BUILD
4087 ifneq ($(SYSTEM_GENBRK
),)
4089 define gb_ExternalExecutable__register_genbrk
4090 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4094 else # ! SYSTEM_GENBRK
4096 define gb_ExternalExecutable__register_genbrk
4097 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4098 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4099 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4100 $(call gb_Package_get_target_for_build
,icu
) \
4101 $(call gb_Package_get_target_for_build
,icu_ure
) \
4108 ifneq ($(SYSTEM_GENCCODE
),)
4110 define gb_ExternalExecutable__register_genccode
4111 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4115 else # ! SYSTEM_GENCCODE
4117 define gb_ExternalExecutable__register_genccode
4118 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4119 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4120 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4121 $(call gb_Package_get_target_for_build
,icu
) \
4122 $(call gb_Package_get_target_for_build
,icu_ure
) \
4129 ifneq ($(SYSTEM_GENCMN
),)
4131 define gb_ExternalExecutable__register_gencmn
4132 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4136 else # ! SYSTEM_GENCMN
4138 define gb_ExternalExecutable__register_gencmn
4139 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4140 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4141 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4142 $(call gb_Package_get_target_for_build
,icu
) \
4143 $(call gb_Package_get_target_for_build
,icu_ure
) \
4150 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4151 ifneq ($(SYSTEM_BZIP2
),)
4153 define gb_LinkTarget__use_bzip2
4154 $(call gb_LinkTarget_set_include
,$(1),\
4158 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4162 gb_ExternalProject__use_bzip2
:=
4164 else # !SYSTEM_BZIP2
4166 define gb_LinkTarget__use_bzip2
4167 $(call gb_LinkTarget_set_include
,$(1),\
4168 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4173 $(call gb_LinkTarget_add_libs
,$(1),\
4174 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4177 $(call gb_LinkTarget_add_libs
,$(1),\
4178 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4182 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4185 define gb_ExternalProject__use_bzip2
4186 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4192 define gb_LinkTarget__use_clew
4193 $(call gb_LinkTarget_set_include
,$(1), \
4194 -I
$(SRCDIR
)/external
/clew
/source
/include \
4197 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4200 ifneq ($(ENABLE_PDFIUM
),)
4201 define gb_LinkTarget__use_pdfium
4202 $(call gb_LinkTarget_set_include
,$(1),\
4203 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4207 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4209 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4214 ifneq ($(SYSTEM_DRAGONBOX
),)
4216 define gb_LinkTarget__use_dragonbox
4217 $(call gb_LinkTarget_set_include
,$(1),\
4219 $$(DRAGONBOX_CFLAGS
) \
4225 define gb_LinkTarget__use_dragonbox
4226 $(call gb_LinkTarget_use_unpacked
,$(1),dragonbox
)
4227 $(call gb_LinkTarget_set_include
,$(1),\
4228 -I
$(call gb_UnpackedTarball_get_dir
,dragonbox
/include/)\
4235 define gb_LinkTarget__use_dtoa
4236 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4237 $(call gb_LinkTarget_set_include
,$(1),\
4238 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4241 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4247 define gb_ExternalProject__use_dtoa
4248 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4252 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4253 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4256 ifneq ($(SYSTEM_BOX2D
),)
4258 define gb_LinkTarget__use_box2d
4259 $(call gb_LinkTarget_set_include
,$(1),\
4264 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4268 gb_ExternalProject__use_box2d
:=
4270 else # !SYSTEM_BOX2D
4272 define gb_LinkTarget__use_box2d
4273 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4274 $(call gb_LinkTarget_set_include
,$(1),\
4275 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/include/)\
4278 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4284 define gb_ExternalProject__use_box2d
4285 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4289 endif # SYSTEM_BOX2D
4291 ifneq ($(SYSTEM_ZXING
),)
4293 define gb_LinkTarget__use_zxing
4294 $(call gb_LinkTarget_set_include
,$(1),\
4299 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4303 gb_ExternalProject__use_zxing
:=
4305 else # !SYSTEM_ZXING
4307 ifneq ($(ENABLE_ZXING
),)
4309 define gb_LinkTarget__use_zxing
4310 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4311 $(call gb_LinkTarget_set_include
,$(1),\
4312 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4315 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4321 define gb_ExternalProject__use_zxing
4322 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4326 else # !ENABLE_ZXING
4328 define gb_LinkTarget__use_zxing
4331 endif # ENABLE_ZXING
4333 endif # SYSTEM_ZXING
4336 ifneq ($(SYSTEM_FROZEN
),)
4337 define gb_LinkTarget__use_frozen
4338 $(call gb_LinkTarget_set_include
,$(1),\
4344 define gb_LinkTarget__use_frozen
4345 $(call gb_LinkTarget_use_unpacked
,$(1),frozen
)
4346 $(call gb_LinkTarget_set_include
,$(1),\
4347 -I
$(call gb_UnpackedTarball_get_dir
,frozen
/include/)\
4353 # vim: set noet sw=4 ts=4: