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 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
116 define gb_LinkTarget__use_sane_headers
117 $(call gb_LinkTarget_set_include
,$(1),\
118 $(if
$(filter WNT
,$(OS
)), \
119 -I
$(call gb_UnpackedTarball_get_dir
,twain_dsm
/pub
/include), \
120 -I
$(SRCDIR
)/external
/sane
/inc
) \
125 $(call gb_LinkTarget_use_unpacked
,$(1),twain_dsm
)
132 gb_LinkTarget__use_sane_headers
:=
136 ifneq ($(SYSTEM_BLUEZ
),)
138 gb_LinkTarget__use_bluez_bluetooth_headers
:=
142 define gb_LinkTarget__use_bluez_bluetooth_headers
143 $(call gb_LinkTarget_set_include
,$(1),\
144 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
154 ifneq ($(SYSTEM_CPPUNIT
),)
156 define gb_LinkTarget__use_cppunit
157 $(call gb_LinkTarget_set_include
,$(1),\
162 $(call gb_LinkTarget_add_libs
,$(1),\
168 else # !SYSTEM_CPPUNIT
170 define gb_LinkTarget__use_cppunit
171 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
173 $(call gb_LinkTarget_set_include
,$(1),\
174 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
179 $(call gb_LinkTarget_add_libs
,$(1),\
180 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
183 $(call gb_LinkTarget_add_libs
,$(1),\
184 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
190 endif # SYSTEM_CPPUNIT
192 ifneq ($(SYSTEM_EPOXY
),)
194 define gb_LinkTarget__use_epoxy
195 $(call gb_LinkTarget_set_include
,$(1),\
199 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
203 gb_ExternalProject__use_epoxy
:=
207 define gb_LinkTarget__use_epoxy
208 $(call gb_LinkTarget_set_include
,$(1),\
209 -I
$(call gb_UnpackedTarball_get_dir
,epoxy
/include) \
213 $(call gb_LinkTarget_use_libraries
,$(1),\
219 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
223 define gb_ExternalProject__use_epoxy
224 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
230 define gb_LinkTarget__use_iconv
232 $(call gb_LinkTarget_add_libs
,$(1),libiconv.lib
)
234 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
238 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
240 define gb_LinkTarget__use_mariadb-connector-c
241 $(call gb_LinkTarget_set_include
,$(1),\
245 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
248 gb_ExternalProject__use_mariadb-connector-c
:=
250 else # !SYSTEM_MARIADB_CONNECTOR_C
252 define gb_LinkTarget__use_mariadb-connector-c
253 $(call gb_LinkTarget_set_include
,$(1),\
257 $(call gb_LinkTarget_use_static_libraries
,$(1),\
258 mariadb-connector-c \
261 $(call gb_LinkTarget_add_libs
,$(1),\
267 define gb_ExternalProject__use_mariadb-connector-c
268 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadb-connector-c
)
272 endif # SYSTEM_MARIADB_CONNECTOR_C
275 ifneq ($(SYSTEM_MARIADB_CONNECTOR_C
),)
277 define gb_LinkTarget__use_mysql
279 $(call gb_LinkTarget_add_defs
,$(1),\
283 $(call gb_LinkTarget_add_libs
,$(1),\
287 $(call gb_LinkTarget_set_include
,$(1),\
295 define gb_LinkTarget__use_mysql
297 $(call gb_LinkTarget_set_include
,$(1),\
305 ifneq ($(SYSTEM_ZLIB
),)
307 define gb_LinkTarget__use_zlib
308 $(call gb_LinkTarget_add_defs
,$(1),\
311 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
316 define gb_LinkTarget__use_zlib_x64
320 gb_ExternalProject__use_zlib
:=
324 define gb_LinkTarget__use_zlib_multiarch
325 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
327 $(call gb_LinkTarget_set_include
,$(1),\
332 $(call gb_LinkTarget_use_static_libraries
,$(1),\
338 define gb_LinkTarget__use_zlib
339 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
343 define gb_LinkTarget__use_zlib_x64
344 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
348 define gb_ExternalProject__use_zlib
349 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
356 ifneq ($(SYSTEM_LIBJPEG
),)
358 define gb_LinkTarget__use_libjpeg
359 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
360 $(call gb_LinkTarget_set_ldflags
,$(1),\
361 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
366 gb_ExternalProject__use_libjpeg
:=
370 define gb_LinkTarget__use_libjpeg
371 $(call gb_LinkTarget_set_include
,$(1),\
375 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
376 $(call gb_LinkTarget_use_external_project
,$(1),libjpeg-turbo
,full
)
380 define gb_ExternalProject__use_libjpeg
381 $(call gb_ExternalProject_use_external_project
,$(1),libjpeg-turbo
)
385 endif # SYSTEM_LIBJPEG
387 ifneq ($(SYSTEM_MYTHES
),)
389 define gb_LinkTarget__use_mythes
390 $(call gb_LinkTarget_set_include
,$(1),\
394 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
398 else # !SYSTEM_MYTHES
400 define gb_LinkTarget__use_mythes
401 $(call gb_LinkTarget_set_include
,$(1),\
402 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
407 $(call gb_LinkTarget_use_static_libraries
,$(1),\
411 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
412 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
417 endif # SYSTEM_MYTHES
420 ifneq ($(SYSTEM_EXPAT
),)
422 define gb_LinkTarget__use_expat_impl
423 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
425 $(call gb_LinkTarget_add_defs
,$(1),\
429 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
433 gb_ExternalProject__use_expat
:=
437 define gb_LinkTarget__use_expat_impl
438 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
440 $(call gb_LinkTarget_set_include
,$(1),\
441 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
445 $(call gb_LinkTarget_use_static_libraries
,$(1),\
451 define gb_ExternalProject__use_expat
452 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
458 define gb_LinkTarget__use_expat
459 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
463 define gb_LinkTarget__use_expat_x64
464 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
468 ifneq ($(SYSTEM_HYPH
),)
470 define gb_LinkTarget__use_hyphen
471 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
477 define gb_LinkTarget__use_hyphen
478 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
479 $(call gb_LinkTarget_set_include
,$(1),\
480 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
485 $(call gb_LinkTarget_use_static_libraries
,$(1),\
489 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
490 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
497 ifneq ($(SYSTEM_HUNSPELL
),)
499 define gb_LinkTarget__use_hunspell
500 $(call gb_LinkTarget_set_include
,$(1),\
504 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
508 gb_ExternalProject__use_hunspell
:=
510 else # !SYSTEM_HUNSPELL
512 define gb_LinkTarget__use_hunspell
513 $(call gb_LinkTarget_add_defs
,$(1),\
516 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
517 $(call gb_LinkTarget_set_include
,$(1),\
518 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
523 $(call gb_LinkTarget_use_static_libraries
,$(1),\
527 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
528 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
533 define gb_ExternalProject__use_hunspell
534 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
538 endif # SYSTEM_HUNSPELL
541 ifneq ($(SYSTEM_BOOST
),)
543 define gb_LinkTarget__use_boost_lib
544 $(call gb_LinkTarget_set_include
,$(1),\
549 $(call gb_LinkTarget_add_ldflags
,$(1),\
553 $(call gb_LinkTarget_add_libs
,$(1),$(2))
557 define gb_LinkTarget__use_boost_locale
558 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
562 define gb_LinkTarget__use_boost_date_time
563 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
567 define gb_LinkTarget__use_boost_filesystem
568 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
572 gb_ExternalProject__use_boost_filesystem
:=
574 define gb_LinkTarget__use_boost_iostreams
575 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
579 gb_ExternalProject__use_boost_iostreams
:=
581 define gb_LinkTarget__use_boost_system
582 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
586 gb_ExternalProject__use_boost_system
:=
588 define gb_LinkTarget__use_boost_headers
589 $(call gb_LinkTarget_set_include
,$(1),\
596 gb_ExternalProject__use_boost_headers
:=
600 define gb_LinkTarget__use_boost_lib
601 $(call gb_LinkTarget_add_defs
,$(1),\
605 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
609 define gb_LinkTarget__use_boost_locale
610 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
611 $(call gb_LinkTarget_add_libs
,$(1),\
612 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
617 define gb_LinkTarget__use_boost_date_time
618 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
622 define gb_LinkTarget__use_boost_filesystem
623 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
627 define gb_ExternalProject__use_boost_filesystem
628 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
631 define gb_LinkTarget__use_boost_iostreams
632 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
636 define gb_ExternalProject__use_boost_iostreams
637 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
640 define gb_LinkTarget__use_boost_system
641 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
645 define gb_ExternalProject__use_boost_system
646 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
649 define gb_LinkTarget__use_boost_headers
650 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
651 $(call gb_LinkTarget_set_include
,$(1),\
658 define gb_ExternalProject__use_boost_headers
659 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
666 ifneq ($(SYSTEM_LIBCMIS
),)
668 define gb_LinkTarget__use_libcmis
669 $(call gb_LinkTarget_set_include
,$(1),\
673 $(call gb_LinkTarget_add_libs
,$(1),$(LIBCMIS_LIBS
))
677 else # !SYSTEM_LIBCMIS
679 define gb_LinkTarget__use_libcmis
680 $(call gb_LinkTarget_set_include
,$(1),\
681 -I
$(call gb_UnpackedTarball_get_dir
,libcmis
)/inc \
684 $(call gb_LinkTarget_use_static_libraries
,$(1),\
690 endif # SYSTEM_LIBCMIS
692 ifeq ($(ENABLE_JAVA
),TRUE
)
694 define gb_LinkTarget__use_jawt
695 $(call gb_LinkTarget_add_libs
,$(1),\
703 gb_LinkTarget__use_jawt
:=
707 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
709 define gb_LinkTarget__use_libatomic_ops
710 $(call gb_LinkTarget_set_include
,$(1),\
712 $(LIBATOMIC_OPS_CFLAGS
) \
714 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
717 gb_ExternalProject__use_libatomic_ops
:=
719 else # !SYSTEM_LIBATOMIC_OPS
721 define gb_LinkTarget__use_libatomic_ops
722 $(call gb_LinkTarget_set_include
,$(1),\
723 $(LIBATOMIC_OPS_CFLAGS
) \
725 $(LIBATOMIC_OPS_CFLAGS
) \
727 $(call gb_LinkTarget_use_external_project
,$(1),\
731 $(call gb_LinkTarget_add_libs
,$(1),\
732 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
737 define gb_ExternalProject__use_libatomic_ops
738 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
742 endif # SYSTEM_LIBATOMIC_OPS
745 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
747 define gb_LinkTarget__use_libexttextcat
748 $(call gb_LinkTarget_set_include
,$(1),\
750 $(LIBEXTTEXTCAT_CFLAGS
) \
752 $(call gb_LinkTarget_add_defs
,$(1),\
753 -DSYSTEM_LIBEXTTEXTCAT \
755 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
759 else # !SYSTEM_LIBEXTTEXTCAT
761 define gb_LinkTarget__use_libexttextcat
762 $(call gb_LinkTarget_set_include
,$(1),\
763 -I
$(call gb_UnpackedTarball_get_dir
,libexttextcat
/src
) \
768 $(call gb_LinkTarget_use_static_libraries
,$(1),\
772 $(call gb_LinkTarget_add_libs
,$(1),\
773 $(call gb_UnpackedTarball_get_dir
,libexttextcat
)/src
/.libs
/libexttextcat-2.0.a\
775 $(call gb_LinkTarget_use_external_project
,$(1),libexttextcat
)
781 endif # SYSTEM_LIBEXTTEXTCAT
784 ifneq ($(SYSTEM_LIBNUMBERTEXT
),)
786 define gb_LinkTarget__use_libnumbertext
787 $(call gb_LinkTarget_set_include
,$(1),\
789 $(LIBNUMBERTEXT_CFLAGS
) \
791 $(call gb_LinkTarget_add_defs
,$(1),\
792 -DSYSTEM_LIBNUMBERTEXT \
794 $(call gb_LinkTarget_add_libs
,$(1),$(LIBNUMBERTEXT_LIBS
))
798 else # !SYSTEM_LIBNUMBERTEXT
800 ifneq ($(ENABLE_LIBNUMBERTEXT
),)
802 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
803 libnumbertext_numbertext \
806 define gb_LinkTarget__use_libnumbertext
807 $(call gb_LinkTarget_use_package
,$(1),libnumbertext_numbertext
)
808 $(call gb_LinkTarget_set_include
,$(1),\
809 -I
$(call gb_UnpackedTarball_get_dir
,libnumbertext
/src
) \
812 $(call gb_LinkTarget_add_defs
,$(1),\
813 -DENABLE_LIBNUMBERTEXT \
817 $(call gb_LinkTarget_use_static_libraries
,$(1),\
822 $(call gb_LinkTarget_add_libs
,$(1),\
823 $(call gb_UnpackedTarball_get_dir
,libnumbertext
)/src
/.libs
/libnumbertext-1.0.a\
825 $(call gb_LinkTarget_use_external_project
,$(1),libnumbertext
,full
)
831 else # !ENABLE_LIBNUMBERTEXT
833 define gb_LinkTarget__use_libnumbertext
836 endif # ENABLE_LIBNUMBERTEXT
838 endif # SYSTEM_LIBNUMBERTEXT
841 ifneq ($(SYSTEM_LIBXML
),)
843 define gb_LinkTarget__use_libxml2
844 $(call gb_LinkTarget_add_defs
,$(1),\
847 $(call gb_LinkTarget_set_include
,$(1),\
851 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
854 gb_ExternalProject__use_libxml2
:=
856 else # !SYSTEM_LIBXML
858 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
862 define gb_LinkTarget__use_libxml2
863 $(call gb_LinkTarget_use_package
,$(1),libxml2
)
864 $(call gb_LinkTarget_set_include
,$(1),\
869 $(call gb_LinkTarget_add_libs
,$(1),\
874 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
878 define gb_ExternalProject__use_libxml2
879 $(call gb_ExternalProject_use_package
,$(1),libxml2
)
882 $(call gb_ExternalProject_use_packages
,$(1),icu icu_ure
)
887 endif # SYSTEM_LIBXML
890 ifneq ($(SYSTEM_LIBXSLT
),)
892 define gb_LinkTarget__use_libxslt
893 $(call gb_LinkTarget_set_include
,$(1),\
897 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
901 define gb_LinkTarget__use_libexslt
902 $(call gb_LinkTarget_set_include
,$(1),\
907 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
911 else # !SYSTEM_LIBXSLT
913 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
917 define gb_LinkTarget__use_libxslt
918 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
919 $(call gb_LinkTarget_set_include
,$(1),\
921 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
925 $(call gb_LinkTarget_add_libs
,$(1),\
926 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libxslt.lib \
929 $(call gb_LinkTarget_add_libs
,$(1),\
930 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libxslt
/.libs
-lxslt \
936 define gb_LinkTarget__use_libexslt
937 $(call gb_LinkTarget_use_package
,$(1),libxslt
)
938 $(call gb_LinkTarget_set_include
,$(1),\
940 -I
$(call gb_UnpackedTarball_get_dir
,libxslt
) \
944 $(call gb_LinkTarget_add_libs
,$(1),\
945 $(call gb_UnpackedTarball_get_dir
,libxslt
)/win32
/bin.msvc
/libexslt.lib \
948 $(call gb_LinkTarget_add_libs
,$(1),\
949 -L
$(call gb_UnpackedTarball_get_dir
,libxslt
)/libexslt
/.libs
-lexslt \
955 endif # SYSTEM_LIBXSLT
958 ifneq ($(SYSTEM_XMLSEC
),)
960 define gb_LinkTarget__use_xmlsec
961 $(call gb_LinkTarget_add_defs
,$(1),\
964 $(call gb_LinkTarget_set_include
,$(1),\
968 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
972 gb_ExternalProject__use_xmlsec
:=
974 else # !SYSTEM_XMLSEC
976 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
980 define gb_LinkTarget__use_xmlsec
984 endif # SYSTEM_XMLSEC
986 ifneq ($(SYSTEM_LIBLANGTAG
),)
988 define gb_LinkTarget__use_liblangtag
989 $(call gb_LinkTarget_set_include
,$(1),\
991 $(LIBLANGTAG_CFLAGS
) \
994 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
998 gb_ExternalProject__use_liblangtag
:=
1000 else # !SYSTEM_LIBLANGTAG
1002 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1008 define gb_LinkTarget__use_liblangtag
1009 $(call gb_LinkTarget_set_include
,$(1),\
1010 $(LIBLANGTAG_CFLAGS
) \
1013 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1014 $(call gb_LinkTarget_use_external_project
,$(1),liblangtag
)
1020 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
1024 define gb_LinkTarget__use_liblangtag
1025 $(call gb_LinkTarget_set_include
,$(1),\
1026 $(LIBLANGTAG_CFLAGS
) \
1029 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1030 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1036 define gb_ExternalProject__use_liblangtag
1037 $(call gb_ExternalProject_use_external_project
,$(1),liblangtag
)
1041 endif # SYSTEM_LIBLANGTAG
1044 gb_ExternalProject__use_apr
:=
1046 ifeq ($(WITH_WEBDAV
),serf
)
1048 define gb_LinkTarget__use_apr
1049 $(call gb_LinkTarget_set_include
,$(1),\
1053 $(call gb_LinkTarget_add_libs
,$(1),\
1055 $(if
$(filter $(OS
),LINUX
),-lpthread
) \
1056 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
1059 ifeq ($(SYSTEM_APR
),)
1060 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1065 $(call gb_LinkTarget_add_defs
,$(1),\
1066 -DAPR_DECLARE_STATIC \
1067 -DAPU_DECLARE_STATIC \
1069 $(call gb_LinkTarget_use_external_project
,$(1),apr_util
)
1074 define gb_ExternalProject__use_apr
1075 ifeq ($(SYSTEM_APR
),)
1076 $(call gb_ExternalProject_use_external_project
,$(1),apr_util
)
1081 define gb_LinkTarget__use_serf
1082 $(call gb_LinkTarget_set_include
,$(1),\
1086 $(call gb_LinkTarget_add_libs
,$(1),\
1090 ifeq ($(SYSTEM_SERF
),)
1091 $(call gb_LinkTarget_use_external_project
,$(1),serf
)
1096 else ifeq ($(WITH_WEBDAV
),neon
)
1098 ifneq ($(SYSTEM_NEON
),)
1100 define gb_LinkTarget__use_neon
1101 $(call gb_LinkTarget_add_defs
,$(1),\
1102 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
1105 $(call gb_LinkTarget_set_include
,$(1),\
1110 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
1116 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1120 define gb_LinkTarget__use_neon
1121 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
1122 $(call gb_LinkTarget_set_include
,$(1),\
1123 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
1126 $(call gb_LinkTarget_use_libraries
,$(1),\
1136 ifneq ($(SYSTEM_REDLAND
),)
1138 define gb_LinkTarget__use_librdf
1139 $(call gb_LinkTarget_add_defs
,$(1),\
1142 $(call gb_LinkTarget_set_include
,$(1),\
1146 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1150 gb_LinkTarget__use_redland_headers
:=
1152 gb_LinkTarget__use_raptor_headers
:=
1154 gb_LinkTarget__use_rasqal_headers
:=
1156 else # !SYSTEM_REDLAND
1158 define gb_LinkTarget__use_redland_headers
1159 $(call gb_LinkTarget_set_include
,$(1),\
1160 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1166 define gb_LinkTarget__use_raptor_headers
1167 $(call gb_LinkTarget_set_include
,$(1),\
1168 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1174 define gb_LinkTarget__use_rasqal_headers
1175 $(call gb_LinkTarget_set_include
,$(1),\
1176 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1182 ifneq ($(OS
),ANDROID
)
1185 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1191 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1198 define gb_LinkTarget__use_librdf
1200 $(call gb_LinkTarget_use_libraries
,$(1),\
1205 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1207 $(call gb_LinkTarget_add_libs
,$(1),\
1208 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1209 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1210 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1218 define gb_LinkTarget__use_librdf
1219 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1225 endif # SYSTEM_REDLAND
1228 ifneq ($(USING_X11
)$(ENABLE_CAIRO_CANVAS
)$(DISABLE_GUI
),) # or
1230 ifneq ($(SYSTEM_CAIRO
),)
1232 define gb_LinkTarget__use_cairo
1233 $(call gb_LinkTarget_set_include
,$(1),\
1237 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1238 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1242 else # !SYSTEM_CAIRO
1244 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1246 $(if
$(filter $(OS
),WNT
),,pixman
) \
1249 define gb_LinkTarget__use_cairo
1250 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1251 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1252 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1253 $(call gb_LinkTarget_set_include
,$(1),\
1254 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1255 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1258 $(call gb_LinkTarget_add_libs
,$(1),\
1259 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1260 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
1261 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1267 endif # SYSTEM_CAIRO
1269 else ifeq ($(OS
),ANDROID
)
1271 define gb_LinkTarget__use_cairo
1272 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1273 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1274 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1275 $(call gb_LinkTarget_set_include
,$(1),\
1276 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1277 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1280 $(call gb_LinkTarget_add_libs
,$(1),\
1281 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1282 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1289 ifneq ($(SYSTEM_FREETYPE
),)
1291 define gb_LinkTarget__use_freetype_headers
1292 $(call gb_LinkTarget_set_include
,$(1),\
1294 $(FREETYPE_CFLAGS
) \
1299 gb_ExternalProject__use_freetype
:=
1303 define gb_LinkTarget__use_freetype_headers
1304 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1305 $(call gb_LinkTarget_set_include
,$(1),\
1306 $(FREETYPE_CFLAGS
) \
1312 define gb_ExternalProject__use_freetype
1313 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1317 endif # SYSTEM_FREETYPE
1319 define gb_LinkTarget__use_freetype
1320 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1321 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1325 ifneq ($(SYSTEM_FONTCONFIG
),)
1327 define gb_LinkTarget__use_fontconfig
1328 $(call gb_LinkTarget_set_include
,$(1),\
1330 $(FONTCONFIG_CFLAGS
) \
1333 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1339 define gb_LinkTarget__use_fontconfig
1340 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1341 $(call gb_LinkTarget_set_include
,$(1),\
1342 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1346 $(call gb_LinkTarget_add_libs
,$(1),\
1347 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1352 endif # SYSTEM_FONTCONFIG
1354 ifneq ($(SYSTEM_GRAPHITE
),)
1356 define gb_LinkTarget__use_graphite
1357 $(call gb_LinkTarget_set_include
,$(1),\
1359 $(GRAPHITE_CFLAGS
) \
1361 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1365 gb_ExternalProject__use_graphite
:=
1367 else # !SYSTEM_GRAPHITE
1369 define gb_LinkTarget__use_graphite
1370 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1371 $(call gb_LinkTarget_set_include
,$(1),\
1372 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1375 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1381 define gb_ExternalProject__use_graphite
1382 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1387 endif # SYSTEM_GRAPHITE
1389 ifneq ($(SYSTEM_ICU
),)
1391 gb_LinkTarget__use_icu_headers
:=
1392 gb_ExternalProject__use_icu
:=
1394 define gb_LinkTarget__use_icudata
1395 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1398 define gb_LinkTarget__use_icui18n
1399 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1402 define gb_LinkTarget__use_icuuc
1403 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1409 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1413 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1417 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1423 define gb_LinkTarget__use_icu_headers
1424 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1425 $(call gb_LinkTarget_set_include
,$(1),\
1426 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1427 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1428 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1434 define gb_ExternalProject__use_icu
1435 $(call gb_ExternalProject_use_package
,$(1),icu
)
1439 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1440 define gb_LinkTarget__use_icudata
1441 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1444 $(call gb_LinkTarget_add_libs
,$(1),\
1445 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1448 $(call gb_LinkTarget_add_libs
,$(1),\
1449 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1455 define gb_LinkTarget__use_icui18n
1456 $(call gb_LinkTarget_use_package
,$(1),icu
)
1459 $(call gb_LinkTarget_add_libs
,$(1),\
1460 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1463 $(call gb_LinkTarget_add_libs
,$(1),\
1464 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1470 define gb_LinkTarget__use_icuuc
1471 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1474 $(call gb_LinkTarget_add_libs
,$(1),\
1475 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1478 $(call gb_LinkTarget_add_libs
,$(1),\
1479 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1487 ifneq ($(SYSTEM_HARFBUZZ
),)
1489 define gb_LinkTarget__use_harfbuzz
1490 $(call gb_LinkTarget_set_include
,$(1),\
1492 $(HARFBUZZ_CFLAGS
) \
1494 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1498 gb_ExternalProject__use_harfbuzz
:=
1500 else # SYSTEM_HARFBUZZ != TRUE
1502 define gb_LinkTarget__use_harfbuzz
1503 $(call gb_LinkTarget_set_include
,$(1),\
1504 $(HARFBUZZ_CFLAGS
) \
1507 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1508 $(call gb_LinkTarget_use_external
,$(1),icuuc
)
1509 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1513 define gb_ExternalProject__use_harfbuzz
1514 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1518 endif # SYSTEM_HARFBUZZ
1520 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1522 gb_ExternalProject__use_openssl
:=
1523 gb_LinkTarget__use_openssl_headers
:=
1524 gb_LinkTarget__use_openssl
:=
1526 else # !DISABLE_OPENSSL
1528 ifneq ($(SYSTEM_OPENSSL
),)
1530 gb_LinkTarget__use_openssl_headers
:=
1531 gb_ExternalProject__use_openssl
:=
1533 define gb_LinkTarget__use_openssl
1534 $(call gb_LinkTarget_set_include
,$(1),\
1538 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1542 else # !SYSTEM_OPENSSL
1544 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1548 define gb_ExternalProject__use_openssl
1549 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1553 define gb_LinkTarget__use_openssl_headers
1554 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1555 $(call gb_LinkTarget_set_include
,$(1),\
1556 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1562 define gb_LinkTarget__use_openssl
1563 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1565 $(call gb_LinkTarget_add_libs
,$(1),\
1566 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/ssleay32.lib \
1567 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/libeay32.lib \
1570 $(call gb_LinkTarget_add_libs
,$(1),\
1571 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1572 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1574 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1575 ifeq ($(OS
),SOLARIS
)
1576 $(call gb_LinkTarget_add_libs
,$(1),\
1585 endif # SYSTEM_OPENSSL
1586 endif # DISABLE_OPENSSL
1589 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1591 define gb_LinkTarget__use_gnutls
1592 $(call gb_LinkTarget_set_include
,$(1),\
1597 $(call gb_LinkTarget_add_defs
,$(1),\
1601 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1605 define gb_LinkTarget__use_libgcrypt
1606 $(call gb_LinkTarget_set_include
,$(1),\
1608 $(LIBGCRYPT_CFLAGS
) \
1611 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1615 else # !DISABLE_OPENSSL
1617 gb_LinkTarget__use_gnutls
:=
1618 gb_LinkTarget__use_libgcrypt
:=
1620 endif # DISABLE_OPENSSL
1623 ifneq ($(SYSTEM_CDR
),)
1625 define gb_LinkTarget__use_cdr
1626 $(call gb_LinkTarget_set_include
,$(1),\
1630 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1636 define gb_LinkTarget__use_cdr
1637 $(call gb_LinkTarget_set_include
,$(1),\
1638 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1641 $(call gb_LinkTarget_add_libs
,$(1),\
1642 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1644 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1650 ifneq ($(SYSTEM_EBOOK
),)
1652 define gb_LinkTarget__use_ebook
1653 $(call gb_LinkTarget_set_include
,$(1),\
1657 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1661 gb_ExternalProject__use_ebook
:=
1663 else # !SYSTEM_EBOOK
1665 define gb_LinkTarget__use_ebook
1666 $(call gb_LinkTarget_set_include
,$(1),\
1667 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1670 $(call gb_LinkTarget_add_libs
,$(1),\
1671 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1673 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1677 define gb_ExternalProject__use_ebook
1678 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1682 endif # SYSTEM_EBOOK
1685 ifneq ($(SYSTEM_ETONYEK
),)
1687 define gb_LinkTarget__use_etonyek
1688 $(call gb_LinkTarget_set_include
,$(1),\
1692 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1696 gb_ExternalProject__use_etonyek
:=
1698 else # !SYSTEM_ETONYEK
1702 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1706 define gb_LinkTarget__use_etonyek
1707 $(call gb_LinkTarget_set_include
,$(1),\
1708 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1711 $(call gb_LinkTarget_use_libraries
,$(1),\
1719 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1723 define gb_LinkTarget__use_etonyek
1724 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1726 $(call gb_LinkTarget_set_include
,$(1),\
1727 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1728 -DLIBETONYEK_VISIBILITY \
1731 $(call gb_LinkTarget_add_libs
,$(1),\
1732 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1734 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1738 define gb_ExternalProject__use_etonyek
1739 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1745 endif # SYSTEM_ETONYEK
1748 ifneq ($(SYSTEM_FREEHAND
),)
1750 define gb_LinkTarget__use_freehand
1751 $(call gb_LinkTarget_set_include
,$(1),\
1753 $(FREEHAND_CFLAGS
) \
1755 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1759 gb_ExternalProject__use_freehand
:=
1761 else # !SYSTEM_FREEHAND
1763 define gb_LinkTarget__use_freehand
1764 $(call gb_LinkTarget_set_include
,$(1),\
1765 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1768 $(call gb_LinkTarget_add_libs
,$(1),\
1769 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1771 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1775 define gb_ExternalProject__use_freehand
1776 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1780 endif # SYSTEM_FREEHAND
1783 ifneq ($(SYSTEM_ODFGEN
),)
1785 define gb_LinkTarget__use_odfgen
1786 $(call gb_LinkTarget_set_include
,$(1),\
1790 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1794 else # !SYSTEM_ODFGEN
1798 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1802 define gb_LinkTarget__use_odfgen
1803 $(call gb_LinkTarget_set_include
,$(1),\
1804 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1807 $(call gb_LinkTarget_use_libraries
,$(1),\
1815 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1819 define gb_LinkTarget__use_odfgen
1820 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1822 $(call gb_LinkTarget_set_include
,$(1),\
1823 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1824 -DLIBODFGEN_VISIBILITY \
1827 $(call gb_LinkTarget_add_libs
,$(1),\
1828 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1835 endif # SYSTEM_ODFGEN
1837 ifneq ($(SYSTEM_EPUBGEN
),)
1839 define gb_LinkTarget__use_epubgen
1840 $(call gb_LinkTarget_set_include
,$(1),\
1844 $(call gb_LinkTarget_add_libs
,$(1),$(EPUBGEN_LIBS
))
1847 gb_ExternalProject__use_epubgen
:=
1849 else # !SYSTEM_EPUBGEN
1851 define gb_LinkTarget__use_epubgen
1852 $(call gb_LinkTarget_set_include
,$(1),\
1853 -I
$(call gb_UnpackedTarball_get_dir
,libepubgen
)/inc \
1856 $(call gb_LinkTarget_add_libs
,$(1),\
1857 $(call gb_UnpackedTarball_get_dir
,libepubgen
)/src
/lib
/.libs
/libepubgen-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1859 $(call gb_LinkTarget_use_external_project
,$(1),libepubgen
)
1862 define gb_ExternalProject__use_epubgen
1863 $(call gb_ExternalProject_use_external_project
,$(1),libepubgen
)
1867 endif # SYSTEM_EPUBGEN
1869 ifneq ($(SYSTEM_REVENGE
),)
1871 define gb_LinkTarget__use_revenge
1872 $(call gb_LinkTarget_set_include
,$(1),\
1876 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1880 gb_ExternalProject__use_revenge
:=
1882 else # !SYSTEM_REVENGE
1886 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1890 define gb_LinkTarget__use_revenge
1891 $(call gb_LinkTarget_set_include
,$(1),\
1895 $(call gb_LinkTarget_use_libraries
,$(1),\
1901 define gb_ExternalProject__use_revenge
1902 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1908 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1912 define gb_LinkTarget__use_revenge
1913 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1915 $(call gb_LinkTarget_set_include
,$(1),\
1917 -DLIBREVENGE_VISIBILITY \
1920 $(call gb_LinkTarget_add_libs
,$(1),\
1925 define gb_ExternalProject__use_revenge
1926 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1932 endif # SYSTEM_REVENGE
1935 ifneq ($(SYSTEM_ABW
),)
1937 define gb_LinkTarget__use_abw
1938 $(call gb_LinkTarget_set_include
,$(1),\
1942 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1945 gb_ExternalProject__use_abw
:=
1949 define gb_LinkTarget__use_abw
1950 $(call gb_LinkTarget_set_include
,$(1),\
1951 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1954 $(call gb_LinkTarget_add_libs
,$(1),\
1955 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1957 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1960 define gb_ExternalProject__use_abw
1961 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1968 ifneq ($(SYSTEM_MSPUB
),)
1970 define gb_LinkTarget__use_mspub
1971 $(call gb_LinkTarget_set_include
,$(1),\
1975 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1979 else # !SYSTEM_MSPUB
1981 define gb_LinkTarget__use_mspub
1982 $(call gb_LinkTarget_set_include
,$(1),\
1983 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1986 $(call gb_LinkTarget_add_libs
,$(1),\
1987 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1989 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1993 endif # SYSTEM_MSPUB
1996 ifneq ($(SYSTEM_PAGEMAKER
),)
1998 define gb_LinkTarget__use_pagemaker
1999 $(call gb_LinkTarget_set_include
,$(1),\
2001 $(PAGEMAKER_CFLAGS
) \
2003 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
2006 gb_ExternalProject__use_pagemaker
:=
2008 else # !SYSTEM_PAGEMAKER
2010 define gb_LinkTarget__use_pagemaker
2011 $(call gb_LinkTarget_set_include
,$(1),\
2012 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
2015 $(call gb_LinkTarget_add_libs
,$(1),\
2016 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2018 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
2021 define gb_ExternalProject__use_pagemaker
2022 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
2026 endif # SYSTEM_PAGEMAKER
2029 ifneq ($(SYSTEM_QXP
),)
2031 define gb_LinkTarget__use_qxp
2032 $(call gb_LinkTarget_set_include
,$(1),\
2036 $(call gb_LinkTarget_add_libs
,$(1),$(QXP_LIBS
))
2039 gb_ExternalProject__use_qxp
:=
2043 define gb_LinkTarget__use_qxp
2044 $(call gb_LinkTarget_set_include
,$(1),\
2045 -I
$(call gb_UnpackedTarball_get_dir
,libqxp
)/inc \
2048 $(call gb_LinkTarget_add_libs
,$(1),\
2049 $(call gb_UnpackedTarball_get_dir
,libqxp
)/src
/lib
/.libs
/libqxp-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2051 $(call gb_LinkTarget_use_external_project
,$(1),libqxp
)
2054 define gb_ExternalProject__use_qxp
2055 $(call gb_ExternalProject_use_external_project
,$(1),libqxp
)
2062 ifneq ($(SYSTEM_ZMF
),)
2064 define gb_LinkTarget__use_zmf
2065 $(call gb_LinkTarget_set_include
,$(1),\
2069 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
2072 gb_ExternalProject__use_zmf
:=
2076 define gb_LinkTarget__use_zmf
2077 $(call gb_LinkTarget_set_include
,$(1),\
2078 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
2081 $(call gb_LinkTarget_add_libs
,$(1),\
2082 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
2084 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
2087 define gb_ExternalProject__use_zmf
2088 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
2095 ifneq ($(SYSTEM_VISIO
),)
2097 define gb_LinkTarget__use_visio
2098 $(call gb_LinkTarget_set_include
,$(1),\
2102 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2106 else # !SYSTEM_VISIO
2108 define gb_LinkTarget__use_visio
2109 $(call gb_LinkTarget_set_include
,$(1),\
2110 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2113 $(call gb_LinkTarget_add_libs
,$(1),\
2114 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2116 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2120 endif # SYSTEM_VISIO
2123 ifneq ($(SYSTEM_WPD
),)
2125 define gb_LinkTarget__use_wpd
2126 $(call gb_LinkTarget_set_include
,$(1),\
2130 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2133 gb_ExternalProject__use_wpd
:=
2139 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2143 define gb_LinkTarget__use_wpd
2144 $(call gb_LinkTarget_set_include
,$(1),\
2148 $(call gb_LinkTarget_use_libraries
,$(1),\
2154 define gb_ExternalProject__use_wpd
2155 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2161 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2165 define gb_LinkTarget__use_wpd
2166 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2168 $(call gb_LinkTarget_set_include
,$(1),\
2172 $(call gb_LinkTarget_add_libs
,$(1),\
2178 define gb_ExternalProject__use_wpd
2179 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2188 ifneq ($(SYSTEM_WPG
),)
2190 define gb_LinkTarget__use_wpg
2191 $(call gb_LinkTarget_set_include
,$(1),\
2195 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2198 gb_ExternalProject__use_wpg
:=
2204 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2208 define gb_LinkTarget__use_wpg
2209 $(call gb_LinkTarget_set_include
,$(1),\
2210 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2213 $(call gb_LinkTarget_use_libraries
,$(1),\
2221 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2225 define gb_LinkTarget__use_wpg
2226 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2228 $(call gb_LinkTarget_set_include
,$(1),\
2229 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2232 $(call gb_LinkTarget_add_libs
,$(1),\
2233 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2243 ifneq ($(SYSTEM_WPS
),)
2245 define gb_LinkTarget__use_wps
2246 $(call gb_LinkTarget_set_include
,$(1),\
2250 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2253 gb_ExternalProject__use_wps
:=
2259 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2263 define gb_LinkTarget__use_wps
2264 $(call gb_LinkTarget_set_include
,$(1),\
2265 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2269 $(call gb_LinkTarget_use_libraries
,$(1),\
2277 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2281 define gb_LinkTarget__use_wps
2282 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2284 $(call gb_LinkTarget_set_include
,$(1),\
2285 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2288 $(call gb_LinkTarget_add_libs
,$(1),\
2289 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2299 ifneq ($(SYSTEM_MWAW
),)
2301 define gb_LinkTarget__use_mwaw
2302 $(call gb_LinkTarget_set_include
,$(1),\
2306 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2314 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2318 define gb_LinkTarget__use_mwaw
2319 $(call gb_LinkTarget_set_include
,$(1),\
2320 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2324 $(call gb_LinkTarget_use_libraries
,$(1),\
2332 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2336 define gb_LinkTarget__use_mwaw
2337 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2339 $(call gb_LinkTarget_set_include
,$(1),\
2340 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2343 $(call gb_LinkTarget_add_libs
,$(1),\
2344 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2353 ifneq ($(SYSTEM_STAROFFICE
),)
2355 define gb_LinkTarget__use_staroffice
2356 $(call gb_LinkTarget_set_include
,$(1),\
2358 $(STAROFFICE_CFLAGS
) \
2360 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2364 else # !SYSTEM_STAROFFICE
2368 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2372 define gb_LinkTarget__use_staroffice
2373 $(call gb_LinkTarget_set_include
,$(1),\
2374 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2378 $(call gb_LinkTarget_use_libraries
,$(1),\
2386 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2390 define gb_LinkTarget__use_staroffice
2391 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2393 $(call gb_LinkTarget_set_include
,$(1),\
2394 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2397 $(call gb_LinkTarget_add_libs
,$(1),\
2398 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2405 endif # SYSTEM_STAROFFICE
2408 ifneq ($(SYSTEM_LCMS2
),)
2410 define gb_LinkTarget__use_lcms2
2411 $(call gb_LinkTarget_set_include
,$(1),\
2415 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2419 gb_ExternalProject__use_lcms2
:=
2421 else # !SYSTEM_LCMS2
2423 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2427 define gb_ExternalProject__use_lcms2
2428 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2432 ifeq ($(OS
),ANDROID
)
2434 define gb_LinkTarget__use_lcms2
2435 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2436 $(call gb_LinkTarget_set_include
,$(1),\
2437 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2445 define gb_LinkTarget__use_lcms2
2446 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2447 $(call gb_LinkTarget_set_include
,$(1),\
2448 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2451 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2456 endif # SYSTEM_LCMS2
2458 ifneq ($(ENABLE_LPSOLVE
),)
2460 ifneq ($(SYSTEM_LPSOLVE
),)
2462 define gb_LinkTarget__use_lpsolve
2463 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2464 $(call gb_LinkTarget_add_defs
,$(1),\
2470 else # !SYSTEM_LPSOLVE
2472 define gb_LinkTarget__use_lpsolve
2473 $(call gb_LinkTarget_use_external_project
,$(1),lpsolve
)
2475 $(call gb_LinkTarget_add_libs
,$(1),\
2476 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2479 $(call gb_LinkTarget_add_libs
,$(1),\
2480 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2483 $(call gb_LinkTarget_set_include
,$(1),\
2484 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2490 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2494 endif # SYSTEM_LPSOLVE
2498 gb_LinkTarget__use_lpsolve
:=
2500 endif # ENABLE_LPSOLVE
2502 ifneq ($(ENABLE_COINMP
),)
2504 ifneq ($(SYSTEM_COINMP
),TRUE
)
2506 define gb_LinkTarget__use_coinmp
2507 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2509 $(call gb_LinkTarget_add_libs
,$(1),\
2510 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2513 $(call gb_LinkTarget_add_libs
,$(1),\
2514 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2515 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2516 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2517 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2518 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2519 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2520 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2523 $(call gb_LinkTarget_set_include
,$(1),\
2524 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2525 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2531 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2535 else # SYSTEM_COINMP
2537 define gb_LinkTarget__use_coinmp
2538 $(call gb_LinkTarget_set_include
,$(1),\
2542 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2550 gb_LinkTarget__use_coinmp
:=
2552 endif # ENABLE_COINMP
2554 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2556 define gb_LinkTarget__use_mDNSResponder
2557 $(call gb_LinkTarget_set_include
,$(1),\
2558 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2561 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2564 endif # MDNSRESPONDER
2566 ifeq ($(ENABLE_GIO
),TRUE
)
2568 define gb_LinkTarget__use_gio
2569 $(call gb_LinkTarget_set_include
,$(1),\
2574 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2580 define gb_LinkTarget__use_gio
2586 ifeq ($(ENABLE_AVAHI
),TRUE
)
2588 define gb_LinkTarget__use_avahi
2589 $(call gb_LinkTarget_set_include
,$(1),\
2594 $(call gb_LinkTarget_add_defs
,$(1),\
2598 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2604 gb_LinkTarget__use_avahi
:=
2606 endif # ENABLE_AVAHI
2609 define gb_LinkTarget__use_gtk
2610 $(call gb_LinkTarget_set_include
,$(1),\
2615 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_LIBS
))
2617 ifeq ($(ENABLE_GTK_PRINT
),TRUE
)
2619 $(call gb_LinkTarget_add_defs
,$(1),-DENABLE_GTK_PRINT
)
2621 $(call gb_LinkTarget_set_include
,$(1),\
2623 $(GTK_PRINT_CFLAGS
) \
2626 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_PRINT_LIBS
))
2632 define gb_LinkTarget__use_gthread
2633 $(call gb_LinkTarget_add_libs
,$(1),$(GTHREAD_LIBS
))
2636 ifeq ($(ENABLE_CUPS
),TRUE
)
2638 define gb_LinkTarget__use_cups
2639 $(call gb_LinkTarget_add_defs
,$(1),\
2643 $(call gb_LinkTarget_add_libs
,$(1),\
2651 define gb_LinkTarget__use_cups
2657 ifeq ($(ENABLE_DBUS
),TRUE
)
2659 define gb_LinkTarget__use_dbus
2660 $(call gb_LinkTarget_set_include
,$(1),\
2665 $(call gb_LinkTarget_add_libs
,$(1),\
2673 define gb_LinkTarget__use_dbus
2680 ifneq ($(SYSTEM_LIBPNG
),)
2682 define gb_LinkTarget__use_libpng
2683 $(call gb_LinkTarget_set_include
,$(1),\
2688 $(call gb_LinkTarget_add_libs
,$(1),\
2694 gb_ExternalProject__use_libpng
:=
2696 else # !SYSTEM_LIBPNG
2698 define gb_LinkTarget__use_libpng
2699 $(call gb_LinkTarget_set_include
,$(1),\
2703 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2706 $(call gb_LinkTarget__use_zlib
,$(1))
2710 define gb_ExternalProject__use_libpng
2711 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2717 endif # !SYSTEM_LIBPNG
2720 ifneq ($(SYSTEM_CURL
),)
2722 define gb_LinkTarget__use_curl
2723 $(call gb_LinkTarget_add_defs
,$(1),\
2726 $(call gb_LinkTarget_set_include
,$(1),\
2730 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2736 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2740 define gb_LinkTarget__use_curl
2741 $(call gb_LinkTarget_use_package
,$(1),curl
)
2742 $(call gb_LinkTarget_set_include
,$(1),\
2743 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2748 $(call gb_LinkTarget_add_libs
,$(1),\
2749 $(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 \
2752 $(call gb_LinkTarget_add_libs
,$(1),\
2753 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2761 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2763 define gb_LinkTarget__use_valgrind
2764 $(call gb_LinkTarget_add_defs
,$(1),\
2765 -DHAVE_VALGRIND_HEADERS \
2768 $(call gb_LinkTarget_set_include
,$(1),\
2770 $(VALGRIND_CFLAGS
) \
2775 else # !ENABLE_VALGRIND
2777 define gb_LinkTarget__use_valgrind
2781 endif # ENABLE_VALGRIND
2783 ifneq ($(SYSTEM_POPPLER
),)
2785 define gb_LinkTarget__use_poppler
2786 $(call gb_LinkTarget_set_include
,$(1),\
2791 $(call gb_LinkTarget_add_libs
,$(1),\
2797 else # !SYSTEM_POPPLER
2799 define gb_LinkTarget__use_poppler
2800 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2802 $(call gb_LinkTarget_set_include
,$(1),\
2803 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2804 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2805 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2809 $(call gb_LinkTarget_use_static_libraries
,$(1),poppler
)
2811 $(call gb_LinkTarget_use_external
,$(1),libjpeg
)
2814 $(call gb_LinkTarget_add_libs
,$(1),\
2817 else ifeq ($(OS
),LINUX
)
2818 $(call gb_LinkTarget_add_libs
,$(1),\
2821 else ifeq ($(OS
),WNT
)
2822 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2830 endif # SYSTEM_POPPLER
2833 ifneq ($(SYSTEM_CLUCENE
),)
2835 define gb_LinkTarget__use_clucene
2836 $(call gb_LinkTarget_add_defs
,$(1),\
2837 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2840 $(call gb_LinkTarget_set_include
,$(1),\
2841 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2845 $(call gb_LinkTarget_add_libs
,$(1),\
2851 else # !SYSTEM_CLUCENE
2853 define gb_LinkTarget__use_clucene
2854 $(call gb_LinkTarget_set_include
,$(1),\
2855 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2856 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2857 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2861 $(call gb_LinkTarget_use_libraries
,$(1),\
2867 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2871 endif # SYSTEM_CLUCENE
2873 define gb_LinkTarget__use_gobject
2874 $(call gb_LinkTarget_add_libs
,$(1),\
2878 $(call gb_LinkTarget_set_include
,$(1),\
2884 ifneq ($(SYSTEM_HSQLDB
),)
2886 define gb_LinkTarget__use_hsqldb
2888 $(call gb_LinkTarget_add_defs
,$(1),\
2890 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2895 else # !SYSTEM_HSQLDB
2897 define gb_LinkTarget__use_hsqldb
2901 endif # SYSTEM_HSQLDB
2904 ifneq ($(SYSTEM_OPENLDAP
),)
2906 define gb_LinkTarget__use_openldap
2908 $(call gb_LinkTarget_add_libs
,$(1),\
2915 gb_ExternalProject__use_openldap
:=
2917 else # !SYSTEM_OPENLDAP
2919 define gb_LinkTarget__use_openldap
2920 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2921 $(call gb_LinkTarget_set_include
,$(1),\
2922 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2925 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2926 $(call gb_LinkTarget_add_libs
,$(1), \
2927 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2928 $(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_KDE5
),TRUE
)
3076 define gb_LinkTarget__use_kde5
3077 $(call gb_LinkTarget_set_include
,$(1),\
3078 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
)))) \
3082 $(call gb_LinkTarget_add_defs
,$(1),\
3083 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KF5_CFLAGS
))) \
3086 $(call gb_LinkTarget_add_libs
,$(1),\
3091 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3100 define gb_LinkTarget__use_kde5
3108 ifeq ($(ENABLE_QT5
),TRUE
)
3110 define gb_LinkTarget__use_qt5
3111 $(call gb_LinkTarget_set_include
,$(1),\
3112 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
)))) \
3116 $(call gb_LinkTarget_add_defs
,$(1),\
3117 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(QT5_CFLAGS
))) \
3120 $(call gb_LinkTarget_add_libs
,$(1),\
3125 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3134 define gb_LinkTarget__use_qt5
3141 # extra python_headers external because pyuno wrapper must not link python
3142 ifneq ($(SYSTEM_PYTHON
),)
3144 define gb_LinkTarget__use_python_headers
3145 $(call gb_LinkTarget_add_defs
,$(1),\
3146 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3149 $(call gb_LinkTarget_set_include
,$(1),\
3150 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3156 define gb_LinkTarget__use_python
3157 $(call gb_LinkTarget__use_python_headers
,$(1))
3159 $(call gb_LinkTarget_add_libs
,$(1),\
3165 else # !SYSTEM_PYTHON
3167 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3171 define gb_LinkTarget__use_python_headers
3172 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3173 $(call gb_LinkTarget_set_include
,$(1),\
3174 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3175 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3176 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3182 define gb_LinkTarget__use_python
3183 $(call gb_LinkTarget__use_python_headers
,$(1))
3185 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3187 $(call gb_LinkTarget_use_package
,$(1),python3
)
3191 $(call gb_LinkTarget_add_libs
,$(1),\
3192 $(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 \
3194 else ifeq ($(OS
),MACOSX
)
3195 $(call gb_LinkTarget_add_libs
,$(1),\
3196 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3199 $(call gb_LinkTarget_add_libs
,$(1),\
3200 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3201 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
3207 endif # SYSTEM_PYTHON
3210 ifneq ($(SYSTEM_LIBORCUS
),)
3212 define gb_LinkTarget__use_orcus
3213 $(call gb_LinkTarget_set_include
,$(1),\
3217 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3220 define gb_LinkTarget__use_orcus-parser
3224 else # !SYSTEM_LIBORCUS
3228 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3233 define gb_LinkTarget__use_orcus
3234 $(call gb_LinkTarget_set_include
,$(1),\
3235 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3239 $(call gb_LinkTarget_use_libraries
,$(1),\
3245 define gb_LinkTarget__use_orcus-parser
3246 $(call gb_LinkTarget_set_include
,$(1),\
3247 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3251 $(call gb_LinkTarget_use_libraries
,$(1),\
3259 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3263 define gb_LinkTarget__use_orcus
3264 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3266 $(call gb_LinkTarget_set_include
,$(1),\
3267 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3271 $(call gb_LinkTarget_add_libs
,$(1),\
3272 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.14 \
3275 $(if
$(SYSTEM_BOOST
), \
3276 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3277 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3282 define gb_LinkTarget__use_orcus-parser
3283 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3285 $(call gb_LinkTarget_set_include
,$(1),\
3286 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3290 $(call gb_LinkTarget_add_libs
,$(1),\
3291 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.14 \
3298 endif # SYSTEM_LIBORCUS
3300 ifeq ($(ENABLE_EOT
),TRUE
)
3302 ifneq ($(SYSTEM_LIBEOT
),)
3304 define gb_LinkTarget__use_libeot
3305 $(call gb_LinkTarget_set_include
,$(1),\
3309 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3313 gb_ExternalProject__use_libeot
:=
3315 else # !SYSTEM_LIBEOT
3317 define gb_LinkTarget__use_libeot
3318 $(call gb_LinkTarget_set_include
,$(1),\
3319 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3322 $(call gb_LinkTarget_add_libs
,$(1),\
3323 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3325 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3329 define gb_ExternalProject__use_libeot
3330 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3334 endif # SYSTEM_LIBEOT
3338 gb_LinkTarget__use_libeot
:=
3339 gb_ExternalProject__use_libeot
:=
3345 ifeq ($(USING_X11
), TRUE
)
3347 define gb_LinkTarget__use_Xrandr
3348 $(call gb_LinkTarget_set_include
,$(1),\
3353 $(call gb_LinkTarget_add_libs
,$(1),\
3358 define gb_LinkTarget__use_Xrender
3359 $(call gb_LinkTarget_set_include
,$(1),\
3364 $(call gb_LinkTarget_add_libs
,$(1),\
3372 gb_ExternalProject__use_nss3
:=
3375 ifneq ($(SYSTEM_NSS
),)
3377 define gb_LinkTarget__use_nss3
3378 $(call gb_LinkTarget_add_defs
,$(1),\
3382 $(call gb_LinkTarget_set_include
,$(1),\
3387 $(call gb_LinkTarget_add_libs
,$(1),\
3393 define gb_LinkTarget__use_plc4
3394 $(call gb_LinkTarget__use_nss3
,$(1))
3398 define gb_LinkTarget__use_ssl3
3399 $(call gb_LinkTarget__use_nss3
,$(1))
3405 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3409 define gb_LinkTarget__use_nss3
3410 $(call gb_LinkTarget_use_package
,$(1),nss
)
3411 $(call gb_LinkTarget_set_include
,$(1),\
3413 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3414 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3418 $(call gb_LinkTarget_add_libs
,$(1),\
3419 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3420 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3421 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3424 $(call gb_LinkTarget_add_libs
,$(1),\
3425 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3434 define gb_LinkTarget__use_plc4
3435 $(call gb_LinkTarget_use_package
,$(1),nss
)
3437 $(call gb_LinkTarget_add_libs
,$(1),\
3438 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3441 $(call gb_LinkTarget_add_libs
,$(1),\
3442 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3448 define gb_LinkTarget__use_ssl3
3449 $(call gb_LinkTarget_use_package
,$(1),nss
)
3451 $(call gb_LinkTarget_add_libs
,$(1),\
3452 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3455 $(call gb_LinkTarget_add_libs
,$(1),\
3456 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3462 define gb_ExternalProject__use_nss3
3463 $(call gb_ExternalProject_use_package
,$(1),nss
)
3469 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3471 define gb_LinkTarget__use_breakpad
3472 $(call gb_LinkTarget_set_include
,$(1),\
3473 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3478 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3482 $(call gb_LinkTarget_add_libs
,$(1),\
3483 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3487 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3491 endif # ENABLE_BREAKPAD
3493 ifeq ($(ENABLE_GPGMEPP
),TRUE
)
3495 ifneq ($(SYSTEM_GPGMEPP
),)
3497 gb_ExternalProject__use_gpgmepp
:=
3498 gb_ExternalProject__use_libassuan
:=
3499 gb_ExternalProject__use_libgpg-error
:=
3501 define gb_LinkTarget__use_gpgmepp
3502 $(call gb_LinkTarget_set_include
,$(1),\
3504 $$(GPGMEPP_CFLAGS
) \
3507 $(call gb_LinkTarget_add_libs
,$(1),\
3513 else ifneq ($(filter GPGMEPP
,$(BUILD_TYPE
)),) # NON-SYSTEM_GPGME
3515 define gb_ExternalProject__use_gpgmepp
3516 $(call gb_ExternalProject_use_external_project
,$(1),gpgmepp
)
3519 define gb_ExternalProject__use_libassuan
3520 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3523 define gb_ExternalProject__use_libgpg-error
3524 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3528 ifneq ($(filter WNT
,$(OS
)),)
3530 define gb_LinkTarget__use_libgpg-error
3531 $(call gb_LinkTarget_use_package
,$(1),libgpg-error
)
3533 $(call gb_LinkTarget_set_include
,$(1),\
3534 $(GPG_ERROR_CFLAGS
) \
3537 $(call gb_LinkTarget_add_libs
,$(1),\
3538 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libgpg-error
)/src
/.libs libgpg-error.lib \
3543 define gb_LinkTarget__use_libassuan
3544 $(call gb_LinkTarget_use_package
,$(1),libassuan
)
3546 $(call gb_LinkTarget_set_include
,$(1),\
3547 $(LIBASSUAN_CFLAGS
) \
3550 $(call gb_LinkTarget_add_libs
,$(1),\
3551 -LIBPATH
:$(call gb_UnpackedTarball_get_dir
,libassuan
)/src
/.libs libassuan.lib \
3556 define gb_LinkTarget__use_gpgmepp
3557 $(call gb_LinkTarget_set_include
,$(1),\
3558 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3559 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3560 $$(GPG_ERROR_CFLAGS
) \
3563 $(call gb_LinkTarget_use_libraries
,$(1),\
3569 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3574 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3578 $(eval
$(call gb_Helper_register_executables_for_install
,OOO
,ooo
, \
3584 ifneq ($(filter MACOSX LINUX
,$(OS
)),)
3586 define gb_LinkTarget__use_gpgmepp
3587 $(call gb_LinkTarget_use_package
,$(1),gpgmepp
)
3589 $(call gb_LinkTarget_set_include
,$(1),\
3590 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src \
3591 -I
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src \
3592 $$(GPG_ERROR_CFLAGS
) \
3595 $(call gb_LinkTarget_add_libs
,$(1),\
3596 -L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3597 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),-L
$(call gb_UnpackedTarball_get_dir
,gpgmepp
)/src
/.libs
/ -lgpgme
) \
3598 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(GPG_ERROR_LIBS
)) \
3599 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),$$(LIBASSUAN_LIBS
)) \
3604 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3614 else # !ENABLE_GPGMEPP
3616 gb_ExternalProject__use_gpgmepp
:=
3617 gb_ExternalProject__use_libassuan
:=
3618 gb_ExternalProject__use_libgpg-error
:=
3620 gb_LinkTarget__use_gpgmepp
:=
3621 gb_LinkTarget__use_libassuan
:=
3622 gb_LinkTarget__use_libgpg-error
:=
3624 endif # ENABLE_GPGMEPP
3626 define gb_LinkTarget__use_dconf
3627 $(call gb_LinkTarget_add_defs
,$(1),$(DCONF_CFLAGS
))
3628 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3631 ### Jars ############################################################
3633 ifneq ($(SYSTEM_HSQLDB
),)
3635 define gb_Jar__use_hsqldb
3636 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3638 define gb_JunitTest__use_hsqldb
3639 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3642 else # !SYSTEM_HSQLDB
3644 ifeq ($(ENABLE_JAVA
),TRUE
)
3645 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3650 define gb_Jar__use_hsqldb
3651 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3653 define gb_JunitTest__use_hsqldb
3654 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3657 endif # SYSTEM_HSQLDB
3660 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3662 ifneq ($(SYSTEM_BSH
),)
3664 define gb_Jar__use_bsh
3665 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3670 ifeq ($(ENABLE_JAVA
),TRUE
)
3671 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3676 define gb_Jar__use_bsh
3677 $(call gb_Jar_use_jar
,$(1),bsh
)
3684 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3686 ifneq ($(SYSTEM_RHINO
),)
3688 define gb_Jar__use_rhino
3689 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3692 else # !SYSTEM_RHINO
3694 ifeq ($(ENABLE_JAVA
),TRUE
)
3695 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3700 define gb_Jar__use_rhino
3701 $(call gb_Jar_use_jar
,$(1),js
)
3704 endif # SYSTEM_RHINO
3708 ifneq ($(SYSTEM_APACHE_COMMONS
),)
3710 define gb_Jar__use_commons-logging
3711 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
3713 gb_ExternalProject__use_commons-logging
:=
3715 else # !SYSTEM_APACHE_COMMONS
3717 ifeq ($(ENABLE_JAVA
),TRUE
)
3718 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3719 commons-logging-
$(COMMONS_LOGGING_VERSION
) \
3723 define gb_Jar__use_commons-logging
3724 $(call gb_Jar_use_external_project
,$(1),apache_commons_logging
)
3725 $(call gb_Jar_use_jar
,$(1),commons-logging-
$(COMMONS_LOGGING_VERSION
))
3727 define gb_ExternalProject__use_commons-logging
3728 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
3731 endif # SYSTEM_APACHE_COMMONS
3734 ifneq ($(SYSTEM_JFREEREPORT
),)
3736 define gb_Jar__use_flow-engine
3737 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3740 define gb_Jar__use_flute
3741 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3744 define gb_Jar__use_libbase
3745 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3748 define gb_Jar__use_libfonts
3749 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3752 define gb_Jar__use_libformula
3753 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3756 define gb_Jar__use_liblayout
3757 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3760 define gb_Jar__use_libloader
3761 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3764 define gb_Jar__use_librepository
3765 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3768 define gb_Jar__use_libserializer
3769 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3772 define gb_Jar__use_libxml
3773 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3776 define gb_Jar__use_sac
3777 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3780 else # !SYSTEM_JFREEREPORT
3782 ifeq ($(ENABLE_JAVA
),TRUE
)
3783 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3791 librepository-1.1
.6 \
3792 libserializer-1.1
.6 \
3798 define gb_Jar__use_flow-engine
3799 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3802 define gb_Jar__use_flute
3803 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3806 define gb_Jar__use_libbase
3807 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3810 define gb_Jar__use_libfonts
3811 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3814 define gb_Jar__use_libformula
3815 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3818 define gb_Jar__use_liblayout
3819 $(call gb_Jar_use_jar
,$(1),liblayout
)
3822 define gb_Jar__use_libloader
3823 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3826 define gb_Jar__use_librepository
3827 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3830 define gb_Jar__use_libserializer
3831 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3834 define gb_Jar__use_libxml
3835 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3838 define gb_Jar__use_sac
3839 $(call gb_Jar_use_jar
,$(1),sac
)
3842 endif # SYSTEM_JFREEREPORT
3847 # FIXME: the library target should be for build too
3848 define gb_Executable__register_bestreversemap
3849 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3850 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3854 # TODO depending on the whole URE might be overkill, but I do not have a
3855 # Windows machine to debug it...
3856 # FIXME: the library target should be for build too
3857 define gb_Executable__register_climaker
3858 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3859 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3860 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3861 $(call gb_UnoApi_get_target
,udkapi
) \
3862 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3866 define gb_Executable__register_cppumaker
3867 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3868 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3872 # This is used to determine what we need for 'build' platform.
3873 # FIXME: the library target should be for build too
3874 define gb_Executable__register_gengal
3875 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3876 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3877 $(call gb_Package_get_target_for_build
,postprocess_images
) \
3878 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3879 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3880 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3881 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3882 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3883 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3884 $(call gb_UnoApi_get_target
,offapi
) \
3885 $(call gb_UnoApi_get_target
,udkapi
) \
3889 ifeq ($(SYSTEM_ICU
),)
3891 define gb_Executable__register_gendict
3892 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3893 $(call gb_Package_get_target_for_build
,icu
) \
3894 $(call gb_Package_get_target_for_build
,icu_ure
) \
3900 define gb_Executable__register_idlc
3901 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3902 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3906 define gb_Executable__register_localize
3907 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3908 $(foreach exec
,cfgex helpex propex treex ulfex xrmex
,\
3909 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3914 # FIXME ure/services.rdb needs cleanup
3915 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3916 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3917 # FIXME: the library target should be for build too
3918 define gb_Executable__register_saxparser
3919 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3920 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3921 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3922 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3923 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3924 $(call gb_UnoApi_get_target
,udkapi
) \
3928 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3929 # required due to the settings for URE_SERVICES and URE_TYPES in
3930 # cppuhelper/source/unorc
3931 # FIXME: the library target should be for build too
3932 define gb_Executable__register_uno
3933 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3934 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3935 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3936 $(call gb_UnoApi_get_target
,udkapi
) \
3941 # External executables
3943 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3945 gb_ExternalExecutable__register_xmllint
:=
3947 else # ! SYSTEM_LIBXML_FOR_BUILD
3949 define gb_ExternalExecutable__register_xmllint
3950 $(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
)
3951 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3952 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3953 $(call gb_Package_get_target
,libxml2
) \
3958 endif # SYSTEM_LIBXML_FOR_BUILD
3960 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3962 gb_ExternalExecutable__register_xsltproc
:=
3964 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3966 define gb_ExternalExecutable__register_xsltproc
3967 $(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
)
3968 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3969 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3970 $(call gb_Package_get_target
,libxml2
) \
3971 $(call gb_Package_get_target
,libxslt
) \
3976 endif # SYSTEM_LIBXSLT_FOR_BUILD
3978 ifneq (,$(SYSTEM_UCPP
))
3980 gb_ExternalExecutable__register_ucpp
:=
3982 else # ! SYSTEM_UCPP
3984 define gb_ExternalExecutable__register_ucpp
3985 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3991 ifeq (,$(PYTHON_FOR_BUILD
))
3993 define gb_ExternalExecutable__register_python
3996 # use set_external, to avoid having the command added as prerequisite for the
3997 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3998 # matching rule to build that specific file)
3999 $(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
))
4000 # the Zip ensures that internal python has been built (cannot use the Package
4001 # target, as that is not used on Mac)
4002 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
4006 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
4007 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
4008 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4016 define gb_ExternalExecutable__register_python
4017 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4018 $(call gb_ExternalExecutable_set_precommand
,python
,PYTHONPATH
=$$$$PYTHONPATH$$$${PYTHONPATH
:+$$$${PYPATH
:+:}}$$$$PYPATH)
4022 endif # PYTHON_FOR_BUILD
4024 ifneq ($(SYSTEM_GENBRK
),)
4026 define gb_ExternalExecutable__register_genbrk
4027 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4031 else # ! SYSTEM_GENBRK
4033 define gb_ExternalExecutable__register_genbrk
4034 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4035 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4036 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4037 $(call gb_Package_get_target_for_build
,icu
) \
4038 $(call gb_Package_get_target_for_build
,icu_ure
) \
4045 ifneq ($(SYSTEM_GENCCODE
),)
4047 define gb_ExternalExecutable__register_genccode
4048 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4052 else # ! SYSTEM_GENCCODE
4054 define gb_ExternalExecutable__register_genccode
4055 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4056 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4057 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4058 $(call gb_Package_get_target_for_build
,icu
) \
4059 $(call gb_Package_get_target_for_build
,icu_ure
) \
4066 ifneq ($(SYSTEM_GENCMN
),)
4068 define gb_ExternalExecutable__register_gencmn
4069 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4073 else # ! SYSTEM_GENCMN
4075 define gb_ExternalExecutable__register_gencmn
4076 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4077 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4078 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4079 $(call gb_Package_get_target_for_build
,icu
) \
4080 $(call gb_Package_get_target_for_build
,icu_ure
) \
4087 ifeq (OWNCLOUD_ANDROID_LIB
,$(filter OWNCLOUD_ANDROID_LIB
,$(BUILD_TYPE
)))
4089 $(eval
$(call gb_Helper_register_jars
,OXT
,\
4090 owncloud-android-library \
4093 define gb_Jar__use_owncloud_android_lib
4094 $(call gb_Jar_use_external_project
,$(1),owncloud-android-lib
)
4095 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,owncloud-android-lib
)/bin
/owncloud-android-library.jar
)
4097 define gb_ExternalProject__use_owncloud_android_lib
4098 $(call gb_ExternalProject_use_external_project
,$(1),owncloud_android_lib
)
4103 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4104 ifneq ($(SYSTEM_BZIP2
),)
4106 define gb_LinkTarget__use_bzip2
4107 $(call gb_LinkTarget_set_include
,$(1),\
4111 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4115 gb_ExternalProject__use_bzip2
:=
4117 else # !SYSTEM_BZIP2
4119 define gb_LinkTarget__use_bzip2
4120 $(call gb_LinkTarget_set_include
,$(1),\
4121 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4126 $(call gb_LinkTarget_add_libs
,$(1),\
4127 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4130 $(call gb_LinkTarget_add_libs
,$(1),\
4131 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4135 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4138 define gb_ExternalProject__use_bzip2
4139 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4145 define gb_LinkTarget__use_clew
4146 $(call gb_LinkTarget_set_include
,$(1), \
4147 -I
$(SRCDIR
)/external
/clew
/source
/include \
4150 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4153 ifneq ($(ENABLE_PDFIUM
),)
4154 define gb_LinkTarget__use_pdfium
4155 $(call gb_LinkTarget_set_include
,$(1),\
4156 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4159 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4161 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4166 $(eval
$(call gb_Helper_register_packages_for_install
,ucrt_binarytable
,\
4167 $(if
$(UCRT_REDISTDIR
),ucrt
) \
4170 # vim: set noet sw=4 ts=4: