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/third_party
/vulkan \
132 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/tools
/gpu \
133 -I
$(call gb_UnpackedTarball_get_dir
,skia
) \
134 -I
$(SRCDIR
)/external
/skia
/inc
/ \
137 $(call gb_LinkTarget_use_libraries
,$(1),skia
)
138 $(call gb_LinkTarget_add_defs
,$(1),\
139 -DSK_USER_CONFIG_HEADER
="<$(BUILDDIR)/config_host/config_skia.h>" \
143 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
148 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
150 define gb_LinkTarget__use_sane_headers
151 $(call gb_LinkTarget_set_include
,$(1),\
152 $(if
$(filter WNT
,$(OS
)), \
153 -I
$(call gb_UnpackedTarball_get_dir
,twain_dsm
/pub
/include), \
154 -I
$(SRCDIR
)/external
/sane
/inc
) \
159 $(call gb_LinkTarget_use_unpacked
,$(1),twain_dsm
)
166 gb_LinkTarget__use_sane_headers
:=
170 ifneq ($(SYSTEM_BLUEZ
),)
172 gb_LinkTarget__use_bluez_bluetooth_headers
:=
176 define gb_LinkTarget__use_bluez_bluetooth_headers
177 $(call gb_LinkTarget_set_include
,$(1),\
178 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
188 ifneq ($(SYSTEM_CPPUNIT
),)
190 define gb_LinkTarget__use_cppunit
191 $(call gb_LinkTarget_set_include
,$(1),\
196 $(call gb_LinkTarget_add_libs
,$(1),\
202 else # !SYSTEM_CPPUNIT
204 define gb_LinkTarget__use_cppunit
205 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
207 $(call gb_LinkTarget_set_include
,$(1),\
208 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
213 $(call gb_LinkTarget_add_libs
,$(1),\
214 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
217 $(call gb_LinkTarget_add_libs
,$(1),\
218 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
224 endif # SYSTEM_CPPUNIT
226 ifneq ($(SYSTEM_EPOXY
),)
228 define gb_LinkTarget__use_epoxy
229 $(call gb_LinkTarget_set_include
,$(1),\
233 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
237 gb_ExternalProject__use_epoxy
:=
241 define gb_LinkTarget__use_epoxy
242 $(call gb_LinkTarget_set_include
,$(1),\
243 -I
$(call gb_UnpackedTarball_get_dir
,epoxy
/include) \
247 $(call gb_LinkTarget_use_libraries
,$(1),\
253 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
257 define gb_ExternalProject__use_epoxy
258 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
264 define gb_LinkTarget__use_iconv
266 $(call gb_LinkTarget_add_libs
,$(1),libiconv.lib
)
268 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
272 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
274 define gb_LinkTarget__use_mariadb-connector-c
275 $(call gb_LinkTarget_set_include
,$(1),\
279 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
282 gb_ExternalProject__use_mariadb-connector-c
:=
284 else # !SYSTEM_MARIADB_CONNECTOR_C
286 define gb_LinkTarget__use_mariadb-connector-c
287 $(call gb_LinkTarget_set_include
,$(1),\
291 $(call gb_LinkTarget_use_static_libraries
,$(1),\
292 mariadb-connector-c \
295 $(call gb_LinkTarget_add_libs
,$(1),\
299 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
308 define gb_ExternalProject__use_mariadb-connector-c
309 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
313 endif # SYSTEM_MARIADB_CONNECTOR_C
316 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
318 define gb_LinkTarget__use_mysql
320 $(call gb_LinkTarget_add_defs
,$(1),\
324 $(call gb_LinkTarget_add_libs
,$(1),\
328 $(call gb_LinkTarget_set_include
,$(1),\
336 define gb_LinkTarget__use_mysql
338 $(call gb_LinkTarget_set_include
,$(1),\
346 ifneq ($(SYSTEM_ZLIB
),)
348 define gb_LinkTarget__use_zlib
349 $(call gb_LinkTarget_add_defs
,$(1),\
353 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
358 define gb_LinkTarget__use_zlib_x64
362 gb_ExternalProject__use_zlib
:=
366 define gb_LinkTarget__use_zlib_multiarch
367 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
369 $(call gb_LinkTarget_add_defs
,$(1), \
373 $(call gb_LinkTarget_set_include
,$(1),\
378 $(call gb_LinkTarget_use_static_libraries
,$(1),\
384 define gb_LinkTarget__use_zlib
385 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
389 define gb_LinkTarget__use_zlib_x64
390 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
394 define gb_ExternalProject__use_zlib
395 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
402 ifneq ($(SYSTEM_LIBJPEG
),)
404 define gb_LinkTarget__use_libjpeg
405 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
406 $(call gb_LinkTarget_set_ldflags
,$(1),\
407 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
412 gb_ExternalProject__use_libjpeg
:=
416 define gb_LinkTarget__use_libjpeg
417 $(call gb_LinkTarget_set_include
,$(1),\
421 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
422 $(call gb_LinkTarget_use_external_project
,$(1),libjpeg-turbo
,full
)
426 define gb_ExternalProject__use_libjpeg
427 $(call gb_ExternalProject_use_external_project
,$(1),libjpeg-turbo
)
431 endif # SYSTEM_LIBJPEG
433 ifneq ($(SYSTEM_MYTHES
),)
435 define gb_LinkTarget__use_mythes
436 $(call gb_LinkTarget_set_include
,$(1),\
440 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
444 else # !SYSTEM_MYTHES
446 define gb_LinkTarget__use_mythes
447 $(call gb_LinkTarget_set_include
,$(1),\
448 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
453 $(call gb_LinkTarget_use_static_libraries
,$(1),\
457 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
458 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
463 endif # SYSTEM_MYTHES
466 ifneq ($(SYSTEM_EXPAT
),)
468 define gb_LinkTarget__use_expat_impl
469 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
471 $(call gb_LinkTarget_add_defs
,$(1),\
475 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
479 gb_ExternalProject__use_expat
:=
483 define gb_LinkTarget__use_expat_impl
484 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
486 $(call gb_LinkTarget_set_include
,$(1),\
487 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
491 $(call gb_LinkTarget_use_static_libraries
,$(1),\
497 define gb_ExternalProject__use_expat
498 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
504 define gb_LinkTarget__use_expat
505 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
509 define gb_LinkTarget__use_expat_x64
510 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
514 ifneq ($(SYSTEM_HYPH
),)
516 define gb_LinkTarget__use_hyphen
517 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
523 define gb_LinkTarget__use_hyphen
524 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
525 $(call gb_LinkTarget_set_include
,$(1),\
526 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
531 $(call gb_LinkTarget_use_static_libraries
,$(1),\
535 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
536 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
543 ifneq ($(SYSTEM_HUNSPELL
),)
545 define gb_LinkTarget__use_hunspell
546 $(call gb_LinkTarget_set_include
,$(1),\
550 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
554 gb_ExternalProject__use_hunspell
:=
556 else # !SYSTEM_HUNSPELL
558 define gb_LinkTarget__use_hunspell
559 $(call gb_LinkTarget_add_defs
,$(1),\
562 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
563 $(call gb_LinkTarget_set_include
,$(1),\
564 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
569 $(call gb_LinkTarget_use_static_libraries
,$(1),\
573 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
574 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
579 define gb_ExternalProject__use_hunspell
580 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
584 endif # SYSTEM_HUNSPELL
587 ifneq ($(SYSTEM_BOOST
),)
589 define gb_LinkTarget__use_boost_lib
590 $(call gb_LinkTarget_set_include
,$(1),\
595 $(call gb_LinkTarget_add_ldflags
,$(1),\
599 $(call gb_LinkTarget_add_libs
,$(1),$(2))
603 define gb_LinkTarget__use_boost_locale
604 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
608 define gb_LinkTarget__use_boost_date_time
609 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
613 define gb_LinkTarget__use_boost_filesystem
614 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
618 gb_ExternalProject__use_boost_filesystem
:=
620 define gb_LinkTarget__use_boost_iostreams
621 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
625 gb_ExternalProject__use_boost_iostreams
:=
627 define gb_LinkTarget__use_boost_system
628 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
632 gb_ExternalProject__use_boost_system
:=
634 define gb_LinkTarget__use_boost_headers
635 $(call gb_LinkTarget_set_include
,$(1),\
642 gb_ExternalProject__use_boost_headers
:=
646 define gb_LinkTarget__use_boost_lib
647 $(call gb_LinkTarget_add_defs
,$(1),\
651 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
655 define gb_LinkTarget__use_boost_locale
656 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
657 $(call gb_LinkTarget_add_libs
,$(1),\
658 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
663 define gb_LinkTarget__use_boost_date_time
664 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
668 define gb_LinkTarget__use_boost_filesystem
669 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
673 define gb_ExternalProject__use_boost_filesystem
674 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
677 define gb_LinkTarget__use_boost_iostreams
678 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
682 define gb_ExternalProject__use_boost_iostreams
683 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
686 define gb_LinkTarget__use_boost_system
687 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
691 define gb_ExternalProject__use_boost_system
692 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
695 define gb_LinkTarget__use_boost_headers
696 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
697 $(call gb_LinkTarget_set_include
,$(1),\
704 define gb_ExternalProject__use_boost_headers
705 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
712 ifneq ($(SYSTEM_LIBCMIS
),)
714 define gb_LinkTarget__use_libcmis
715 $(call gb_LinkTarget_set_include
,$(1),\
719 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
723 else # !SYSTEM_LIBCMIS
725 define gb_LinkTarget__use_libcmis
726 $(call gb_LinkTarget_set_include
,$(1),\
727 -I
$(call gb_UnpackedTarball_get_dir
,libcmis
)/inc \
730 $(call gb_LinkTarget_use_static_libraries
,$(1),\
736 endif # SYSTEM_LIBCMIS
738 ifeq ($(ENABLE_JAVA
),TRUE
)
740 define gb_LinkTarget__use_jawt
741 $(call gb_LinkTarget_add_libs
,$(1),\
749 gb_LinkTarget__use_jawt
:=
753 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
755 define gb_LinkTarget__use_libatomic_ops
756 $(call gb_LinkTarget_set_include
,$(1),\
758 $(LIBATOMIC_OPS_CFLAGS
) \
760 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
763 gb_ExternalProject__use_libatomic_ops
:=
765 else # !SYSTEM_LIBATOMIC_OPS
767 define gb_LinkTarget__use_libatomic_ops
768 $(call gb_LinkTarget_set_include
,$(1),\
769 $(LIBATOMIC_OPS_CFLAGS
) \
771 $(LIBATOMIC_OPS_CFLAGS
) \
773 $(call gb_LinkTarget_use_external_project
,$(1),\
777 $(call gb_LinkTarget_add_libs
,$(1),\
778 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
783 define gb_ExternalProject__use_libatomic_ops
784 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
788 endif # SYSTEM_LIBATOMIC_OPS
791 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
793 define gb_LinkTarget__use_libexttextcat
794 $(call gb_LinkTarget_set_include
,$(1),\
796 $(LIBEXTTEXTCAT_CFLAGS
) \
798 $(call gb_LinkTarget_add_defs
,$(1),\
799 -DSYSTEM_LIBEXTTEXTCAT \
801 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
805 else # !SYSTEM_LIBEXTTEXTCAT
807 define gb_LinkTarget__use_libexttextcat
808 $(call gb_LinkTarget_set_include
,$(1),\
809 -I
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
814 $(call gb_LinkTarget_use_static_libraries
,$(1),\
818 $(call gb_LinkTarget_add_libs
,$(1),\
819 $(call gb_UnpackedTarball_get_dir
,libexttextcat
)/src
/.libs
/libexttextcat-2.0.a\
821 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
827 endif # SYSTEM_LIBEXTTEXTCAT
830 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
832 define gb_LinkTarget__use_libnumbertext
833 $(call gb_LinkTarget_set_include
,$(1),\
835 $(LIBNUMBERTEXT_CFLAGS
) \
837 $(call gb_LinkTarget_add_defs
,$(1),\
838 -DSYSTEM_LIBNUMBERTEXT \
840 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
844 else # !SYSTEM_LIBNUMBERTEXT
846 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
847 libnumbertext_numbertext \
850 define gb_LinkTarget__use_libnumbertext
851 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
852 $(call gb_LinkTarget_set_include
,$(1),\
853 -I
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
858 $(call gb_LinkTarget_use_static_libraries
,$(1),\
863 $(call gb_LinkTarget_add_libs
,$(1),\
864 $(call gb_UnpackedTarball_get_dir
,libnumbertext
)/src
/.libs
/libnumbertext-1.0.a\
866 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
872 endif # SYSTEM_LIBNUMBERTEXT
875 ifneq ($(SYSTEM_LIBXML
),)
877 define gb_LinkTarget__use_libxml2
878 $(call gb_LinkTarget_add_defs
,$(1),\
881 $(call gb_LinkTarget_set_include
,$(1),\
885 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
888 gb_ExternalProject__use_libxml2
:=
890 else # !SYSTEM_LIBXML
892 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
896 define gb_LinkTarget__use_libxml2
897 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
898 $(call gb_LinkTarget_set_include
,$(1),\
903 $(call gb_LinkTarget_add_libs
,$(1),\
908 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
912 define gb_ExternalProject__use_libxml2
913 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
916 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
921 endif # SYSTEM_LIBXML
924 ifneq ($(SYSTEM_LIBXSLT
),)
926 define gb_LinkTarget__use_libxslt
927 $(call gb_LinkTarget_set_include
,$(1),\
931 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
935 define gb_LinkTarget__use_libexslt
936 $(call gb_LinkTarget_set_include
,$(1),\
941 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
945 else # !SYSTEM_LIBXSLT
947 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
951 define gb_LinkTarget__use_libxslt
952 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
953 $(call gb_LinkTarget_set_include
,$(1),\
955 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
959 $(call gb_LinkTarget_add_libs
,$(1),\
960 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
963 $(call gb_LinkTarget_add_libs
,$(1),\
964 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libxslt
/.libs
-lxslt \
970 define gb_LinkTarget__use_libexslt
971 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
972 $(call gb_LinkTarget_set_include
,$(1),\
974 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
978 $(call gb_LinkTarget_add_libs
,$(1),\
979 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
982 $(call gb_LinkTarget_add_libs
,$(1),\
983 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libexslt
/.libs
-lexslt \
989 endif # SYSTEM_LIBXSLT
992 ifneq ($(SYSTEM_XMLSEC
),)
994 define gb_LinkTarget__use_xmlsec
995 $(call gb_LinkTarget_add_defs
,$(1),\
998 $(call gb_LinkTarget_set_include
,$(1),\
1002 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
1006 gb_ExternalProject__use_xmlsec
:=
1008 else # !SYSTEM_XMLSEC
1010 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1014 define gb_LinkTarget__use_xmlsec
1018 endif # SYSTEM_XMLSEC
1020 ifneq ($(SYSTEM_LIBLANGTAG
),)
1022 define gb_LinkTarget__use_liblangtag
1023 $(call gb_LinkTarget_set_include
,$(1),\
1025 $(LIBLANGTAG_CFLAGS
) \
1028 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1032 gb_ExternalProject__use_liblangtag
:=
1034 else # !SYSTEM_LIBLANGTAG
1036 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1042 define gb_LinkTarget__use_liblangtag
1043 $(call gb_LinkTarget_set_include
,$(1),\
1044 $(LIBLANGTAG_CFLAGS
) \
1047 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1048 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1054 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1058 define gb_LinkTarget__use_liblangtag
1059 $(call gb_LinkTarget_set_include
,$(1),\
1060 $(LIBLANGTAG_CFLAGS
) \
1063 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1064 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1070 define gb_ExternalProject__use_liblangtag
1071 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1075 endif # SYSTEM_LIBLANGTAG
1078 gb_ExternalProject__use_apr
:=
1080 ifeq ($(WITH_WEBDAV
),serf
)
1082 define gb_LinkTarget__use_apr
1083 $(call gb_LinkTarget_set_include
,$(1),\
1087 $(call gb_LinkTarget_add_libs
,$(1),\
1089 $(if
$(filter $(OS
),LINUX
),-lpthread
) \
1090 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
1093 ifeq ($(SYSTEM_APR
),)
1094 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1099 $(call gb_LinkTarget_add_defs
,$(1),\
1100 -DAPR_DECLARE_STATIC \
1101 -DAPU_DECLARE_STATIC \
1103 $(call gb_LinkTarget_use_external_project
,$(1),apr_util
,full
)
1108 define gb_ExternalProject__use_apr
1109 ifeq ($(SYSTEM_APR
),)
1110 $(call gb_ExternalProject_use_external_project
,$(1),apr_util
,full
)
1115 ifneq ($(SYSTEM_SERF
),)
1117 define gb_LinkTarget__use_serf
1118 $(call gb_LinkTarget_add_defs
,$(1),\
1119 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(SERF_CFLAGS
))) \
1122 $(call gb_LinkTarget_set_include
,$(1),\
1123 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(SERF_CFLAGS
)))) \
1127 $(call gb_LinkTarget_add_libs
,$(1),\
1135 define gb_LinkTarget__use_serf
1136 $(call gb_LinkTarget_set_include
,$(1),\
1137 -I
$(call gb_UnpackedTarball_get_dir
,serf
) \
1141 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1149 else ifeq ($(WITH_WEBDAV
),neon
)
1151 ifneq ($(SYSTEM_NEON
),)
1153 define gb_LinkTarget__use_neon
1154 $(call gb_LinkTarget_add_defs
,$(1),\
1155 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
1158 $(call gb_LinkTarget_set_include
,$(1),\
1163 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
1169 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1173 define gb_LinkTarget__use_neon
1174 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
1175 $(call gb_LinkTarget_set_include
,$(1),\
1176 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
1179 $(call gb_LinkTarget_use_libraries
,$(1),\
1189 ifneq ($(SYSTEM_REDLAND
),)
1191 define gb_LinkTarget__use_librdf
1192 $(call gb_LinkTarget_add_defs
,$(1),\
1195 $(call gb_LinkTarget_set_include
,$(1),\
1199 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1203 gb_LinkTarget__use_redland_headers
:=
1205 gb_LinkTarget__use_raptor_headers
:=
1207 gb_LinkTarget__use_rasqal_headers
:=
1209 else # !SYSTEM_REDLAND
1211 define gb_LinkTarget__use_redland_headers
1212 $(call gb_LinkTarget_set_include
,$(1),\
1213 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1219 define gb_LinkTarget__use_raptor_headers
1220 $(call gb_LinkTarget_set_include
,$(1),\
1221 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1227 define gb_LinkTarget__use_rasqal_headers
1228 $(call gb_LinkTarget_set_include
,$(1),\
1229 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1235 ifneq ($(OS
),ANDROID
)
1238 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1244 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1251 define gb_LinkTarget__use_librdf
1253 $(call gb_LinkTarget_use_libraries
,$(1),\
1258 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1260 $(call gb_LinkTarget_add_libs
,$(1),\
1261 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1262 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1263 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1271 define gb_LinkTarget__use_librdf
1272 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1278 endif # SYSTEM_REDLAND
1280 ifneq ($(SYSTEM_CAIRO
),)
1282 define gb_LinkTarget__use_cairo
1283 $(call gb_LinkTarget_set_include
,$(1),\
1287 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1288 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1292 else # !SYSTEM_CAIRO
1294 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1296 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1301 define gb_LinkTarget__use_cairo
1302 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1303 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1304 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1305 $(call gb_LinkTarget_set_include
,$(1),\
1306 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1307 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1308 -I
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman \
1311 $(call gb_LinkTarget_add_libs
,$(1),\
1312 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1313 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1318 endif # !MACOSX, !WNT
1320 endif # !SYSTEM_CAIRO
1322 ifneq ($(SYSTEM_FREETYPE
),)
1324 define gb_LinkTarget__use_freetype_headers
1325 $(call gb_LinkTarget_set_include
,$(1),\
1327 $(FREETYPE_CFLAGS
) \
1332 gb_ExternalProject__use_freetype
:=
1336 define gb_LinkTarget__use_freetype_headers
1337 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1338 $(call gb_LinkTarget_set_include
,$(1),\
1339 $(FREETYPE_CFLAGS
) \
1345 define gb_ExternalProject__use_freetype
1346 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1350 endif # SYSTEM_FREETYPE
1352 define gb_LinkTarget__use_freetype
1353 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1354 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1358 ifneq ($(SYSTEM_FONTCONFIG
),)
1360 define gb_LinkTarget__use_fontconfig
1361 $(call gb_LinkTarget_set_include
,$(1),\
1363 $(FONTCONFIG_CFLAGS
) \
1366 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1370 gb_ExternalProject__use_fontconfig
:=
1374 define gb_LinkTarget__use_fontconfig
1375 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1376 $(call gb_LinkTarget_set_include
,$(1),\
1377 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1381 $(call gb_LinkTarget_add_libs
,$(1),\
1382 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1387 define gb_ExternalProject__use_fontconfig
1388 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1392 endif # SYSTEM_FONTCONFIG
1394 ifneq ($(SYSTEM_GRAPHITE
),)
1396 define gb_LinkTarget__use_graphite
1397 $(call gb_LinkTarget_set_include
,$(1),\
1399 $(GRAPHITE_CFLAGS
) \
1401 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1405 gb_ExternalProject__use_graphite
:=
1407 else # !SYSTEM_GRAPHITE
1409 define gb_LinkTarget__use_graphite
1410 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1411 $(call gb_LinkTarget_set_include
,$(1),\
1412 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1415 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1421 define gb_ExternalProject__use_graphite
1422 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1427 endif # SYSTEM_GRAPHITE
1429 ifneq ($(SYSTEM_ICU
),)
1431 gb_LinkTarget__use_icu_headers
:=
1432 gb_ExternalProject__use_icu
:=
1434 define gb_LinkTarget__use_icudata
1435 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1438 define gb_LinkTarget__use_icui18n
1439 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1442 define gb_LinkTarget__use_icuuc
1443 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1449 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1453 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1457 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1463 define gb_LinkTarget__use_icu_headers
1464 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1465 $(call gb_LinkTarget_set_include
,$(1),\
1466 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1467 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1468 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1474 define gb_ExternalProject__use_icu
1475 $(call gb_ExternalProject_use_package
,$(1),icu
)
1479 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1480 define gb_LinkTarget__use_icudata
1481 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1484 $(call gb_LinkTarget_add_libs
,$(1),\
1485 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1488 $(call gb_LinkTarget_add_libs
,$(1),\
1489 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1495 define gb_LinkTarget__use_icui18n
1496 $(call gb_LinkTarget_use_package
,$(1),icu
)
1499 $(call gb_LinkTarget_add_libs
,$(1),\
1500 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1503 $(call gb_LinkTarget_add_libs
,$(1),\
1504 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1510 define gb_LinkTarget__use_icuuc
1511 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1514 $(call gb_LinkTarget_add_libs
,$(1),\
1515 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1518 $(call gb_LinkTarget_add_libs
,$(1),\
1519 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1527 ifneq ($(SYSTEM_HARFBUZZ
),)
1529 define gb_LinkTarget__use_harfbuzz
1530 $(call gb_LinkTarget_set_include
,$(1),\
1532 $(HARFBUZZ_CFLAGS
) \
1534 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1538 gb_ExternalProject__use_harfbuzz
:=
1540 else # SYSTEM_HARFBUZZ != TRUE
1542 define gb_LinkTarget__use_harfbuzz
1543 $(call gb_LinkTarget_set_include
,$(1),\
1544 $(HARFBUZZ_CFLAGS
) \
1547 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1548 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1549 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1553 define gb_ExternalProject__use_harfbuzz
1554 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1558 endif # SYSTEM_HARFBUZZ
1560 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1562 gb_ExternalProject__use_openssl
:=
1563 gb_LinkTarget__use_openssl_headers
:=
1564 gb_LinkTarget__use_openssl
:=
1566 else # ENABLE_OPENSSL
1568 ifneq ($(SYSTEM_OPENSSL
),)
1570 gb_LinkTarget__use_openssl_headers
:=
1571 gb_ExternalProject__use_openssl
:=
1573 define gb_LinkTarget__use_openssl
1574 $(call gb_LinkTarget_set_include
,$(1),\
1578 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1582 else # !SYSTEM_OPENSSL
1584 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1588 define gb_ExternalProject__use_openssl
1589 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1593 define gb_LinkTarget__use_openssl_headers
1594 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1595 $(call gb_LinkTarget_set_include
,$(1),\
1596 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1602 define gb_LinkTarget__use_openssl
1603 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1605 $(call gb_LinkTarget_add_libs
,$(1),\
1606 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.lib \
1607 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.lib \
1610 $(call gb_LinkTarget_add_libs
,$(1),\
1611 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1612 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1613 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1615 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1616 ifeq ($(OS
),SOLARIS
)
1617 $(call gb_LinkTarget_add_libs
,$(1),\
1626 endif # SYSTEM_OPENSSL
1627 endif # ENABLE_OPENSSL
1630 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1632 define gb_LinkTarget__use_gnutls
1633 $(call gb_LinkTarget_set_include
,$(1),\
1638 $(call gb_LinkTarget_add_defs
,$(1),\
1642 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1646 define gb_LinkTarget__use_libgcrypt
1647 $(call gb_LinkTarget_set_include
,$(1),\
1649 $(LIBGCRYPT_CFLAGS
) \
1652 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1656 else # ENABLE_OPENSSL
1658 gb_LinkTarget__use_gnutls
:=
1659 gb_LinkTarget__use_libgcrypt
:=
1661 endif # ENABLE_OPENSSL
1664 ifneq ($(SYSTEM_CDR
),)
1666 define gb_LinkTarget__use_cdr
1667 $(call gb_LinkTarget_set_include
,$(1),\
1671 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1677 define gb_LinkTarget__use_cdr
1678 $(call gb_LinkTarget_set_include
,$(1),\
1679 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1682 $(call gb_LinkTarget_add_libs
,$(1),\
1683 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1685 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1691 ifneq ($(SYSTEM_EBOOK
),)
1693 define gb_LinkTarget__use_ebook
1694 $(call gb_LinkTarget_set_include
,$(1),\
1698 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1702 gb_ExternalProject__use_ebook
:=
1704 else # !SYSTEM_EBOOK
1706 define gb_LinkTarget__use_ebook
1707 $(call gb_LinkTarget_set_include
,$(1),\
1708 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1711 $(call gb_LinkTarget_add_libs
,$(1),\
1712 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1714 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1718 define gb_ExternalProject__use_ebook
1719 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1723 endif # SYSTEM_EBOOK
1726 ifneq ($(SYSTEM_ETONYEK
),)
1728 define gb_LinkTarget__use_etonyek
1729 $(call gb_LinkTarget_set_include
,$(1),\
1733 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1737 gb_ExternalProject__use_etonyek
:=
1739 else # !SYSTEM_ETONYEK
1743 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1747 define gb_LinkTarget__use_etonyek
1748 $(call gb_LinkTarget_set_include
,$(1),\
1749 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1752 $(call gb_LinkTarget_use_libraries
,$(1),\
1760 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1764 define gb_LinkTarget__use_etonyek
1765 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1767 $(call gb_LinkTarget_set_include
,$(1),\
1768 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1769 -DLIBETONYEK_VISIBILITY \
1772 $(call gb_LinkTarget_add_libs
,$(1),\
1773 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1775 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1779 define gb_ExternalProject__use_etonyek
1780 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1786 endif # SYSTEM_ETONYEK
1789 ifneq ($(SYSTEM_FREEHAND
),)
1791 define gb_LinkTarget__use_freehand
1792 $(call gb_LinkTarget_set_include
,$(1),\
1794 $(FREEHAND_CFLAGS
) \
1796 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1800 gb_ExternalProject__use_freehand
:=
1802 else # !SYSTEM_FREEHAND
1804 define gb_LinkTarget__use_freehand
1805 $(call gb_LinkTarget_set_include
,$(1),\
1806 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1809 $(call gb_LinkTarget_add_libs
,$(1),\
1810 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1812 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1816 define gb_ExternalProject__use_freehand
1817 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1821 endif # SYSTEM_FREEHAND
1824 ifneq ($(SYSTEM_ODFGEN
),)
1826 define gb_LinkTarget__use_odfgen
1827 $(call gb_LinkTarget_set_include
,$(1),\
1831 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1835 else # !SYSTEM_ODFGEN
1839 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1843 define gb_LinkTarget__use_odfgen
1844 $(call gb_LinkTarget_set_include
,$(1),\
1845 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1848 $(call gb_LinkTarget_use_libraries
,$(1),\
1856 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1860 define gb_LinkTarget__use_odfgen
1861 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1863 $(call gb_LinkTarget_set_include
,$(1),\
1864 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1865 -DLIBODFGEN_VISIBILITY \
1868 $(call gb_LinkTarget_add_libs
,$(1),\
1869 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1876 endif # SYSTEM_ODFGEN
1878 ifneq ($(SYSTEM_EPUBGEN
),)
1880 define gb_LinkTarget__use_epubgen
1881 $(call gb_LinkTarget_set_include
,$(1),\
1885 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1888 gb_ExternalProject__use_epubgen
:=
1890 else # !SYSTEM_EPUBGEN
1892 define gb_LinkTarget__use_epubgen
1893 $(call gb_LinkTarget_set_include
,$(1),\
1894 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1897 $(call gb_LinkTarget_add_libs
,$(1),\
1898 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1900 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1903 define gb_ExternalProject__use_epubgen
1904 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1908 endif # SYSTEM_EPUBGEN
1910 ifneq ($(SYSTEM_REVENGE
),)
1912 define gb_LinkTarget__use_revenge
1913 $(call gb_LinkTarget_set_include
,$(1),\
1917 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1921 gb_ExternalProject__use_revenge
:=
1923 else # !SYSTEM_REVENGE
1927 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1931 define gb_LinkTarget__use_revenge
1932 $(call gb_LinkTarget_set_include
,$(1),\
1936 $(call gb_LinkTarget_use_libraries
,$(1),\
1942 define gb_ExternalProject__use_revenge
1943 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1949 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1953 define gb_LinkTarget__use_revenge
1954 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1956 $(call gb_LinkTarget_set_include
,$(1),\
1958 -DLIBREVENGE_VISIBILITY \
1961 $(call gb_LinkTarget_add_libs
,$(1),\
1966 define gb_ExternalProject__use_revenge
1967 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1973 endif # SYSTEM_REVENGE
1976 ifneq ($(SYSTEM_ABW
),)
1978 define gb_LinkTarget__use_abw
1979 $(call gb_LinkTarget_set_include
,$(1),\
1983 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1986 gb_ExternalProject__use_abw
:=
1990 define gb_LinkTarget__use_abw
1991 $(call gb_LinkTarget_set_include
,$(1),\
1992 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1995 $(call gb_LinkTarget_add_libs
,$(1),\
1996 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1998 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
2001 define gb_ExternalProject__use_abw
2002 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
2009 ifneq ($(SYSTEM_MSPUB
),)
2011 define gb_LinkTarget__use_mspub
2012 $(call gb_LinkTarget_set_include
,$(1),\
2016 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
2020 else # !SYSTEM_MSPUB
2022 define gb_LinkTarget__use_mspub
2023 $(call gb_LinkTarget_set_include
,$(1),\
2024 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
2027 $(call gb_LinkTarget_add_libs
,$(1),\
2028 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2030 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
2034 endif # SYSTEM_MSPUB
2037 ifneq ($(SYSTEM_PAGEMAKER
),)
2039 define gb_LinkTarget__use_pagemaker
2040 $(call gb_LinkTarget_set_include
,$(1),\
2042 $(PAGEMAKER_CFLAGS
) \
2044 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
2047 gb_ExternalProject__use_pagemaker
:=
2049 else # !SYSTEM_PAGEMAKER
2051 define gb_LinkTarget__use_pagemaker
2052 $(call gb_LinkTarget_set_include
,$(1),\
2053 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
2056 $(call gb_LinkTarget_add_libs
,$(1),\
2057 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2059 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
2062 define gb_ExternalProject__use_pagemaker
2063 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
2067 endif # SYSTEM_PAGEMAKER
2070 ifneq ($(SYSTEM_QXP
),)
2072 define gb_LinkTarget__use_qxp
2073 $(call gb_LinkTarget_set_include
,$(1),\
2077 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
2080 gb_ExternalProject__use_qxp
:=
2084 define gb_LinkTarget__use_qxp
2085 $(call gb_LinkTarget_set_include
,$(1),\
2086 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
2089 $(call gb_LinkTarget_add_libs
,$(1),\
2090 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2092 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
2095 define gb_ExternalProject__use_qxp
2096 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
2103 ifneq ($(SYSTEM_ZMF
),)
2105 define gb_LinkTarget__use_zmf
2106 $(call gb_LinkTarget_set_include
,$(1),\
2110 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
2113 gb_ExternalProject__use_zmf
:=
2117 define gb_LinkTarget__use_zmf
2118 $(call gb_LinkTarget_set_include
,$(1),\
2119 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2122 $(call gb_LinkTarget_add_libs
,$(1),\
2123 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2125 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2128 define gb_ExternalProject__use_zmf
2129 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2136 ifneq ($(SYSTEM_VISIO
),)
2138 define gb_LinkTarget__use_visio
2139 $(call gb_LinkTarget_set_include
,$(1),\
2143 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2147 else # !SYSTEM_VISIO
2149 define gb_LinkTarget__use_visio
2150 $(call gb_LinkTarget_set_include
,$(1),\
2151 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2154 $(call gb_LinkTarget_add_libs
,$(1),\
2155 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2157 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2161 endif # SYSTEM_VISIO
2164 ifneq ($(SYSTEM_WPD
),)
2166 define gb_LinkTarget__use_wpd
2167 $(call gb_LinkTarget_set_include
,$(1),\
2171 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2174 gb_ExternalProject__use_wpd
:=
2180 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2184 define gb_LinkTarget__use_wpd
2185 $(call gb_LinkTarget_set_include
,$(1),\
2189 $(call gb_LinkTarget_use_libraries
,$(1),\
2195 define gb_ExternalProject__use_wpd
2196 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2202 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2206 define gb_LinkTarget__use_wpd
2207 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2209 $(call gb_LinkTarget_set_include
,$(1),\
2213 $(call gb_LinkTarget_add_libs
,$(1),\
2219 define gb_ExternalProject__use_wpd
2220 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2229 ifneq ($(SYSTEM_WPG
),)
2231 define gb_LinkTarget__use_wpg
2232 $(call gb_LinkTarget_set_include
,$(1),\
2236 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2239 gb_ExternalProject__use_wpg
:=
2245 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2249 define gb_LinkTarget__use_wpg
2250 $(call gb_LinkTarget_set_include
,$(1),\
2251 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2254 $(call gb_LinkTarget_use_libraries
,$(1),\
2262 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2266 define gb_LinkTarget__use_wpg
2267 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2269 $(call gb_LinkTarget_set_include
,$(1),\
2270 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2273 $(call gb_LinkTarget_add_libs
,$(1),\
2274 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2284 ifneq ($(SYSTEM_WPS
),)
2286 define gb_LinkTarget__use_wps
2287 $(call gb_LinkTarget_set_include
,$(1),\
2291 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2294 gb_ExternalProject__use_wps
:=
2300 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2304 define gb_LinkTarget__use_wps
2305 $(call gb_LinkTarget_set_include
,$(1),\
2306 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2310 $(call gb_LinkTarget_use_libraries
,$(1),\
2318 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2322 define gb_LinkTarget__use_wps
2323 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2325 $(call gb_LinkTarget_set_include
,$(1),\
2326 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2329 $(call gb_LinkTarget_add_libs
,$(1),\
2330 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2340 ifneq ($(SYSTEM_MWAW
),)
2342 define gb_LinkTarget__use_mwaw
2343 $(call gb_LinkTarget_set_include
,$(1),\
2347 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2355 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2359 define gb_LinkTarget__use_mwaw
2360 $(call gb_LinkTarget_set_include
,$(1),\
2361 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2365 $(call gb_LinkTarget_use_libraries
,$(1),\
2373 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2377 define gb_LinkTarget__use_mwaw
2378 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2380 $(call gb_LinkTarget_set_include
,$(1),\
2381 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2384 $(call gb_LinkTarget_add_libs
,$(1),\
2385 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2394 ifneq ($(SYSTEM_STAROFFICE
),)
2396 define gb_LinkTarget__use_staroffice
2397 $(call gb_LinkTarget_set_include
,$(1),\
2399 $(STAROFFICE_CFLAGS
) \
2401 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2405 else # !SYSTEM_STAROFFICE
2409 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2413 define gb_LinkTarget__use_staroffice
2414 $(call gb_LinkTarget_set_include
,$(1),\
2415 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2419 $(call gb_LinkTarget_use_libraries
,$(1),\
2427 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2431 define gb_LinkTarget__use_staroffice
2432 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2434 $(call gb_LinkTarget_set_include
,$(1),\
2435 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2438 $(call gb_LinkTarget_add_libs
,$(1),\
2439 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2446 endif # SYSTEM_STAROFFICE
2449 ifneq ($(SYSTEM_LCMS2
),)
2451 define gb_LinkTarget__use_lcms2
2452 $(call gb_LinkTarget_set_include
,$(1),\
2456 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2460 gb_ExternalProject__use_lcms2
:=
2462 else # !SYSTEM_LCMS2
2464 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2468 define gb_ExternalProject__use_lcms2
2469 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2473 ifeq ($(OS
),ANDROID
)
2475 define gb_LinkTarget__use_lcms2
2476 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2477 $(call gb_LinkTarget_set_include
,$(1),\
2478 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2486 define gb_LinkTarget__use_lcms2
2487 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2488 $(call gb_LinkTarget_set_include
,$(1),\
2489 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2492 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2497 endif # SYSTEM_LCMS2
2499 ifneq ($(ENABLE_LPSOLVE
),)
2501 ifneq ($(SYSTEM_LPSOLVE
),)
2503 define gb_LinkTarget__use_lpsolve
2504 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2505 $(call gb_LinkTarget_add_defs
,$(1),\
2511 else # !SYSTEM_LPSOLVE
2513 define gb_LinkTarget__use_lpsolve
2514 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2516 $(call gb_LinkTarget_add_libs
,$(1),\
2517 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2520 $(call gb_LinkTarget_add_libs
,$(1),\
2521 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2524 $(call gb_LinkTarget_set_include
,$(1),\
2525 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2531 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2535 endif # SYSTEM_LPSOLVE
2539 gb_LinkTarget__use_lpsolve
:=
2541 endif # ENABLE_LPSOLVE
2543 ifneq ($(ENABLE_COINMP
),)
2545 ifneq ($(SYSTEM_COINMP
),TRUE
)
2547 define gb_LinkTarget__use_coinmp
2548 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2550 $(call gb_LinkTarget_add_libs
,$(1),\
2551 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2554 $(call gb_LinkTarget_add_libs
,$(1),\
2555 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2556 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2557 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2558 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2559 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2560 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2561 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2564 $(call gb_LinkTarget_set_include
,$(1),\
2565 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2566 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2572 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2576 else # SYSTEM_COINMP
2578 define gb_LinkTarget__use_coinmp
2579 $(call gb_LinkTarget_set_include
,$(1),\
2583 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2591 gb_LinkTarget__use_coinmp
:=
2593 endif # ENABLE_COINMP
2595 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2597 define gb_LinkTarget__use_mDNSResponder
2598 $(call gb_LinkTarget_set_include
,$(1),\
2599 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2602 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2605 endif # MDNSRESPONDER
2607 ifeq ($(ENABLE_GIO
),TRUE
)
2609 define gb_LinkTarget__use_gio
2610 $(call gb_LinkTarget_set_include
,$(1),\
2615 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2621 define gb_LinkTarget__use_gio
2627 ifeq ($(ENABLE_AVAHI
),TRUE
)
2629 define gb_LinkTarget__use_avahi
2630 $(call gb_LinkTarget_set_include
,$(1),\
2635 $(call gb_LinkTarget_add_defs
,$(1),\
2639 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2645 gb_LinkTarget__use_avahi
:=
2647 endif # ENABLE_AVAHI
2649 ifeq ($(ENABLE_CUPS
),TRUE
)
2651 define gb_LinkTarget__use_cups
2652 $(call gb_LinkTarget_add_defs
,$(1),\
2656 $(call gb_LinkTarget_add_libs
,$(1),\
2664 define gb_LinkTarget__use_cups
2670 ifeq ($(ENABLE_DBUS
),TRUE
)
2672 define gb_LinkTarget__use_dbus
2673 $(call gb_LinkTarget_set_include
,$(1),\
2678 $(call gb_LinkTarget_add_libs
,$(1),\
2686 define gb_LinkTarget__use_dbus
2693 ifneq ($(SYSTEM_LIBPNG
),)
2695 define gb_LinkTarget__use_libpng
2696 $(call gb_LinkTarget_set_include
,$(1),\
2701 $(call gb_LinkTarget_add_libs
,$(1),\
2707 gb_ExternalProject__use_libpng
:=
2709 else # !SYSTEM_LIBPNG
2711 define gb_LinkTarget__use_libpng
2712 $(call gb_LinkTarget_set_include
,$(1),\
2716 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2719 $(call gb_LinkTarget__use_zlib
,$(1))
2723 define gb_ExternalProject__use_libpng
2724 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2730 endif # !SYSTEM_LIBPNG
2733 ifneq ($(SYSTEM_CURL
),)
2735 define gb_LinkTarget__use_curl
2736 $(call gb_LinkTarget_add_defs
,$(1),\
2739 $(call gb_LinkTarget_set_include
,$(1),\
2743 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2749 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2753 define gb_LinkTarget__use_curl
2754 $(call gb_LinkTarget_use_package
,$(1),curl
)
2755 $(call gb_LinkTarget_set_include
,$(1),\
2756 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2761 $(call gb_LinkTarget_add_libs
,$(1),\
2762 $(call gb_UnpackedTarball_get_dir
,curl
)/builds
/libcurl-vc12-
$(gb_MSBUILD_PLATFORM
)-$(gb_MSBUILD_CONFIG
)-dll-ipv6-sspi-schannel
/lib
/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
).lib \
2765 $(call gb_LinkTarget_add_libs
,$(1),\
2766 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2774 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2776 define gb_LinkTarget__use_valgrind
2777 $(call gb_LinkTarget_add_defs
,$(1),\
2778 -DHAVE_VALGRIND_HEADERS \
2781 $(call gb_LinkTarget_set_include
,$(1),\
2783 $(VALGRIND_CFLAGS
) \
2788 else # !ENABLE_VALGRIND
2790 define gb_LinkTarget__use_valgrind
2794 endif # ENABLE_VALGRIND
2796 ifeq ($(ENABLE_POPPLER
),TRUE
)
2798 ifneq ($(SYSTEM_POPPLER
),)
2800 define gb_LinkTarget__use_poppler
2801 $(call gb_LinkTarget_set_include
,$(1),\
2806 $(call gb_LinkTarget_add_libs
,$(1),\
2812 else # !SYSTEM_POPPLER
2814 define gb_LinkTarget__use_poppler
2815 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2816 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2817 $(call gb_LinkTarget_set_include
,$(1),\
2818 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2819 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2820 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2824 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2826 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2829 $(call gb_LinkTarget_add_libs
,$(1),\
2832 else ifeq ($(OS
),LINUX
)
2833 $(call gb_LinkTarget_add_libs
,$(1),\
2836 else ifeq ($(OS
),WNT
)
2837 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2845 endif # SYSTEM_POPPLER
2847 endif # ENABLE_POPPLER
2850 ifneq ($(SYSTEM_CLUCENE
),)
2852 define gb_LinkTarget__use_clucene
2853 $(call gb_LinkTarget_add_defs
,$(1),\
2854 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2857 $(call gb_LinkTarget_set_include
,$(1),\
2858 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2862 $(call gb_LinkTarget_add_libs
,$(1),\
2868 else # !SYSTEM_CLUCENE
2870 define gb_LinkTarget__use_clucene
2871 $(call gb_LinkTarget_set_include
,$(1),\
2872 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2873 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2874 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2878 $(call gb_LinkTarget_use_libraries
,$(1),\
2884 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2888 endif # SYSTEM_CLUCENE
2890 define gb_LinkTarget__use_gobject
2891 $(call gb_LinkTarget_add_libs
,$(1),\
2895 $(call gb_LinkTarget_set_include
,$(1),\
2901 ifneq ($(SYSTEM_HSQLDB
),)
2903 define gb_LinkTarget__use_hsqldb
2905 $(call gb_LinkTarget_add_defs
,$(1),\
2907 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2912 else # !SYSTEM_HSQLDB
2914 define gb_LinkTarget__use_hsqldb
2918 endif # SYSTEM_HSQLDB
2920 ifeq ($(ENABLE_LDAP
),TRUE
)
2921 ifneq ($(SYSTEM_OPENLDAP
),)
2923 define gb_LinkTarget__use_openldap
2925 $(call gb_LinkTarget_add_libs
,$(1),\
2932 gb_ExternalProject__use_openldap
:=
2934 else # !SYSTEM_OPENLDAP
2936 define gb_LinkTarget__use_openldap
2937 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2938 $(call gb_LinkTarget_set_include
,$(1),\
2939 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2942 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2943 $(call gb_LinkTarget_add_libs
,$(1), \
2944 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2945 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2951 define gb_ExternalProject__use_openldap
2952 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2956 endif # SYSTEM_OPENLDAP
2958 ifneq ($(SYSTEM_LIBTOMMATH
),)
2960 define gb_LinkTarget__use_libtommath
2961 $(call gb_LinkTarget_set_include
,$(1),\
2962 $(LIBTOMMATH_CFLAGS
) \
2965 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2969 else # !SYSTEM_LIBTOMMATH
2970 define gb_LinkTarget__use_libtommath
2971 $(call gb_LinkTarget_set_include
,$(1),\
2972 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2975 $(call gb_LinkTarget_add_libs
,$(1),\
2976 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2978 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2982 endif # SYSTEM_LIBTOMMATH
2984 define gb_ExternalProject__use_libtommath
2985 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2989 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2991 ifneq ($(SYSTEM_FIREBIRD
),)
2993 define gb_LinkTarget__use_libfbembed
2994 $(call gb_LinkTarget_set_include
,$(1),\
2995 $(FIREBIRD_CFLAGS
) \
2998 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
3002 else # !SYSTEM_FIREBIRD
3004 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
3008 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
3009 #$(call gb_LinkTarget__use_libtommath,$(1))
3011 define gb_LinkTarget__use_libfbembed
3012 $(call gb_LinkTarget_use_package
,$(1),firebird
)
3013 $(call gb_LinkTarget_set_include
,$(1),\
3014 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
3018 $(call gb_LinkTarget_add_libs
,$(1),\
3019 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
3022 $(call gb_LinkTarget_add_libs
,$(1),\
3023 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3032 endif # SYSTEM_FIREBIRD
3034 else # !ENABLE_FIREBIRD_SDBC
3036 gb_LinkTarget__use_firebird
:=
3037 # gb_LinkTarget__use_atomic_ops :=
3038 # gb_LinkTarget__use_libtommath :=
3040 endif # ENABLE_FIREBIRD_SDBC
3043 ifneq ($(SYSTEM_POSTGRESQL
),)
3045 define gb_LinkTarget__use_postgresql
3047 $(call gb_LinkTarget_set_include
,$(1),\
3052 $(call gb_LinkTarget_add_libs
,$(1),\
3056 $(call gb_LinkTarget_add_ldflags
,$(1),\
3062 else # !SYSTEM_POSTGRESQL
3065 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
3070 define gb_LinkTarget__use_postgresql
3072 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
3074 $(call gb_LinkTarget_set_include
,$(1),\
3075 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3076 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3082 $(call gb_LinkTarget_add_libs
,$(1),\
3083 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
3088 $(call gb_LinkTarget_add_libs
,$(1),\
3089 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3090 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
3091 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
3092 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
3097 endef # gb_LinkTarget__use_postgresql
3099 endif # !SYSTEM_POSTGRESQL
3101 ifeq ($(ENABLE_KF5
),TRUE
)
3103 define gb_LinkTarget__use_kf5
3104 $(call gb_LinkTarget_set_include
,$(1),\
3105 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3109 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3110 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3113 $(call gb_LinkTarget_add_libs
,$(1),\
3121 define gb_LinkTarget__use_kf5
3129 ifeq ($(ENABLE_QT5
),TRUE
)
3131 define gb_LinkTarget__use_qt5
3132 $(call gb_LinkTarget_set_include
,$(1),\
3133 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3137 $(call gb_LinkTarget_add_defs
,$(1),\
3138 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3141 $(call gb_LinkTarget_add_libs
,$(1),\
3149 define gb_LinkTarget__use_qt5
3155 ifeq ($(ENABLE_QT6
),TRUE
)
3157 define gb_LinkTarget__use_qt6
3158 $(call gb_LinkTarget_set_include
,$(1),\
3159 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3163 $(call gb_LinkTarget_add_defs
,$(1),\
3164 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3167 $(call gb_LinkTarget_add_libs
,$(1),\
3175 define gb_LinkTarget__use_qt6
3183 # extra python_headers external because pyuno wrapper must not link python
3184 ifneq ($(SYSTEM_PYTHON
),)
3186 define gb_LinkTarget__use_python_headers
3187 $(call gb_LinkTarget_add_defs
,$(1),\
3188 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3191 $(call gb_LinkTarget_set_include
,$(1),\
3192 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3198 define gb_LinkTarget__use_python
3199 $(call gb_LinkTarget__use_python_headers
,$(1))
3201 $(call gb_LinkTarget_add_libs
,$(1),\
3207 else # !SYSTEM_PYTHON
3209 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3211 $(if
$(filter WNT
,$(OS
)),libffi
) \
3214 define gb_LinkTarget__use_python_headers
3215 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3216 $(call gb_LinkTarget_set_include
,$(1),\
3217 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3218 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3219 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3225 define gb_LinkTarget__use_python
3226 $(call gb_LinkTarget__use_python_headers
,$(1))
3228 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3230 $(call gb_LinkTarget_use_package
,$(1),python3
)
3234 ifeq ($(CPUNAME
),X86_64
)
3235 python_arch_subdir
=amd64
3236 else ifeq ($(CPUNAME
),AARCH64
)
3237 python_arch_subdir
=arm64
3239 python_arch_subdir
=win32
3241 $(call gb_LinkTarget_add_libs
,$(1),\
3242 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)/python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3244 else ifeq ($(OS
),MACOSX
)
3245 $(call gb_LinkTarget_add_libs
,$(1),\
3246 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3249 $(call gb_LinkTarget_add_libs
,$(1),\
3250 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3251 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3257 # this is only used by python currently
3258 define gb_ExternalProject__use_libffi
3259 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3263 endif # SYSTEM_PYTHON
3266 ifneq ($(SYSTEM_LIBORCUS
),)
3268 define gb_LinkTarget__use_orcus
3269 $(call gb_LinkTarget_set_include
,$(1),\
3273 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3276 define gb_LinkTarget__use_orcus-parser
3280 else # !SYSTEM_LIBORCUS
3284 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3289 define gb_LinkTarget__use_orcus
3290 $(call gb_LinkTarget_set_include
,$(1),\
3291 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3295 $(call gb_LinkTarget_use_libraries
,$(1),\
3301 define gb_LinkTarget__use_orcus-parser
3302 $(call gb_LinkTarget_set_include
,$(1),\
3303 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3307 $(call gb_LinkTarget_use_libraries
,$(1),\
3315 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3319 define gb_LinkTarget__use_orcus
3320 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3322 $(call gb_LinkTarget_set_include
,$(1),\
3323 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3327 $(call gb_LinkTarget_add_libs
,$(1),\
3328 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.16 \
3331 $(if
$(SYSTEM_BOOST
), \
3332 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3333 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3338 define gb_LinkTarget__use_orcus-parser
3339 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3341 $(call gb_LinkTarget_set_include
,$(1),\
3342 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3346 $(call gb_LinkTarget_add_libs
,$(1),\
3347 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.16 \
3354 endif # SYSTEM_LIBORCUS
3356 ifeq ($(ENABLE_EOT
),TRUE
)
3358 ifneq ($(SYSTEM_LIBEOT
),)
3360 define gb_LinkTarget__use_libeot
3361 $(call gb_LinkTarget_set_include
,$(1),\
3365 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3369 gb_ExternalProject__use_libeot
:=
3371 else # !SYSTEM_LIBEOT
3373 define gb_LinkTarget__use_libeot
3374 $(call gb_LinkTarget_set_include
,$(1),\
3375 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3378 $(call gb_LinkTarget_add_libs
,$(1),\
3379 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3381 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3385 define gb_ExternalProject__use_libeot
3386 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3390 endif # SYSTEM_LIBEOT
3394 gb_LinkTarget__use_libeot
:=
3395 gb_ExternalProject__use_libeot
:=
3401 ifeq ($(USING_X11
), TRUE
)
3403 define gb_LinkTarget__use_Xrandr
3404 $(call gb_LinkTarget_set_include
,$(1),\
3409 $(call gb_LinkTarget_add_libs
,$(1),\
3414 define gb_LinkTarget__use_Xrender
3415 $(call gb_LinkTarget_set_include
,$(1),\
3420 $(call gb_LinkTarget_add_libs
,$(1),\
3428 gb_ExternalProject__use_nss3
:=
3431 ifneq ($(SYSTEM_NSS
),)
3433 define gb_LinkTarget__use_nss3
3434 $(call gb_LinkTarget_add_defs
,$(1),\
3438 $(call gb_LinkTarget_set_include
,$(1),\
3443 $(call gb_LinkTarget_add_libs
,$(1),\
3449 define gb_LinkTarget__use_nssutil3
3450 $(call gb_LinkTarget__use_nss3
,$(1))
3454 define gb_LinkTarget__use_plc4
3455 $(call gb_LinkTarget__use_nss3
,$(1))
3459 define gb_LinkTarget__use_ssl3
3460 $(call gb_LinkTarget__use_nss3
,$(1))
3466 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3470 define gb_LinkTarget__use_nss3
3471 $(call gb_LinkTarget_use_package
,$(1),nss
)
3472 $(call gb_LinkTarget_set_include
,$(1),\
3474 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3475 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3479 $(call gb_LinkTarget_add_libs
,$(1),\
3480 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3481 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3482 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3485 $(call gb_LinkTarget_add_libs
,$(1),\
3486 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3495 define gb_LinkTarget__use_plc4
3496 $(call gb_LinkTarget_use_package
,$(1),nss
)
3498 $(call gb_LinkTarget_add_libs
,$(1),\
3499 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3502 $(call gb_LinkTarget_add_libs
,$(1),\
3503 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3509 define gb_LinkTarget__use_ssl3
3510 $(call gb_LinkTarget_use_package
,$(1),nss
)
3512 $(call gb_LinkTarget_add_libs
,$(1),\
3513 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3516 $(call gb_LinkTarget_add_libs
,$(1),\
3517 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3523 define gb_LinkTarget__use_nssutil3
3524 $(call gb_LinkTarget_use_package
,$(1),nss
)
3525 $(call gb_LinkTarget_set_include
,$(1),\
3527 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3528 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3532 $(call gb_LinkTarget_add_libs
,$(1),\
3533 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3536 $(call gb_LinkTarget_add_libs
,$(1),\
3537 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3544 define gb_ExternalProject__use_nss3
3545 $(call gb_ExternalProject_use_package
,$(1),nss
)
3551 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3553 define gb_LinkTarget__use_breakpad
3554 $(call gb_LinkTarget_set_include
,$(1),\
3555 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3560 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3564 $(call gb_LinkTarget_add_libs
,$(1),\
3565 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3569 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3573 endif # ENABLE_BREAKPAD
3575 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3577 ifneq ($(SYSTEM_GPGMEPP
),)
3579 gb_ExternalProject__use_gpgmepp
:=
3580 gb_ExternalProject__use_libassuan
:=
3581 gb_ExternalProject__use_libgpg-error
:=
3583 define gb_LinkTarget__use_gpgmepp
3584 $(call gb_LinkTarget_set_include
,$(1),\
3586 $$(GPGMEPP_CFLAGS
) \
3589 $(call gb_LinkTarget_add_libs
,$(1),\
3595 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3597 define gb_ExternalProject__use_gpgmepp
3598 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3601 define gb_ExternalProject__use_libassuan
3602 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3605 define gb_ExternalProject__use_libgpg-error
3606 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3610 ifneq ($(filter WNT
,$(OS
)),)
3612 define gb_LinkTarget__use_libgpg-error
3613 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3615 $(call gb_LinkTarget_set_include
,$(1),\
3616 $(GPG_ERROR_CFLAGS
) \
3619 $(call gb_LinkTarget_add_libs
,$(1),\
3620 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3625 define gb_LinkTarget__use_libassuan
3626 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3628 $(call gb_LinkTarget_set_include
,$(1),\
3629 $(LIBASSUAN_CFLAGS
) \
3632 $(call gb_LinkTarget_add_libs
,$(1),\
3633 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3638 define gb_LinkTarget__use_gpgmepp
3639 $(call gb_LinkTarget_set_include
,$(1),\
3640 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3641 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3642 $$(GPG_ERROR_CFLAGS
) \
3645 $(call gb_LinkTarget_use_libraries
,$(1),\
3651 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3657 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3663 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3665 define gb_LinkTarget__use_gpgmepp
3666 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3668 $(call gb_LinkTarget_set_include
,$(1),\
3669 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3670 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3671 $$(GPG_ERROR_CFLAGS
) \
3674 $(call gb_LinkTarget_add_libs
,$(1),\
3675 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3676 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3677 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3678 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3683 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3693 else # !ENABLE_GPGMEPP
3695 gb_ExternalProject__use_gpgmepp
:=
3696 gb_ExternalProject__use_libassuan
:=
3697 gb_ExternalProject__use_libgpg-error
:=
3699 gb_LinkTarget__use_gpgmepp
:=
3700 gb_LinkTarget__use_libassuan
:=
3701 gb_LinkTarget__use_libgpg-error
:=
3703 endif # ENABLE_GPGMEPP
3705 define gb_LinkTarget__use_dconf
3706 $(call gb_LinkTarget_set_include
,$(1),\
3711 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3714 ### Jars ############################################################
3716 ifneq ($(SYSTEM_HSQLDB
),)
3718 define gb_Jar__use_hsqldb
3719 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3721 define gb_JunitTest__use_hsqldb
3722 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3725 else # !SYSTEM_HSQLDB
3727 ifeq ($(ENABLE_JAVA
),TRUE
)
3728 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3733 define gb_Jar__use_hsqldb
3734 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3736 define gb_JunitTest__use_hsqldb
3737 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3740 endif # SYSTEM_HSQLDB
3743 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3745 ifneq ($(SYSTEM_BSH
),)
3747 define gb_Jar__use_bsh
3748 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3753 ifeq ($(ENABLE_JAVA
),TRUE
)
3754 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3759 define gb_Jar__use_bsh
3760 $(call gb_Jar_use_jar
,$(1),bsh
)
3767 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3769 ifneq ($(SYSTEM_RHINO
),)
3771 define gb_Jar__use_rhino
3772 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3775 else # !SYSTEM_RHINO
3777 ifeq ($(ENABLE_JAVA
),TRUE
)
3778 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3783 define gb_Jar__use_rhino
3784 $(call gb_Jar_use_jar
,$(1),js
)
3787 endif # SYSTEM_RHINO
3791 ifneq ($(SYSTEM_JFREEREPORT
),)
3793 define gb_Jar__use_flow-engine
3794 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3797 define gb_Jar__use_flute
3798 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3801 define gb_Jar__use_libbase
3802 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3805 define gb_Jar__use_libfonts
3806 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3809 define gb_Jar__use_libformula
3810 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3813 define gb_Jar__use_liblayout
3814 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3817 define gb_Jar__use_libloader
3818 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3821 define gb_Jar__use_librepository
3822 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3825 define gb_Jar__use_libserializer
3826 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3829 define gb_Jar__use_libxml
3830 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3833 define gb_Jar__use_sac
3834 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3837 else # !SYSTEM_JFREEREPORT
3839 ifeq ($(ENABLE_JAVA
),TRUE
)
3840 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3848 librepository-1.1
.6 \
3849 libserializer-1.1
.6 \
3855 define gb_Jar__use_flow-engine
3856 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3859 define gb_Jar__use_flute
3860 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3863 define gb_Jar__use_libbase
3864 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3867 define gb_Jar__use_libfonts
3868 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3871 define gb_Jar__use_libformula
3872 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3875 define gb_Jar__use_liblayout
3876 $(call gb_Jar_use_jar
,$(1),liblayout
)
3879 define gb_Jar__use_libloader
3880 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3883 define gb_Jar__use_librepository
3884 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3887 define gb_Jar__use_libserializer
3888 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3891 define gb_Jar__use_libxml
3892 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3895 define gb_Jar__use_sac
3896 $(call gb_Jar_use_jar
,$(1),sac
)
3899 endif # SYSTEM_JFREEREPORT
3904 define gb_Executable__register_bestreversemap
3905 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3906 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target_for_build
,sal_textenc
))) \
3910 # TODO depending on the whole URE might be overkill, but I do not have a
3911 # Windows machine to debug it...
3912 define gb_Executable__register_climaker
3913 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3914 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3915 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3916 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3917 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3921 define gb_Executable__register_cppumaker
3922 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3923 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3927 # This is used to determine what we need for 'build' platform.
3928 define gb_Executable__register_gengal
3929 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3930 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3931 $(call gb_Library_get_target_for_build
,localedata_en
) \
3932 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3933 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3934 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3935 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3936 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3937 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3938 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3939 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3940 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3941 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3942 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3946 ifeq ($(SYSTEM_ICU
),)
3948 define gb_Executable__register_gendict
3949 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3950 $(call gb_Package_get_target_for_build
,icu
) \
3951 $(call gb_Package_get_target_for_build
,icu_ure
) \
3957 define gb_Executable__register_idlc
3958 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3959 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3963 define gb_Executable__register_localize
3964 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3965 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3966 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3971 # FIXME ure/services.rdb needs cleanup
3972 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3973 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3974 define gb_Executable__register_saxparser
3975 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3976 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3977 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3978 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3979 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3980 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3984 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3985 # required due to the settings for URE_SERVICES and URE_TYPES in
3986 # cppuhelper/source/unorc
3987 define gb_Executable__register_uno
3988 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3989 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3990 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3991 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3996 # External executables
3998 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
4000 gb_ExternalExecutable__register_xmllint
:=
4002 else # ! SYSTEM_LIBXML_FOR_BUILD
4004 define gb_ExternalExecutable__register_xmllint
4005 $(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
)
4006 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
4007 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4008 $(call gb_Package_get_target
,libxml2
) \
4013 endif # SYSTEM_LIBXML_FOR_BUILD
4015 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
4017 gb_ExternalExecutable__register_xsltproc
:=
4019 else # ! SYSTEM_LIBXSLT_FOR_BUILD
4021 define gb_ExternalExecutable__register_xsltproc
4022 $(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
)
4023 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
4024 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
4025 $(call gb_Package_get_target
,libxml2
) \
4026 $(call gb_Package_get_target
,libxslt
) \
4031 endif # SYSTEM_LIBXSLT_FOR_BUILD
4033 ifneq (,$(SYSTEM_UCPP
))
4035 gb_ExternalExecutable__register_ucpp
:=
4037 else # ! SYSTEM_UCPP
4039 define gb_ExternalExecutable__register_ucpp
4040 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
4046 ifeq (,$(PYTHON_FOR_BUILD
))
4048 define gb_ExternalExecutable__register_python
4051 # use set_external, to avoid having the command added as prerequisite for the
4052 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4053 # matching rule to build that specific file)
4054 $(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
))
4055 # the Zip ensures that internal python has been built (cannot use the Package
4056 # target, as that is not used on Mac)
4057 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4061 $(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
))
4062 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4063 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4071 define gb_ExternalExecutable__register_python
4072 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4076 endif # PYTHON_FOR_BUILD
4078 ifneq ($(SYSTEM_GENBRK
),)
4080 define gb_ExternalExecutable__register_genbrk
4081 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4085 else # ! SYSTEM_GENBRK
4087 define gb_ExternalExecutable__register_genbrk
4088 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4089 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4090 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4091 $(call gb_Package_get_target_for_build
,icu
) \
4092 $(call gb_Package_get_target_for_build
,icu_ure
) \
4099 ifneq ($(SYSTEM_GENCCODE
),)
4101 define gb_ExternalExecutable__register_genccode
4102 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4106 else # ! SYSTEM_GENCCODE
4108 define gb_ExternalExecutable__register_genccode
4109 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4110 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4111 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4112 $(call gb_Package_get_target_for_build
,icu
) \
4113 $(call gb_Package_get_target_for_build
,icu_ure
) \
4120 ifneq ($(SYSTEM_GENCMN
),)
4122 define gb_ExternalExecutable__register_gencmn
4123 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4127 else # ! SYSTEM_GENCMN
4129 define gb_ExternalExecutable__register_gencmn
4130 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4131 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4132 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4133 $(call gb_Package_get_target_for_build
,icu
) \
4134 $(call gb_Package_get_target_for_build
,icu_ure
) \
4141 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4142 ifneq ($(SYSTEM_BZIP2
),)
4144 define gb_LinkTarget__use_bzip2
4145 $(call gb_LinkTarget_set_include
,$(1),\
4149 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4153 gb_ExternalProject__use_bzip2
:=
4155 else # !SYSTEM_BZIP2
4157 define gb_LinkTarget__use_bzip2
4158 $(call gb_LinkTarget_set_include
,$(1),\
4159 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4164 $(call gb_LinkTarget_add_libs
,$(1),\
4165 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4168 $(call gb_LinkTarget_add_libs
,$(1),\
4169 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4173 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4176 define gb_ExternalProject__use_bzip2
4177 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4183 define gb_LinkTarget__use_clew
4184 $(call gb_LinkTarget_set_include
,$(1), \
4185 -I
$(SRCDIR
)/external
/clew
/source
/include \
4188 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4191 ifneq ($(ENABLE_PDFIUM
),)
4192 define gb_LinkTarget__use_pdfium
4193 $(call gb_LinkTarget_set_include
,$(1),\
4194 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4198 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4200 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4205 define gb_LinkTarget__use_dtoa
4206 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4207 $(call gb_LinkTarget_set_include
,$(1),\
4208 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4211 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4217 define gb_ExternalProject__use_dtoa
4218 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4222 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4223 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4226 ifneq ($(SYSTEM_BOX2D
),)
4228 define gb_LinkTarget__use_box2d
4229 $(call gb_LinkTarget_set_include
,$(1),\
4234 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4238 gb_ExternalProject__use_box2d
:=
4240 else # !SYSTEM_BOX2D
4242 define gb_LinkTarget__use_box2d
4243 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4244 $(call gb_LinkTarget_set_include
,$(1),\
4245 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/Box2D
/)\
4248 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4254 define gb_ExternalProject__use_box2d
4255 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4259 endif # SYSTEM_BOX2D
4261 ifneq ($(SYSTEM_ZXING
),)
4263 define gb_LinkTarget__use_zxing
4264 $(call gb_LinkTarget_set_include
,$(1),\
4269 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4273 gb_ExternalProject__use_zxing
:=
4275 else # !SYSTEM_ZXING
4277 ifneq ($(ENABLE_ZXING
),)
4279 define gb_LinkTarget__use_zxing
4280 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4281 $(call gb_LinkTarget_set_include
,$(1),\
4282 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4285 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4291 define gb_ExternalProject__use_zxing
4292 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4296 else # !ENABLE_ZXING
4298 define gb_LinkTarget__use_zxing
4301 endif # ENABLE_ZXING
4303 endif # SYSTEM_ZXING
4307 ifneq ($(SYSTEM_CUCKOO
),)
4309 gb_ExternalProject__use_cuckoo_headers
:=
4311 define gb_LinkTarget__use_cuckoo_headers
4312 $(call gb_LinkTarget_set_include
,$(1),\
4313 -I
$(call gb_UnpackedTarball_get_dir
,cuckoo
) \
4319 else # !SYSTEM_CUCKOO
4321 define gb_ExternalProject__use_cuckoo_headers
4322 $(call gb_ExternalProject_use_unpacked
,$(1),cuckoo
)
4326 define gb_LinkTarget__use_cuckoo_headers
4327 $(call gb_LinkTarget_use_unpacked
,$(1),cuckoo
)
4328 $(call gb_LinkTarget_set_include
,$(1),\
4329 -I
$(call gb_UnpackedTarball_get_dir
,cuckoo
) \
4335 endif # SYSTEM_CUCKOO
4338 # vim: set noet sw=4 ts=4: