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 gb_LinkTarget__use_glm_headers
:=
94 gb_ExternalProject__use_glm_headers
:=
98 define gb_LinkTarget__use_glm_headers
99 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
100 $(call gb_LinkTarget_set_include
,$(1),\
107 define gb_ExternalProject__use_glm_headers
108 $(call gb_ExternalProject_use_unpacked
,$(1),glm
)
114 ifneq ($(ENABLE_SKIA
),)
115 define gb_LinkTarget__use_skia
116 $(call gb_LinkTarget_set_include
,$(1),\
117 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/core \
118 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/effects \
119 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/gpu \
120 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/config \
121 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/third_party
/vulkan \
122 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/tools
/gpu \
123 -I
$(call gb_UnpackedTarball_get_dir
,skia
) \
126 $(call gb_LinkTarget_use_libraries
,$(1),skia
)
127 $(call gb_LinkTarget_add_defs
,$(1),\
128 -DSK_USER_CONFIG_HEADER
="<$(BUILDDIR)/config_host/config_skia.h>" \
132 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
137 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
139 define gb_LinkTarget__use_sane_headers
140 $(call gb_LinkTarget_set_include
,$(1),\
141 $(if
$(filter WNT
,$(OS
)), \
142 -I
$(call gb_UnpackedTarball_get_dir
,twain_dsm
/pub
/include), \
143 -I
$(SRCDIR
)/external
/sane
/inc
) \
148 $(call gb_LinkTarget_use_unpacked
,$(1),twain_dsm
)
155 gb_LinkTarget__use_sane_headers
:=
159 ifneq ($(SYSTEM_BLUEZ
),)
161 gb_LinkTarget__use_bluez_bluetooth_headers
:=
165 define gb_LinkTarget__use_bluez_bluetooth_headers
166 $(call gb_LinkTarget_set_include
,$(1),\
167 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
177 ifneq ($(SYSTEM_CPPUNIT
),)
179 define gb_LinkTarget__use_cppunit
180 $(call gb_LinkTarget_set_include
,$(1),\
185 $(call gb_LinkTarget_add_libs
,$(1),\
191 else # !SYSTEM_CPPUNIT
193 define gb_LinkTarget__use_cppunit
194 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
196 $(call gb_LinkTarget_set_include
,$(1),\
197 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
202 $(call gb_LinkTarget_add_libs
,$(1),\
203 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
206 $(call gb_LinkTarget_add_libs
,$(1),\
207 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
213 endif # SYSTEM_CPPUNIT
215 ifneq ($(SYSTEM_EPOXY
),)
217 define gb_LinkTarget__use_epoxy
218 $(call gb_LinkTarget_set_include
,$(1),\
222 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
226 gb_ExternalProject__use_epoxy
:=
230 define gb_LinkTarget__use_epoxy
231 $(call gb_LinkTarget_set_include
,$(1),\
232 -I
$(call gb_UnpackedTarball_get_dir
,epoxy
/include) \
236 $(call gb_LinkTarget_use_libraries
,$(1),\
242 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
246 define gb_ExternalProject__use_epoxy
247 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
253 define gb_LinkTarget__use_iconv
255 $(call gb_LinkTarget_add_libs
,$(1),libiconv.lib
)
257 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
261 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
263 define gb_LinkTarget__use_mariadb-connector-c
264 $(call gb_LinkTarget_set_include
,$(1),\
268 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
271 gb_ExternalProject__use_mariadb-connector-c
:=
273 else # !SYSTEM_MARIADB_CONNECTOR_C
275 define gb_LinkTarget__use_mariadb-connector-c
276 $(call gb_LinkTarget_set_include
,$(1),\
280 $(call gb_LinkTarget_use_static_libraries
,$(1),\
281 mariadb-connector-c \
284 $(call gb_LinkTarget_add_libs
,$(1),\
290 define gb_ExternalProject__use_mariadb-connector-c
291 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
295 endif # SYSTEM_MARIADB_CONNECTOR_C
298 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
300 define gb_LinkTarget__use_mysql
302 $(call gb_LinkTarget_add_defs
,$(1),\
306 $(call gb_LinkTarget_add_libs
,$(1),\
310 $(call gb_LinkTarget_set_include
,$(1),\
318 define gb_LinkTarget__use_mysql
320 $(call gb_LinkTarget_set_include
,$(1),\
328 ifneq ($(SYSTEM_ZLIB
),)
330 define gb_LinkTarget__use_zlib
331 $(call gb_LinkTarget_add_defs
,$(1),\
334 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
339 define gb_LinkTarget__use_zlib_x64
343 gb_ExternalProject__use_zlib
:=
347 define gb_LinkTarget__use_zlib_multiarch
348 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
350 $(call gb_LinkTarget_set_include
,$(1),\
355 $(call gb_LinkTarget_use_static_libraries
,$(1),\
361 define gb_LinkTarget__use_zlib
362 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
366 define gb_LinkTarget__use_zlib_x64
367 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
371 define gb_ExternalProject__use_zlib
372 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
379 ifneq ($(SYSTEM_LIBJPEG
),)
381 define gb_LinkTarget__use_libjpeg
382 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
383 $(call gb_LinkTarget_set_ldflags
,$(1),\
384 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
389 gb_ExternalProject__use_libjpeg
:=
393 define gb_LinkTarget__use_libjpeg
394 $(call gb_LinkTarget_set_include
,$(1),\
398 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
399 $(call gb_LinkTarget_use_external_project
,$(1),libjpeg-turbo
,full
)
403 define gb_ExternalProject__use_libjpeg
404 $(call gb_ExternalProject_use_external_project
,$(1),libjpeg-turbo
)
408 endif # SYSTEM_LIBJPEG
410 ifneq ($(SYSTEM_MYTHES
),)
412 define gb_LinkTarget__use_mythes
413 $(call gb_LinkTarget_set_include
,$(1),\
417 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
421 else # !SYSTEM_MYTHES
423 define gb_LinkTarget__use_mythes
424 $(call gb_LinkTarget_set_include
,$(1),\
425 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
430 $(call gb_LinkTarget_use_static_libraries
,$(1),\
434 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
435 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
440 endif # SYSTEM_MYTHES
443 ifneq ($(SYSTEM_EXPAT
),)
445 define gb_LinkTarget__use_expat_impl
446 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
448 $(call gb_LinkTarget_add_defs
,$(1),\
452 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
456 gb_ExternalProject__use_expat
:=
460 define gb_LinkTarget__use_expat_impl
461 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
463 $(call gb_LinkTarget_set_include
,$(1),\
464 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
468 $(call gb_LinkTarget_use_static_libraries
,$(1),\
474 define gb_ExternalProject__use_expat
475 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
481 define gb_LinkTarget__use_expat
482 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
486 define gb_LinkTarget__use_expat_x64
487 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
491 ifneq ($(SYSTEM_HYPH
),)
493 define gb_LinkTarget__use_hyphen
494 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
500 define gb_LinkTarget__use_hyphen
501 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
502 $(call gb_LinkTarget_set_include
,$(1),\
503 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
508 $(call gb_LinkTarget_use_static_libraries
,$(1),\
512 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
513 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
520 ifneq ($(SYSTEM_HUNSPELL
),)
522 define gb_LinkTarget__use_hunspell
523 $(call gb_LinkTarget_set_include
,$(1),\
527 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
531 gb_ExternalProject__use_hunspell
:=
533 else # !SYSTEM_HUNSPELL
535 define gb_LinkTarget__use_hunspell
536 $(call gb_LinkTarget_add_defs
,$(1),\
539 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
540 $(call gb_LinkTarget_set_include
,$(1),\
541 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
546 $(call gb_LinkTarget_use_static_libraries
,$(1),\
550 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
551 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
556 define gb_ExternalProject__use_hunspell
557 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
561 endif # SYSTEM_HUNSPELL
564 ifneq ($(SYSTEM_BOOST
),)
566 define gb_LinkTarget__use_boost_lib
567 $(call gb_LinkTarget_set_include
,$(1),\
572 $(call gb_LinkTarget_add_ldflags
,$(1),\
576 $(call gb_LinkTarget_add_libs
,$(1),$(2))
580 define gb_LinkTarget__use_boost_locale
581 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
585 define gb_LinkTarget__use_boost_date_time
586 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
590 define gb_LinkTarget__use_boost_filesystem
591 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
595 gb_ExternalProject__use_boost_filesystem
:=
597 define gb_LinkTarget__use_boost_iostreams
598 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
602 gb_ExternalProject__use_boost_iostreams
:=
604 define gb_LinkTarget__use_boost_system
605 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
609 gb_ExternalProject__use_boost_system
:=
611 define gb_LinkTarget__use_boost_headers
612 $(call gb_LinkTarget_set_include
,$(1),\
619 gb_ExternalProject__use_boost_headers
:=
623 define gb_LinkTarget__use_boost_lib
624 $(call gb_LinkTarget_add_defs
,$(1),\
628 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
632 define gb_LinkTarget__use_boost_locale
633 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
634 $(call gb_LinkTarget_add_libs
,$(1),\
635 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
640 define gb_LinkTarget__use_boost_date_time
641 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
645 define gb_LinkTarget__use_boost_filesystem
646 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
650 define gb_ExternalProject__use_boost_filesystem
651 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
654 define gb_LinkTarget__use_boost_iostreams
655 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
659 define gb_ExternalProject__use_boost_iostreams
660 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
663 define gb_LinkTarget__use_boost_system
664 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
668 define gb_ExternalProject__use_boost_system
669 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
672 define gb_LinkTarget__use_boost_headers
673 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
674 $(call gb_LinkTarget_set_include
,$(1),\
681 define gb_ExternalProject__use_boost_headers
682 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
689 ifneq ($(SYSTEM_LIBCMIS
),)
691 define gb_LinkTarget__use_libcmis
692 $(call gb_LinkTarget_set_include
,$(1),\
696 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
700 else # !SYSTEM_LIBCMIS
702 define gb_LinkTarget__use_libcmis
703 $(call gb_LinkTarget_set_include
,$(1),\
704 -I
$(call gb_UnpackedTarball_get_dir
,libcmis
)/inc \
707 $(call gb_LinkTarget_use_static_libraries
,$(1),\
713 endif # SYSTEM_LIBCMIS
715 ifeq ($(ENABLE_JAVA
),TRUE
)
717 define gb_LinkTarget__use_jawt
718 $(call gb_LinkTarget_add_libs
,$(1),\
726 gb_LinkTarget__use_jawt
:=
730 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
732 define gb_LinkTarget__use_libatomic_ops
733 $(call gb_LinkTarget_set_include
,$(1),\
735 $(LIBATOMIC_OPS_CFLAGS
) \
737 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
740 gb_ExternalProject__use_libatomic_ops
:=
742 else # !SYSTEM_LIBATOMIC_OPS
744 define gb_LinkTarget__use_libatomic_ops
745 $(call gb_LinkTarget_set_include
,$(1),\
746 $(LIBATOMIC_OPS_CFLAGS
) \
748 $(LIBATOMIC_OPS_CFLAGS
) \
750 $(call gb_LinkTarget_use_external_project
,$(1),\
754 $(call gb_LinkTarget_add_libs
,$(1),\
755 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
760 define gb_ExternalProject__use_libatomic_ops
761 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
765 endif # SYSTEM_LIBATOMIC_OPS
768 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
770 define gb_LinkTarget__use_libexttextcat
771 $(call gb_LinkTarget_set_include
,$(1),\
773 $(LIBEXTTEXTCAT_CFLAGS
) \
775 $(call gb_LinkTarget_add_defs
,$(1),\
776 -DSYSTEM_LIBEXTTEXTCAT \
778 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
782 else # !SYSTEM_LIBEXTTEXTCAT
784 define gb_LinkTarget__use_libexttextcat
785 $(call gb_LinkTarget_set_include
,$(1),\
786 -I
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
791 $(call gb_LinkTarget_use_static_libraries
,$(1),\
795 $(call gb_LinkTarget_add_libs
,$(1),\
796 $(call gb_UnpackedTarball_get_dir
,libexttextcat
)/src
/.libs
/libexttextcat-2.0.a\
798 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
804 endif # SYSTEM_LIBEXTTEXTCAT
807 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
809 define gb_LinkTarget__use_libnumbertext
810 $(call gb_LinkTarget_set_include
,$(1),\
812 $(LIBNUMBERTEXT_CFLAGS
) \
814 $(call gb_LinkTarget_add_defs
,$(1),\
815 -DSYSTEM_LIBNUMBERTEXT \
817 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
821 else # !SYSTEM_LIBNUMBERTEXT
823 ifneq ($(ENABLE_LIBNUMBERTEXT
),)
825 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
826 libnumbertext_numbertext \
829 define gb_LinkTarget__use_libnumbertext
830 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
831 $(call gb_LinkTarget_set_include
,$(1),\
832 -I
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
835 $(call gb_LinkTarget_add_defs
,$(1),\
836 -DENABLE_LIBNUMBERTEXT \
840 $(call gb_LinkTarget_use_static_libraries
,$(1),\
845 $(call gb_LinkTarget_add_libs
,$(1),\
846 $(call gb_UnpackedTarball_get_dir
,libnumbertext
)/src
/.libs
/libnumbertext-1.0.a\
848 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
854 else # !ENABLE_LIBNUMBERTEXT
856 define gb_LinkTarget__use_libnumbertext
859 endif # ENABLE_LIBNUMBERTEXT
861 endif # SYSTEM_LIBNUMBERTEXT
864 ifneq ($(SYSTEM_LIBXML
),)
866 define gb_LinkTarget__use_libxml2
867 $(call gb_LinkTarget_add_defs
,$(1),\
870 $(call gb_LinkTarget_set_include
,$(1),\
874 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
877 gb_ExternalProject__use_libxml2
:=
879 else # !SYSTEM_LIBXML
881 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
885 define gb_LinkTarget__use_libxml2
886 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
887 $(call gb_LinkTarget_set_include
,$(1),\
892 $(call gb_LinkTarget_add_libs
,$(1),\
897 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
901 define gb_ExternalProject__use_libxml2
902 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
905 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
910 endif # SYSTEM_LIBXML
913 ifneq ($(SYSTEM_LIBXSLT
),)
915 define gb_LinkTarget__use_libxslt
916 $(call gb_LinkTarget_set_include
,$(1),\
920 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
924 define gb_LinkTarget__use_libexslt
925 $(call gb_LinkTarget_set_include
,$(1),\
930 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
934 else # !SYSTEM_LIBXSLT
936 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
940 define gb_LinkTarget__use_libxslt
941 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
942 $(call gb_LinkTarget_set_include
,$(1),\
944 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
948 $(call gb_LinkTarget_add_libs
,$(1),\
949 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
952 $(call gb_LinkTarget_add_libs
,$(1),\
953 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libxslt
/.libs
-lxslt \
959 define gb_LinkTarget__use_libexslt
960 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
961 $(call gb_LinkTarget_set_include
,$(1),\
963 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
967 $(call gb_LinkTarget_add_libs
,$(1),\
968 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
971 $(call gb_LinkTarget_add_libs
,$(1),\
972 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libexslt
/.libs
-lexslt \
978 endif # SYSTEM_LIBXSLT
981 ifneq ($(SYSTEM_XMLSEC
),)
983 define gb_LinkTarget__use_xmlsec
984 $(call gb_LinkTarget_add_defs
,$(1),\
987 $(call gb_LinkTarget_set_include
,$(1),\
991 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
995 gb_ExternalProject__use_xmlsec
:=
997 else # !SYSTEM_XMLSEC
999 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1003 define gb_LinkTarget__use_xmlsec
1007 endif # SYSTEM_XMLSEC
1009 ifneq ($(SYSTEM_LIBLANGTAG
),)
1011 define gb_LinkTarget__use_liblangtag
1012 $(call gb_LinkTarget_set_include
,$(1),\
1014 $(LIBLANGTAG_CFLAGS
) \
1017 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1021 gb_ExternalProject__use_liblangtag
:=
1023 else # !SYSTEM_LIBLANGTAG
1025 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1031 define gb_LinkTarget__use_liblangtag
1032 $(call gb_LinkTarget_set_include
,$(1),\
1033 $(LIBLANGTAG_CFLAGS
) \
1036 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1037 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1043 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1047 define gb_LinkTarget__use_liblangtag
1048 $(call gb_LinkTarget_set_include
,$(1),\
1049 $(LIBLANGTAG_CFLAGS
) \
1052 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1053 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1059 define gb_ExternalProject__use_liblangtag
1060 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1064 endif # SYSTEM_LIBLANGTAG
1067 gb_ExternalProject__use_apr
:=
1069 ifeq ($(WITH_WEBDAV
),serf
)
1071 define gb_LinkTarget__use_apr
1072 $(call gb_LinkTarget_set_include
,$(1),\
1076 $(call gb_LinkTarget_add_libs
,$(1),\
1078 $(if
$(filter $(OS
),LINUX
),-lpthread
) \
1079 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
1082 ifeq ($(SYSTEM_APR
),)
1083 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1088 $(call gb_LinkTarget_add_defs
,$(1),\
1089 -DAPR_DECLARE_STATIC \
1090 -DAPU_DECLARE_STATIC \
1092 $(call gb_LinkTarget_use_external_project
,$(1),apr_util
)
1097 define gb_ExternalProject__use_apr
1098 ifeq ($(SYSTEM_APR
),)
1099 $(call gb_ExternalProject_use_external_project
,$(1),apr_util
)
1104 define gb_LinkTarget__use_serf
1105 $(call gb_LinkTarget_set_include
,$(1),\
1109 $(call gb_LinkTarget_add_libs
,$(1),\
1113 ifeq ($(SYSTEM_SERF
),)
1114 $(call gb_LinkTarget_use_external_project
,$(1),serf
)
1119 else ifeq ($(WITH_WEBDAV
),neon
)
1121 ifneq ($(SYSTEM_NEON
),)
1123 define gb_LinkTarget__use_neon
1124 $(call gb_LinkTarget_add_defs
,$(1),\
1125 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
1128 $(call gb_LinkTarget_set_include
,$(1),\
1133 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
1139 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1143 define gb_LinkTarget__use_neon
1144 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
1145 $(call gb_LinkTarget_set_include
,$(1),\
1146 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
1149 $(call gb_LinkTarget_use_libraries
,$(1),\
1159 ifneq ($(SYSTEM_REDLAND
),)
1161 define gb_LinkTarget__use_librdf
1162 $(call gb_LinkTarget_add_defs
,$(1),\
1165 $(call gb_LinkTarget_set_include
,$(1),\
1169 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1173 gb_LinkTarget__use_redland_headers
:=
1175 gb_LinkTarget__use_raptor_headers
:=
1177 gb_LinkTarget__use_rasqal_headers
:=
1179 else # !SYSTEM_REDLAND
1181 define gb_LinkTarget__use_redland_headers
1182 $(call gb_LinkTarget_set_include
,$(1),\
1183 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1189 define gb_LinkTarget__use_raptor_headers
1190 $(call gb_LinkTarget_set_include
,$(1),\
1191 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1197 define gb_LinkTarget__use_rasqal_headers
1198 $(call gb_LinkTarget_set_include
,$(1),\
1199 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1205 ifneq ($(OS
),ANDROID
)
1208 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1214 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1221 define gb_LinkTarget__use_librdf
1223 $(call gb_LinkTarget_use_libraries
,$(1),\
1228 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1230 $(call gb_LinkTarget_add_libs
,$(1),\
1231 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1232 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1233 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1241 define gb_LinkTarget__use_librdf
1242 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1248 endif # SYSTEM_REDLAND
1251 ifneq ($(USING_X11
)$(ENABLE_CAIRO_CANVAS
)$(DISABLE_GUI
),) # or
1253 ifneq ($(SYSTEM_CAIRO
),)
1255 define gb_LinkTarget__use_cairo
1256 $(call gb_LinkTarget_set_include
,$(1),\
1260 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1261 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1265 else # !SYSTEM_CAIRO
1267 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1269 $(if
$(filter $(OS
),WNT
),,pixman
) \
1272 define gb_LinkTarget__use_cairo
1273 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1274 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1275 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1276 $(call gb_LinkTarget_set_include
,$(1),\
1277 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1278 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1281 $(call gb_LinkTarget_add_libs
,$(1),\
1282 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1283 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
1284 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1290 endif # SYSTEM_CAIRO
1292 else ifeq ($(OS
),ANDROID
)
1294 define gb_LinkTarget__use_cairo
1295 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1296 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1297 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1298 $(call gb_LinkTarget_set_include
,$(1),\
1299 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1300 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1303 $(call gb_LinkTarget_add_libs
,$(1),\
1304 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1305 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1312 ifneq ($(SYSTEM_FREETYPE
),)
1314 define gb_LinkTarget__use_freetype_headers
1315 $(call gb_LinkTarget_set_include
,$(1),\
1317 $(FREETYPE_CFLAGS
) \
1322 gb_ExternalProject__use_freetype
:=
1326 define gb_LinkTarget__use_freetype_headers
1327 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1328 $(call gb_LinkTarget_set_include
,$(1),\
1329 $(FREETYPE_CFLAGS
) \
1335 define gb_ExternalProject__use_freetype
1336 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1340 endif # SYSTEM_FREETYPE
1342 define gb_LinkTarget__use_freetype
1343 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1344 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1348 ifneq ($(SYSTEM_FONTCONFIG
),)
1350 define gb_LinkTarget__use_fontconfig
1351 $(call gb_LinkTarget_set_include
,$(1),\
1353 $(FONTCONFIG_CFLAGS
) \
1356 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1362 define gb_LinkTarget__use_fontconfig
1363 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1364 $(call gb_LinkTarget_set_include
,$(1),\
1365 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1369 $(call gb_LinkTarget_add_libs
,$(1),\
1370 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1375 endif # SYSTEM_FONTCONFIG
1377 ifneq ($(SYSTEM_GRAPHITE
),)
1379 define gb_LinkTarget__use_graphite
1380 $(call gb_LinkTarget_set_include
,$(1),\
1382 $(GRAPHITE_CFLAGS
) \
1384 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1388 gb_ExternalProject__use_graphite
:=
1390 else # !SYSTEM_GRAPHITE
1392 define gb_LinkTarget__use_graphite
1393 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1394 $(call gb_LinkTarget_set_include
,$(1),\
1395 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1398 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1404 define gb_ExternalProject__use_graphite
1405 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1410 endif # SYSTEM_GRAPHITE
1412 ifneq ($(SYSTEM_ICU
),)
1414 gb_LinkTarget__use_icu_headers
:=
1415 gb_ExternalProject__use_icu
:=
1417 define gb_LinkTarget__use_icudata
1418 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1421 define gb_LinkTarget__use_icui18n
1422 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1425 define gb_LinkTarget__use_icuuc
1426 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1432 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1436 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1440 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1446 define gb_LinkTarget__use_icu_headers
1447 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1448 $(call gb_LinkTarget_set_include
,$(1),\
1449 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1450 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1451 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1457 define gb_ExternalProject__use_icu
1458 $(call gb_ExternalProject_use_package
,$(1),icu
)
1462 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1463 define gb_LinkTarget__use_icudata
1464 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1467 $(call gb_LinkTarget_add_libs
,$(1),\
1468 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1471 $(call gb_LinkTarget_add_libs
,$(1),\
1472 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1478 define gb_LinkTarget__use_icui18n
1479 $(call gb_LinkTarget_use_package
,$(1),icu
)
1482 $(call gb_LinkTarget_add_libs
,$(1),\
1483 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1486 $(call gb_LinkTarget_add_libs
,$(1),\
1487 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1493 define gb_LinkTarget__use_icuuc
1494 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1497 $(call gb_LinkTarget_add_libs
,$(1),\
1498 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1501 $(call gb_LinkTarget_add_libs
,$(1),\
1502 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1510 ifneq ($(SYSTEM_HARFBUZZ
),)
1512 define gb_LinkTarget__use_harfbuzz
1513 $(call gb_LinkTarget_set_include
,$(1),\
1515 $(HARFBUZZ_CFLAGS
) \
1517 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1521 gb_ExternalProject__use_harfbuzz
:=
1523 else # SYSTEM_HARFBUZZ != TRUE
1525 define gb_LinkTarget__use_harfbuzz
1526 $(call gb_LinkTarget_set_include
,$(1),\
1527 $(HARFBUZZ_CFLAGS
) \
1530 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1531 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1532 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1536 define gb_ExternalProject__use_harfbuzz
1537 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1541 endif # SYSTEM_HARFBUZZ
1543 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1545 gb_ExternalProject__use_openssl
:=
1546 gb_LinkTarget__use_openssl_headers
:=
1547 gb_LinkTarget__use_openssl
:=
1549 else # !DISABLE_OPENSSL
1551 ifneq ($(SYSTEM_OPENSSL
),)
1553 gb_LinkTarget__use_openssl_headers
:=
1554 gb_ExternalProject__use_openssl
:=
1556 define gb_LinkTarget__use_openssl
1557 $(call gb_LinkTarget_set_include
,$(1),\
1561 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1565 else # !SYSTEM_OPENSSL
1567 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1571 define gb_ExternalProject__use_openssl
1572 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1576 define gb_LinkTarget__use_openssl_headers
1577 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1578 $(call gb_LinkTarget_set_include
,$(1),\
1579 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1585 define gb_LinkTarget__use_openssl
1586 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1588 $(call gb_LinkTarget_add_libs
,$(1),\
1589 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/ssleay32.lib \
1590 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/libeay32.lib \
1593 $(call gb_LinkTarget_add_libs
,$(1),\
1594 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1595 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1597 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1598 ifeq ($(OS
),SOLARIS
)
1599 $(call gb_LinkTarget_add_libs
,$(1),\
1608 endif # SYSTEM_OPENSSL
1609 endif # DISABLE_OPENSSL
1612 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1614 define gb_LinkTarget__use_gnutls
1615 $(call gb_LinkTarget_set_include
,$(1),\
1620 $(call gb_LinkTarget_add_defs
,$(1),\
1624 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1628 define gb_LinkTarget__use_libgcrypt
1629 $(call gb_LinkTarget_set_include
,$(1),\
1631 $(LIBGCRYPT_CFLAGS
) \
1634 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1638 else # !DISABLE_OPENSSL
1640 gb_LinkTarget__use_gnutls
:=
1641 gb_LinkTarget__use_libgcrypt
:=
1643 endif # DISABLE_OPENSSL
1646 ifneq ($(SYSTEM_CDR
),)
1648 define gb_LinkTarget__use_cdr
1649 $(call gb_LinkTarget_set_include
,$(1),\
1653 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1659 define gb_LinkTarget__use_cdr
1660 $(call gb_LinkTarget_set_include
,$(1),\
1661 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1664 $(call gb_LinkTarget_add_libs
,$(1),\
1665 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1667 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1673 ifneq ($(SYSTEM_EBOOK
),)
1675 define gb_LinkTarget__use_ebook
1676 $(call gb_LinkTarget_set_include
,$(1),\
1680 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1684 gb_ExternalProject__use_ebook
:=
1686 else # !SYSTEM_EBOOK
1688 define gb_LinkTarget__use_ebook
1689 $(call gb_LinkTarget_set_include
,$(1),\
1690 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1693 $(call gb_LinkTarget_add_libs
,$(1),\
1694 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1696 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1700 define gb_ExternalProject__use_ebook
1701 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1705 endif # SYSTEM_EBOOK
1708 ifneq ($(SYSTEM_ETONYEK
),)
1710 define gb_LinkTarget__use_etonyek
1711 $(call gb_LinkTarget_set_include
,$(1),\
1715 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1719 gb_ExternalProject__use_etonyek
:=
1721 else # !SYSTEM_ETONYEK
1725 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1729 define gb_LinkTarget__use_etonyek
1730 $(call gb_LinkTarget_set_include
,$(1),\
1731 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1734 $(call gb_LinkTarget_use_libraries
,$(1),\
1742 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1746 define gb_LinkTarget__use_etonyek
1747 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1749 $(call gb_LinkTarget_set_include
,$(1),\
1750 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1751 -DLIBETONYEK_VISIBILITY \
1754 $(call gb_LinkTarget_add_libs
,$(1),\
1755 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1757 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1761 define gb_ExternalProject__use_etonyek
1762 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1768 endif # SYSTEM_ETONYEK
1771 ifneq ($(SYSTEM_FREEHAND
),)
1773 define gb_LinkTarget__use_freehand
1774 $(call gb_LinkTarget_set_include
,$(1),\
1776 $(FREEHAND_CFLAGS
) \
1778 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1782 gb_ExternalProject__use_freehand
:=
1784 else # !SYSTEM_FREEHAND
1786 define gb_LinkTarget__use_freehand
1787 $(call gb_LinkTarget_set_include
,$(1),\
1788 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1791 $(call gb_LinkTarget_add_libs
,$(1),\
1792 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1794 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1798 define gb_ExternalProject__use_freehand
1799 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1803 endif # SYSTEM_FREEHAND
1806 ifneq ($(SYSTEM_ODFGEN
),)
1808 define gb_LinkTarget__use_odfgen
1809 $(call gb_LinkTarget_set_include
,$(1),\
1813 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1817 else # !SYSTEM_ODFGEN
1821 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1825 define gb_LinkTarget__use_odfgen
1826 $(call gb_LinkTarget_set_include
,$(1),\
1827 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1830 $(call gb_LinkTarget_use_libraries
,$(1),\
1838 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1842 define gb_LinkTarget__use_odfgen
1843 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1845 $(call gb_LinkTarget_set_include
,$(1),\
1846 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1847 -DLIBODFGEN_VISIBILITY \
1850 $(call gb_LinkTarget_add_libs
,$(1),\
1851 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1858 endif # SYSTEM_ODFGEN
1860 ifneq ($(SYSTEM_EPUBGEN
),)
1862 define gb_LinkTarget__use_epubgen
1863 $(call gb_LinkTarget_set_include
,$(1),\
1867 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1870 gb_ExternalProject__use_epubgen
:=
1872 else # !SYSTEM_EPUBGEN
1874 define gb_LinkTarget__use_epubgen
1875 $(call gb_LinkTarget_set_include
,$(1),\
1876 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1879 $(call gb_LinkTarget_add_libs
,$(1),\
1880 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1882 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1885 define gb_ExternalProject__use_epubgen
1886 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1890 endif # SYSTEM_EPUBGEN
1892 ifneq ($(SYSTEM_REVENGE
),)
1894 define gb_LinkTarget__use_revenge
1895 $(call gb_LinkTarget_set_include
,$(1),\
1899 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1903 gb_ExternalProject__use_revenge
:=
1905 else # !SYSTEM_REVENGE
1909 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1913 define gb_LinkTarget__use_revenge
1914 $(call gb_LinkTarget_set_include
,$(1),\
1918 $(call gb_LinkTarget_use_libraries
,$(1),\
1924 define gb_ExternalProject__use_revenge
1925 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1931 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1935 define gb_LinkTarget__use_revenge
1936 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1938 $(call gb_LinkTarget_set_include
,$(1),\
1940 -DLIBREVENGE_VISIBILITY \
1943 $(call gb_LinkTarget_add_libs
,$(1),\
1948 define gb_ExternalProject__use_revenge
1949 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1955 endif # SYSTEM_REVENGE
1958 ifneq ($(SYSTEM_ABW
),)
1960 define gb_LinkTarget__use_abw
1961 $(call gb_LinkTarget_set_include
,$(1),\
1965 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1968 gb_ExternalProject__use_abw
:=
1972 define gb_LinkTarget__use_abw
1973 $(call gb_LinkTarget_set_include
,$(1),\
1974 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1977 $(call gb_LinkTarget_add_libs
,$(1),\
1978 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1980 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1983 define gb_ExternalProject__use_abw
1984 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1991 ifneq ($(SYSTEM_MSPUB
),)
1993 define gb_LinkTarget__use_mspub
1994 $(call gb_LinkTarget_set_include
,$(1),\
1998 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
2002 else # !SYSTEM_MSPUB
2004 define gb_LinkTarget__use_mspub
2005 $(call gb_LinkTarget_set_include
,$(1),\
2006 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
2009 $(call gb_LinkTarget_add_libs
,$(1),\
2010 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2012 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
2016 endif # SYSTEM_MSPUB
2019 ifneq ($(SYSTEM_PAGEMAKER
),)
2021 define gb_LinkTarget__use_pagemaker
2022 $(call gb_LinkTarget_set_include
,$(1),\
2024 $(PAGEMAKER_CFLAGS
) \
2026 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
2029 gb_ExternalProject__use_pagemaker
:=
2031 else # !SYSTEM_PAGEMAKER
2033 define gb_LinkTarget__use_pagemaker
2034 $(call gb_LinkTarget_set_include
,$(1),\
2035 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
2038 $(call gb_LinkTarget_add_libs
,$(1),\
2039 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2041 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
2044 define gb_ExternalProject__use_pagemaker
2045 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
2049 endif # SYSTEM_PAGEMAKER
2052 ifneq ($(SYSTEM_QXP
),)
2054 define gb_LinkTarget__use_qxp
2055 $(call gb_LinkTarget_set_include
,$(1),\
2059 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
2062 gb_ExternalProject__use_qxp
:=
2066 define gb_LinkTarget__use_qxp
2067 $(call gb_LinkTarget_set_include
,$(1),\
2068 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
2071 $(call gb_LinkTarget_add_libs
,$(1),\
2072 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2074 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
2077 define gb_ExternalProject__use_qxp
2078 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
2085 ifneq ($(SYSTEM_ZMF
),)
2087 define gb_LinkTarget__use_zmf
2088 $(call gb_LinkTarget_set_include
,$(1),\
2092 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
2095 gb_ExternalProject__use_zmf
:=
2099 define gb_LinkTarget__use_zmf
2100 $(call gb_LinkTarget_set_include
,$(1),\
2101 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2104 $(call gb_LinkTarget_add_libs
,$(1),\
2105 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2107 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2110 define gb_ExternalProject__use_zmf
2111 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2118 ifneq ($(SYSTEM_VISIO
),)
2120 define gb_LinkTarget__use_visio
2121 $(call gb_LinkTarget_set_include
,$(1),\
2125 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2129 else # !SYSTEM_VISIO
2131 define gb_LinkTarget__use_visio
2132 $(call gb_LinkTarget_set_include
,$(1),\
2133 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2136 $(call gb_LinkTarget_add_libs
,$(1),\
2137 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2139 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2143 endif # SYSTEM_VISIO
2146 ifneq ($(SYSTEM_WPD
),)
2148 define gb_LinkTarget__use_wpd
2149 $(call gb_LinkTarget_set_include
,$(1),\
2153 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2156 gb_ExternalProject__use_wpd
:=
2162 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2166 define gb_LinkTarget__use_wpd
2167 $(call gb_LinkTarget_set_include
,$(1),\
2171 $(call gb_LinkTarget_use_libraries
,$(1),\
2177 define gb_ExternalProject__use_wpd
2178 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2184 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2188 define gb_LinkTarget__use_wpd
2189 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2191 $(call gb_LinkTarget_set_include
,$(1),\
2195 $(call gb_LinkTarget_add_libs
,$(1),\
2201 define gb_ExternalProject__use_wpd
2202 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2211 ifneq ($(SYSTEM_WPG
),)
2213 define gb_LinkTarget__use_wpg
2214 $(call gb_LinkTarget_set_include
,$(1),\
2218 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2221 gb_ExternalProject__use_wpg
:=
2227 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2231 define gb_LinkTarget__use_wpg
2232 $(call gb_LinkTarget_set_include
,$(1),\
2233 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2236 $(call gb_LinkTarget_use_libraries
,$(1),\
2244 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2248 define gb_LinkTarget__use_wpg
2249 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2251 $(call gb_LinkTarget_set_include
,$(1),\
2252 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2255 $(call gb_LinkTarget_add_libs
,$(1),\
2256 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2266 ifneq ($(SYSTEM_WPS
),)
2268 define gb_LinkTarget__use_wps
2269 $(call gb_LinkTarget_set_include
,$(1),\
2273 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2276 gb_ExternalProject__use_wps
:=
2282 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2286 define gb_LinkTarget__use_wps
2287 $(call gb_LinkTarget_set_include
,$(1),\
2288 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2292 $(call gb_LinkTarget_use_libraries
,$(1),\
2300 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2304 define gb_LinkTarget__use_wps
2305 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2307 $(call gb_LinkTarget_set_include
,$(1),\
2308 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2311 $(call gb_LinkTarget_add_libs
,$(1),\
2312 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2322 ifneq ($(SYSTEM_MWAW
),)
2324 define gb_LinkTarget__use_mwaw
2325 $(call gb_LinkTarget_set_include
,$(1),\
2329 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2337 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2341 define gb_LinkTarget__use_mwaw
2342 $(call gb_LinkTarget_set_include
,$(1),\
2343 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2347 $(call gb_LinkTarget_use_libraries
,$(1),\
2355 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2359 define gb_LinkTarget__use_mwaw
2360 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2362 $(call gb_LinkTarget_set_include
,$(1),\
2363 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2366 $(call gb_LinkTarget_add_libs
,$(1),\
2367 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2376 ifneq ($(SYSTEM_STAROFFICE
),)
2378 define gb_LinkTarget__use_staroffice
2379 $(call gb_LinkTarget_set_include
,$(1),\
2381 $(STAROFFICE_CFLAGS
) \
2383 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2387 else # !SYSTEM_STAROFFICE
2391 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2395 define gb_LinkTarget__use_staroffice
2396 $(call gb_LinkTarget_set_include
,$(1),\
2397 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2401 $(call gb_LinkTarget_use_libraries
,$(1),\
2409 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2413 define gb_LinkTarget__use_staroffice
2414 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2416 $(call gb_LinkTarget_set_include
,$(1),\
2417 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2420 $(call gb_LinkTarget_add_libs
,$(1),\
2421 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2428 endif # SYSTEM_STAROFFICE
2431 ifneq ($(SYSTEM_LCMS2
),)
2433 define gb_LinkTarget__use_lcms2
2434 $(call gb_LinkTarget_set_include
,$(1),\
2438 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2442 gb_ExternalProject__use_lcms2
:=
2444 else # !SYSTEM_LCMS2
2446 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2450 define gb_ExternalProject__use_lcms2
2451 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2455 ifeq ($(OS
),ANDROID
)
2457 define gb_LinkTarget__use_lcms2
2458 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2459 $(call gb_LinkTarget_set_include
,$(1),\
2460 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2468 define gb_LinkTarget__use_lcms2
2469 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2470 $(call gb_LinkTarget_set_include
,$(1),\
2471 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2474 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2479 endif # SYSTEM_LCMS2
2481 ifneq ($(ENABLE_LPSOLVE
),)
2483 ifneq ($(SYSTEM_LPSOLVE
),)
2485 define gb_LinkTarget__use_lpsolve
2486 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2487 $(call gb_LinkTarget_add_defs
,$(1),\
2493 else # !SYSTEM_LPSOLVE
2495 define gb_LinkTarget__use_lpsolve
2496 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2498 $(call gb_LinkTarget_add_libs
,$(1),\
2499 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2502 $(call gb_LinkTarget_add_libs
,$(1),\
2503 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2506 $(call gb_LinkTarget_set_include
,$(1),\
2507 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2513 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2517 endif # SYSTEM_LPSOLVE
2521 gb_LinkTarget__use_lpsolve
:=
2523 endif # ENABLE_LPSOLVE
2525 ifneq ($(ENABLE_COINMP
),)
2527 ifneq ($(SYSTEM_COINMP
),TRUE
)
2529 define gb_LinkTarget__use_coinmp
2530 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2532 $(call gb_LinkTarget_add_libs
,$(1),\
2533 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2536 $(call gb_LinkTarget_add_libs
,$(1),\
2537 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2538 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2539 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2540 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2541 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2542 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2543 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2546 $(call gb_LinkTarget_set_include
,$(1),\
2547 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2548 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2554 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2558 else # SYSTEM_COINMP
2560 define gb_LinkTarget__use_coinmp
2561 $(call gb_LinkTarget_set_include
,$(1),\
2565 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2573 gb_LinkTarget__use_coinmp
:=
2575 endif # ENABLE_COINMP
2577 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2579 define gb_LinkTarget__use_mDNSResponder
2580 $(call gb_LinkTarget_set_include
,$(1),\
2581 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2584 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2587 endif # MDNSRESPONDER
2589 ifeq ($(ENABLE_GIO
),TRUE
)
2591 define gb_LinkTarget__use_gio
2592 $(call gb_LinkTarget_set_include
,$(1),\
2597 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2603 define gb_LinkTarget__use_gio
2609 ifeq ($(ENABLE_AVAHI
),TRUE
)
2611 define gb_LinkTarget__use_avahi
2612 $(call gb_LinkTarget_set_include
,$(1),\
2617 $(call gb_LinkTarget_add_defs
,$(1),\
2621 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2627 gb_LinkTarget__use_avahi
:=
2629 endif # ENABLE_AVAHI
2631 ifeq ($(ENABLE_CUPS
),TRUE
)
2633 define gb_LinkTarget__use_cups
2634 $(call gb_LinkTarget_add_defs
,$(1),\
2638 $(call gb_LinkTarget_add_libs
,$(1),\
2646 define gb_LinkTarget__use_cups
2652 ifeq ($(ENABLE_DBUS
),TRUE
)
2654 define gb_LinkTarget__use_dbus
2655 $(call gb_LinkTarget_set_include
,$(1),\
2660 $(call gb_LinkTarget_add_libs
,$(1),\
2668 define gb_LinkTarget__use_dbus
2675 ifneq ($(SYSTEM_LIBPNG
),)
2677 define gb_LinkTarget__use_libpng
2678 $(call gb_LinkTarget_set_include
,$(1),\
2683 $(call gb_LinkTarget_add_libs
,$(1),\
2689 gb_ExternalProject__use_libpng
:=
2691 else # !SYSTEM_LIBPNG
2693 define gb_LinkTarget__use_libpng
2694 $(call gb_LinkTarget_set_include
,$(1),\
2698 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2701 $(call gb_LinkTarget__use_zlib
,$(1))
2705 define gb_ExternalProject__use_libpng
2706 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2712 endif # !SYSTEM_LIBPNG
2715 ifneq ($(SYSTEM_CURL
),)
2717 define gb_LinkTarget__use_curl
2718 $(call gb_LinkTarget_add_defs
,$(1),\
2721 $(call gb_LinkTarget_set_include
,$(1),\
2725 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2731 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2735 define gb_LinkTarget__use_curl
2736 $(call gb_LinkTarget_use_package
,$(1),curl
)
2737 $(call gb_LinkTarget_set_include
,$(1),\
2738 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2743 $(call gb_LinkTarget_add_libs
,$(1),\
2744 $(call gb_UnpackedTarball_get_dir
,curl
)/builds
/libcurl-vc12-
$(if
$(filter X86_64
,$(CPUNAME
)),x64
,x86
)-$(if
$(MSVC_USE_DEBUG_RUNTIME
),debug
,release
)-dll-ipv6-sspi-winssl
/lib
/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
).lib \
2747 $(call gb_LinkTarget_add_libs
,$(1),\
2748 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2756 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2758 define gb_LinkTarget__use_valgrind
2759 $(call gb_LinkTarget_add_defs
,$(1),\
2760 -DHAVE_VALGRIND_HEADERS \
2763 $(call gb_LinkTarget_set_include
,$(1),\
2765 $(VALGRIND_CFLAGS
) \
2770 else # !ENABLE_VALGRIND
2772 define gb_LinkTarget__use_valgrind
2776 endif # ENABLE_VALGRIND
2778 ifeq ($(ENABLE_POPPLER
),TRUE
)
2780 ifneq ($(SYSTEM_POPPLER
),)
2782 define gb_LinkTarget__use_poppler
2783 $(call gb_LinkTarget_set_include
,$(1),\
2788 $(call gb_LinkTarget_add_libs
,$(1),\
2794 else # !SYSTEM_POPPLER
2796 define gb_LinkTarget__use_poppler
2797 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2799 $(call gb_LinkTarget_set_include
,$(1),\
2800 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2801 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2802 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2806 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2808 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2811 $(call gb_LinkTarget_add_libs
,$(1),\
2814 else ifeq ($(OS
),LINUX
)
2815 $(call gb_LinkTarget_add_libs
,$(1),\
2818 else ifeq ($(OS
),WNT
)
2819 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2827 endif # SYSTEM_POPPLER
2829 endif # ENABLE_POPPLER
2832 ifneq ($(SYSTEM_CLUCENE
),)
2834 define gb_LinkTarget__use_clucene
2835 $(call gb_LinkTarget_add_defs
,$(1),\
2836 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2839 $(call gb_LinkTarget_set_include
,$(1),\
2840 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2844 $(call gb_LinkTarget_add_libs
,$(1),\
2850 else # !SYSTEM_CLUCENE
2852 define gb_LinkTarget__use_clucene
2853 $(call gb_LinkTarget_set_include
,$(1),\
2854 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2855 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2856 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2860 $(call gb_LinkTarget_use_libraries
,$(1),\
2866 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2870 endif # SYSTEM_CLUCENE
2872 define gb_LinkTarget__use_gobject
2873 $(call gb_LinkTarget_add_libs
,$(1),\
2877 $(call gb_LinkTarget_set_include
,$(1),\
2883 ifneq ($(SYSTEM_HSQLDB
),)
2885 define gb_LinkTarget__use_hsqldb
2887 $(call gb_LinkTarget_add_defs
,$(1),\
2889 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2894 else # !SYSTEM_HSQLDB
2896 define gb_LinkTarget__use_hsqldb
2900 endif # SYSTEM_HSQLDB
2902 ifeq ($(ENABLE_LDAP
),TRUE
)
2903 ifneq ($(SYSTEM_OPENLDAP
),)
2905 define gb_LinkTarget__use_openldap
2907 $(call gb_LinkTarget_add_libs
,$(1),\
2914 gb_ExternalProject__use_openldap
:=
2916 else # !SYSTEM_OPENLDAP
2918 define gb_LinkTarget__use_openldap
2919 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2920 $(call gb_LinkTarget_set_include
,$(1),\
2921 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2924 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2925 $(call gb_LinkTarget_add_libs
,$(1), \
2926 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2927 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2933 define gb_ExternalProject__use_openldap
2934 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2938 endif # SYSTEM_OPENLDAP
2940 ifneq ($(SYSTEM_LIBTOMMATH
),)
2942 define gb_LinkTarget__use_libtommath
2943 $(call gb_LinkTarget_set_include
,$(1),\
2944 $(LIBTOMMATH_CFLAGS
) \
2947 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2951 else # !SYSTEM_LIBTOMMATH
2952 define gb_LinkTarget__use_libtommath
2953 $(call gb_LinkTarget_set_include
,$(1),\
2954 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2957 $(call gb_LinkTarget_add_libs
,$(1),\
2958 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2960 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2964 endif # SYSTEM_LIBTOMMATH
2966 define gb_ExternalProject__use_libtommath
2967 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2971 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2973 ifneq ($(SYSTEM_FIREBIRD
),)
2975 define gb_LinkTarget__use_libfbembed
2976 $(call gb_LinkTarget_set_include
,$(1),\
2977 $(FIREBIRD_CFLAGS
) \
2980 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2984 else # !SYSTEM_FIREBIRD
2986 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
2990 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2991 #$(call gb_LinkTarget__use_libtommath,$(1))
2993 define gb_LinkTarget__use_libfbembed
2994 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2995 $(call gb_LinkTarget_set_include
,$(1),\
2996 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
3000 $(call gb_LinkTarget_add_libs
,$(1),\
3001 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
3004 $(call gb_LinkTarget_add_libs
,$(1),\
3005 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
3014 endif # SYSTEM_FIREBIRD
3016 else # !ENABLE_FIREBIRD_SDBC
3018 gb_LinkTarget__use_firebird
:=
3019 # gb_LinkTarget__use_atomic_ops :=
3020 # gb_LinkTarget__use_libtommath :=
3022 endif # ENABLE_FIREBIRD_SDBC
3025 ifneq ($(SYSTEM_POSTGRESQL
),)
3027 define gb_LinkTarget__use_postgresql
3029 $(call gb_LinkTarget_set_include
,$(1),\
3034 $(call gb_LinkTarget_add_libs
,$(1),\
3038 $(call gb_LinkTarget_add_ldflags
,$(1),\
3044 else # !SYSTEM_POSTGRESQL
3046 define gb_LinkTarget__use_postgresql
3048 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
)
3050 $(call gb_LinkTarget_set_include
,$(1),\
3051 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
3052 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
3056 $(call gb_LinkTarget_add_libs
,$(1),\
3057 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
3061 $(call gb_LinkTarget_use_external
,$(1),openssl
)
3063 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
3072 endif # SYSTEM_POSTGRESQL
3074 ifeq ($(ENABLE_KF5
),TRUE
)
3076 define gb_LinkTarget__use_kf5
3077 $(call gb_LinkTarget_set_include
,$(1),\
3078 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3082 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3083 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3086 $(call gb_LinkTarget_add_libs
,$(1),\
3094 define gb_LinkTarget__use_kf5
3102 ifeq ($(ENABLE_QT5
),TRUE
)
3104 define gb_LinkTarget__use_qt5
3105 $(call gb_LinkTarget_set_include
,$(1),\
3106 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3110 $(call gb_LinkTarget_add_defs
,$(1),\
3111 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3114 $(call gb_LinkTarget_add_libs
,$(1),\
3122 define gb_LinkTarget__use_qt5
3129 # extra python_headers external because pyuno wrapper must not link python
3130 ifneq ($(SYSTEM_PYTHON
),)
3132 define gb_LinkTarget__use_python_headers
3133 $(call gb_LinkTarget_add_defs
,$(1),\
3134 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3137 $(call gb_LinkTarget_set_include
,$(1),\
3138 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3144 define gb_LinkTarget__use_python
3145 $(call gb_LinkTarget__use_python_headers
,$(1))
3147 $(call gb_LinkTarget_add_libs
,$(1),\
3153 else # !SYSTEM_PYTHON
3155 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3159 define gb_LinkTarget__use_python_headers
3160 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3161 $(call gb_LinkTarget_set_include
,$(1),\
3162 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3163 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3164 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3170 define gb_LinkTarget__use_python
3171 $(call gb_LinkTarget__use_python_headers
,$(1))
3173 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3175 $(call gb_LinkTarget_use_package
,$(1),python3
)
3179 $(call gb_LinkTarget_add_libs
,$(1),\
3180 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(if
$(filter X86_64
,$(CPUNAME
)),amd64
,win32
)/python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3182 else ifeq ($(OS
),MACOSX
)
3183 $(call gb_LinkTarget_add_libs
,$(1),\
3184 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3187 $(call gb_LinkTarget_add_libs
,$(1),\
3188 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3189 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
3195 # this is only used by python currently
3196 define gb_ExternalProject__use_libffi
3197 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3201 endif # SYSTEM_PYTHON
3204 ifneq ($(SYSTEM_LIBORCUS
),)
3206 define gb_LinkTarget__use_orcus
3207 $(call gb_LinkTarget_set_include
,$(1),\
3211 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3214 define gb_LinkTarget__use_orcus-parser
3218 else # !SYSTEM_LIBORCUS
3222 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3227 define gb_LinkTarget__use_orcus
3228 $(call gb_LinkTarget_set_include
,$(1),\
3229 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3233 $(call gb_LinkTarget_use_libraries
,$(1),\
3239 define gb_LinkTarget__use_orcus-parser
3240 $(call gb_LinkTarget_set_include
,$(1),\
3241 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3245 $(call gb_LinkTarget_use_libraries
,$(1),\
3253 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3257 define gb_LinkTarget__use_orcus
3258 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3260 $(call gb_LinkTarget_set_include
,$(1),\
3261 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3265 $(call gb_LinkTarget_add_libs
,$(1),\
3266 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.15 \
3269 $(if
$(SYSTEM_BOOST
), \
3270 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3271 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3276 define gb_LinkTarget__use_orcus-parser
3277 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3279 $(call gb_LinkTarget_set_include
,$(1),\
3280 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3284 $(call gb_LinkTarget_add_libs
,$(1),\
3285 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.15 \
3292 endif # SYSTEM_LIBORCUS
3294 ifeq ($(ENABLE_EOT
),TRUE
)
3296 ifneq ($(SYSTEM_LIBEOT
),)
3298 define gb_LinkTarget__use_libeot
3299 $(call gb_LinkTarget_set_include
,$(1),\
3303 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3307 gb_ExternalProject__use_libeot
:=
3309 else # !SYSTEM_LIBEOT
3311 define gb_LinkTarget__use_libeot
3312 $(call gb_LinkTarget_set_include
,$(1),\
3313 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3316 $(call gb_LinkTarget_add_libs
,$(1),\
3317 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3319 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3323 define gb_ExternalProject__use_libeot
3324 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3328 endif # SYSTEM_LIBEOT
3332 gb_LinkTarget__use_libeot
:=
3333 gb_ExternalProject__use_libeot
:=
3339 ifeq ($(USING_X11
), TRUE
)
3341 define gb_LinkTarget__use_Xrandr
3342 $(call gb_LinkTarget_set_include
,$(1),\
3347 $(call gb_LinkTarget_add_libs
,$(1),\
3352 define gb_LinkTarget__use_Xrender
3353 $(call gb_LinkTarget_set_include
,$(1),\
3358 $(call gb_LinkTarget_add_libs
,$(1),\
3366 gb_ExternalProject__use_nss3
:=
3369 ifneq ($(SYSTEM_NSS
),)
3371 define gb_LinkTarget__use_nss3
3372 $(call gb_LinkTarget_add_defs
,$(1),\
3376 $(call gb_LinkTarget_set_include
,$(1),\
3381 $(call gb_LinkTarget_add_libs
,$(1),\
3387 define gb_LinkTarget__use_plc4
3388 $(call gb_LinkTarget__use_nss3
,$(1))
3392 define gb_LinkTarget__use_ssl3
3393 $(call gb_LinkTarget__use_nss3
,$(1))
3399 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3403 define gb_LinkTarget__use_nss3
3404 $(call gb_LinkTarget_use_package
,$(1),nss
)
3405 $(call gb_LinkTarget_set_include
,$(1),\
3407 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3408 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3412 $(call gb_LinkTarget_add_libs
,$(1),\
3413 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3414 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3415 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3418 $(call gb_LinkTarget_add_libs
,$(1),\
3419 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3428 define gb_LinkTarget__use_plc4
3429 $(call gb_LinkTarget_use_package
,$(1),nss
)
3431 $(call gb_LinkTarget_add_libs
,$(1),\
3432 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3435 $(call gb_LinkTarget_add_libs
,$(1),\
3436 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3442 define gb_LinkTarget__use_ssl3
3443 $(call gb_LinkTarget_use_package
,$(1),nss
)
3445 $(call gb_LinkTarget_add_libs
,$(1),\
3446 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3449 $(call gb_LinkTarget_add_libs
,$(1),\
3450 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3456 define gb_ExternalProject__use_nss3
3457 $(call gb_ExternalProject_use_package
,$(1),nss
)
3463 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3465 define gb_LinkTarget__use_breakpad
3466 $(call gb_LinkTarget_set_include
,$(1),\
3467 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3472 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3476 $(call gb_LinkTarget_add_libs
,$(1),\
3477 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3481 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3485 endif # ENABLE_BREAKPAD
3487 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3489 ifneq ($(SYSTEM_GPGMEPP
),)
3491 gb_ExternalProject__use_gpgmepp
:=
3492 gb_ExternalProject__use_libassuan
:=
3493 gb_ExternalProject__use_libgpg-error
:=
3495 define gb_LinkTarget__use_gpgmepp
3496 $(call gb_LinkTarget_set_include
,$(1),\
3498 $$(GPGMEPP_CFLAGS
) \
3501 $(call gb_LinkTarget_add_libs
,$(1),\
3507 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3509 define gb_ExternalProject__use_gpgmepp
3510 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3513 define gb_ExternalProject__use_libassuan
3514 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3517 define gb_ExternalProject__use_libgpg-error
3518 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3522 ifneq ($(filter WNT
,$(OS
)),)
3524 define gb_LinkTarget__use_libgpg-error
3525 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3527 $(call gb_LinkTarget_set_include
,$(1),\
3528 $(GPG_ERROR_CFLAGS
) \
3531 $(call gb_LinkTarget_add_libs
,$(1),\
3532 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3537 define gb_LinkTarget__use_libassuan
3538 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3540 $(call gb_LinkTarget_set_include
,$(1),\
3541 $(LIBASSUAN_CFLAGS
) \
3544 $(call gb_LinkTarget_add_libs
,$(1),\
3545 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3550 define gb_LinkTarget__use_gpgmepp
3551 $(call gb_LinkTarget_set_include
,$(1),\
3552 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3553 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3554 $$(GPG_ERROR_CFLAGS
) \
3557 $(call gb_LinkTarget_use_libraries
,$(1),\
3563 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3568 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3572 $(eval
$(call gb_Helper_register_executables_for_install
,OOO
,ooo
, \
3578 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3580 define gb_LinkTarget__use_gpgmepp
3581 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3583 $(call gb_LinkTarget_set_include
,$(1),\
3584 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3585 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3586 $$(GPG_ERROR_CFLAGS
) \
3589 $(call gb_LinkTarget_add_libs
,$(1),\
3590 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3591 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3592 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3593 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3598 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3608 else # !ENABLE_GPGMEPP
3610 gb_ExternalProject__use_gpgmepp
:=
3611 gb_ExternalProject__use_libassuan
:=
3612 gb_ExternalProject__use_libgpg-error
:=
3614 gb_LinkTarget__use_gpgmepp
:=
3615 gb_LinkTarget__use_libassuan
:=
3616 gb_LinkTarget__use_libgpg-error
:=
3618 endif # ENABLE_GPGMEPP
3620 define gb_LinkTarget__use_dconf
3621 $(call gb_LinkTarget_set_include
,$(1),\
3626 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3629 ### Jars ############################################################
3631 ifneq ($(SYSTEM_HSQLDB
),)
3633 define gb_Jar__use_hsqldb
3634 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3636 define gb_JunitTest__use_hsqldb
3637 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3640 else # !SYSTEM_HSQLDB
3642 ifeq ($(ENABLE_JAVA
),TRUE
)
3643 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3648 define gb_Jar__use_hsqldb
3649 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3651 define gb_JunitTest__use_hsqldb
3652 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3655 endif # SYSTEM_HSQLDB
3658 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3660 ifneq ($(SYSTEM_BSH
),)
3662 define gb_Jar__use_bsh
3663 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3668 ifeq ($(ENABLE_JAVA
),TRUE
)
3669 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3674 define gb_Jar__use_bsh
3675 $(call gb_Jar_use_jar
,$(1),bsh
)
3682 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3684 ifneq ($(SYSTEM_RHINO
),)
3686 define gb_Jar__use_rhino
3687 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3690 else # !SYSTEM_RHINO
3692 ifeq ($(ENABLE_JAVA
),TRUE
)
3693 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3698 define gb_Jar__use_rhino
3699 $(call gb_Jar_use_jar
,$(1),js
)
3702 endif # SYSTEM_RHINO
3706 ifneq ($(SYSTEM_APACHE_COMMONS
),)
3708 define gb_Jar__use_commons-logging
3709 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
3711 gb_ExternalProject__use_commons-logging
:=
3713 else # !SYSTEM_APACHE_COMMONS
3715 ifeq ($(ENABLE_JAVA
),TRUE
)
3716 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3717 commons-logging-
$(COMMONS_LOGGING_VERSION
) \
3721 define gb_Jar__use_commons-logging
3722 $(call gb_Jar_use_external_project
,$(1),apache_commons_logging
)
3723 $(call gb_Jar_use_jar
,$(1),commons-logging-
$(COMMONS_LOGGING_VERSION
))
3725 define gb_ExternalProject__use_commons-logging
3726 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
3729 endif # SYSTEM_APACHE_COMMONS
3732 ifneq ($(SYSTEM_JFREEREPORT
),)
3734 define gb_Jar__use_flow-engine
3735 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3738 define gb_Jar__use_flute
3739 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3742 define gb_Jar__use_libbase
3743 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3746 define gb_Jar__use_libfonts
3747 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3750 define gb_Jar__use_libformula
3751 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3754 define gb_Jar__use_liblayout
3755 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3758 define gb_Jar__use_libloader
3759 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3762 define gb_Jar__use_librepository
3763 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3766 define gb_Jar__use_libserializer
3767 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3770 define gb_Jar__use_libxml
3771 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3774 define gb_Jar__use_sac
3775 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3778 else # !SYSTEM_JFREEREPORT
3780 ifeq ($(ENABLE_JAVA
),TRUE
)
3781 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3789 librepository-1.1
.6 \
3790 libserializer-1.1
.6 \
3796 define gb_Jar__use_flow-engine
3797 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3800 define gb_Jar__use_flute
3801 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3804 define gb_Jar__use_libbase
3805 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3808 define gb_Jar__use_libfonts
3809 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3812 define gb_Jar__use_libformula
3813 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3816 define gb_Jar__use_liblayout
3817 $(call gb_Jar_use_jar
,$(1),liblayout
)
3820 define gb_Jar__use_libloader
3821 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3824 define gb_Jar__use_librepository
3825 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3828 define gb_Jar__use_libserializer
3829 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3832 define gb_Jar__use_libxml
3833 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3836 define gb_Jar__use_sac
3837 $(call gb_Jar_use_jar
,$(1),sac
)
3840 endif # SYSTEM_JFREEREPORT
3845 # FIXME: the library target should be for build too
3846 define gb_Executable__register_bestreversemap
3847 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3848 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3852 # TODO depending on the whole URE might be overkill, but I do not have a
3853 # Windows machine to debug it...
3854 # FIXME: the library target should be for build too
3855 define gb_Executable__register_climaker
3856 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3857 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3858 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3859 $(call gb_UnoApi_get_target
,udkapi
) \
3860 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3864 define gb_Executable__register_cppumaker
3865 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3866 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3870 # This is used to determine what we need for 'build' platform.
3871 # FIXME: the library target should be for build too
3872 define gb_Executable__register_gengal
3873 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3874 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3875 $(call gb_Package_get_target_for_build
,postprocess_images
) \
3876 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3877 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3878 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3879 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3880 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3881 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3882 $(call gb_UnoApi_get_target
,offapi
) \
3883 $(call gb_UnoApi_get_target
,udkapi
) \
3887 ifeq ($(SYSTEM_ICU
),)
3889 define gb_Executable__register_gendict
3890 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3891 $(call gb_Package_get_target_for_build
,icu
) \
3892 $(call gb_Package_get_target_for_build
,icu_ure
) \
3898 define gb_Executable__register_idlc
3899 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3900 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3904 define gb_Executable__register_localize
3905 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3906 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3907 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3912 # FIXME ure/services.rdb needs cleanup
3913 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3914 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3915 # FIXME: the library target should be for build too
3916 define gb_Executable__register_saxparser
3917 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3918 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3919 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3920 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3921 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3922 $(call gb_UnoApi_get_target
,udkapi
) \
3926 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3927 # required due to the settings for URE_SERVICES and URE_TYPES in
3928 # cppuhelper/source/unorc
3929 # FIXME: the library target should be for build too
3930 define gb_Executable__register_uno
3931 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3932 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3933 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3934 $(call gb_UnoApi_get_target
,udkapi
) \
3939 # External executables
3941 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3943 gb_ExternalExecutable__register_xmllint
:=
3945 else # ! SYSTEM_LIBXML_FOR_BUILD
3947 define gb_ExternalExecutable__register_xmllint
3948 $(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
)
3949 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3950 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3951 $(call gb_Package_get_target
,libxml2
) \
3956 endif # SYSTEM_LIBXML_FOR_BUILD
3958 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3960 gb_ExternalExecutable__register_xsltproc
:=
3962 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3964 define gb_ExternalExecutable__register_xsltproc
3965 $(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
)
3966 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3967 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3968 $(call gb_Package_get_target
,libxml2
) \
3969 $(call gb_Package_get_target
,libxslt
) \
3974 endif # SYSTEM_LIBXSLT_FOR_BUILD
3976 ifneq (,$(SYSTEM_UCPP
))
3978 gb_ExternalExecutable__register_ucpp
:=
3980 else # ! SYSTEM_UCPP
3982 define gb_ExternalExecutable__register_ucpp
3983 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3989 ifeq (,$(PYTHON_FOR_BUILD
))
3991 define gb_ExternalExecutable__register_python
3994 # use set_external, to avoid having the command added as prerequisite for the
3995 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3996 # matching rule to build that specific file)
3997 $(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
))
3998 # the Zip ensures that internal python has been built (cannot use the Package
3999 # target, as that is not used on Mac)
4000 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4004 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
4005 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4006 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4014 define gb_ExternalExecutable__register_python
4015 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4016 $(call gb_ExternalExecutable_set_precommand
,python
,PYTHONPATH
=$$$$PYTHONPATH$$$${PYTHONPATH
:+$$$${PYPATH
:+:}}$$$$PYPATH)
4020 endif # PYTHON_FOR_BUILD
4022 ifneq ($(SYSTEM_GENBRK
),)
4024 define gb_ExternalExecutable__register_genbrk
4025 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4029 else # ! SYSTEM_GENBRK
4031 define gb_ExternalExecutable__register_genbrk
4032 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4033 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4034 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4035 $(call gb_Package_get_target_for_build
,icu
) \
4036 $(call gb_Package_get_target_for_build
,icu_ure
) \
4043 ifneq ($(SYSTEM_GENCCODE
),)
4045 define gb_ExternalExecutable__register_genccode
4046 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4050 else # ! SYSTEM_GENCCODE
4052 define gb_ExternalExecutable__register_genccode
4053 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4054 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4055 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4056 $(call gb_Package_get_target_for_build
,icu
) \
4057 $(call gb_Package_get_target_for_build
,icu_ure
) \
4064 ifneq ($(SYSTEM_GENCMN
),)
4066 define gb_ExternalExecutable__register_gencmn
4067 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4071 else # ! SYSTEM_GENCMN
4073 define gb_ExternalExecutable__register_gencmn
4074 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4075 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4076 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4077 $(call gb_Package_get_target_for_build
,icu
) \
4078 $(call gb_Package_get_target_for_build
,icu_ure
) \
4085 ifeq (OWNCLOUD_ANDROID_LIB
,$(filter OWNCLOUD_ANDROID_LIB
,$(BUILD_TYPE
)))
4087 $(eval
$(call gb_Helper_register_jars
,OXT
,\
4088 owncloud-android-library \
4091 define gb_Jar__use_owncloud_android_lib
4092 $(call gb_Jar_use_external_project
,$(1),owncloud-android-lib
)
4093 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,owncloud-android-lib
)/bin
/owncloud-android-library.jar
)
4095 define gb_ExternalProject__use_owncloud_android_lib
4096 $(call gb_ExternalProject_use_external_project
,$(1),owncloud_android_lib
)
4101 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4102 ifneq ($(SYSTEM_BZIP2
),)
4104 define gb_LinkTarget__use_bzip2
4105 $(call gb_LinkTarget_set_include
,$(1),\
4109 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4113 gb_ExternalProject__use_bzip2
:=
4115 else # !SYSTEM_BZIP2
4117 define gb_LinkTarget__use_bzip2
4118 $(call gb_LinkTarget_set_include
,$(1),\
4119 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4124 $(call gb_LinkTarget_add_libs
,$(1),\
4125 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4128 $(call gb_LinkTarget_add_libs
,$(1),\
4129 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4133 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4136 define gb_ExternalProject__use_bzip2
4137 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4143 define gb_LinkTarget__use_clew
4144 $(call gb_LinkTarget_set_include
,$(1), \
4145 -I
$(SRCDIR
)/external
/clew
/source
/include \
4148 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4151 ifneq ($(ENABLE_PDFIUM
),)
4152 define gb_LinkTarget__use_pdfium
4153 $(call gb_LinkTarget_set_include
,$(1),\
4154 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4158 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4160 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4165 ifneq ($(SYSTEM_QRCODEGEN
),)
4167 define gb_LinkTarget__use_qrcodegen
4168 $(call gb_LinkTarget_set_include
,$(1),\
4169 -DSYSTEM_QRCODEGEN \
4171 $(QRCODEGEN_CFLAGS
) \
4173 $(call gb_LinkTarget_add_libs
,$(1),$(QRCODEGEN_LIBS
))
4177 gb_ExternalProject__use_qrcodegen
:=
4179 else # !SYSTEM_QRCODEGEN
4181 define gb_LinkTarget__use_qrcodegen
4182 $(call gb_LinkTarget_use_unpacked
,$(1),qrcodegen
)
4183 $(call gb_LinkTarget_set_include
,$(1),\
4184 -I
$(call gb_UnpackedTarball_get_dir
,qrcodegen
/cpp/)\
4187 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4193 define gb_ExternalProject__use_qrcodegen
4194 $(call gb_ExternalProject_use_static_libraries
,$(1),qrcodegen
)
4198 endif # SYSTEM_QRCODEGEN
4200 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4201 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4204 # vim: set noet sw=4 ts=4: