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
3156 # extra python_headers external because pyuno wrapper must not link python
3157 ifneq ($(SYSTEM_PYTHON
),)
3159 define gb_LinkTarget__use_python_headers
3160 $(call gb_LinkTarget_add_defs
,$(1),\
3161 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3164 $(call gb_LinkTarget_set_include
,$(1),\
3165 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3171 define gb_LinkTarget__use_python
3172 $(call gb_LinkTarget__use_python_headers
,$(1))
3174 $(call gb_LinkTarget_add_libs
,$(1),\
3180 else # !SYSTEM_PYTHON
3182 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3184 $(if
$(filter WNT
,$(OS
)),libffi
) \
3187 define gb_LinkTarget__use_python_headers
3188 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3189 $(call gb_LinkTarget_set_include
,$(1),\
3190 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3191 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3192 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3198 define gb_LinkTarget__use_python
3199 $(call gb_LinkTarget__use_python_headers
,$(1))
3201 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3203 $(call gb_LinkTarget_use_package
,$(1),python3
)
3207 ifeq ($(CPUNAME
),X86_64
)
3208 python_arch_subdir
=amd64
3209 else ifeq ($(CPUNAME
),AARCH64
)
3210 python_arch_subdir
=arm64
3212 python_arch_subdir
=win32
3214 $(call gb_LinkTarget_add_libs
,$(1),\
3215 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)/python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3217 else ifeq ($(OS
),MACOSX
)
3218 $(call gb_LinkTarget_add_libs
,$(1),\
3219 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3222 $(call gb_LinkTarget_add_libs
,$(1),\
3223 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3224 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3230 # this is only used by python currently
3231 define gb_ExternalProject__use_libffi
3232 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3236 endif # SYSTEM_PYTHON
3239 ifneq ($(SYSTEM_LIBORCUS
),)
3241 define gb_LinkTarget__use_orcus
3242 $(call gb_LinkTarget_set_include
,$(1),\
3246 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3249 define gb_LinkTarget__use_orcus-parser
3253 else # !SYSTEM_LIBORCUS
3257 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3262 define gb_LinkTarget__use_orcus
3263 $(call gb_LinkTarget_set_include
,$(1),\
3264 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3268 $(call gb_LinkTarget_use_libraries
,$(1),\
3274 define gb_LinkTarget__use_orcus-parser
3275 $(call gb_LinkTarget_set_include
,$(1),\
3276 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3280 $(call gb_LinkTarget_use_libraries
,$(1),\
3288 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3292 define gb_LinkTarget__use_orcus
3293 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3295 $(call gb_LinkTarget_set_include
,$(1),\
3296 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3300 $(call gb_LinkTarget_add_libs
,$(1),\
3301 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.16 \
3304 $(if
$(SYSTEM_BOOST
), \
3305 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3306 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3311 define gb_LinkTarget__use_orcus-parser
3312 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3314 $(call gb_LinkTarget_set_include
,$(1),\
3315 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3319 $(call gb_LinkTarget_add_libs
,$(1),\
3320 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.16 \
3327 endif # SYSTEM_LIBORCUS
3329 ifeq ($(ENABLE_EOT
),TRUE
)
3331 ifneq ($(SYSTEM_LIBEOT
),)
3333 define gb_LinkTarget__use_libeot
3334 $(call gb_LinkTarget_set_include
,$(1),\
3338 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3342 gb_ExternalProject__use_libeot
:=
3344 else # !SYSTEM_LIBEOT
3346 define gb_LinkTarget__use_libeot
3347 $(call gb_LinkTarget_set_include
,$(1),\
3348 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3351 $(call gb_LinkTarget_add_libs
,$(1),\
3352 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3354 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3358 define gb_ExternalProject__use_libeot
3359 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3363 endif # SYSTEM_LIBEOT
3367 gb_LinkTarget__use_libeot
:=
3368 gb_ExternalProject__use_libeot
:=
3374 ifeq ($(USING_X11
), TRUE
)
3376 define gb_LinkTarget__use_Xrandr
3377 $(call gb_LinkTarget_set_include
,$(1),\
3382 $(call gb_LinkTarget_add_libs
,$(1),\
3387 define gb_LinkTarget__use_Xrender
3388 $(call gb_LinkTarget_set_include
,$(1),\
3393 $(call gb_LinkTarget_add_libs
,$(1),\
3401 gb_ExternalProject__use_nss3
:=
3404 ifneq ($(SYSTEM_NSS
),)
3406 define gb_LinkTarget__use_nss3
3407 $(call gb_LinkTarget_add_defs
,$(1),\
3411 $(call gb_LinkTarget_set_include
,$(1),\
3416 $(call gb_LinkTarget_add_libs
,$(1),\
3422 define gb_LinkTarget__use_plc4
3423 $(call gb_LinkTarget__use_nss3
,$(1))
3427 define gb_LinkTarget__use_ssl3
3428 $(call gb_LinkTarget__use_nss3
,$(1))
3434 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3438 define gb_LinkTarget__use_nss3
3439 $(call gb_LinkTarget_use_package
,$(1),nss
)
3440 $(call gb_LinkTarget_set_include
,$(1),\
3442 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3443 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3447 $(call gb_LinkTarget_add_libs
,$(1),\
3448 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3449 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3450 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3453 $(call gb_LinkTarget_add_libs
,$(1),\
3454 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3463 define gb_LinkTarget__use_plc4
3464 $(call gb_LinkTarget_use_package
,$(1),nss
)
3466 $(call gb_LinkTarget_add_libs
,$(1),\
3467 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3470 $(call gb_LinkTarget_add_libs
,$(1),\
3471 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3477 define gb_LinkTarget__use_ssl3
3478 $(call gb_LinkTarget_use_package
,$(1),nss
)
3480 $(call gb_LinkTarget_add_libs
,$(1),\
3481 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3484 $(call gb_LinkTarget_add_libs
,$(1),\
3485 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3491 define gb_ExternalProject__use_nss3
3492 $(call gb_ExternalProject_use_package
,$(1),nss
)
3498 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3500 define gb_LinkTarget__use_breakpad
3501 $(call gb_LinkTarget_set_include
,$(1),\
3502 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3507 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3511 $(call gb_LinkTarget_add_libs
,$(1),\
3512 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3516 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3520 endif # ENABLE_BREAKPAD
3522 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3524 ifneq ($(SYSTEM_GPGMEPP
),)
3526 gb_ExternalProject__use_gpgmepp
:=
3527 gb_ExternalProject__use_libassuan
:=
3528 gb_ExternalProject__use_libgpg-error
:=
3530 define gb_LinkTarget__use_gpgmepp
3531 $(call gb_LinkTarget_set_include
,$(1),\
3533 $$(GPGMEPP_CFLAGS
) \
3536 $(call gb_LinkTarget_add_libs
,$(1),\
3542 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3544 define gb_ExternalProject__use_gpgmepp
3545 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3548 define gb_ExternalProject__use_libassuan
3549 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3552 define gb_ExternalProject__use_libgpg-error
3553 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3557 ifneq ($(filter WNT
,$(OS
)),)
3559 define gb_LinkTarget__use_libgpg-error
3560 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3562 $(call gb_LinkTarget_set_include
,$(1),\
3563 $(GPG_ERROR_CFLAGS
) \
3566 $(call gb_LinkTarget_add_libs
,$(1),\
3567 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3572 define gb_LinkTarget__use_libassuan
3573 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3575 $(call gb_LinkTarget_set_include
,$(1),\
3576 $(LIBASSUAN_CFLAGS
) \
3579 $(call gb_LinkTarget_add_libs
,$(1),\
3580 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3585 define gb_LinkTarget__use_gpgmepp
3586 $(call gb_LinkTarget_set_include
,$(1),\
3587 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3588 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3589 $$(GPG_ERROR_CFLAGS
) \
3592 $(call gb_LinkTarget_use_libraries
,$(1),\
3598 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3604 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3610 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3612 define gb_LinkTarget__use_gpgmepp
3613 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3615 $(call gb_LinkTarget_set_include
,$(1),\
3616 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3617 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3618 $$(GPG_ERROR_CFLAGS
) \
3621 $(call gb_LinkTarget_add_libs
,$(1),\
3622 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3623 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3624 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3625 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3630 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3640 else # !ENABLE_GPGMEPP
3642 gb_ExternalProject__use_gpgmepp
:=
3643 gb_ExternalProject__use_libassuan
:=
3644 gb_ExternalProject__use_libgpg-error
:=
3646 gb_LinkTarget__use_gpgmepp
:=
3647 gb_LinkTarget__use_libassuan
:=
3648 gb_LinkTarget__use_libgpg-error
:=
3650 endif # ENABLE_GPGMEPP
3652 define gb_LinkTarget__use_dconf
3653 $(call gb_LinkTarget_set_include
,$(1),\
3658 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3661 ### Jars ############################################################
3663 ifneq ($(SYSTEM_HSQLDB
),)
3665 define gb_Jar__use_hsqldb
3666 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3668 define gb_JunitTest__use_hsqldb
3669 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3672 else # !SYSTEM_HSQLDB
3674 ifeq ($(ENABLE_JAVA
),TRUE
)
3675 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3680 define gb_Jar__use_hsqldb
3681 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3683 define gb_JunitTest__use_hsqldb
3684 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3687 endif # SYSTEM_HSQLDB
3690 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3692 ifneq ($(SYSTEM_BSH
),)
3694 define gb_Jar__use_bsh
3695 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3700 ifeq ($(ENABLE_JAVA
),TRUE
)
3701 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3706 define gb_Jar__use_bsh
3707 $(call gb_Jar_use_jar
,$(1),bsh
)
3714 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3716 ifneq ($(SYSTEM_RHINO
),)
3718 define gb_Jar__use_rhino
3719 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3722 else # !SYSTEM_RHINO
3724 ifeq ($(ENABLE_JAVA
),TRUE
)
3725 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3730 define gb_Jar__use_rhino
3731 $(call gb_Jar_use_jar
,$(1),js
)
3734 endif # SYSTEM_RHINO
3738 ifneq ($(SYSTEM_JFREEREPORT
),)
3740 define gb_Jar__use_flow-engine
3741 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3744 define gb_Jar__use_flute
3745 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3748 define gb_Jar__use_libbase
3749 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3752 define gb_Jar__use_libfonts
3753 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3756 define gb_Jar__use_libformula
3757 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3760 define gb_Jar__use_liblayout
3761 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3764 define gb_Jar__use_libloader
3765 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3768 define gb_Jar__use_librepository
3769 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3772 define gb_Jar__use_libserializer
3773 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3776 define gb_Jar__use_libxml
3777 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3780 define gb_Jar__use_sac
3781 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3784 else # !SYSTEM_JFREEREPORT
3786 ifeq ($(ENABLE_JAVA
),TRUE
)
3787 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3795 librepository-1.1
.6 \
3796 libserializer-1.1
.6 \
3802 define gb_Jar__use_flow-engine
3803 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3806 define gb_Jar__use_flute
3807 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3810 define gb_Jar__use_libbase
3811 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3814 define gb_Jar__use_libfonts
3815 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3818 define gb_Jar__use_libformula
3819 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3822 define gb_Jar__use_liblayout
3823 $(call gb_Jar_use_jar
,$(1),liblayout
)
3826 define gb_Jar__use_libloader
3827 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3830 define gb_Jar__use_librepository
3831 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3834 define gb_Jar__use_libserializer
3835 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3838 define gb_Jar__use_libxml
3839 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3842 define gb_Jar__use_sac
3843 $(call gb_Jar_use_jar
,$(1),sac
)
3846 endif # SYSTEM_JFREEREPORT
3851 define gb_Executable__register_bestreversemap
3852 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3853 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target_for_build
,sal_textenc
))) \
3857 # TODO depending on the whole URE might be overkill, but I do not have a
3858 # Windows machine to debug it...
3859 define gb_Executable__register_climaker
3860 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3861 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3862 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3863 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3864 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3868 define gb_Executable__register_cppumaker
3869 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3870 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3874 # This is used to determine what we need for 'build' platform.
3875 define gb_Executable__register_gengal
3876 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3877 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3878 $(call gb_Library_get_target_for_build
,localedata_en
) \
3879 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3880 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3881 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3882 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3883 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3884 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3885 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3886 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3887 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3888 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3889 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3893 ifeq ($(SYSTEM_ICU
),)
3895 define gb_Executable__register_gendict
3896 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3897 $(call gb_Package_get_target_for_build
,icu
) \
3898 $(call gb_Package_get_target_for_build
,icu_ure
) \
3904 define gb_Executable__register_idlc
3905 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3906 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3910 define gb_Executable__register_localize
3911 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3912 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3913 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3918 # FIXME ure/services.rdb needs cleanup
3919 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3920 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3921 define gb_Executable__register_saxparser
3922 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3923 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3924 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3925 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3926 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3927 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3931 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3932 # required due to the settings for URE_SERVICES and URE_TYPES in
3933 # cppuhelper/source/unorc
3934 define gb_Executable__register_uno
3935 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3936 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3937 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3938 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3943 # External executables
3945 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3947 gb_ExternalExecutable__register_xmllint
:=
3949 else # ! SYSTEM_LIBXML_FOR_BUILD
3951 define gb_ExternalExecutable__register_xmllint
3952 $(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
)
3953 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3954 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3955 $(call gb_Package_get_target
,libxml2
) \
3960 endif # SYSTEM_LIBXML_FOR_BUILD
3962 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3964 gb_ExternalExecutable__register_xsltproc
:=
3966 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3968 define gb_ExternalExecutable__register_xsltproc
3969 $(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
)
3970 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3971 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3972 $(call gb_Package_get_target
,libxml2
) \
3973 $(call gb_Package_get_target
,libxslt
) \
3978 endif # SYSTEM_LIBXSLT_FOR_BUILD
3980 ifneq (,$(SYSTEM_UCPP
))
3982 gb_ExternalExecutable__register_ucpp
:=
3984 else # ! SYSTEM_UCPP
3986 define gb_ExternalExecutable__register_ucpp
3987 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3993 ifeq (,$(PYTHON_FOR_BUILD
))
3995 define gb_ExternalExecutable__register_python
3998 # use set_external, to avoid having the command added as prerequisite for the
3999 # targets that make use of it. (Otherwise make will choke as it doesn't have a
4000 # matching rule to build that specific file)
4001 $(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
))
4002 # the Zip ensures that internal python has been built (cannot use the Package
4003 # target, as that is not used on Mac)
4004 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4008 $(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
))
4009 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4010 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4018 define gb_ExternalExecutable__register_python
4019 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4023 endif # PYTHON_FOR_BUILD
4025 ifneq ($(SYSTEM_GENBRK
),)
4027 define gb_ExternalExecutable__register_genbrk
4028 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4032 else # ! SYSTEM_GENBRK
4034 define gb_ExternalExecutable__register_genbrk
4035 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4036 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4037 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4038 $(call gb_Package_get_target_for_build
,icu
) \
4039 $(call gb_Package_get_target_for_build
,icu_ure
) \
4046 ifneq ($(SYSTEM_GENCCODE
),)
4048 define gb_ExternalExecutable__register_genccode
4049 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4053 else # ! SYSTEM_GENCCODE
4055 define gb_ExternalExecutable__register_genccode
4056 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4057 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4058 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4059 $(call gb_Package_get_target_for_build
,icu
) \
4060 $(call gb_Package_get_target_for_build
,icu_ure
) \
4067 ifneq ($(SYSTEM_GENCMN
),)
4069 define gb_ExternalExecutable__register_gencmn
4070 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4074 else # ! SYSTEM_GENCMN
4076 define gb_ExternalExecutable__register_gencmn
4077 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4078 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4079 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4080 $(call gb_Package_get_target_for_build
,icu
) \
4081 $(call gb_Package_get_target_for_build
,icu_ure
) \
4088 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4089 ifneq ($(SYSTEM_BZIP2
),)
4091 define gb_LinkTarget__use_bzip2
4092 $(call gb_LinkTarget_set_include
,$(1),\
4096 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4100 gb_ExternalProject__use_bzip2
:=
4102 else # !SYSTEM_BZIP2
4104 define gb_LinkTarget__use_bzip2
4105 $(call gb_LinkTarget_set_include
,$(1),\
4106 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4111 $(call gb_LinkTarget_add_libs
,$(1),\
4112 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4115 $(call gb_LinkTarget_add_libs
,$(1),\
4116 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4120 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4123 define gb_ExternalProject__use_bzip2
4124 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4130 define gb_LinkTarget__use_clew
4131 $(call gb_LinkTarget_set_include
,$(1), \
4132 -I
$(SRCDIR
)/external
/clew
/source
/include \
4135 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4138 ifneq ($(ENABLE_PDFIUM
),)
4139 define gb_LinkTarget__use_pdfium
4140 $(call gb_LinkTarget_set_include
,$(1),\
4141 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4145 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4147 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4152 define gb_LinkTarget__use_dtoa
4153 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4154 $(call gb_LinkTarget_set_include
,$(1),\
4155 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4158 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4164 define gb_ExternalProject__use_dtoa
4165 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4169 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4170 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4173 ifneq ($(SYSTEM_BOX2D
),)
4175 define gb_LinkTarget__use_box2d
4176 $(call gb_LinkTarget_set_include
,$(1),\
4181 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4185 gb_ExternalProject__use_box2d
:=
4187 else # !SYSTEM_BOX2D
4189 define gb_LinkTarget__use_box2d
4190 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4191 $(call gb_LinkTarget_set_include
,$(1),\
4192 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/Box2D
/)\
4195 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4201 define gb_ExternalProject__use_box2d
4202 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4206 endif # SYSTEM_BOX2D
4208 ifneq ($(SYSTEM_ZXING
),)
4210 define gb_LinkTarget__use_zxing
4211 $(call gb_LinkTarget_set_include
,$(1),\
4216 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4220 gb_ExternalProject__use_zxing
:=
4222 else # !SYSTEM_ZXING
4224 ifneq ($(ENABLE_ZXING
),)
4226 define gb_LinkTarget__use_zxing
4227 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4228 $(call gb_LinkTarget_set_include
,$(1),\
4229 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4232 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4238 define gb_ExternalProject__use_zxing
4239 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4243 else # !ENABLE_ZXING
4245 define gb_LinkTarget__use_zxing
4248 endif # ENABLE_ZXING
4250 endif # SYSTEM_ZXING
4252 # vim: set noet sw=4 ts=4: