1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # this file describes all the external libraries
21 # depending on the configure options these may be taken from the system,
22 # or the internal/bundled copy may be built.
24 # for every external, a function gb_LinkTarget__use_FOO is defined,
25 # once for the system case, once for the internal case.
27 # in the system case, no libraries should be registered, but the target-local
28 # variable LIBS should be set to FOO_LIBS, and INCLUDES to FOO_CFLAGS.
31 ifeq ($(CPUNAME
),X86_64
)
32 wnt_arch_subdir_optional
=x64
/
33 wnt_arch_subdir_mandatory
=x64
34 else ifeq ($(CPUNAME
),INTEL
)
35 wnt_arch_subdir_mandatory
=Win32
40 ifneq ($(SYSTEM_ODBC_HEADERS
),)
42 define gb_LinkTarget__use_odbc_headers
43 $(call gb_LinkTarget_add_defs
,$(1),\
44 -DSYSTEM_ODBC_HEADERS \
49 else # !SYSTEM_ODBC_HEADERS
51 define gb_LinkTarget__use_odbc_headers
52 $(call gb_LinkTarget_set_include
,$(1),\
53 -I
$(SRCDIR
)/external
/unixODBC
/inc \
59 endif # SYSTEM_ODBC_HEADERS
61 ifneq ($(SYSTEM_MDDS
),)
63 gb_ExternalProject__use_mdds_headers
:=
65 define gb_LinkTarget__use_mdds_headers
66 $(call gb_LinkTarget_set_include
,$(1),\
75 define gb_ExternalProject__use_mdds_headers
76 $(call gb_ExternalProject_use_unpacked
,$(1),mdds
)
80 define gb_LinkTarget__use_mdds_headers
81 $(call gb_LinkTarget_use_unpacked
,$(1),mdds
)
82 $(call gb_LinkTarget_set_include
,$(1),\
91 ifneq ($(SYSTEM_GLM
),)
93 define gb_LinkTarget__use_glm_headers
94 $(call gb_LinkTarget_add_defs
,$(1),\
95 -DGLM_FORCE_CTOR_INIT \
100 gb_ExternalProject__use_glm_headers
:=
104 define gb_LinkTarget__use_glm_headers
105 $(call gb_LinkTarget_add_defs
,$(1),\
106 -DGLM_FORCE_CTOR_INIT \
108 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
109 $(call gb_LinkTarget_set_include
,$(1),\
116 define gb_ExternalProject__use_glm_headers
117 $(call gb_ExternalProject_use_unpacked
,$(1),glm
)
123 ifneq ($(ENABLE_SKIA
),)
124 define gb_LinkTarget__use_skia
125 $(call gb_LinkTarget_set_include
,$(1),\
126 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/core \
127 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/effects \
128 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/gpu \
129 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/config \
130 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/ports \
131 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/private \
132 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/include/third_party
/vulkan \
133 -I
$(call gb_UnpackedTarball_get_dir
,skia
)/tools
/gpu \
134 -I
$(call gb_UnpackedTarball_get_dir
,skia
) \
135 -I
$(SRCDIR
)/external
/skia
/inc
/ \
138 $(call gb_LinkTarget_use_libraries
,$(1),skia
)
139 $(call gb_LinkTarget_add_defs
,$(1),\
140 -DSK_USER_CONFIG_HEADER
="<$(BUILDDIR)/config_host/config_skia.h>" \
144 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
149 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
151 define gb_LinkTarget__use_sane_headers
152 $(call gb_LinkTarget_set_include
,$(1),\
153 $(if
$(filter WNT
,$(OS
)), \
154 -I
$(call gb_UnpackedTarball_get_dir
,twain_dsm
/pub
/include), \
155 -I
$(SRCDIR
)/external
/sane
/inc
) \
160 $(call gb_LinkTarget_use_unpacked
,$(1),twain_dsm
)
167 gb_LinkTarget__use_sane_headers
:=
171 ifneq ($(SYSTEM_BLUEZ
),)
173 gb_LinkTarget__use_bluez_bluetooth_headers
:=
177 define gb_LinkTarget__use_bluez_bluetooth_headers
178 $(call gb_LinkTarget_set_include
,$(1),\
179 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
189 ifneq ($(SYSTEM_CPPUNIT
),)
191 define gb_LinkTarget__use_cppunit
192 $(call gb_LinkTarget_set_include
,$(1),\
197 $(call gb_LinkTarget_add_libs
,$(1),\
203 else # !SYSTEM_CPPUNIT
205 define gb_LinkTarget__use_cppunit
206 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
208 $(call gb_LinkTarget_set_include
,$(1),\
209 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
214 $(call gb_LinkTarget_add_libs
,$(1),\
215 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
218 $(call gb_LinkTarget_add_libs
,$(1),\
219 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
225 endif # SYSTEM_CPPUNIT
228 ifeq ($(ENABLE_EPOXY
),TRUE
)
229 ifeq ($(SYSTEM_EPOXY
),TRUE
)
231 define gb_LinkTarget__use_epoxy
232 $(call gb_LinkTarget_set_include
,$(1),\
236 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
240 gb_ExternalProject__use_epoxy
:=
244 define gb_LinkTarget__use_epoxy
245 $(call gb_LinkTarget_set_include
,$(1),\
246 -I
$(call gb_UnpackedTarball_get_dir
,epoxy
/include) \
250 $(call gb_LinkTarget_use_libraries
,$(1),\
256 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
260 define gb_ExternalProject__use_epoxy
261 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
265 endif # !SYSTEM_EPOXY
268 gb_LinkTarget__use_epoxy
:=
269 gb_ExternalProject__use_epoxy
:=
271 endif # !ENABLE_EPOXY
274 define gb_LinkTarget__use_iconv
276 $(call gb_LinkTarget_add_libs
,$(1),libiconv.lib
)
278 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
282 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
284 define gb_LinkTarget__use_mariadb-connector-c
285 $(call gb_LinkTarget_set_include
,$(1),\
289 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
292 gb_ExternalProject__use_mariadb-connector-c
:=
294 else # !SYSTEM_MARIADB_CONNECTOR_C
296 define gb_LinkTarget__use_mariadb-connector-c
297 $(call gb_LinkTarget_set_include
,$(1),\
301 $(call gb_LinkTarget_use_static_libraries
,$(1),\
302 mariadb-connector-c \
305 $(call gb_LinkTarget_add_libs
,$(1),\
309 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
318 define gb_ExternalProject__use_mariadb-connector-c
319 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
323 endif # SYSTEM_MARIADB_CONNECTOR_C
326 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
328 define gb_LinkTarget__use_mysql
330 $(call gb_LinkTarget_add_defs
,$(1),\
334 $(call gb_LinkTarget_add_libs
,$(1),\
338 $(call gb_LinkTarget_set_include
,$(1),\
346 define gb_LinkTarget__use_mysql
348 $(call gb_LinkTarget_set_include
,$(1),\
356 ifneq ($(SYSTEM_ZLIB
),)
358 define gb_LinkTarget__use_zlib
359 $(call gb_LinkTarget_add_defs
,$(1),\
363 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
368 define gb_LinkTarget__use_zlib_x64
372 gb_ExternalProject__use_zlib
:=
376 define gb_LinkTarget__use_zlib_multiarch
377 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
379 $(call gb_LinkTarget_add_defs
,$(1), \
383 $(call gb_LinkTarget_set_include
,$(1),\
388 $(call gb_LinkTarget_use_static_libraries
,$(1),\
394 define gb_LinkTarget__use_zlib
395 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
399 define gb_LinkTarget__use_zlib_x64
400 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
404 define gb_ExternalProject__use_zlib
405 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
412 ifneq ($(SYSTEM_LIBJPEG
),)
414 define gb_LinkTarget__use_libjpeg
415 $(call gb_LinkTarget_set_include
,$(1),\
419 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
420 $(call gb_LinkTarget_set_ldflags
,$(1),\
421 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
426 gb_ExternalProject__use_libjpeg
:=
430 define gb_LinkTarget__use_libjpeg
431 $(call gb_LinkTarget_set_include
,$(1),\
432 -I
$(call gb_UnpackedTarball_get_dir
,libjpeg-turbo
) \
435 $(call gb_LinkTarget_use_static_libraries
,$(1),libjpeg-turbo
)
439 define gb_ExternalProject__use_libjpeg
440 $(call gb_ExternalProject_use_static_libraries
,$(1),libjpeg-turbo
)
444 endif # SYSTEM_LIBJPEG
446 ifneq ($(SYSTEM_MYTHES
),)
448 define gb_LinkTarget__use_mythes
449 $(call gb_LinkTarget_set_include
,$(1),\
453 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
457 else # !SYSTEM_MYTHES
459 define gb_LinkTarget__use_mythes
460 $(call gb_LinkTarget_set_include
,$(1),\
461 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
466 $(call gb_LinkTarget_use_static_libraries
,$(1),\
470 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
471 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
476 endif # SYSTEM_MYTHES
479 ifneq ($(SYSTEM_EXPAT
),)
481 define gb_LinkTarget__use_expat_impl
482 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
484 $(call gb_LinkTarget_add_defs
,$(1),\
488 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
492 gb_ExternalProject__use_expat
:=
496 define gb_LinkTarget__use_expat_impl
497 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
499 $(call gb_LinkTarget_set_include
,$(1),\
500 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
504 $(call gb_LinkTarget_use_static_libraries
,$(1),\
510 define gb_ExternalProject__use_expat
511 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
517 define gb_LinkTarget__use_expat
518 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
522 define gb_LinkTarget__use_expat_x64
523 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
527 ifneq ($(SYSTEM_HYPH
),)
529 define gb_LinkTarget__use_hyphen
530 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
536 define gb_LinkTarget__use_hyphen
537 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
538 $(call gb_LinkTarget_set_include
,$(1),\
539 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
544 $(call gb_LinkTarget_use_static_libraries
,$(1),\
548 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
549 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
556 ifneq ($(SYSTEM_HUNSPELL
),)
558 define gb_LinkTarget__use_hunspell
559 $(call gb_LinkTarget_set_include
,$(1),\
563 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
567 gb_ExternalProject__use_hunspell
:=
569 else # !SYSTEM_HUNSPELL
571 define gb_LinkTarget__use_hunspell
572 $(call gb_LinkTarget_add_defs
,$(1),\
575 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
576 $(call gb_LinkTarget_set_include
,$(1),\
577 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
582 $(call gb_LinkTarget_use_static_libraries
,$(1),\
586 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
587 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
592 define gb_ExternalProject__use_hunspell
593 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
597 endif # SYSTEM_HUNSPELL
600 ifneq ($(SYSTEM_BOOST
),)
602 define gb_LinkTarget__use_boost_lib
603 $(call gb_LinkTarget_set_include
,$(1),\
608 $(call gb_LinkTarget_add_ldflags
,$(1),\
612 $(call gb_LinkTarget_add_libs
,$(1),$(2))
616 define gb_LinkTarget__use_boost_locale
617 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
621 define gb_LinkTarget__use_boost_date_time
622 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
626 define gb_LinkTarget__use_boost_filesystem
627 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
631 gb_ExternalProject__use_boost_filesystem
:=
633 define gb_LinkTarget__use_boost_iostreams
634 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
638 gb_ExternalProject__use_boost_iostreams
:=
640 define gb_LinkTarget__use_boost_system
641 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
645 gb_ExternalProject__use_boost_system
:=
647 define gb_LinkTarget__use_boost_headers
648 $(call gb_LinkTarget_set_include
,$(1),\
655 gb_ExternalProject__use_boost_headers
:=
659 define gb_LinkTarget__use_boost_lib
660 $(call gb_LinkTarget_add_defs
,$(1),\
664 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
668 define gb_LinkTarget__use_boost_locale
669 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
670 $(call gb_LinkTarget_add_libs
,$(1),\
671 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
676 define gb_LinkTarget__use_boost_date_time
677 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
681 define gb_LinkTarget__use_boost_filesystem
682 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
686 define gb_ExternalProject__use_boost_filesystem
687 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
690 define gb_LinkTarget__use_boost_iostreams
691 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
695 define gb_ExternalProject__use_boost_iostreams
696 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
699 define gb_LinkTarget__use_boost_system
700 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
704 define gb_ExternalProject__use_boost_system
705 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
708 define gb_LinkTarget__use_boost_headers
709 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
710 $(call gb_LinkTarget_set_include
,$(1),\
717 define gb_ExternalProject__use_boost_headers
718 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
725 ifneq ($(SYSTEM_LIBCMIS
),)
727 define gb_LinkTarget__use_libcmis
728 $(call gb_LinkTarget_set_include
,$(1),\
732 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
736 else # !SYSTEM_LIBCMIS
738 define gb_LinkTarget__use_libcmis
739 $(call gb_LinkTarget_set_include
,$(1),\
740 -I
$(call gb_UnpackedTarball_get_dir
,libcmis
)/inc \
743 $(call gb_LinkTarget_use_static_libraries
,$(1),\
749 endif # SYSTEM_LIBCMIS
751 ifeq ($(ENABLE_JAVA
),TRUE
)
753 define gb_LinkTarget__use_jawt
754 $(call gb_LinkTarget_add_libs
,$(1),\
762 gb_LinkTarget__use_jawt
:=
766 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
768 define gb_LinkTarget__use_libatomic_ops
769 $(call gb_LinkTarget_set_include
,$(1),\
771 $(LIBATOMIC_OPS_CFLAGS
) \
773 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
776 gb_ExternalProject__use_libatomic_ops
:=
778 else # !SYSTEM_LIBATOMIC_OPS
780 define gb_LinkTarget__use_libatomic_ops
781 $(call gb_LinkTarget_set_include
,$(1),\
782 $(LIBATOMIC_OPS_CFLAGS
) \
784 $(LIBATOMIC_OPS_CFLAGS
) \
786 $(call gb_LinkTarget_use_external_project
,$(1),\
790 $(call gb_LinkTarget_add_libs
,$(1),\
791 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
796 define gb_ExternalProject__use_libatomic_ops
797 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
801 endif # SYSTEM_LIBATOMIC_OPS
804 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
806 define gb_LinkTarget__use_libexttextcat
807 $(call gb_LinkTarget_set_include
,$(1),\
809 $(LIBEXTTEXTCAT_CFLAGS
) \
811 $(call gb_LinkTarget_add_defs
,$(1),\
812 -DSYSTEM_LIBEXTTEXTCAT \
814 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
818 else # !SYSTEM_LIBEXTTEXTCAT
820 define gb_LinkTarget__use_libexttextcat
821 $(call gb_LinkTarget_set_include
,$(1),\
822 -I
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
827 $(call gb_LinkTarget_use_static_libraries
,$(1),\
831 $(call gb_LinkTarget_add_libs
,$(1),\
832 $(call gb_UnpackedTarball_get_dir
,libexttextcat
)/src
/.libs
/libexttextcat-2.0.a\
834 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
840 endif # SYSTEM_LIBEXTTEXTCAT
843 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
845 define gb_LinkTarget__use_libnumbertext
846 $(call gb_LinkTarget_set_include
,$(1),\
848 $(LIBNUMBERTEXT_CFLAGS
) \
850 $(call gb_LinkTarget_add_defs
,$(1),\
851 -DSYSTEM_LIBNUMBERTEXT \
853 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
857 else # !SYSTEM_LIBNUMBERTEXT
859 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
860 libnumbertext_numbertext \
863 define gb_LinkTarget__use_libnumbertext
864 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
865 $(call gb_LinkTarget_set_include
,$(1),\
866 -I
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
871 $(call gb_LinkTarget_use_static_libraries
,$(1),\
876 $(call gb_LinkTarget_add_libs
,$(1),\
877 $(call gb_UnpackedTarball_get_dir
,libnumbertext
)/src
/.libs
/libnumbertext-1.0.a\
879 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
885 endif # SYSTEM_LIBNUMBERTEXT
888 ifneq ($(SYSTEM_LIBXML
),)
890 define gb_LinkTarget__use_libxml2
891 $(call gb_LinkTarget_add_defs
,$(1),\
894 $(call gb_LinkTarget_set_include
,$(1),\
898 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
901 gb_ExternalProject__use_libxml2
:=
903 else # !SYSTEM_LIBXML
905 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
909 define gb_LinkTarget__use_libxml2
910 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
911 $(call gb_LinkTarget_set_include
,$(1),\
916 $(call gb_LinkTarget_add_libs
,$(1),\
921 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
925 define gb_ExternalProject__use_libxml2
926 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
929 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
934 endif # SYSTEM_LIBXML
937 ifneq ($(SYSTEM_LIBXSLT
),)
939 define gb_LinkTarget__use_libxslt
940 $(call gb_LinkTarget_set_include
,$(1),\
944 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
948 define gb_LinkTarget__use_libexslt
949 $(call gb_LinkTarget_set_include
,$(1),\
954 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
958 else # !SYSTEM_LIBXSLT
960 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
964 define gb_LinkTarget__use_libxslt
965 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
966 $(call gb_LinkTarget_set_include
,$(1),\
968 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
972 $(call gb_LinkTarget_add_libs
,$(1),\
973 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
976 $(call gb_LinkTarget_add_libs
,$(1),\
977 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libxslt
/.libs
-lxslt \
983 define gb_LinkTarget__use_libexslt
984 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
985 $(call gb_LinkTarget_set_include
,$(1),\
987 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
991 $(call gb_LinkTarget_add_libs
,$(1),\
992 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
995 $(call gb_LinkTarget_add_libs
,$(1),\
996 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libexslt
/.libs
-lexslt \
1002 endif # SYSTEM_LIBXSLT
1005 ifneq ($(SYSTEM_XMLSEC
),)
1007 define gb_LinkTarget__use_xmlsec
1008 $(call gb_LinkTarget_add_defs
,$(1),\
1011 $(call gb_LinkTarget_set_include
,$(1),\
1015 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
1019 gb_ExternalProject__use_xmlsec
:=
1021 else # !SYSTEM_XMLSEC
1023 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1027 define gb_LinkTarget__use_xmlsec
1031 endif # SYSTEM_XMLSEC
1033 ifneq ($(SYSTEM_LIBLANGTAG
),)
1035 define gb_LinkTarget__use_liblangtag
1036 $(call gb_LinkTarget_set_include
,$(1),\
1038 $(LIBLANGTAG_CFLAGS
) \
1041 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1045 gb_ExternalProject__use_liblangtag
:=
1047 else # !SYSTEM_LIBLANGTAG
1049 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1055 define gb_LinkTarget__use_liblangtag
1056 $(call gb_LinkTarget_set_include
,$(1),\
1057 $(LIBLANGTAG_CFLAGS
) \
1060 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1061 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1067 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1071 define gb_LinkTarget__use_liblangtag
1072 $(call gb_LinkTarget_set_include
,$(1),\
1073 $(LIBLANGTAG_CFLAGS
) \
1076 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1077 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1083 define gb_ExternalProject__use_liblangtag
1084 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1088 endif # SYSTEM_LIBLANGTAG
1091 ifneq ($(SYSTEM_REDLAND
),)
1093 define gb_LinkTarget__use_librdf
1094 $(call gb_LinkTarget_add_defs
,$(1),\
1097 $(call gb_LinkTarget_set_include
,$(1),\
1101 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1105 gb_LinkTarget__use_redland_headers
:=
1107 gb_LinkTarget__use_raptor_headers
:=
1109 gb_LinkTarget__use_rasqal_headers
:=
1111 else # !SYSTEM_REDLAND
1113 define gb_LinkTarget__use_redland_headers
1114 $(call gb_LinkTarget_set_include
,$(1),\
1115 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1121 define gb_LinkTarget__use_raptor_headers
1122 $(call gb_LinkTarget_set_include
,$(1),\
1123 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1129 define gb_LinkTarget__use_rasqal_headers
1130 $(call gb_LinkTarget_set_include
,$(1),\
1131 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1137 ifneq ($(OS
),ANDROID
)
1140 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1146 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1153 define gb_LinkTarget__use_librdf
1155 $(call gb_LinkTarget_use_libraries
,$(1),\
1160 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1162 $(call gb_LinkTarget_add_libs
,$(1),\
1163 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1164 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1165 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1173 define gb_LinkTarget__use_librdf
1174 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1180 endif # SYSTEM_REDLAND
1182 ifneq ($(SYSTEM_CAIRO
),)
1184 define gb_LinkTarget__use_cairo
1185 $(call gb_LinkTarget_set_include
,$(1),\
1189 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1190 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1194 else # !SYSTEM_CAIRO
1196 ifneq ($(filter-out MACOSX WNT
,$(OS
)),)
1198 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1203 define gb_LinkTarget__use_cairo
1204 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1205 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1206 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1207 $(call gb_LinkTarget_set_include
,$(1),\
1208 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1209 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1210 -I
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman \
1213 $(call gb_LinkTarget_add_libs
,$(1),\
1214 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1215 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1220 endif # !MACOSX, !WNT
1222 endif # !SYSTEM_CAIRO
1224 ifneq ($(SYSTEM_FREETYPE
),)
1226 define gb_LinkTarget__use_freetype_headers
1227 $(call gb_LinkTarget_set_include
,$(1),\
1229 $(FREETYPE_CFLAGS
) \
1234 gb_ExternalProject__use_freetype
:=
1238 define gb_LinkTarget__use_freetype_headers
1239 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1240 $(call gb_LinkTarget_set_include
,$(1),\
1241 $(FREETYPE_CFLAGS
) \
1247 define gb_ExternalProject__use_freetype
1248 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1252 endif # SYSTEM_FREETYPE
1254 define gb_LinkTarget__use_freetype
1255 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1256 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1260 ifneq ($(SYSTEM_FONTCONFIG
),)
1262 define gb_LinkTarget__use_fontconfig
1263 $(call gb_LinkTarget_set_include
,$(1),\
1265 $(FONTCONFIG_CFLAGS
) \
1268 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1272 gb_ExternalProject__use_fontconfig
:=
1276 define gb_LinkTarget__use_fontconfig
1277 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1278 $(call gb_LinkTarget_set_include
,$(1),\
1279 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1283 $(call gb_LinkTarget_add_libs
,$(1),\
1284 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1289 define gb_ExternalProject__use_fontconfig
1290 $(call gb_ExternalProject_use_external_project
,$(1),fontconfig
)
1294 endif # SYSTEM_FONTCONFIG
1296 ifneq ($(SYSTEM_GRAPHITE
),)
1298 define gb_LinkTarget__use_graphite
1299 $(call gb_LinkTarget_set_include
,$(1),\
1301 $(GRAPHITE_CFLAGS
) \
1303 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1307 gb_ExternalProject__use_graphite
:=
1309 else # !SYSTEM_GRAPHITE
1311 define gb_LinkTarget__use_graphite
1312 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1313 $(call gb_LinkTarget_set_include
,$(1),\
1314 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1317 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1323 define gb_ExternalProject__use_graphite
1324 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1329 endif # SYSTEM_GRAPHITE
1331 ifneq ($(SYSTEM_ICU
),)
1333 gb_LinkTarget__use_icu_headers
:=
1334 gb_ExternalProject__use_icu
:=
1336 define gb_LinkTarget__use_icudata
1337 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1340 define gb_LinkTarget__use_icui18n
1341 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1344 define gb_LinkTarget__use_icuuc
1345 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1351 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1355 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1359 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1365 define gb_LinkTarget__use_icu_headers
1366 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1367 $(call gb_LinkTarget_set_include
,$(1),\
1368 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1369 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1370 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1376 define gb_ExternalProject__use_icu
1377 $(call gb_ExternalProject_use_package
,$(1),icu
)
1381 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1382 define gb_LinkTarget__use_icudata
1383 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1386 $(call gb_LinkTarget_add_libs
,$(1),\
1387 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1390 $(call gb_LinkTarget_add_libs
,$(1),\
1391 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1397 define gb_LinkTarget__use_icui18n
1398 $(call gb_LinkTarget_use_package
,$(1),icu
)
1401 $(call gb_LinkTarget_add_libs
,$(1),\
1402 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1405 $(call gb_LinkTarget_add_libs
,$(1),\
1406 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1412 define gb_LinkTarget__use_icuuc
1413 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1416 $(call gb_LinkTarget_add_libs
,$(1),\
1417 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1420 $(call gb_LinkTarget_add_libs
,$(1),\
1421 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1429 ifneq ($(SYSTEM_HARFBUZZ
),)
1431 define gb_LinkTarget__use_harfbuzz
1432 $(call gb_LinkTarget_set_include
,$(1),\
1434 $(HARFBUZZ_CFLAGS
) \
1436 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1440 gb_ExternalProject__use_harfbuzz
:=
1442 else # SYSTEM_HARFBUZZ != TRUE
1444 define gb_LinkTarget__use_harfbuzz
1445 $(call gb_LinkTarget_set_include
,$(1),\
1446 $(HARFBUZZ_CFLAGS
) \
1449 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1450 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1451 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1455 define gb_ExternalProject__use_harfbuzz
1456 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1460 endif # SYSTEM_HARFBUZZ
1462 ifneq ($(ENABLE_OPENSSL
),TRUE
)
1464 gb_ExternalProject__use_openssl
:=
1465 gb_LinkTarget__use_openssl_headers
:=
1466 gb_LinkTarget__use_openssl
:=
1468 else # ENABLE_OPENSSL
1470 ifneq ($(SYSTEM_OPENSSL
),)
1472 gb_LinkTarget__use_openssl_headers
:=
1473 gb_ExternalProject__use_openssl
:=
1475 define gb_LinkTarget__use_openssl
1476 $(call gb_LinkTarget_set_include
,$(1),\
1480 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1484 else # !SYSTEM_OPENSSL
1486 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1490 define gb_ExternalProject__use_openssl
1491 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1495 define gb_LinkTarget__use_openssl_headers
1496 $(call gb_LinkTarget_use_external_project
,$(1),openssl
,full
)
1497 $(call gb_LinkTarget_set_include
,$(1),\
1498 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1504 define gb_LinkTarget__use_openssl
1505 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1507 $(call gb_LinkTarget_add_libs
,$(1),\
1508 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.lib \
1509 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.lib \
1512 $(call gb_LinkTarget_add_libs
,$(1),\
1513 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1514 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1515 $(if
$(filter $(OS
),LINUX
),-pthread
) \
1517 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1518 ifeq ($(OS
),SOLARIS
)
1519 $(call gb_LinkTarget_add_libs
,$(1),\
1528 endif # SYSTEM_OPENSSL
1529 endif # ENABLE_OPENSSL
1532 ifneq ($(SYSTEM_CDR
),)
1534 define gb_LinkTarget__use_cdr
1535 $(call gb_LinkTarget_set_include
,$(1),\
1539 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1545 define gb_LinkTarget__use_cdr
1546 $(call gb_LinkTarget_set_include
,$(1),\
1547 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1550 $(call gb_LinkTarget_add_libs
,$(1),\
1551 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1553 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1559 ifneq ($(SYSTEM_EBOOK
),)
1561 define gb_LinkTarget__use_ebook
1562 $(call gb_LinkTarget_set_include
,$(1),\
1566 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1570 gb_ExternalProject__use_ebook
:=
1572 else # !SYSTEM_EBOOK
1574 define gb_LinkTarget__use_ebook
1575 $(call gb_LinkTarget_set_include
,$(1),\
1576 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1579 $(call gb_LinkTarget_add_libs
,$(1),\
1580 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1582 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1586 define gb_ExternalProject__use_ebook
1587 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1591 endif # SYSTEM_EBOOK
1594 ifneq ($(SYSTEM_ETONYEK
),)
1596 define gb_LinkTarget__use_etonyek
1597 $(call gb_LinkTarget_set_include
,$(1),\
1601 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1605 gb_ExternalProject__use_etonyek
:=
1607 else # !SYSTEM_ETONYEK
1611 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1615 define gb_LinkTarget__use_etonyek
1616 $(call gb_LinkTarget_set_include
,$(1),\
1617 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1620 $(call gb_LinkTarget_use_libraries
,$(1),\
1628 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1632 define gb_LinkTarget__use_etonyek
1633 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1635 $(call gb_LinkTarget_set_include
,$(1),\
1636 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1637 -DLIBETONYEK_VISIBILITY \
1640 $(call gb_LinkTarget_add_libs
,$(1),\
1641 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1643 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1647 define gb_ExternalProject__use_etonyek
1648 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1654 endif # SYSTEM_ETONYEK
1657 ifneq ($(SYSTEM_FREEHAND
),)
1659 define gb_LinkTarget__use_freehand
1660 $(call gb_LinkTarget_set_include
,$(1),\
1662 $(FREEHAND_CFLAGS
) \
1664 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1668 gb_ExternalProject__use_freehand
:=
1670 else # !SYSTEM_FREEHAND
1672 define gb_LinkTarget__use_freehand
1673 $(call gb_LinkTarget_set_include
,$(1),\
1674 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1677 $(call gb_LinkTarget_add_libs
,$(1),\
1678 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1680 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1684 define gb_ExternalProject__use_freehand
1685 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1689 endif # SYSTEM_FREEHAND
1692 ifneq ($(SYSTEM_ODFGEN
),)
1694 define gb_LinkTarget__use_odfgen
1695 $(call gb_LinkTarget_set_include
,$(1),\
1699 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1703 else # !SYSTEM_ODFGEN
1707 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1711 define gb_LinkTarget__use_odfgen
1712 $(call gb_LinkTarget_set_include
,$(1),\
1713 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1716 $(call gb_LinkTarget_use_libraries
,$(1),\
1724 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1728 define gb_LinkTarget__use_odfgen
1729 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1731 $(call gb_LinkTarget_set_include
,$(1),\
1732 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1733 -DLIBODFGEN_VISIBILITY \
1736 $(call gb_LinkTarget_add_libs
,$(1),\
1737 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1744 endif # SYSTEM_ODFGEN
1746 ifneq ($(SYSTEM_EPUBGEN
),)
1748 define gb_LinkTarget__use_epubgen
1749 $(call gb_LinkTarget_set_include
,$(1),\
1753 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1756 gb_ExternalProject__use_epubgen
:=
1758 else # !SYSTEM_EPUBGEN
1760 define gb_LinkTarget__use_epubgen
1761 $(call gb_LinkTarget_set_include
,$(1),\
1762 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1765 $(call gb_LinkTarget_add_libs
,$(1),\
1766 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1768 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1771 define gb_ExternalProject__use_epubgen
1772 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1776 endif # SYSTEM_EPUBGEN
1778 ifneq ($(SYSTEM_REVENGE
),)
1780 define gb_LinkTarget__use_revenge
1781 $(call gb_LinkTarget_set_include
,$(1),\
1785 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1789 gb_ExternalProject__use_revenge
:=
1791 else # !SYSTEM_REVENGE
1795 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1799 define gb_LinkTarget__use_revenge
1800 $(call gb_LinkTarget_set_include
,$(1),\
1804 $(call gb_LinkTarget_use_libraries
,$(1),\
1810 define gb_ExternalProject__use_revenge
1811 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1817 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1821 define gb_LinkTarget__use_revenge
1822 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1824 $(call gb_LinkTarget_set_include
,$(1),\
1826 -DLIBREVENGE_VISIBILITY \
1829 $(call gb_LinkTarget_add_libs
,$(1),\
1834 define gb_ExternalProject__use_revenge
1835 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1841 endif # SYSTEM_REVENGE
1844 ifneq ($(SYSTEM_ABW
),)
1846 define gb_LinkTarget__use_abw
1847 $(call gb_LinkTarget_set_include
,$(1),\
1851 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1854 gb_ExternalProject__use_abw
:=
1858 define gb_LinkTarget__use_abw
1859 $(call gb_LinkTarget_set_include
,$(1),\
1860 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1863 $(call gb_LinkTarget_add_libs
,$(1),\
1864 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1866 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1869 define gb_ExternalProject__use_abw
1870 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1877 ifneq ($(SYSTEM_MSPUB
),)
1879 define gb_LinkTarget__use_mspub
1880 $(call gb_LinkTarget_set_include
,$(1),\
1884 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1888 else # !SYSTEM_MSPUB
1890 define gb_LinkTarget__use_mspub
1891 $(call gb_LinkTarget_set_include
,$(1),\
1892 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1895 $(call gb_LinkTarget_add_libs
,$(1),\
1896 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1898 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1902 endif # SYSTEM_MSPUB
1905 ifneq ($(SYSTEM_PAGEMAKER
),)
1907 define gb_LinkTarget__use_pagemaker
1908 $(call gb_LinkTarget_set_include
,$(1),\
1910 $(PAGEMAKER_CFLAGS
) \
1912 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1915 gb_ExternalProject__use_pagemaker
:=
1917 else # !SYSTEM_PAGEMAKER
1919 define gb_LinkTarget__use_pagemaker
1920 $(call gb_LinkTarget_set_include
,$(1),\
1921 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1924 $(call gb_LinkTarget_add_libs
,$(1),\
1925 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1927 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1930 define gb_ExternalProject__use_pagemaker
1931 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1935 endif # SYSTEM_PAGEMAKER
1938 ifneq ($(SYSTEM_QXP
),)
1940 define gb_LinkTarget__use_qxp
1941 $(call gb_LinkTarget_set_include
,$(1),\
1945 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
1948 gb_ExternalProject__use_qxp
:=
1952 define gb_LinkTarget__use_qxp
1953 $(call gb_LinkTarget_set_include
,$(1),\
1954 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
1957 $(call gb_LinkTarget_add_libs
,$(1),\
1958 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1960 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
1963 define gb_ExternalProject__use_qxp
1964 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
1971 ifneq ($(SYSTEM_ZMF
),)
1973 define gb_LinkTarget__use_zmf
1974 $(call gb_LinkTarget_set_include
,$(1),\
1978 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
1981 gb_ExternalProject__use_zmf
:=
1985 define gb_LinkTarget__use_zmf
1986 $(call gb_LinkTarget_set_include
,$(1),\
1987 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
1990 $(call gb_LinkTarget_add_libs
,$(1),\
1991 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1993 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
1996 define gb_ExternalProject__use_zmf
1997 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2004 ifneq ($(SYSTEM_VISIO
),)
2006 define gb_LinkTarget__use_visio
2007 $(call gb_LinkTarget_set_include
,$(1),\
2011 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2015 else # !SYSTEM_VISIO
2017 define gb_LinkTarget__use_visio
2018 $(call gb_LinkTarget_set_include
,$(1),\
2019 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2022 $(call gb_LinkTarget_add_libs
,$(1),\
2023 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2025 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2029 endif # SYSTEM_VISIO
2032 ifneq ($(SYSTEM_WPD
),)
2034 define gb_LinkTarget__use_wpd
2035 $(call gb_LinkTarget_set_include
,$(1),\
2039 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2042 gb_ExternalProject__use_wpd
:=
2048 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2052 define gb_LinkTarget__use_wpd
2053 $(call gb_LinkTarget_set_include
,$(1),\
2057 $(call gb_LinkTarget_use_libraries
,$(1),\
2063 define gb_ExternalProject__use_wpd
2064 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2070 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2074 define gb_LinkTarget__use_wpd
2075 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2077 $(call gb_LinkTarget_set_include
,$(1),\
2081 $(call gb_LinkTarget_add_libs
,$(1),\
2087 define gb_ExternalProject__use_wpd
2088 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2097 ifneq ($(SYSTEM_WPG
),)
2099 define gb_LinkTarget__use_wpg
2100 $(call gb_LinkTarget_set_include
,$(1),\
2104 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2107 gb_ExternalProject__use_wpg
:=
2113 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2117 define gb_LinkTarget__use_wpg
2118 $(call gb_LinkTarget_set_include
,$(1),\
2119 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2122 $(call gb_LinkTarget_use_libraries
,$(1),\
2130 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2134 define gb_LinkTarget__use_wpg
2135 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2137 $(call gb_LinkTarget_set_include
,$(1),\
2138 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2141 $(call gb_LinkTarget_add_libs
,$(1),\
2142 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2152 ifneq ($(SYSTEM_WPS
),)
2154 define gb_LinkTarget__use_wps
2155 $(call gb_LinkTarget_set_include
,$(1),\
2159 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2162 gb_ExternalProject__use_wps
:=
2168 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2172 define gb_LinkTarget__use_wps
2173 $(call gb_LinkTarget_set_include
,$(1),\
2174 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2178 $(call gb_LinkTarget_use_libraries
,$(1),\
2186 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2190 define gb_LinkTarget__use_wps
2191 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2193 $(call gb_LinkTarget_set_include
,$(1),\
2194 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2197 $(call gb_LinkTarget_add_libs
,$(1),\
2198 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2208 ifneq ($(SYSTEM_MWAW
),)
2210 define gb_LinkTarget__use_mwaw
2211 $(call gb_LinkTarget_set_include
,$(1),\
2215 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2223 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2227 define gb_LinkTarget__use_mwaw
2228 $(call gb_LinkTarget_set_include
,$(1),\
2229 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2233 $(call gb_LinkTarget_use_libraries
,$(1),\
2241 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2245 define gb_LinkTarget__use_mwaw
2246 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2248 $(call gb_LinkTarget_set_include
,$(1),\
2249 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2252 $(call gb_LinkTarget_add_libs
,$(1),\
2253 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2262 ifneq ($(SYSTEM_STAROFFICE
),)
2264 define gb_LinkTarget__use_staroffice
2265 $(call gb_LinkTarget_set_include
,$(1),\
2267 $(STAROFFICE_CFLAGS
) \
2269 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2273 else # !SYSTEM_STAROFFICE
2277 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2281 define gb_LinkTarget__use_staroffice
2282 $(call gb_LinkTarget_set_include
,$(1),\
2283 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2287 $(call gb_LinkTarget_use_libraries
,$(1),\
2295 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2299 define gb_LinkTarget__use_staroffice
2300 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2302 $(call gb_LinkTarget_set_include
,$(1),\
2303 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2306 $(call gb_LinkTarget_add_libs
,$(1),\
2307 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2314 endif # SYSTEM_STAROFFICE
2317 ifneq ($(SYSTEM_LCMS2
),)
2319 define gb_LinkTarget__use_lcms2
2320 $(call gb_LinkTarget_set_include
,$(1),\
2324 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2328 gb_ExternalProject__use_lcms2
:=
2330 else # !SYSTEM_LCMS2
2332 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2336 define gb_ExternalProject__use_lcms2
2337 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2341 ifeq ($(OS
),ANDROID
)
2343 define gb_LinkTarget__use_lcms2
2344 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2345 $(call gb_LinkTarget_set_include
,$(1),\
2346 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2354 define gb_LinkTarget__use_lcms2
2355 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2356 $(call gb_LinkTarget_set_include
,$(1),\
2357 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2360 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2365 endif # SYSTEM_LCMS2
2367 ifneq ($(ENABLE_LPSOLVE
),)
2369 ifneq ($(SYSTEM_LPSOLVE
),)
2371 define gb_LinkTarget__use_lpsolve
2372 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2373 $(call gb_LinkTarget_add_defs
,$(1),\
2379 else # !SYSTEM_LPSOLVE
2381 define gb_LinkTarget__use_lpsolve
2382 $(call gb_LinkTarget_use_package
,$(1),lpsolve
)
2384 $(call gb_LinkTarget_add_libs
,$(1),\
2385 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2388 $(call gb_LinkTarget_add_libs
,$(1),\
2389 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2392 $(call gb_LinkTarget_set_include
,$(1),\
2393 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2399 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2403 endif # SYSTEM_LPSOLVE
2407 gb_LinkTarget__use_lpsolve
:=
2409 endif # ENABLE_LPSOLVE
2411 ifneq ($(ENABLE_COINMP
),)
2413 ifneq ($(SYSTEM_COINMP
),TRUE
)
2415 define gb_LinkTarget__use_coinmp
2416 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2418 $(call gb_LinkTarget_add_libs
,$(1),\
2419 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2422 $(call gb_LinkTarget_add_libs
,$(1),\
2423 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2424 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2425 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2426 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2427 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2428 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2429 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2432 $(call gb_LinkTarget_set_include
,$(1),\
2433 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2434 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2440 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2444 else # SYSTEM_COINMP
2446 define gb_LinkTarget__use_coinmp
2447 $(call gb_LinkTarget_set_include
,$(1),\
2451 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2459 gb_LinkTarget__use_coinmp
:=
2461 endif # ENABLE_COINMP
2463 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2465 define gb_LinkTarget__use_mDNSResponder
2466 $(call gb_LinkTarget_set_include
,$(1),\
2467 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2470 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2473 endif # MDNSRESPONDER
2475 ifeq ($(ENABLE_GIO
),TRUE
)
2477 define gb_LinkTarget__use_gio
2478 $(call gb_LinkTarget_set_include
,$(1),\
2483 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2489 define gb_LinkTarget__use_gio
2495 ifeq ($(ENABLE_AVAHI
),TRUE
)
2497 define gb_LinkTarget__use_avahi
2498 $(call gb_LinkTarget_set_include
,$(1),\
2503 $(call gb_LinkTarget_add_defs
,$(1),\
2507 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2513 gb_LinkTarget__use_avahi
:=
2515 endif # ENABLE_AVAHI
2517 ifeq ($(ENABLE_CUPS
),TRUE
)
2519 define gb_LinkTarget__use_cups
2520 $(call gb_LinkTarget_add_defs
,$(1),\
2524 $(call gb_LinkTarget_add_libs
,$(1),\
2532 define gb_LinkTarget__use_cups
2538 ifeq ($(ENABLE_DBUS
),TRUE
)
2540 define gb_LinkTarget__use_dbus
2541 $(call gb_LinkTarget_set_include
,$(1),\
2546 $(call gb_LinkTarget_add_libs
,$(1),\
2554 define gb_LinkTarget__use_dbus
2561 ifneq ($(SYSTEM_LIBPNG
),)
2563 define gb_LinkTarget__use_libpng
2564 $(call gb_LinkTarget_set_include
,$(1),\
2569 $(call gb_LinkTarget_add_libs
,$(1),\
2575 gb_ExternalProject__use_libpng
:=
2577 else # !SYSTEM_LIBPNG
2579 define gb_LinkTarget__use_libpng
2580 $(call gb_LinkTarget_set_include
,$(1),\
2584 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2587 $(call gb_LinkTarget__use_zlib
,$(1))
2591 define gb_ExternalProject__use_libpng
2592 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2598 endif # !SYSTEM_LIBPNG
2601 ifneq ($(SYSTEM_CURL
),)
2603 define gb_LinkTarget__use_curl
2604 $(call gb_LinkTarget_add_defs
,$(1),\
2607 $(call gb_LinkTarget_set_include
,$(1),\
2611 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2617 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2621 define gb_LinkTarget__use_curl
2622 $(call gb_LinkTarget_use_package
,$(1),curl
)
2623 $(call gb_LinkTarget_set_include
,$(1),\
2624 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2629 $(call gb_LinkTarget_add_libs
,$(1),\
2630 $(call gb_UnpackedTarball_get_dir
,curl
)/builds
/libcurl-vc12-
$(gb_MSBUILD_PLATFORM
)-$(gb_MSBUILD_CONFIG
)-dll-zlib-static-ipv6-sspi-schannel
/lib
/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_debug
).lib \
2633 $(call gb_LinkTarget_add_libs
,$(1),\
2634 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2642 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2644 define gb_LinkTarget__use_valgrind
2645 $(call gb_LinkTarget_add_defs
,$(1),\
2646 -DHAVE_VALGRIND_HEADERS \
2649 $(call gb_LinkTarget_set_include
,$(1),\
2651 $(VALGRIND_CFLAGS
) \
2656 else # !ENABLE_VALGRIND
2658 define gb_LinkTarget__use_valgrind
2662 endif # ENABLE_VALGRIND
2664 ifeq ($(ENABLE_POPPLER
),TRUE
)
2666 ifneq ($(SYSTEM_POPPLER
),)
2668 define gb_LinkTarget__use_poppler
2669 $(call gb_LinkTarget_set_include
,$(1),\
2674 $(call gb_LinkTarget_add_libs
,$(1),\
2680 else # !SYSTEM_POPPLER
2682 $(eval
$(call gb_Helper_register_packages_for_install
,pdfimport
,\
2686 define gb_LinkTarget__use_poppler
2687 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2688 $(call gb_LinkTarget_use_package
,$(1),poppler_data
)
2689 $(call gb_LinkTarget_set_include
,$(1),\
2690 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2691 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2692 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2696 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2697 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2700 $(call gb_LinkTarget_add_libs
,$(1),\
2703 else ifeq ($(OS
),LINUX
)
2704 $(call gb_LinkTarget_add_libs
,$(1),\
2707 else ifeq ($(OS
),WNT
)
2708 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2716 endif # SYSTEM_POPPLER
2718 endif # ENABLE_POPPLER
2721 ifneq ($(SYSTEM_CLUCENE
),)
2723 define gb_LinkTarget__use_clucene
2724 $(call gb_LinkTarget_add_defs
,$(1),\
2725 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2728 $(call gb_LinkTarget_set_include
,$(1),\
2729 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2733 $(call gb_LinkTarget_add_libs
,$(1),\
2739 else # !SYSTEM_CLUCENE
2741 define gb_LinkTarget__use_clucene
2742 $(call gb_LinkTarget_set_include
,$(1),\
2743 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2744 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2745 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2749 $(call gb_LinkTarget_use_libraries
,$(1),\
2755 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2756 $(call gb_Helper_optionals_or
,HELPTOOLS XMLHELP
,clucene
) \
2759 endif # SYSTEM_CLUCENE
2761 define gb_LinkTarget__use_gobject
2762 $(call gb_LinkTarget_add_libs
,$(1),\
2766 $(call gb_LinkTarget_set_include
,$(1),\
2772 ifneq ($(SYSTEM_HSQLDB
),)
2774 define gb_LinkTarget__use_hsqldb
2776 $(call gb_LinkTarget_add_defs
,$(1),\
2778 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2783 else # !SYSTEM_HSQLDB
2785 define gb_LinkTarget__use_hsqldb
2789 endif # SYSTEM_HSQLDB
2791 ifeq ($(ENABLE_LDAP
),TRUE
)
2792 ifneq ($(SYSTEM_OPENLDAP
),)
2794 define gb_LinkTarget__use_openldap
2796 $(call gb_LinkTarget_add_libs
,$(1),\
2803 gb_ExternalProject__use_openldap
:=
2805 else # !SYSTEM_OPENLDAP
2807 define gb_LinkTarget__use_openldap
2808 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2809 $(call gb_LinkTarget_set_include
,$(1),\
2810 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2813 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2814 $(call gb_LinkTarget_add_libs
,$(1), \
2815 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2816 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2822 define gb_ExternalProject__use_openldap
2823 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2827 endif # SYSTEM_OPENLDAP
2829 ifneq ($(SYSTEM_LIBTOMMATH
),)
2831 define gb_LinkTarget__use_libtommath
2832 $(call gb_LinkTarget_set_include
,$(1),\
2833 $(LIBTOMMATH_CFLAGS
) \
2836 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2840 else # !SYSTEM_LIBTOMMATH
2841 define gb_LinkTarget__use_libtommath
2842 $(call gb_LinkTarget_set_include
,$(1),\
2843 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2846 $(call gb_LinkTarget_add_libs
,$(1),\
2847 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2849 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2853 endif # SYSTEM_LIBTOMMATH
2855 define gb_ExternalProject__use_libtommath
2856 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2860 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2862 ifneq ($(SYSTEM_FIREBIRD
),)
2864 define gb_LinkTarget__use_libfbembed
2865 $(call gb_LinkTarget_set_include
,$(1),\
2866 $(FIREBIRD_CFLAGS
) \
2869 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2873 else # !SYSTEM_FIREBIRD
2875 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
2879 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2880 #$(call gb_LinkTarget__use_libtommath,$(1))
2882 define gb_LinkTarget__use_libfbembed
2883 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2884 $(call gb_LinkTarget_set_include
,$(1),\
2885 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
2889 $(call gb_LinkTarget_add_libs
,$(1),\
2890 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
2893 $(call gb_LinkTarget_add_libs
,$(1),\
2894 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
2903 endif # SYSTEM_FIREBIRD
2905 else # !ENABLE_FIREBIRD_SDBC
2907 gb_LinkTarget__use_firebird
:=
2908 # gb_LinkTarget__use_atomic_ops :=
2909 # gb_LinkTarget__use_libtommath :=
2911 endif # ENABLE_FIREBIRD_SDBC
2914 ifneq ($(SYSTEM_POSTGRESQL
),)
2916 define gb_LinkTarget__use_postgresql
2918 $(call gb_LinkTarget_set_include
,$(1),\
2923 $(call gb_LinkTarget_add_libs
,$(1),\
2927 $(call gb_LinkTarget_add_ldflags
,$(1),\
2933 else # !SYSTEM_POSTGRESQL
2936 $(eval
$(call gb_Helper_register_packages_for_install
,postgresqlsdbc
,\
2941 define gb_LinkTarget__use_postgresql
2943 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
,full
)
2945 $(call gb_LinkTarget_set_include
,$(1),\
2946 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
2947 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
2953 $(call gb_LinkTarget_add_libs
,$(1),\
2954 $(call gb_UnpackedTarball_get_dir
,postgresql
)/$(gb_MSBUILD_CONFIG
)/libpq
/libpq.lib \
2959 $(call gb_LinkTarget_add_libs
,$(1),\
2960 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
2961 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/common
/libpgcommon
$(gb_StaticLibrary_PLAINEXT
) \
2962 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/port
/libpgport
$(gb_StaticLibrary_PLAINEXT
) \
2963 $(if
$(WITH_GSSAPI
),$(GSSAPI_LIBS
)) \
2968 endef # gb_LinkTarget__use_postgresql
2970 endif # !SYSTEM_POSTGRESQL
2972 ifeq ($(ENABLE_KF5
),TRUE
)
2974 define gb_LinkTarget__use_kf5
2975 $(call gb_LinkTarget_set_include
,$(1),\
2976 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
2980 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2981 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
2984 $(call gb_LinkTarget_add_libs
,$(1),\
2992 define gb_LinkTarget__use_kf5
3000 ifeq ($(ENABLE_QT5
),TRUE
)
3002 define gb_LinkTarget__use_qt5
3003 $(call gb_LinkTarget_set_include
,$(1),\
3004 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3008 $(call gb_LinkTarget_add_defs
,$(1),\
3009 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3012 $(call gb_LinkTarget_add_libs
,$(1),\
3020 define gb_LinkTarget__use_qt5
3026 ifeq ($(ENABLE_QT6
),TRUE
)
3028 define gb_LinkTarget__use_qt6
3029 $(call gb_LinkTarget_set_include
,$(1),\
3030 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
)))) \
3034 $(call gb_LinkTarget_add_defs
,$(1),\
3035 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT6_CFLAGS
))) \
3038 $(call gb_LinkTarget_add_libs
,$(1),\
3046 define gb_LinkTarget__use_qt6
3054 # extra python_headers external because pyuno wrapper must not link python
3055 ifneq ($(SYSTEM_PYTHON
),)
3057 define gb_LinkTarget__use_python_headers
3058 $(call gb_LinkTarget_add_defs
,$(1),\
3059 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3062 $(call gb_LinkTarget_set_include
,$(1),\
3063 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3069 define gb_LinkTarget__use_python
3070 $(call gb_LinkTarget__use_python_headers
,$(1))
3072 $(call gb_LinkTarget_add_libs
,$(1),\
3078 else # !SYSTEM_PYTHON
3080 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3082 $(if
$(filter WNT
,$(OS
)),libffi
) \
3085 define gb_LinkTarget__use_python_headers
3086 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3087 $(call gb_LinkTarget_set_include
,$(1),\
3088 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3089 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3090 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3096 define gb_LinkTarget__use_python
3097 $(call gb_LinkTarget__use_python_headers
,$(1))
3099 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3101 $(call gb_LinkTarget_use_package
,$(1),python3
)
3105 ifeq ($(CPUNAME
),X86_64
)
3106 python_arch_subdir
=amd64
3107 else ifeq ($(CPUNAME
),AARCH64
)
3108 python_arch_subdir
=arm64
3110 python_arch_subdir
=win32
3112 $(call gb_LinkTarget_add_libs
,$(1),\
3113 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
/$(python_arch_subdir
)/python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3115 else ifeq ($(OS
),MACOSX
)
3116 $(call gb_LinkTarget_add_libs
,$(1),\
3117 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3120 $(call gb_LinkTarget_add_libs
,$(1),\
3121 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3122 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)$(if
$(ENABLE_DBGUTIL
),d
) \
3128 # this is only used by python currently
3129 define gb_ExternalProject__use_libffi
3130 $(call gb_ExternalProject_use_external_project
,$(1),libffi
)
3134 endif # SYSTEM_PYTHON
3137 ifneq ($(SYSTEM_LIBORCUS
),)
3139 define gb_LinkTarget__use_orcus
3140 $(call gb_LinkTarget_set_include
,$(1),\
3144 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3147 define gb_LinkTarget__use_orcus-parser
3151 else # !SYSTEM_LIBORCUS
3155 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3160 define gb_LinkTarget__use_orcus
3161 $(call gb_LinkTarget_set_include
,$(1),\
3162 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3166 $(call gb_LinkTarget_use_libraries
,$(1),\
3172 define gb_LinkTarget__use_orcus-parser
3173 $(call gb_LinkTarget_set_include
,$(1),\
3174 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3178 $(call gb_LinkTarget_use_libraries
,$(1),\
3186 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3190 define gb_LinkTarget__use_orcus
3191 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3193 $(call gb_LinkTarget_set_include
,$(1),\
3194 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3198 $(call gb_LinkTarget_add_libs
,$(1),\
3199 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.17 \
3202 $(if
$(SYSTEM_BOOST
), \
3203 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3204 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3209 define gb_LinkTarget__use_orcus-parser
3210 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3212 $(call gb_LinkTarget_set_include
,$(1),\
3213 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3217 $(call gb_LinkTarget_add_libs
,$(1),\
3218 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.17 \
3225 endif # SYSTEM_LIBORCUS
3228 ifeq ($(ENABLE_LIBEOT
),TRUE
)
3229 ifeq ($(SYSTEM_LIBEOT
),TRUE
)
3231 define gb_LinkTarget__use_libeot
3232 $(call gb_LinkTarget_set_include
,$(1),\
3236 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3240 gb_ExternalProject__use_libeot
:=
3242 else # !SYSTEM_LIBEOT
3244 define gb_LinkTarget__use_libeot
3245 $(call gb_LinkTarget_set_include
,$(1),\
3246 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3249 $(call gb_LinkTarget_add_libs
,$(1),\
3250 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3252 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3256 define gb_ExternalProject__use_libeot
3257 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3261 endif # !SYSTEM_LIBEOT
3262 else # !ENABLE_LIBEOT
3264 gb_LinkTarget__use_libeot
:=
3265 gb_ExternalProject__use_libeot
:=
3267 endif # !ENABLE_LIBEOT
3270 ifeq ($(USING_X11
), TRUE
)
3272 define gb_LinkTarget__use_Xrandr
3273 $(call gb_LinkTarget_set_include
,$(1),\
3278 $(call gb_LinkTarget_add_libs
,$(1),\
3283 define gb_LinkTarget__use_Xrender
3284 $(call gb_LinkTarget_set_include
,$(1),\
3289 $(call gb_LinkTarget_add_libs
,$(1),\
3297 gb_ExternalProject__use_nss3
:=
3300 ifneq ($(SYSTEM_NSS
),)
3302 define gb_LinkTarget__use_nss3
3303 $(call gb_LinkTarget_add_defs
,$(1),\
3307 $(call gb_LinkTarget_set_include
,$(1),\
3312 $(call gb_LinkTarget_add_libs
,$(1),\
3318 define gb_LinkTarget__use_nssutil3
3319 $(call gb_LinkTarget__use_nss3
,$(1))
3323 define gb_LinkTarget__use_plc4
3324 $(call gb_LinkTarget__use_nss3
,$(1))
3328 define gb_LinkTarget__use_ssl3
3329 $(call gb_LinkTarget__use_nss3
,$(1))
3335 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3339 define gb_LinkTarget__use_nss3
3340 $(call gb_LinkTarget_use_package
,$(1),nss
)
3341 $(call gb_LinkTarget_set_include
,$(1),\
3343 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3344 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3348 $(call gb_LinkTarget_add_libs
,$(1),\
3349 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3350 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3351 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3354 $(call gb_LinkTarget_add_libs
,$(1),\
3355 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3364 define gb_LinkTarget__use_plc4
3365 $(call gb_LinkTarget_use_package
,$(1),nss
)
3367 $(call gb_LinkTarget_add_libs
,$(1),\
3368 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3371 $(call gb_LinkTarget_add_libs
,$(1),\
3372 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3378 define gb_LinkTarget__use_ssl3
3379 $(call gb_LinkTarget_use_package
,$(1),nss
)
3381 $(call gb_LinkTarget_add_libs
,$(1),\
3382 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3385 $(call gb_LinkTarget_add_libs
,$(1),\
3386 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3392 define gb_LinkTarget__use_nssutil3
3393 $(call gb_LinkTarget_use_package
,$(1),nss
)
3394 $(call gb_LinkTarget_set_include
,$(1),\
3396 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3397 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3401 $(call gb_LinkTarget_add_libs
,$(1),\
3402 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nssutil3.lib \
3405 $(call gb_LinkTarget_add_libs
,$(1),\
3406 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3413 define gb_ExternalProject__use_nss3
3414 $(call gb_ExternalProject_use_package
,$(1),nss
)
3420 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3422 define gb_LinkTarget__use_breakpad
3423 $(call gb_LinkTarget_set_include
,$(1),\
3424 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3429 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3433 $(call gb_LinkTarget_add_libs
,$(1),\
3434 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3438 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3442 endif # ENABLE_BREAKPAD
3444 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3446 ifneq ($(SYSTEM_GPGMEPP
),)
3448 gb_ExternalProject__use_gpgmepp
:=
3449 gb_ExternalProject__use_libassuan
:=
3450 gb_ExternalProject__use_libgpg-error
:=
3452 define gb_LinkTarget__use_gpgmepp
3453 $(call gb_LinkTarget_set_include
,$(1),\
3455 $$(GPGMEPP_CFLAGS
) \
3458 $(call gb_LinkTarget_add_libs
,$(1),\
3464 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3466 define gb_ExternalProject__use_gpgmepp
3467 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3470 define gb_ExternalProject__use_libassuan
3471 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3474 define gb_ExternalProject__use_libgpg-error
3475 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3479 ifneq ($(filter WNT
,$(OS
)),)
3481 define gb_LinkTarget__use_libgpg-error
3482 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3484 $(call gb_LinkTarget_set_include
,$(1),\
3485 $(GPG_ERROR_CFLAGS
) \
3488 $(call gb_LinkTarget_add_libs
,$(1),\
3489 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3494 define gb_LinkTarget__use_libassuan
3495 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3497 $(call gb_LinkTarget_set_include
,$(1),\
3498 $(LIBASSUAN_CFLAGS
) \
3501 $(call gb_LinkTarget_add_libs
,$(1),\
3502 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3507 define gb_LinkTarget__use_gpgmepp
3508 $(call gb_LinkTarget_set_include
,$(1),\
3509 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3510 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3511 $$(GPG_ERROR_CFLAGS
) \
3514 $(call gb_LinkTarget_use_libraries
,$(1),\
3520 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3526 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3532 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3534 define gb_LinkTarget__use_gpgmepp
3535 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3537 $(call gb_LinkTarget_set_include
,$(1),\
3538 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3539 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3540 $$(GPG_ERROR_CFLAGS
) \
3543 $(call gb_LinkTarget_add_libs
,$(1),\
3544 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3545 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3546 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3547 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3552 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3562 else # !ENABLE_GPGMEPP
3564 gb_ExternalProject__use_gpgmepp
:=
3565 gb_ExternalProject__use_libassuan
:=
3566 gb_ExternalProject__use_libgpg-error
:=
3568 gb_LinkTarget__use_gpgmepp
:=
3569 gb_LinkTarget__use_libassuan
:=
3570 gb_LinkTarget__use_libgpg-error
:=
3572 endif # ENABLE_GPGMEPP
3574 define gb_LinkTarget__use_dconf
3575 $(call gb_LinkTarget_set_include
,$(1),\
3580 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3583 ### Jars ############################################################
3585 ifneq ($(SYSTEM_HSQLDB
),)
3587 define gb_Jar__use_hsqldb
3588 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3590 define gb_JunitTest__use_hsqldb
3591 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3594 else # !SYSTEM_HSQLDB
3596 ifeq ($(ENABLE_JAVA
),TRUE
)
3597 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3602 define gb_Jar__use_hsqldb
3603 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3605 define gb_JunitTest__use_hsqldb
3606 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3609 endif # SYSTEM_HSQLDB
3612 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3614 ifneq ($(SYSTEM_BSH
),)
3616 define gb_Jar__use_bsh
3617 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3622 ifeq ($(ENABLE_JAVA
),TRUE
)
3623 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3628 define gb_Jar__use_bsh
3629 $(call gb_Jar_use_jar
,$(1),bsh
)
3636 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3638 ifneq ($(SYSTEM_RHINO
),)
3640 define gb_Jar__use_rhino
3641 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3644 else # !SYSTEM_RHINO
3646 ifeq ($(ENABLE_JAVA
),TRUE
)
3647 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3652 define gb_Jar__use_rhino
3653 $(call gb_Jar_use_jar
,$(1),js
)
3656 endif # SYSTEM_RHINO
3660 ifneq ($(SYSTEM_JFREEREPORT
),)
3662 define gb_Jar__use_flow-engine
3663 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3666 define gb_Jar__use_flute
3667 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3670 define gb_Jar__use_libbase
3671 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3674 define gb_Jar__use_libfonts
3675 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3678 define gb_Jar__use_libformula
3679 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3682 define gb_Jar__use_liblayout
3683 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3686 define gb_Jar__use_libloader
3687 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3690 define gb_Jar__use_librepository
3691 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3694 define gb_Jar__use_libserializer
3695 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3698 define gb_Jar__use_libxml
3699 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3702 define gb_Jar__use_sac
3703 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3706 else # !SYSTEM_JFREEREPORT
3708 ifeq ($(ENABLE_JAVA
),TRUE
)
3709 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3717 librepository-1.1
.6 \
3718 libserializer-1.1
.6 \
3724 define gb_Jar__use_flow-engine
3725 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3728 define gb_Jar__use_flute
3729 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3732 define gb_Jar__use_libbase
3733 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3736 define gb_Jar__use_libfonts
3737 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3740 define gb_Jar__use_libformula
3741 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3744 define gb_Jar__use_liblayout
3745 $(call gb_Jar_use_jar
,$(1),liblayout
)
3748 define gb_Jar__use_libloader
3749 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3752 define gb_Jar__use_librepository
3753 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3756 define gb_Jar__use_libserializer
3757 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3760 define gb_Jar__use_libxml
3761 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3764 define gb_Jar__use_sac
3765 $(call gb_Jar_use_jar
,$(1),sac
)
3768 endif # SYSTEM_JFREEREPORT
3773 define gb_Executable__register_bestreversemap
3774 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3775 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target_for_build
,sal_textenc
)) \
3779 # TODO depending on the whole URE might be overkill, but I do not have a
3780 # Windows machine to debug it...
3781 define gb_Executable__register_climaker
3782 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3783 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3784 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3785 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3786 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3790 define gb_Executable__register_cppumaker
3791 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3792 $(call gb_CondLibSalTextenc
,$(call gb_Library_get_target
,sal_textenc
)) \
3796 # This is used to determine what we need for 'build' platform.
3797 define gb_Executable__register_gengal
3798 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3799 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3800 $(call gb_Library_get_target_for_build
,localedata_en
) \
3801 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_osx
)) \
3802 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),$(call gb_Library_get_target_for_build
,vclplug_win
)) \
3803 $(if
$(filter host
,$(gb_Side
)),$(call gb_Package_get_target
,postprocess_images
)) \
3804 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3805 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3806 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3807 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3808 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3809 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3810 $(call gb_UnoApi_get_target_for_build
,offapi
) \
3811 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3815 ifeq ($(SYSTEM_ICU
),)
3817 define gb_Executable__register_gendict
3818 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3819 $(call gb_Package_get_target_for_build
,icu
) \
3820 $(call gb_Package_get_target_for_build
,icu_ure
) \
3826 define gb_Executable__register_idlc
3827 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3828 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3832 define gb_Executable__register_localize
3833 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3834 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3835 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3840 # FIXME ure/services.rdb needs cleanup
3841 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3842 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3843 define gb_Executable__register_saxparser
3844 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3845 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3846 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3847 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3848 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3849 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3853 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3854 # required due to the settings for URE_SERVICES and URE_TYPES in
3855 # cppuhelper/source/unorc
3856 define gb_Executable__register_uno
3857 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3858 $(call gb_Library_get_target_for_build
,$(CPPU_ENV_FOR_BUILD
)_uno
) \
3859 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3860 $(call gb_UnoApi_get_target_for_build
,udkapi
) \
3865 # External executables
3867 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3869 gb_ExternalExecutable__register_xmllint
:=
3871 else # ! SYSTEM_LIBXML_FOR_BUILD
3873 define gb_ExternalExecutable__register_xmllint
3874 $(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
)
3875 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3876 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3877 $(call gb_Package_get_target
,libxml2
) \
3882 endif # SYSTEM_LIBXML_FOR_BUILD
3884 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3886 gb_ExternalExecutable__register_xsltproc
:=
3888 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3890 define gb_ExternalExecutable__register_xsltproc
3891 $(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
)
3892 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3893 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3894 $(call gb_Package_get_target
,libxml2
) \
3895 $(call gb_Package_get_target
,libxslt
) \
3900 endif # SYSTEM_LIBXSLT_FOR_BUILD
3902 ifneq (,$(SYSTEM_UCPP
))
3904 gb_ExternalExecutable__register_ucpp
:=
3906 else # ! SYSTEM_UCPP
3908 define gb_ExternalExecutable__register_ucpp
3909 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3915 ifeq (,$(PYTHON_FOR_BUILD
))
3917 define gb_ExternalExecutable__register_python
3920 # use set_external, to avoid having the command added as prerequisite for the
3921 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3922 # matching rule to build that specific file)
3923 $(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
))
3924 # the Zip ensures that internal python has been built (cannot use the Package
3925 # target, as that is not used on Mac)
3926 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3930 $(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
))
3931 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
3932 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
3940 define gb_ExternalExecutable__register_python
3941 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
3945 endif # PYTHON_FOR_BUILD
3947 ifneq ($(SYSTEM_GENBRK
),)
3949 define gb_ExternalExecutable__register_genbrk
3950 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
3954 else # ! SYSTEM_GENBRK
3956 define gb_ExternalExecutable__register_genbrk
3957 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
3958 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3959 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
3960 $(call gb_Package_get_target_for_build
,icu
) \
3961 $(call gb_Package_get_target_for_build
,icu_ure
) \
3968 ifneq ($(SYSTEM_GENCCODE
),)
3970 define gb_ExternalExecutable__register_genccode
3971 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
3975 else # ! SYSTEM_GENCCODE
3977 define gb_ExternalExecutable__register_genccode
3978 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
3979 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3980 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
3981 $(call gb_Package_get_target_for_build
,icu
) \
3982 $(call gb_Package_get_target_for_build
,icu_ure
) \
3989 ifneq ($(SYSTEM_GENCMN
),)
3991 define gb_ExternalExecutable__register_gencmn
3992 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
3996 else # ! SYSTEM_GENCMN
3998 define gb_ExternalExecutable__register_gencmn
3999 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4000 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4001 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4002 $(call gb_Package_get_target_for_build
,icu
) \
4003 $(call gb_Package_get_target_for_build
,icu_ure
) \
4010 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4011 ifneq ($(SYSTEM_BZIP2
),)
4013 define gb_LinkTarget__use_bzip2
4014 $(call gb_LinkTarget_set_include
,$(1),\
4018 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4022 gb_ExternalProject__use_bzip2
:=
4024 else # !SYSTEM_BZIP2
4026 define gb_LinkTarget__use_bzip2
4027 $(call gb_LinkTarget_set_include
,$(1),\
4028 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4033 $(call gb_LinkTarget_add_libs
,$(1),\
4034 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4037 $(call gb_LinkTarget_add_libs
,$(1),\
4038 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4042 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4045 define gb_ExternalProject__use_bzip2
4046 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4052 define gb_LinkTarget__use_clew
4053 $(call gb_LinkTarget_set_include
,$(1), \
4054 -I
$(SRCDIR
)/external
/clew
/source
/include \
4057 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4060 ifneq ($(ENABLE_PDFIUM
),)
4061 define gb_LinkTarget__use_pdfium
4062 $(call gb_LinkTarget_set_include
,$(1),\
4063 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4067 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4069 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4074 define gb_LinkTarget__use_dtoa
4075 $(call gb_LinkTarget_use_unpacked
,$(1),dtoa
)
4076 $(call gb_LinkTarget_set_include
,$(1),\
4077 -I
$(call gb_UnpackedTarball_get_dir
,dtoa
/include/)\
4080 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4086 define gb_ExternalProject__use_dtoa
4087 $(call gb_ExternalProject_use_static_libraries
,$(1),dtoa
)
4091 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4092 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4095 ifneq ($(SYSTEM_BOX2D
),)
4097 define gb_LinkTarget__use_box2d
4098 $(call gb_LinkTarget_set_include
,$(1),\
4103 $(call gb_LinkTarget_add_libs
,$(1),$(BOX2D_LIBS
))
4107 gb_ExternalProject__use_box2d
:=
4109 else # !SYSTEM_BOX2D
4111 define gb_LinkTarget__use_box2d
4112 $(call gb_LinkTarget_use_unpacked
,$(1),box2d
)
4113 $(call gb_LinkTarget_set_include
,$(1),\
4114 -I
$(call gb_UnpackedTarball_get_dir
,box2d
/Box2D
/)\
4117 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4123 define gb_ExternalProject__use_box2d
4124 $(call gb_ExternalProject_use_static_libraries
,$(1),box2d
)
4128 endif # SYSTEM_BOX2D
4130 ifneq ($(SYSTEM_ZXING
),)
4132 define gb_LinkTarget__use_zxing
4133 $(call gb_LinkTarget_set_include
,$(1),\
4138 $(call gb_LinkTarget_add_libs
,$(1),$(ZXING_LIBS
))
4142 gb_ExternalProject__use_zxing
:=
4144 else # !SYSTEM_ZXING
4146 ifneq ($(ENABLE_ZXING
),)
4148 define gb_LinkTarget__use_zxing
4149 $(call gb_LinkTarget_use_unpacked
,$(1),zxing
)
4150 $(call gb_LinkTarget_set_include
,$(1),\
4151 -I
$(call gb_UnpackedTarball_get_dir
,zxing
/core
/src
/)\
4154 $(call gb_LinkTarget_use_static_libraries
,$(1),\
4160 define gb_ExternalProject__use_zxing
4161 $(call gb_ExternalProject_use_static_libraries
,$(1),zxing
)
4165 else # !ENABLE_ZXING
4167 define gb_LinkTarget__use_zxing
4170 endif # ENABLE_ZXING
4172 endif # SYSTEM_ZXING
4176 ifneq ($(SYSTEM_CUCKOO
),)
4178 gb_ExternalProject__use_cuckoo_headers
:=
4180 define gb_LinkTarget__use_cuckoo_headers
4181 $(call gb_LinkTarget_set_include
,$(1),\
4187 else # !SYSTEM_CUCKOO
4189 define gb_ExternalProject__use_cuckoo_headers
4190 $(call gb_ExternalProject_use_unpacked
,$(1),cuckoo
)
4194 define gb_LinkTarget__use_cuckoo_headers
4195 $(call gb_LinkTarget_use_unpacked
,$(1),cuckoo
)
4196 $(call gb_LinkTarget_set_include
,$(1),\
4197 -I
$(call gb_UnpackedTarball_get_dir
,cuckoo
) \
4203 endif # SYSTEM_CUCKOO
4206 # vim: set noet sw=4 ts=4: