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_plc4
3450 $(call gb_LinkTarget__use_nss3
,$(1))
3454 define gb_LinkTarget__use_ssl3
3455 $(call gb_LinkTarget__use_nss3
,$(1))
3461 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3465 define gb_LinkTarget__use_nss3
3466 $(call gb_LinkTarget_use_package
,$(1),nss
)
3467 $(call gb_LinkTarget_set_include
,$(1),\
3469 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3470 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3474 $(call gb_LinkTarget_add_libs
,$(1),\
3475 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3476 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3477 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3480 $(call gb_LinkTarget_add_libs
,$(1),\
3481 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3490 define gb_LinkTarget__use_plc4
3491 $(call gb_LinkTarget_use_package
,$(1),nss
)
3493 $(call gb_LinkTarget_add_libs
,$(1),\
3494 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3497 $(call gb_LinkTarget_add_libs
,$(1),\
3498 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3504 define gb_LinkTarget__use_ssl3
3505 $(call gb_LinkTarget_use_package
,$(1),nss
)
3507 $(call gb_LinkTarget_add_libs
,$(1),\
3508 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3511 $(call gb_LinkTarget_add_libs
,$(1),\
3512 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3518 define gb_ExternalProject__use_nss3
3519 $(call gb_ExternalProject_use_package
,$(1),nss
)
3525 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3527 define gb_LinkTarget__use_breakpad
3528 $(call gb_LinkTarget_set_include
,$(1),\
3529 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3534 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3538 $(call gb_LinkTarget_add_libs
,$(1),\
3539 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3543 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3547 endif # ENABLE_BREAKPAD
3549 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3551 ifneq ($(SYSTEM_GPGMEPP
),)
3553 gb_ExternalProject__use_gpgmepp
:=
3554 gb_ExternalProject__use_libassuan
:=
3555 gb_ExternalProject__use_libgpg-error
:=
3557 define gb_LinkTarget__use_gpgmepp
3558 $(call gb_LinkTarget_set_include
,$(1),\
3560 $$(GPGMEPP_CFLAGS
) \
3563 $(call gb_LinkTarget_add_libs
,$(1),\
3569 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3571 define gb_ExternalProject__use_gpgmepp
3572 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3575 define gb_ExternalProject__use_libassuan
3576 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3579 define gb_ExternalProject__use_libgpg-error
3580 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3584 ifneq ($(filter WNT
,$(OS
)),)
3586 define gb_LinkTarget__use_libgpg-error
3587 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3589 $(call gb_LinkTarget_set_include
,$(1),\
3590 $(GPG_ERROR_CFLAGS
) \
3593 $(call gb_LinkTarget_add_libs
,$(1),\
3594 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3599 define gb_LinkTarget__use_libassuan
3600 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3602 $(call gb_LinkTarget_set_include
,$(1),\
3603 $(LIBASSUAN_CFLAGS
) \
3606 $(call gb_LinkTarget_add_libs
,$(1),\
3607 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3612 define gb_LinkTarget__use_gpgmepp
3613 $(call gb_LinkTarget_set_include
,$(1),\
3614 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3615 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3616 $$(GPG_ERROR_CFLAGS
) \
3619 $(call gb_LinkTarget_use_libraries
,$(1),\
3625 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3631 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3637 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3639 define gb_LinkTarget__use_gpgmepp
3640 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3642 $(call gb_LinkTarget_set_include
,$(1),\
3643 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3644 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3645 $$(GPG_ERROR_CFLAGS
) \
3648 $(call gb_LinkTarget_add_libs
,$(1),\
3649 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3650 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3651 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3652 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3657 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3667 else # !ENABLE_GPGMEPP
3669 gb_ExternalProject__use_gpgmepp
:=
3670 gb_ExternalProject__use_libassuan
:=
3671 gb_ExternalProject__use_libgpg-error
:=
3673 gb_LinkTarget__use_gpgmepp
:=
3674 gb_LinkTarget__use_libassuan
:=
3675 gb_LinkTarget__use_libgpg-error
:=
3677 endif # ENABLE_GPGMEPP
3679 define gb_LinkTarget__use_dconf
3680 $(call gb_LinkTarget_set_include
,$(1),\
3685 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3688 ### Jars ############################################################
3690 ifneq ($(SYSTEM_HSQLDB
),)
3692 define gb_Jar__use_hsqldb
3693 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3695 define gb_JunitTest__use_hsqldb
3696 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3699 else # !SYSTEM_HSQLDB
3701 ifeq ($(ENABLE_JAVA
),TRUE
)
3702 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3707 define gb_Jar__use_hsqldb
3708 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3710 define gb_JunitTest__use_hsqldb
3711 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3714 endif # SYSTEM_HSQLDB
3717 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3719 ifneq ($(SYSTEM_BSH
),)
3721 define gb_Jar__use_bsh
3722 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3727 ifeq ($(ENABLE_JAVA
),TRUE
)
3728 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3733 define gb_Jar__use_bsh
3734 $(call gb_Jar_use_jar
,$(1),bsh
)
3741 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3743 ifneq ($(SYSTEM_RHINO
),)
3745 define gb_Jar__use_rhino
3746 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3749 else # !SYSTEM_RHINO
3751 ifeq ($(ENABLE_JAVA
),TRUE
)
3752 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3757 define gb_Jar__use_rhino
3758 $(call gb_Jar_use_jar
,$(1),js
)
3761 endif # SYSTEM_RHINO
3765 ifneq ($(SYSTEM_JFREEREPORT
),)
3767 define gb_Jar__use_flow-engine
3768 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3771 define gb_Jar__use_flute
3772 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3775 define gb_Jar__use_libbase
3776 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3779 define gb_Jar__use_libfonts
3780 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3783 define gb_Jar__use_libformula
3784 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3787 define gb_Jar__use_liblayout
3788 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3791 define gb_Jar__use_libloader
3792 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3795 define gb_Jar__use_librepository
3796 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3799 define gb_Jar__use_libserializer
3800 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3803 define gb_Jar__use_libxml
3804 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3807 define gb_Jar__use_sac
3808 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3811 else # !SYSTEM_JFREEREPORT
3813 ifeq ($(ENABLE_JAVA
),TRUE
)
3814 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3822 librepository-1.1
.6 \
3823 libserializer-1.1
.6 \
3829 define gb_Jar__use_flow-engine
3830 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3833 define gb_Jar__use_flute
3834 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3837 define gb_Jar__use_libbase
3838 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3841 define gb_Jar__use_libfonts
3842 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3845 define gb_Jar__use_libformula
3846 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3849 define gb_Jar__use_liblayout
3850 $(call gb_Jar_use_jar
,$(1),liblayout
)
3853 define gb_Jar__use_libloader
3854 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3857 define gb_Jar__use_librepository
3858 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3861 define gb_Jar__use_libserializer
3862 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3865 define gb_Jar__use_libxml
3866 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3869 define gb_Jar__use_sac
3870 $(call gb_Jar_use_jar
,$(1),sac
)
3873 endif # SYSTEM_JFREEREPORT
3878 define gb_Executable__register_bestreversemap
3879 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3880 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target_for_build
,sal_textenc
))) \
3884 # TODO depending on the whole URE might be overkill, but I do not have a
3885 # Windows machine to debug it...
3886 define gb_Executable__register_climaker
3887 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3888 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3889 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3890 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3891 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3895 define gb_Executable__register_cppumaker
3896 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3897 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3901 # This is used to determine what we need for 'build' platform.
3902 define gb_Executable__register_gengal
3903 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3904 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3905 $(call gb_Library_get_target_for_build
,localedata_en
) \
3906 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3907 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3908 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3909 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3910 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3911 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3912 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3913 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3914 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3915 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3916 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3920 ifeq ($(SYSTEM_ICU
),)
3922 define gb_Executable__register_gendict
3923 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3924 $(call gb_Package_get_target_for_build
,icu
) \
3925 $(call gb_Package_get_target_for_build
,icu_ure
) \
3931 define gb_Executable__register_idlc
3932 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3933 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3937 define gb_Executable__register_localize
3938 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3939 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3940 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3945 # FIXME ure/services.rdb needs cleanup
3946 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3947 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3948 define gb_Executable__register_saxparser
3949 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3950 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3951 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3952 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3953 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3954 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3958 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3959 # required due to the settings for URE_SERVICES and URE_TYPES in
3960 # cppuhelper/source/unorc
3961 define gb_Executable__register_uno
3962 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3963 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3964 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3965 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3970 # External executables
3972 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3974 gb_ExternalExecutable__register_xmllint
:=
3976 else # ! SYSTEM_LIBXML_FOR_BUILD
3978 define gb_ExternalExecutable__register_xmllint
3979 $(call gb_ExternalExecutable_set_internal
,xmllint
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/libxml2
/$(if
$(filter MSC
,$(COM
)),win32
/bin.msvc
)/xmllint
$(gb_Executable_EXT_for_build
),libxml2
)
3980 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3981 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3982 $(call gb_Package_get_target
,libxml2
) \
3987 endif # SYSTEM_LIBXML_FOR_BUILD
3989 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3991 gb_ExternalExecutable__register_xsltproc
:=
3993 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3995 define gb_ExternalExecutable__register_xsltproc
3996 $(call gb_ExternalExecutable_set_internal
,xsltproc
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/libxslt
/$(if
$(filter MSC
,$(COM
)),win32
/bin.msvc
,xsltproc
)/xsltproc
$(gb_Executable_EXT_for_build
),libxslt
)
3997 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3998 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3999 $(call gb_Package_get_target
,libxml2
) \
4000 $(call gb_Package_get_target
,libxslt
) \
4005 endif # SYSTEM_LIBXSLT_FOR_BUILD
4007 ifneq (,$(SYSTEM_UCPP
))
4009 gb_ExternalExecutable__register_ucpp
:=
4011 else # ! SYSTEM_UCPP
4013 define gb_ExternalExecutable__register_ucpp
4014 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
4020 ifeq (,$(PYTHON_FOR_BUILD
))
4022 define gb_ExternalExecutable__register_python
4025 # use set_external, to avoid having the command added as prerequisite for the
4026 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4027 # matching rule to build that specific file)
4028 $(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
))
4029 # the Zip ensures that internal python has been built (cannot use the Package
4030 # target, as that is not used on Mac)
4031 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4035 $(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
))
4036 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4037 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4045 define gb_ExternalExecutable__register_python
4046 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4050 endif # PYTHON_FOR_BUILD
4052 ifneq ($(SYSTEM_GENBRK
),)
4054 define gb_ExternalExecutable__register_genbrk
4055 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4059 else # ! SYSTEM_GENBRK
4061 define gb_ExternalExecutable__register_genbrk
4062 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4063 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4064 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4065 $(call gb_Package_get_target_for_build
,icu
) \
4066 $(call gb_Package_get_target_for_build
,icu_ure
) \
4073 ifneq ($(SYSTEM_GENCCODE
),)
4075 define gb_ExternalExecutable__register_genccode
4076 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4080 else # ! SYSTEM_GENCCODE
4082 define gb_ExternalExecutable__register_genccode
4083 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4084 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4085 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4086 $(call gb_Package_get_target_for_build
,icu
) \
4087 $(call gb_Package_get_target_for_build
,icu_ure
) \
4094 ifneq ($(SYSTEM_GENCMN
),)
4096 define gb_ExternalExecutable__register_gencmn
4097 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4101 else # ! SYSTEM_GENCMN
4103 define gb_ExternalExecutable__register_gencmn
4104 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4105 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4106 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4107 $(call gb_Package_get_target_for_build
,icu
) \
4108 $(call gb_Package_get_target_for_build
,icu_ure
) \
4115 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4116 ifneq ($(SYSTEM_BZIP2
),)
4118 define gb_LinkTarget__use_bzip2
4119 $(call gb_LinkTarget_set_include
,$(1),\
4123 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4127 gb_ExternalProject__use_bzip2
:=
4129 else # !SYSTEM_BZIP2
4131 define gb_LinkTarget__use_bzip2
4132 $(call gb_LinkTarget_set_include
,$(1),\
4133 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4138 $(call gb_LinkTarget_add_libs
,$(1),\
4139 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4142 $(call gb_LinkTarget_add_libs
,$(1),\
4143 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4147 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4150 define gb_ExternalProject__use_bzip2
4151 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4157 define gb_LinkTarget__use_clew
4158 $(call gb_LinkTarget_set_include
,$(1), \
4159 -I
$(SRCDIR
)/external
/clew
/source
/include \
4162 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4165 ifneq ($(ENABLE_PDFIUM
),)
4166 define gb_LinkTarget__use_pdfium
4167 $(call gb_LinkTarget_set_include
,$(1),\
4168 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4172 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4174 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4179 define gb_LinkTarget__use_dtoa
4180 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4181 $(call gb_LinkTarget_set_include
,$(1),\
4182 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4185 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4191 define gb_ExternalProject__use_dtoa
4192 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4196 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4197 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4200 ifneq ($(SYSTEM_BOX2D
),)
4202 define gb_LinkTarget__use_box2d
4203 $(call gb_LinkTarget_set_include
,$(1),\
4208 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4212 gb_ExternalProject__use_box2d
:=
4214 else # !SYSTEM_BOX2D
4216 define gb_LinkTarget__use_box2d
4217 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4218 $(call gb_LinkTarget_set_include
,$(1),\
4219 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/Box2D
/)\
4222 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4228 define gb_ExternalProject__use_box2d
4229 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4233 endif # SYSTEM_BOX2D
4235 ifneq ($(SYSTEM_ZXING
),)
4237 define gb_LinkTarget__use_zxing
4238 $(call gb_LinkTarget_set_include
,$(1),\
4243 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4247 gb_ExternalProject__use_zxing
:=
4249 else # !SYSTEM_ZXING
4251 ifneq ($(ENABLE_ZXING
),)
4253 define gb_LinkTarget__use_zxing
4254 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4255 $(call gb_LinkTarget_set_include
,$(1),\
4256 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4259 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4265 define gb_ExternalProject__use_zxing
4266 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4270 else # !ENABLE_ZXING
4272 define gb_LinkTarget__use_zxing
4275 endif # ENABLE_ZXING
4277 endif # SYSTEM_ZXING
4281 ifneq ($(SYSTEM_CUCKOO
),)
4283 gb_ExternalProject__use_cuckoo_headers
:=
4285 define gb_LinkTarget__use_cuckoo_headers
4286 $(call gb_LinkTarget_set_include
,$(1),\
4287 -I
$(call gb_UnpackedTarball_get_dir
,cuckoo
) \
4293 else # !SYSTEM_CUCKOO
4295 define gb_ExternalProject__use_cuckoo_headers
4296 $(call gb_ExternalProject_use_unpacked
,$(1),cuckoo
)
4300 define gb_LinkTarget__use_cuckoo_headers
4301 $(call gb_LinkTarget_use_unpacked
,$(1),cuckoo
)
4302 $(call gb_LinkTarget_set_include
,$(1),\
4303 -I
$(call gb_UnpackedTarball_get_dir
,cuckoo
) \
4309 endif # SYSTEM_CUCKOO
4312 # vim: set noet sw=4 ts=4: