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 -I
$(SRCDIR
)/external
/$(if
$(filter WNT
,$(OS
)),twain
,sane
)/inc \
126 gb_LinkTarget__use_sane_headers
:=
130 ifneq ($(SYSTEM_BLUEZ
),)
132 gb_LinkTarget__use_bluez_bluetooth_headers
:=
136 define gb_LinkTarget__use_bluez_bluetooth_headers
137 $(call gb_LinkTarget_set_include
,$(1),\
138 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
148 ifneq ($(SYSTEM_CPPUNIT
),)
150 define gb_LinkTarget__use_cppunit
151 $(call gb_LinkTarget_set_include
,$(1),\
156 $(call gb_LinkTarget_add_libs
,$(1),\
162 else # !SYSTEM_CPPUNIT
164 define gb_LinkTarget__use_cppunit
165 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
, full
)
167 $(call gb_LinkTarget_set_include
,$(1),\
168 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
173 $(call gb_LinkTarget_add_libs
,$(1),\
174 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
177 $(call gb_LinkTarget_add_libs
,$(1),\
178 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
184 endif # SYSTEM_CPPUNIT
186 ifneq ($(SYSTEM_EPOXY
),)
188 define gb_LinkTarget__use_epoxy
189 $(call gb_LinkTarget_set_include
,$(1),\
193 $(call gb_LinkTarget_add_libs
,$(1),$(EPOXY_LIBS
))
197 gb_ExternalProject__use_epoxy
:=
201 define gb_LinkTarget__use_epoxy
202 $(call gb_LinkTarget_set_include
,$(1),\
203 -I
$(call gb_UnpackedTarball_get_dir
,epoxy
/include) \
207 $(call gb_LinkTarget_use_libraries
,$(1),\
213 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
217 define gb_ExternalProject__use_epoxy
218 $(call gb_ExternalProject_use_external_project
,$(1),epoxy
)
224 define gb_LinkTarget__use_iconv
225 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
229 ifneq ($(SYSTEM_MARIADB
),)
231 define gb_LinkTarget__use_mariadb
232 $(call gb_LinkTarget_set_include
,$(1),\
236 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
239 gb_ExternalProject__use_mariadb
:=
241 else # !SYSTEM_MARIADB
243 define gb_LinkTarget__use_mariadb
244 $(call gb_LinkTarget_set_include
,$(1),\
248 $(call gb_LinkTarget_use_static_libraries
,$(1),\
253 define gb_ExternalProject__use_mariadb
254 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadblib
)
258 endif # SYSTEM_MARIADB
261 ifneq ($(SYSTEM_MARIADB
),)
263 define gb_LinkTarget__use_mysql
265 $(call gb_LinkTarget_add_defs
,$(1),\
269 $(call gb_LinkTarget_add_libs
,$(1),\
273 $(call gb_LinkTarget_set_include
,$(1),\
281 define gb_LinkTarget__use_mysql
283 $(call gb_LinkTarget_set_include
,$(1),\
291 ifneq ($(SYSTEM_MYSQL_CPPCONN
),)
293 define gb_LinkTarget__use_mysqlcppconn
294 $(call gb_LinkTarget_add_libs
,$(1),\
298 $(call gb_LinkTarget_add_defs
,$(1),\
299 -DSYSTEM_MYSQL_CPPCONN \
305 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OXT
,\
309 # note: this does not link mysqlcppconn, it is loaded via osl_loadModuleRelative
310 define gb_LinkTarget__use_mysqlcppconn
312 $(call gb_LinkTarget_use_unpacked
,$(1),mysqlcppconn
)
314 $(call gb_LinkTarget_add_defs
,$(1),\
315 -DCPPCONN_LIB_BUILD \
318 $(call gb_LinkTarget_set_include
,$(1),\
319 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
) \
320 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
)/cppconn \
328 ifneq ($(SYSTEM_ZLIB
),)
330 define gb_LinkTarget__use_zlib
331 $(call gb_LinkTarget_add_defs
,$(1),\
334 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
339 define gb_LinkTarget__use_zlib_x64
343 gb_ExternalProject__use_zlib
:=
347 define gb_LinkTarget__use_zlib_multiarch
348 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
350 $(call gb_LinkTarget_set_include
,$(1),\
355 $(call gb_LinkTarget_use_static_libraries
,$(1),\
361 define gb_LinkTarget__use_zlib
362 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
366 define gb_LinkTarget__use_zlib_x64
367 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
371 define gb_ExternalProject__use_zlib
372 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
379 ifneq ($(SYSTEM_JPEG
),)
381 define gb_LinkTarget__use_jpeg
382 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
383 $(call gb_LinkTarget_set_ldflags
,$(1),\
384 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
389 gb_ExternalProject__use_jpeg
:=
393 define gb_LinkTarget__use_jpeg
394 $(call gb_LinkTarget_set_include
,$(1),\
398 $(call gb_LinkTarget_add_libs
,$(1),$(LIBJPEG_LIBS
))
399 $(call gb_LinkTarget_use_external_project
,$(1),jpeg-turbo
,full
)
403 define gb_ExternalProject__use_jpeg
404 $(call gb_ExternalProject_use_external_project
,$(1),jpeg-turbo
)
410 ifneq ($(SYSTEM_MYTHES
),)
412 define gb_LinkTarget__use_mythes
413 $(call gb_LinkTarget_set_include
,$(1),\
417 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
421 else # !SYSTEM_MYTHES
423 define gb_LinkTarget__use_mythes
424 $(call gb_LinkTarget_set_include
,$(1),\
425 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
430 $(call gb_LinkTarget_use_static_libraries
,$(1),\
434 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
435 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
440 endif # SYSTEM_MYTHES
443 ifneq ($(SYSTEM_EXPAT
),)
445 define gb_LinkTarget__use_expat_impl
446 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
448 $(call gb_LinkTarget_add_defs
,$(1),\
452 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
456 gb_ExternalProject__use_expat
:=
460 define gb_LinkTarget__use_expat_impl
461 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
463 $(call gb_LinkTarget_set_include
,$(1),\
464 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
468 $(call gb_LinkTarget_use_static_libraries
,$(1),\
474 define gb_ExternalProject__use_expat
475 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
481 define gb_LinkTarget__use_expat
482 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
486 define gb_LinkTarget__use_expat_x64
487 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
491 ifneq ($(SYSTEM_HYPH
),)
493 define gb_LinkTarget__use_hyphen
494 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
500 define gb_LinkTarget__use_hyphen
501 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
502 $(call gb_LinkTarget_set_include
,$(1),\
503 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
508 $(call gb_LinkTarget_use_static_libraries
,$(1),\
512 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
513 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
520 ifneq ($(SYSTEM_HUNSPELL
),)
522 define gb_LinkTarget__use_hunspell
523 $(call gb_LinkTarget_set_include
,$(1),\
527 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
531 gb_ExternalProject__use_hunspell
:=
533 else # !SYSTEM_HUNSPELL
535 define gb_LinkTarget__use_hunspell
536 $(call gb_LinkTarget_add_defs
,$(1),\
539 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
540 $(call gb_LinkTarget_set_include
,$(1),\
541 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
546 $(call gb_LinkTarget_use_static_libraries
,$(1),\
550 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
551 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
556 define gb_ExternalProject__use_hunspell
557 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
561 endif # SYSTEM_HUNSPELL
564 ifneq ($(SYSTEM_BOOST
),)
566 define gb_LinkTarget__use_boost_lib
567 $(call gb_LinkTarget_set_include
,$(1),\
572 $(call gb_LinkTarget_add_ldflags
,$(1),\
576 $(call gb_LinkTarget_add_libs
,$(1),$(2))
580 define gb_LinkTarget__use_boost_locale
581 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_LOCALE_LIB
))
585 define gb_LinkTarget__use_boost_date_time
586 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_DATE_TIME_LIB
))
590 define gb_LinkTarget__use_boost_filesystem
591 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_FILESYSTEM_LIB
))
595 gb_ExternalProject__use_boost_filesystem
:=
597 define gb_LinkTarget__use_boost_iostreams
598 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_IOSTREAMS_LIB
))
602 gb_ExternalProject__use_boost_iostreams
:=
604 define gb_LinkTarget__use_boost_system
605 $(call gb_LinkTarget__use_boost_lib
,$(1),$(BOOST_SYSTEM_LIB
))
609 gb_ExternalProject__use_boost_system
:=
611 define gb_LinkTarget__use_boost_headers
612 $(call gb_LinkTarget_set_include
,$(1),\
619 gb_ExternalProject__use_boost_headers
:=
623 define gb_LinkTarget__use_boost_lib
624 $(call gb_LinkTarget_add_defs
,$(1),\
628 $(call gb_LinkTarget_use_static_libraries
,$(1),$(2))
632 define gb_LinkTarget__use_boost_locale
633 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_locale
)
634 $(call gb_LinkTarget_add_libs
,$(1),\
635 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
640 define gb_LinkTarget__use_boost_date_time
641 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_date_time
)
645 define gb_LinkTarget__use_boost_filesystem
646 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_filesystem
)
650 define gb_ExternalProject__use_boost_filesystem
651 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_filesystem
)
654 define gb_LinkTarget__use_boost_iostreams
655 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_iostreams
)
659 define gb_ExternalProject__use_boost_iostreams
660 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
663 define gb_LinkTarget__use_boost_system
664 $(call gb_LinkTarget__use_boost_lib
,$(1),boost_system
)
668 define gb_ExternalProject__use_boost_system
669 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
672 define gb_LinkTarget__use_boost_headers
673 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
674 $(call gb_LinkTarget_set_include
,$(1),\
681 define gb_ExternalProject__use_boost_headers
682 $(call gb_ExternalProject_use_unpacked
,$(1),boost
)
689 ifneq ($(SYSTEM_CMIS
),)
691 define gb_LinkTarget__use_cmis
692 $(call gb_LinkTarget_set_include
,$(1),\
696 $(call gb_LinkTarget_add_libs
,$(1),$(CMIS_LIBS
))
702 define gb_LinkTarget__use_cmis
703 $(call gb_LinkTarget_set_include
,$(1),\
704 -I
$(call gb_UnpackedTarball_get_dir
,cmis
)/src \
707 $(call gb_LinkTarget_use_static_libraries
,$(1),\
715 ifeq ($(ENABLE_JAVA
),TRUE
)
717 define gb_LinkTarget__use_jawt
718 $(call gb_LinkTarget_add_libs
,$(1),\
726 gb_LinkTarget__use_jawt
:=
730 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
732 define gb_LinkTarget__use_libatomic_ops
733 $(call gb_LinkTarget_set_include
,$(1),\
735 $(LIBATOMIC_OPS_CFLAGS
) \
737 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
740 gb_ExternalProject__use_libatomic_ops
:=
742 else # !SYSTEM_LIBATOMIC_OPS
744 define gb_LinkTarget__use_libatomic_ops
745 $(call gb_LinkTarget_set_include
,$(1),\
746 $(LIBATOMIC_OPS_CFLAGS
) \
748 $(LIBATOMIC_OPS_CFLAGS
) \
750 $(call gb_LinkTarget_use_external_project
,$(1),\
754 $(call gb_LinkTarget_add_libs
,$(1),\
755 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
760 define gb_ExternalProject__use_libatomic_ops
761 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
765 endif # SYSTEM_LIBATOMIC_OPS
768 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
770 define gb_LinkTarget__use_libexttextcat
771 $(call gb_LinkTarget_set_include
,$(1),\
773 $(LIBEXTTEXTCAT_CFLAGS
) \
775 $(call gb_LinkTarget_add_defs
,$(1),\
776 -DSYSTEM_LIBEXTTEXTCAT \
778 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
782 else # !SYSTEM_LIBEXTTEXTCAT
784 define gb_LinkTarget__use_libexttextcat
785 $(call gb_LinkTarget_set_include
,$(1),\
786 -I
$(call gb_UnpackedTarball_get_dir
,exttextcat
/src
) \
791 $(call gb_LinkTarget_use_static_libraries
,$(1),\
795 $(call gb_LinkTarget_add_libs
,$(1),\
796 $(call gb_UnpackedTarball_get_dir
,exttextcat
)/src
/.libs
/libexttextcat-2.0.a\
798 $(call gb_LinkTarget_use_external_project
,$(1),exttextcat
)
804 endif # SYSTEM_LIBEXTTEXTCAT
807 ifneq ($(SYSTEM_LIBXML
),)
809 define gb_LinkTarget__use_libxml2
810 $(call gb_LinkTarget_add_defs
,$(1),\
813 $(call gb_LinkTarget_set_include
,$(1),\
817 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
820 gb_ExternalProject__use_libxml2
:=
822 else # !SYSTEM_LIBXML
824 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
828 define gb_LinkTarget__use_libxml2
829 $(call gb_LinkTarget_use_package
,$(1),xml2
)
830 $(call gb_LinkTarget_set_include
,$(1),\
835 $(call gb_LinkTarget_add_libs
,$(1),\
840 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
844 define gb_ExternalProject__use_libxml2
845 $(call gb_ExternalProject_use_package
,$(1),xml2
)
848 $(call gb_ExternalProject_use_external_project
,$(1),icu
)
853 endif # SYSTEM_LIBXML
856 ifneq ($(SYSTEM_LIBXSLT
),)
858 define gb_LinkTarget__use_libxslt
859 $(call gb_LinkTarget_set_include
,$(1),\
863 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
867 define gb_LinkTarget__use_libexslt
868 $(call gb_LinkTarget_set_include
,$(1),\
873 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
877 else # !SYSTEM_LIBXSLT
879 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
883 define gb_LinkTarget__use_libxslt
884 $(call gb_LinkTarget_use_package
,$(1),xslt
)
885 $(call gb_LinkTarget_set_include
,$(1),\
887 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
891 $(call gb_LinkTarget_add_libs
,$(1),\
892 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libxslt.lib \
895 $(call gb_LinkTarget_add_libs
,$(1),\
896 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libxslt
/.libs
-lxslt \
902 define gb_LinkTarget__use_libexslt
903 $(call gb_LinkTarget_use_package
,$(1),xslt
)
904 $(call gb_LinkTarget_set_include
,$(1),\
906 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
910 $(call gb_LinkTarget_add_libs
,$(1),\
911 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libexslt.lib \
914 $(call gb_LinkTarget_add_libs
,$(1),\
915 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libexslt
/.libs
-lexslt \
921 endif # SYSTEM_LIBXSLT
924 ifneq ($(SYSTEM_XMLSEC
),)
926 define gb_LinkTarget__use_xmlsec
927 $(call gb_LinkTarget_add_defs
,$(1),\
930 $(call gb_LinkTarget_set_include
,$(1),\
934 $(call gb_LinkTarget_add_libs
,$(1),$(XMLSEC_LIBS
))
938 gb_ExternalProject__use_xmlsec
:=
940 else # !SYSTEM_XMLSEC
942 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
946 define gb_LinkTarget__use_xmlsec
950 endif # SYSTEM_XMLSEC
952 ifneq ($(SYSTEM_LIBLANGTAG
),)
954 define gb_LinkTarget__use_liblangtag
955 $(call gb_LinkTarget_set_include
,$(1),\
957 $(LIBLANGTAG_CFLAGS
) \
960 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
964 gb_ExternalProject__use_liblangtag
:=
966 else # !SYSTEM_LIBLANGTAG
968 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
974 define gb_LinkTarget__use_liblangtag
975 $(call gb_LinkTarget_set_include
,$(1),\
976 $(LIBLANGTAG_CFLAGS
) \
979 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
980 $(call gb_LinkTarget_use_external_project
,$(1),langtag
)
986 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
990 define gb_LinkTarget__use_liblangtag
991 $(call gb_LinkTarget_set_include
,$(1),\
992 $(LIBLANGTAG_CFLAGS
) \
995 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
996 $(call gb_LinkTarget_use_package
,$(1),liblangtag
)
1002 define gb_ExternalProject__use_liblangtag
1003 $(call gb_ExternalProject_use_external_project
,$(1),langtag
)
1007 endif # SYSTEM_LIBLANGTAG
1010 gb_ExternalProject__use_apr
:=
1012 ifeq ($(WITH_WEBDAV
),serf
)
1014 define gb_LinkTarget__use_apr
1015 $(call gb_LinkTarget_set_include
,$(1),\
1019 $(call gb_LinkTarget_add_libs
,$(1),\
1021 $(if
$(filter $(OS
),LINUX
),-lpthread
) \
1022 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
1025 ifeq ($(SYSTEM_APR
),)
1026 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1031 $(call gb_LinkTarget_add_defs
,$(1),\
1032 -DAPR_DECLARE_STATIC \
1033 -DAPU_DECLARE_STATIC \
1035 $(call gb_LinkTarget_use_external_project
,$(1),apr_util
)
1040 define gb_ExternalProject__use_apr
1041 ifeq ($(SYSTEM_APR
),)
1042 $(call gb_ExternalProject_use_external_project
,$(1),apr_util
)
1047 define gb_LinkTarget__use_serf
1048 $(call gb_LinkTarget_set_include
,$(1),\
1052 $(call gb_LinkTarget_add_libs
,$(1),\
1056 ifeq ($(SYSTEM_SERF
),)
1057 $(call gb_LinkTarget_use_external_project
,$(1),serf
)
1062 else ifeq ($(WITH_WEBDAV
),neon
)
1064 ifneq ($(SYSTEM_NEON
),)
1066 define gb_LinkTarget__use_neon
1067 $(call gb_LinkTarget_add_defs
,$(1),\
1068 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
1071 $(call gb_LinkTarget_set_include
,$(1),\
1076 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
1082 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1086 define gb_LinkTarget__use_neon
1087 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
1088 $(call gb_LinkTarget_set_include
,$(1),\
1089 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
1092 $(call gb_LinkTarget_use_libraries
,$(1),\
1102 ifneq ($(SYSTEM_REDLAND
),)
1104 define gb_LinkTarget__use_librdf
1105 $(call gb_LinkTarget_add_defs
,$(1),\
1108 $(call gb_LinkTarget_set_include
,$(1),\
1112 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1116 gb_LinkTarget__use_redland_headers
:=
1118 gb_LinkTarget__use_raptor_headers
:=
1120 gb_LinkTarget__use_rasqal_headers
:=
1122 else # !SYSTEM_REDLAND
1124 define gb_LinkTarget__use_redland_headers
1125 $(call gb_LinkTarget_set_include
,$(1),\
1126 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1132 define gb_LinkTarget__use_raptor_headers
1133 $(call gb_LinkTarget_set_include
,$(1),\
1134 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1140 define gb_LinkTarget__use_rasqal_headers
1141 $(call gb_LinkTarget_set_include
,$(1),\
1142 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1148 ifneq ($(OS
),ANDROID
)
1151 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1157 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1164 define gb_LinkTarget__use_librdf
1166 $(call gb_LinkTarget_use_libraries
,$(1),\
1171 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1173 $(call gb_LinkTarget_add_libs
,$(1),\
1174 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1175 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1176 -L
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src
/.libs
-lrasqal \
1184 define gb_LinkTarget__use_librdf
1185 $(call gb_LinkTarget_use_packages
,$(1),redland raptor rasqal
)
1191 endif # SYSTEM_REDLAND
1194 ifneq ($(USING_X11
)$(ENABLE_CAIRO_CANVAS
)$(ENABLE_HEADLESS
),) # or
1196 ifneq ($(SYSTEM_CAIRO
),)
1198 define gb_LinkTarget__use_cairo
1199 $(call gb_LinkTarget_set_include
,$(1),\
1203 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1204 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1208 else # !SYSTEM_CAIRO
1210 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1212 $(if
$(filter $(OS
),WNT
),,pixman
) \
1215 define gb_LinkTarget__use_cairo
1216 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1217 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1218 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1219 $(call gb_LinkTarget_set_include
,$(1),\
1220 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1221 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1224 $(call gb_LinkTarget_add_libs
,$(1),\
1225 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1226 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
1227 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1233 endif # SYSTEM_CAIRO
1235 else ifeq ($(OS
),ANDROID
)
1237 define gb_LinkTarget__use_cairo
1238 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1239 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1240 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1241 $(call gb_LinkTarget_set_include
,$(1),\
1242 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1243 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1246 $(call gb_LinkTarget_add_libs
,$(1),\
1247 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1248 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1255 ifneq ($(SYSTEM_FREETYPE
),)
1257 define gb_LinkTarget__use_freetype_headers
1258 $(call gb_LinkTarget_set_include
,$(1),\
1260 $(FREETYPE_CFLAGS
) \
1265 gb_ExternalProject__use_freetype
:=
1269 define gb_LinkTarget__use_freetype_headers
1270 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1271 $(call gb_LinkTarget_set_include
,$(1),\
1272 $(FREETYPE_CFLAGS
) \
1278 define gb_ExternalProject__use_freetype
1279 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1283 endif # SYSTEM_FREETYPE
1285 define gb_LinkTarget__use_freetype
1286 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1287 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1291 ifneq ($(SYSTEM_FONTCONFIG
),)
1293 define gb_LinkTarget__use_fontconfig
1294 $(call gb_LinkTarget_set_include
,$(1),\
1296 $(FONTCONFIG_CFLAGS
) \
1299 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1305 define gb_LinkTarget__use_fontconfig
1306 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1307 $(call gb_LinkTarget_set_include
,$(1),\
1308 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1312 $(call gb_LinkTarget_add_libs
,$(1),\
1313 -L
$(call gb_UnpackedTarball_get_dir
,fontconfig
)/src
/.libs
-lfontconfig \
1318 endif # SYSTEM_FONTCONFIG
1320 ifneq ($(SYSTEM_GRAPHITE
),)
1322 define gb_LinkTarget__use_graphite
1323 $(call gb_LinkTarget_set_include
,$(1),\
1325 $(GRAPHITE_CFLAGS
) \
1327 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1331 gb_ExternalProject__use_graphite
:=
1333 else # !SYSTEM_GRAPHITE
1335 define gb_LinkTarget__use_graphite
1336 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1337 $(call gb_LinkTarget_set_include
,$(1),\
1338 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1341 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1347 define gb_ExternalProject__use_graphite
1348 $(call gb_ExternalProject_use_static_libraries
,$(1),\
1353 endif # SYSTEM_GRAPHITE
1355 ifneq ($(SYSTEM_ICU
),)
1357 gb_LinkTarget__use_icu_headers
:=
1358 gb_ExternalProject__use_icu
:=
1360 define gb_LinkTarget__use_icudata
1361 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1364 define gb_LinkTarget__use_icui18n
1365 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1368 define gb_LinkTarget__use_icuuc
1369 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1375 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1379 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1383 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1389 define gb_LinkTarget__use_icu_headers
1390 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1391 $(call gb_LinkTarget_set_include
,$(1),\
1392 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1393 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1394 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1400 define gb_ExternalProject__use_icu
1401 $(call gb_ExternalProject_use_package
,$(1),icu
)
1405 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1406 define gb_LinkTarget__use_icudata
1407 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1410 $(call gb_LinkTarget_add_libs
,$(1),\
1411 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1414 $(call gb_LinkTarget_add_libs
,$(1),\
1415 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1421 define gb_LinkTarget__use_icui18n
1422 $(call gb_LinkTarget_use_package
,$(1),icu
)
1425 $(call gb_LinkTarget_add_libs
,$(1),\
1426 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1429 $(call gb_LinkTarget_add_libs
,$(1),\
1430 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1436 define gb_LinkTarget__use_icuuc
1437 $(call gb_LinkTarget_use_package
,$(1),icu_ure
)
1440 $(call gb_LinkTarget_add_libs
,$(1),\
1441 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1444 $(call gb_LinkTarget_add_libs
,$(1),\
1445 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1453 ifneq ($(SYSTEM_HARFBUZZ
),)
1455 define gb_LinkTarget__use_harfbuzz
1456 $(call gb_LinkTarget_set_include
,$(1),\
1458 $(HARFBUZZ_CFLAGS
) \
1460 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1464 gb_ExternalProject__use_harfbuzz
:=
1466 else # SYSTEM_HARFBUZZ != TRUE
1468 define gb_LinkTarget__use_harfbuzz
1469 $(call gb_LinkTarget_set_include
,$(1),\
1470 $(HARFBUZZ_CFLAGS
) \
1473 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1474 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1478 define gb_ExternalProject__use_harfbuzz
1479 $(call gb_ExternalProject_use_external_project
,$(1),harfbuzz
)
1483 endif # SYSTEM_HARFBUZZ
1485 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1487 gb_ExternalProject__use_openssl
:=
1488 gb_LinkTarget__use_openssl_headers
:=
1489 gb_LinkTarget__use_openssl
:=
1491 else # !DISABLE_OPENSSL
1493 ifneq ($(SYSTEM_OPENSSL
),)
1495 gb_LinkTarget__use_openssl_headers
:=
1496 gb_ExternalProject__use_openssl
:=
1498 define gb_LinkTarget__use_openssl
1499 $(call gb_LinkTarget_set_include
,$(1),\
1503 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1507 else # !SYSTEM_OPENSSL
1509 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1513 define gb_ExternalProject__use_openssl
1514 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1518 define gb_LinkTarget__use_openssl_headers
1519 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1520 $(call gb_LinkTarget_set_include
,$(1),\
1521 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1527 define gb_LinkTarget__use_openssl
1528 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1530 $(call gb_LinkTarget_add_libs
,$(1),\
1531 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/ssleay32.lib \
1532 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/libeay32.lib \
1535 $(call gb_LinkTarget_add_libs
,$(1),\
1536 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1537 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1539 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1540 ifeq ($(OS
),SOLARIS
)
1541 $(call gb_LinkTarget_add_libs
,$(1),\
1550 endif # SYSTEM_OPENSSL
1551 endif # DISABLE_OPENSSL
1554 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1556 define gb_LinkTarget__use_gnutls
1557 $(call gb_LinkTarget_set_include
,$(1),\
1562 $(call gb_LinkTarget_add_defs
,$(1),\
1566 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1570 define gb_LinkTarget__use_libgcrypt
1571 $(call gb_LinkTarget_set_include
,$(1),\
1573 $(LIBGCRYPT_CFLAGS
) \
1576 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1580 else # !DISABLE_OPENSSL
1582 gb_LinkTarget__use_gnutls
:=
1583 gb_LinkTarget__use_libgcrypt
:=
1585 endif # DISABLE_OPENSSL
1588 ifneq ($(SYSTEM_CDR
),)
1590 define gb_LinkTarget__use_cdr
1591 $(call gb_LinkTarget_set_include
,$(1),\
1595 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1601 define gb_LinkTarget__use_cdr
1602 $(call gb_LinkTarget_set_include
,$(1),\
1603 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1606 $(call gb_LinkTarget_add_libs
,$(1),\
1607 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1609 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1615 ifneq ($(SYSTEM_EBOOK
),)
1617 define gb_LinkTarget__use_ebook
1618 $(call gb_LinkTarget_set_include
,$(1),\
1622 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1626 gb_ExternalProject__use_ebook
:=
1628 else # !SYSTEM_EBOOK
1630 define gb_LinkTarget__use_ebook
1631 $(call gb_LinkTarget_set_include
,$(1),\
1632 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1635 $(call gb_LinkTarget_add_libs
,$(1),\
1636 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1638 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1642 define gb_ExternalProject__use_ebook
1643 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1647 endif # SYSTEM_EBOOK
1650 ifneq ($(SYSTEM_ETONYEK
),)
1652 define gb_LinkTarget__use_etonyek
1653 $(call gb_LinkTarget_set_include
,$(1),\
1657 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1661 gb_ExternalProject__use_etonyek
:=
1663 else # !SYSTEM_ETONYEK
1667 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1671 define gb_LinkTarget__use_etonyek
1672 $(call gb_LinkTarget_set_include
,$(1),\
1673 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1676 $(call gb_LinkTarget_use_libraries
,$(1),\
1684 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1688 define gb_LinkTarget__use_etonyek
1689 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1691 $(call gb_LinkTarget_set_include
,$(1),\
1692 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1693 -DLIBETONYEK_VISIBILITY \
1696 $(call gb_LinkTarget_add_libs
,$(1),\
1697 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1699 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1703 define gb_ExternalProject__use_etonyek
1704 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1710 endif # SYSTEM_ETONYEK
1713 ifneq ($(SYSTEM_FREEHAND
),)
1715 define gb_LinkTarget__use_freehand
1716 $(call gb_LinkTarget_set_include
,$(1),\
1718 $(FREEHAND_CFLAGS
) \
1720 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1724 gb_ExternalProject__use_freehand
:=
1726 else # !SYSTEM_FREEHAND
1728 define gb_LinkTarget__use_freehand
1729 $(call gb_LinkTarget_set_include
,$(1),\
1730 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1733 $(call gb_LinkTarget_add_libs
,$(1),\
1734 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1736 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1740 define gb_ExternalProject__use_freehand
1741 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1745 endif # SYSTEM_FREEHAND
1748 ifneq ($(SYSTEM_ODFGEN
),)
1750 define gb_LinkTarget__use_odfgen
1751 $(call gb_LinkTarget_set_include
,$(1),\
1755 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1759 else # !SYSTEM_ODFGEN
1763 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1767 define gb_LinkTarget__use_odfgen
1768 $(call gb_LinkTarget_set_include
,$(1),\
1769 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1772 $(call gb_LinkTarget_use_libraries
,$(1),\
1780 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1784 define gb_LinkTarget__use_odfgen
1785 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1787 $(call gb_LinkTarget_set_include
,$(1),\
1788 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1789 -DLIBODFGEN_VISIBILITY \
1792 $(call gb_LinkTarget_add_libs
,$(1),\
1793 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1800 endif # SYSTEM_ODFGEN
1803 ifneq ($(SYSTEM_REVENGE
),)
1805 define gb_LinkTarget__use_revenge
1806 $(call gb_LinkTarget_set_include
,$(1),\
1810 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1814 gb_ExternalProject__use_revenge
:=
1816 else # !SYSTEM_REVENGE
1820 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1824 define gb_LinkTarget__use_revenge
1825 $(call gb_LinkTarget_set_include
,$(1),\
1829 $(call gb_LinkTarget_use_libraries
,$(1),\
1835 define gb_ExternalProject__use_revenge
1836 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1842 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1846 define gb_LinkTarget__use_revenge
1847 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1849 $(call gb_LinkTarget_set_include
,$(1),\
1851 -DLIBREVENGE_VISIBILITY \
1854 $(call gb_LinkTarget_add_libs
,$(1),\
1859 define gb_ExternalProject__use_revenge
1860 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1866 endif # SYSTEM_REVENGE
1869 ifneq ($(SYSTEM_ABW
),)
1871 define gb_LinkTarget__use_abw
1872 $(call gb_LinkTarget_set_include
,$(1),\
1876 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1879 gb_ExternalProject__use_abw
:=
1883 define gb_LinkTarget__use_abw
1884 $(call gb_LinkTarget_set_include
,$(1),\
1885 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1888 $(call gb_LinkTarget_add_libs
,$(1),\
1889 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1891 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1894 define gb_ExternalProject__use_abw
1895 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1902 ifneq ($(SYSTEM_MSPUB
),)
1904 define gb_LinkTarget__use_mspub
1905 $(call gb_LinkTarget_set_include
,$(1),\
1909 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1913 else # !SYSTEM_MSPUB
1915 define gb_LinkTarget__use_mspub
1916 $(call gb_LinkTarget_set_include
,$(1),\
1917 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1920 $(call gb_LinkTarget_add_libs
,$(1),\
1921 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1923 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1927 endif # SYSTEM_MSPUB
1930 ifneq ($(SYSTEM_PAGEMAKER
),)
1932 define gb_LinkTarget__use_pagemaker
1933 $(call gb_LinkTarget_set_include
,$(1),\
1935 $(PAGEMAKER_CFLAGS
) \
1937 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1940 gb_ExternalProject__use_pagemaker
:=
1942 else # !SYSTEM_PAGEMAKER
1944 define gb_LinkTarget__use_pagemaker
1945 $(call gb_LinkTarget_set_include
,$(1),\
1946 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1949 $(call gb_LinkTarget_add_libs
,$(1),\
1950 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1952 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1955 define gb_ExternalProject__use_pagemaker
1956 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1960 endif # SYSTEM_PAGEMAKER
1963 ifneq ($(SYSTEM_ZMF
),)
1965 define gb_LinkTarget__use_zmf
1966 $(call gb_LinkTarget_set_include
,$(1),\
1970 $(call gb_LinkTarget_add_libs
,$(1),$(ZMF_LIBS
))
1973 gb_ExternalProject__use_zmf
:=
1977 define gb_LinkTarget__use_zmf
1978 $(call gb_LinkTarget_set_include
,$(1),\
1979 -I
$(call gb_UnpackedTarball_get_dir
,libzmf
)/inc \
1982 $(call gb_LinkTarget_add_libs
,$(1),\
1983 $(call gb_UnpackedTarball_get_dir
,libzmf
)/src
/lib
/.libs
/libzmf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1985 $(call gb_LinkTarget_use_external_project
,$(1),libzmf
)
1988 define gb_ExternalProject__use_zmf
1989 $(call gb_ExternalProject_use_external_project
,$(1),libzmf
)
1996 ifneq ($(SYSTEM_VISIO
),)
1998 define gb_LinkTarget__use_visio
1999 $(call gb_LinkTarget_set_include
,$(1),\
2003 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2007 else # !SYSTEM_VISIO
2009 define gb_LinkTarget__use_visio
2010 $(call gb_LinkTarget_set_include
,$(1),\
2011 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2014 $(call gb_LinkTarget_add_libs
,$(1),\
2015 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2017 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2021 endif # SYSTEM_VISIO
2024 ifneq ($(SYSTEM_WPD
),)
2026 define gb_LinkTarget__use_wpd
2027 $(call gb_LinkTarget_set_include
,$(1),\
2031 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2034 gb_ExternalProject__use_wpd
:=
2040 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2044 define gb_LinkTarget__use_wpd
2045 $(call gb_LinkTarget_set_include
,$(1),\
2049 $(call gb_LinkTarget_use_libraries
,$(1),\
2055 define gb_ExternalProject__use_wpd
2056 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2062 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2066 define gb_LinkTarget__use_wpd
2067 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2069 $(call gb_LinkTarget_set_include
,$(1),\
2073 $(call gb_LinkTarget_add_libs
,$(1),\
2079 define gb_ExternalProject__use_wpd
2080 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2089 ifneq ($(SYSTEM_WPG
),)
2091 define gb_LinkTarget__use_wpg
2092 $(call gb_LinkTarget_set_include
,$(1),\
2096 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2099 gb_ExternalProject__use_wpg
:=
2105 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2109 define gb_LinkTarget__use_wpg
2110 $(call gb_LinkTarget_set_include
,$(1),\
2111 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2114 $(call gb_LinkTarget_use_libraries
,$(1),\
2122 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2126 define gb_LinkTarget__use_wpg
2127 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2129 $(call gb_LinkTarget_set_include
,$(1),\
2130 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2133 $(call gb_LinkTarget_add_libs
,$(1),\
2134 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2144 ifneq ($(SYSTEM_WPS
),)
2146 define gb_LinkTarget__use_wps
2147 $(call gb_LinkTarget_set_include
,$(1),\
2151 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2154 gb_ExternalProject__use_wps
:=
2160 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2164 define gb_LinkTarget__use_wps
2165 $(call gb_LinkTarget_set_include
,$(1),\
2166 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2170 $(call gb_LinkTarget_use_libraries
,$(1),\
2178 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2182 define gb_LinkTarget__use_wps
2183 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2185 $(call gb_LinkTarget_set_include
,$(1),\
2186 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2189 $(call gb_LinkTarget_add_libs
,$(1),\
2190 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2200 ifneq ($(SYSTEM_MWAW
),)
2202 define gb_LinkTarget__use_mwaw
2203 $(call gb_LinkTarget_set_include
,$(1),\
2207 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2215 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2219 define gb_LinkTarget__use_mwaw
2220 $(call gb_LinkTarget_set_include
,$(1),\
2221 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2225 $(call gb_LinkTarget_use_libraries
,$(1),\
2233 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2237 define gb_LinkTarget__use_mwaw
2238 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2240 $(call gb_LinkTarget_set_include
,$(1),\
2241 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2244 $(call gb_LinkTarget_add_libs
,$(1),\
2245 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2254 ifneq ($(SYSTEM_STAROFFICE
),)
2256 define gb_LinkTarget__use_staroffice
2257 $(call gb_LinkTarget_set_include
,$(1),\
2259 $(STAROFFICE_CFLAGS
) \
2261 $(call gb_LinkTarget_add_libs
,$(1),$(STAROFFICE_LIBS
))
2265 else # !SYSTEM_STAROFFICE
2269 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2273 define gb_LinkTarget__use_staroffice
2274 $(call gb_LinkTarget_set_include
,$(1),\
2275 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2279 $(call gb_LinkTarget_use_libraries
,$(1),\
2287 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2291 define gb_LinkTarget__use_staroffice
2292 $(call gb_LinkTarget_use_package
,$(1),libstaroffice
)
2294 $(call gb_LinkTarget_set_include
,$(1),\
2295 -I
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/inc \
2298 $(call gb_LinkTarget_add_libs
,$(1),\
2299 -L
$(call gb_UnpackedTarball_get_dir
,libstaroffice
)/src
/lib
/.libs
-lstaroffice-0.0 \
2306 endif # SYSTEM_STAROFFICE
2309 ifneq ($(SYSTEM_LCMS2
),)
2311 define gb_LinkTarget__use_lcms2
2312 $(call gb_LinkTarget_set_include
,$(1),\
2316 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2320 gb_ExternalProject__use_lcms2
:=
2322 else # !SYSTEM_LCMS2
2324 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2328 define gb_ExternalProject__use_lcms2
2329 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2333 ifeq ($(OS
),ANDROID
)
2335 define gb_LinkTarget__use_lcms2
2336 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2337 $(call gb_LinkTarget_set_include
,$(1),\
2338 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2346 define gb_LinkTarget__use_lcms2
2347 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2348 $(call gb_LinkTarget_set_include
,$(1),\
2349 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2352 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2357 endif # SYSTEM_LCMS2
2359 ifneq ($(ENABLE_LPSOLVE
),)
2361 ifneq ($(SYSTEM_LPSOLVE
),)
2363 define gb_LinkTarget__use_lpsolve
2364 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2365 $(call gb_LinkTarget_add_defs
,$(1),\
2371 else # !SYSTEM_LPSOLVE
2373 define gb_LinkTarget__use_lpsolve
2374 $(call gb_LinkTarget_use_external_project
,$(1),lpsolve
)
2376 $(call gb_LinkTarget_add_libs
,$(1),\
2377 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2380 $(call gb_LinkTarget_add_libs
,$(1),\
2381 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2384 $(call gb_LinkTarget_set_include
,$(1),\
2385 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2391 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2395 endif # SYSTEM_LPSOLVE
2399 gb_LinkTarget__use_lpsolve
:=
2401 endif # ENABLE_LPSOLVE
2403 ifneq ($(ENABLE_COINMP
),)
2405 ifneq ($(SYSTEM_COINMP
),TRUE
)
2407 define gb_LinkTarget__use_coinmp
2408 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2410 $(call gb_LinkTarget_add_libs
,$(1),\
2411 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2414 $(call gb_LinkTarget_add_libs
,$(1),\
2415 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2416 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2417 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2418 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2419 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2420 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2421 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2424 $(call gb_LinkTarget_set_include
,$(1),\
2425 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2426 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2432 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2436 else # SYSTEM_COINMP
2438 define gb_LinkTarget__use_coinmp
2439 $(call gb_LinkTarget_set_include
,$(1),\
2443 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2451 gb_LinkTarget__use_coinmp
:=
2453 endif # ENABLE_COINMP
2455 ifneq (,$(filter MDNSRESPONDER
,$(BUILD_TYPE
)))
2457 define gb_LinkTarget__use_mDNSResponder
2458 $(call gb_LinkTarget_set_include
,$(1),\
2459 -I
$(call gb_UnpackedTarball_get_dir
,mDNSResponder
)/mDNSShared \
2462 $(call gb_LinkTarget_use_static_libraries
,$(1),mDNSResponder
)
2465 endif # MDNSRESPONDER
2467 ifeq ($(ENABLE_GIO
),TRUE
)
2469 define gb_LinkTarget__use_gio
2470 $(call gb_LinkTarget_set_include
,$(1),\
2475 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2481 define gb_LinkTarget__use_gio
2487 ifeq ($(ENABLE_AVAHI
),TRUE
)
2489 define gb_LinkTarget__use_avahi
2490 $(call gb_LinkTarget_set_include
,$(1),\
2495 $(call gb_LinkTarget_add_defs
,$(1),\
2499 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2505 gb_LinkTarget__use_avahi
:=
2507 endif # ENABLE_AVAHI
2510 define gb_LinkTarget__use_gtk
2511 $(call gb_LinkTarget_set_include
,$(1),\
2516 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_LIBS
))
2518 ifeq ($(ENABLE_GTK_PRINT
),TRUE
)
2520 $(call gb_LinkTarget_add_defs
,$(1),-DENABLE_GTK_PRINT
)
2522 $(call gb_LinkTarget_set_include
,$(1),\
2524 $(GTK_PRINT_CFLAGS
) \
2527 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_PRINT_LIBS
))
2533 define gb_LinkTarget__use_gthread
2534 $(call gb_LinkTarget_add_libs
,$(1),$(GTHREAD_LIBS
))
2537 ifeq ($(ENABLE_CUPS
),TRUE
)
2539 define gb_LinkTarget__use_cups
2540 $(call gb_LinkTarget_add_defs
,$(1),\
2544 $(call gb_LinkTarget_add_libs
,$(1),\
2552 define gb_LinkTarget__use_cups
2558 ifeq ($(ENABLE_DBUS
),TRUE
)
2560 define gb_LinkTarget__use_dbus
2561 $(call gb_LinkTarget_set_include
,$(1),\
2566 $(call gb_LinkTarget_add_libs
,$(1),\
2574 define gb_LinkTarget__use_dbus
2581 ifneq ($(SYSTEM_LIBPNG
),)
2583 define gb_LinkTarget__use_png
2584 $(call gb_LinkTarget_set_include
,$(1),\
2589 $(call gb_LinkTarget_add_libs
,$(1),\
2595 gb_ExternalProject__use_png
:=
2597 else # !SYSTEM_LIBPNG
2599 define gb_LinkTarget__use_png
2600 $(call gb_LinkTarget_set_include
,$(1),\
2604 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2607 $(call gb_LinkTarget__use_zlib
,$(1))
2611 define gb_ExternalProject__use_png
2612 $(call gb_ExternalProject_use_static_libraries
,$(1),\
2618 endif # !SYSTEM_LIBPNG
2621 ifneq ($(SYSTEM_CURL
),)
2623 define gb_LinkTarget__use_curl
2624 $(call gb_LinkTarget_add_defs
,$(1),\
2627 $(call gb_LinkTarget_set_include
,$(1),\
2631 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2637 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2641 define gb_LinkTarget__use_curl
2642 $(call gb_LinkTarget_use_package
,$(1),curl
)
2643 $(call gb_LinkTarget_set_include
,$(1),\
2644 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2649 $(call gb_LinkTarget_add_libs
,$(1),\
2650 $(call gb_UnpackedTarball_get_dir
,curl
)/lib
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),debug-dll
,release-dll
)/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
)_imp.lib \
2653 $(call gb_LinkTarget_add_libs
,$(1),\
2654 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2662 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2664 define gb_LinkTarget__use_valgrind
2665 $(call gb_LinkTarget_add_defs
,$(1),\
2666 -DHAVE_VALGRIND_HEADERS \
2669 $(call gb_LinkTarget_set_include
,$(1),\
2671 $(VALGRIND_CFLAGS
) \
2676 else # !ENABLE_VALGRIND
2678 define gb_LinkTarget__use_valgrind
2682 endif # ENABLE_VALGRIND
2684 ifneq ($(SYSTEM_POPPLER
),)
2686 define gb_LinkTarget__use_poppler
2687 $(call gb_LinkTarget_set_include
,$(1),\
2692 $(call gb_LinkTarget_add_libs
,$(1),\
2698 else # !SYSTEM_POPPLER
2700 define gb_LinkTarget__use_poppler
2701 $(call gb_LinkTarget_use_external_project
,$(1),poppler
,full
)
2703 $(call gb_LinkTarget_set_include
,$(1),\
2704 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2705 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2706 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2710 $(call gb_LinkTarget_add_libs
,$(1),\
2711 $(call gb_UnpackedTarball_get_dir
,poppler
)/fofi
/.libs
/libfofi
$(gb_StaticLibrary_PLAINEXT
) \
2712 $(call gb_UnpackedTarball_get_dir
,poppler
)/goo
/.libs
/libgoo
$(gb_StaticLibrary_PLAINEXT
) \
2713 $(call gb_UnpackedTarball_get_dir
,poppler
)/poppler
/.libs
/libpoppler
$(gb_StaticLibrary_PLAINEXT
) \
2716 $(call gb_LinkTarget_use_external
,$(1),jpeg
)
2719 $(call gb_LinkTarget_add_libs
,$(1),\
2722 else ifeq ($(OS
),LINUX
)
2723 $(call gb_LinkTarget_add_libs
,$(1),\
2726 else ifeq ($(OS
),WNT
)
2727 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2735 endif # SYSTEM_POPPLER
2738 ifneq ($(SYSTEM_CLUCENE
),)
2740 define gb_LinkTarget__use_clucene
2741 $(call gb_LinkTarget_add_defs
,$(1),\
2742 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2745 $(call gb_LinkTarget_set_include
,$(1),\
2746 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2750 $(call gb_LinkTarget_add_libs
,$(1),\
2756 else # !SYSTEM_CLUCENE
2758 define gb_LinkTarget__use_clucene
2759 $(call gb_LinkTarget_set_include
,$(1),\
2760 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2761 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2762 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2766 $(call gb_LinkTarget_use_libraries
,$(1),\
2772 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2776 endif # SYSTEM_CLUCENE
2778 define gb_LinkTarget__use_gobject
2779 $(call gb_LinkTarget_add_libs
,$(1),\
2783 $(call gb_LinkTarget_set_include
,$(1),\
2789 ifneq ($(SYSTEM_HSQLDB
),)
2791 define gb_LinkTarget__use_hsqldb
2793 $(call gb_LinkTarget_add_defs
,$(1),\
2795 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2800 else # !SYSTEM_HSQLDB
2802 define gb_LinkTarget__use_hsqldb
2806 endif # SYSTEM_HSQLDB
2809 ifneq ($(SYSTEM_OPENLDAP
),)
2811 define gb_LinkTarget__use_openldap
2813 $(call gb_LinkTarget_add_libs
,$(1),\
2820 gb_ExternalProject__use_openldap
:=
2822 else # !SYSTEM_OPENLDAP
2824 define gb_LinkTarget__use_openldap
2825 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2826 $(call gb_LinkTarget_set_include
,$(1),\
2827 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2830 $(call gb_LinkTarget_use_external_project
,$(1),openldap
,full
)
2831 $(call gb_LinkTarget_add_libs
,$(1), \
2832 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2833 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2838 define gb_ExternalProject__use_openldap
2839 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2843 endif # SYSTEM_OPENLDAP
2845 ifneq ($(SYSTEM_LIBTOMMATH
),)
2847 define gb_LinkTarget__use_libtommath
2848 $(call gb_LinkTarget_set_include
,$(1),\
2849 $(LIBTOMMATH_CFLAGS
) \
2852 $(call gb_LinkTarget_add_libs
,$(1),$(LIBTOMMATH_LIBS
))
2856 else # !SYSTEM_LIBTOMMATH
2857 define gb_LinkTarget__use_libtommath
2858 $(call gb_LinkTarget_set_include
,$(1),\
2859 -I
${WORKDIR}/UnpackedTarball
/libtommath \
2862 $(call gb_LinkTarget_add_libs
,$(1),\
2863 $(call gb_UnpackedTarball_get_dir
,libtommath
)/libtommath
$(gb_StaticLibrary_PLAINEXT
) \
2865 $(call gb_LinkTarget_use_external_project
,$(1),libtommath
)
2869 endif # SYSTEM_LIBTOMMATH
2871 define gb_ExternalProject__use_libtommath
2872 $(call gb_ExternalProject_use_external_project
,$(1),libtommath
)
2876 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2878 ifneq ($(SYSTEM_FIREBIRD
),)
2880 define gb_LinkTarget__use_libfbembed
2881 $(call gb_LinkTarget_set_include
,$(1),\
2882 $(FIREBIRD_CFLAGS
) \
2885 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2889 else # !SYSTEM_FIREBIRD
2891 $(eval
$(call gb_Helper_register_packages_for_install
,firebirdsdbc
,\
2895 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2896 #$(call gb_LinkTarget__use_libtommath,$(1))
2898 define gb_LinkTarget__use_libfbembed
2899 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2900 $(call gb_LinkTarget_set_include
,$(1),\
2901 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/include \
2905 $(call gb_LinkTarget_add_libs
,$(1),\
2906 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/bin
/ifbclient.lib \
2909 $(call gb_LinkTarget_add_libs
,$(1),\
2910 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/$(if
$(ENABLE_DEBUG
),Debug
,Release
)/firebird
/lib
-lfbclient \
2919 endif # SYSTEM_FIREBIRD
2921 else # !ENABLE_FIREBIRD_SDBC
2923 gb_LinkTarget__use_firebird
:=
2924 # gb_LinkTarget__use_atomic_ops :=
2925 # gb_LinkTarget__use_libtommath :=
2927 endif # ENABLE_FIREBIRD_SDBC
2930 ifneq ($(SYSTEM_POSTGRESQL
),)
2932 define gb_LinkTarget__use_postgresql
2934 $(call gb_LinkTarget_set_include
,$(1),\
2939 $(call gb_LinkTarget_add_libs
,$(1),\
2943 $(call gb_LinkTarget_add_ldflags
,$(1),\
2949 else # !SYSTEM_POSTGRESQL
2951 define gb_LinkTarget__use_postgresql
2953 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
)
2955 $(call gb_LinkTarget_set_include
,$(1),\
2956 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
2957 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
2961 $(call gb_LinkTarget_add_libs
,$(1),\
2962 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
2966 $(call gb_LinkTarget_use_external
,$(1),openssl
)
2968 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2977 endif # SYSTEM_POSTGRESQL
2979 ifeq ($(ENABLE_KDE4
),TRUE
)
2981 define gb_LinkTarget__use_kde4
2982 $(call gb_LinkTarget_set_include
,$(1),\
2983 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE4_CFLAGS
)))) \
2987 $(call gb_LinkTarget_add_defs
,$(1),\
2988 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE4_CFLAGS
))) \
2991 $(call gb_LinkTarget_add_libs
,$(1),\
2999 define gb_LinkTarget__use_kde4
3006 ifeq ($(ENABLE_TDE
),TRUE
)
3008 define gb_LinkTarget__use_tde
3009 $(call gb_LinkTarget_add_libs
,$(1),\
3013 $(call gb_LinkTarget_set_include
,$(1),\
3021 define gb_LinkTarget__use_tde
3029 # extra python_headers external because pyuno wrapper must not link python
3030 ifneq ($(SYSTEM_PYTHON
),)
3032 define gb_LinkTarget__use_python_headers
3033 $(call gb_LinkTarget_add_defs
,$(1),\
3034 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYHTON_CFLAGS
)))) \
3037 $(call gb_LinkTarget_set_include
,$(1),\
3038 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3044 define gb_LinkTarget__use_python
3045 $(call gb_LinkTarget__use_python_headers
,$(1))
3047 $(call gb_LinkTarget_add_libs
,$(1),\
3053 else # !SYSTEM_PYTHON
3055 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3059 define gb_LinkTarget__use_python_headers
3060 $(call gb_LinkTarget_use_external_project
,$(1),python3
,full
)
3061 $(call gb_LinkTarget_set_include
,$(1),\
3062 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3063 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3064 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3070 define gb_LinkTarget__use_python
3071 $(call gb_LinkTarget__use_python_headers
,$(1))
3073 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3075 $(call gb_LinkTarget_use_package
,$(1),python3
)
3079 $(call gb_LinkTarget_add_libs
,$(1),\
3080 $(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 \
3082 else ifeq ($(OS
),MACOSX
)
3083 $(call gb_LinkTarget_add_libs
,$(1),\
3084 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3087 $(call gb_LinkTarget_add_libs
,$(1),\
3088 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3089 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
3095 endif # SYSTEM_PYTHON
3098 ifneq ($(SYSTEM_LIBORCUS
),)
3100 define gb_LinkTarget__use_orcus
3101 $(call gb_LinkTarget_set_include
,$(1),\
3105 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3108 define gb_LinkTarget__use_orcus-parser
3112 else # !SYSTEM_LIBORCUS
3116 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
3121 define gb_LinkTarget__use_orcus
3122 $(call gb_LinkTarget_set_include
,$(1),\
3123 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3127 $(call gb_LinkTarget_use_libraries
,$(1),\
3133 define gb_LinkTarget__use_orcus-parser
3134 $(call gb_LinkTarget_set_include
,$(1),\
3135 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3139 $(call gb_LinkTarget_use_libraries
,$(1),\
3147 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3151 define gb_LinkTarget__use_orcus
3152 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3154 $(call gb_LinkTarget_set_include
,$(1),\
3155 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3159 $(call gb_LinkTarget_add_libs
,$(1),\
3160 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
-lorcus-0.12 \
3163 $(if
$(SYSTEM_BOOST
), \
3164 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3165 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3170 define gb_LinkTarget__use_orcus-parser
3171 $(call gb_LinkTarget_use_package
,$(1),liborcus
)
3173 $(call gb_LinkTarget_set_include
,$(1),\
3174 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3178 $(call gb_LinkTarget_add_libs
,$(1),\
3179 -L
$(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
-lorcus-parser-0.12 \
3186 endif # SYSTEM_LIBORCUS
3188 ifeq ($(ENABLE_EOT
),TRUE
)
3190 ifneq ($(SYSTEM_LIBEOT
),)
3192 define gb_LinkTarget__use_libeot
3193 $(call gb_LinkTarget_set_include
,$(1),\
3197 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3201 gb_ExternalProject__use_libeot
:=
3203 else # !SYSTEM_LIBEOT
3205 define gb_LinkTarget__use_libeot
3206 $(call gb_LinkTarget_set_include
,$(1),\
3207 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3210 $(call gb_LinkTarget_add_libs
,$(1),\
3211 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3213 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3217 define gb_ExternalProject__use_libeot
3218 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3222 endif # SYSTEM_LIBEOT
3226 gb_LinkTarget__use_libeot
:=
3227 gb_ExternalProject__use_libeot
:=
3233 ifeq ($(USING_X11
), TRUE
)
3235 define gb_LinkTarget__use_Xrandr
3236 $(call gb_LinkTarget_set_include
,$(1),\
3241 $(call gb_LinkTarget_add_libs
,$(1),\
3246 define gb_LinkTarget__use_Xrender
3247 $(call gb_LinkTarget_set_include
,$(1),\
3252 $(call gb_LinkTarget_add_libs
,$(1),\
3260 gb_ExternalProject__use_nss3
:=
3262 ifeq ($(OS
),ANDROID
)
3264 gb_LinkTarget__use_nss3
:=
3265 gb_LinkTarget__use_plc4
:=
3269 ifneq ($(SYSTEM_NSS
),)
3271 define gb_LinkTarget__use_nss3
3272 $(call gb_LinkTarget_add_defs
,$(1),\
3276 $(call gb_LinkTarget_set_include
,$(1),\
3281 $(call gb_LinkTarget_add_libs
,$(1),\
3287 define gb_LinkTarget__use_plc4
3288 $(call gb_LinkTarget__use_nss3
,$(1))
3292 define gb_LinkTarget__use_ssl3
3293 $(call gb_LinkTarget__use_nss3
,$(1))
3299 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3303 define gb_LinkTarget__use_nss3
3304 $(call gb_LinkTarget_use_package
,$(1),nss
)
3305 $(call gb_LinkTarget_set_include
,$(1),\
3307 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3308 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3312 $(call gb_LinkTarget_add_libs
,$(1),\
3313 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3314 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3315 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3318 $(call gb_LinkTarget_add_libs
,$(1),\
3319 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3328 define gb_LinkTarget__use_plc4
3329 $(call gb_LinkTarget_use_package
,$(1),nss
)
3331 $(call gb_LinkTarget_add_libs
,$(1),\
3332 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3335 $(call gb_LinkTarget_add_libs
,$(1),\
3336 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3342 define gb_LinkTarget__use_ssl3
3343 $(call gb_LinkTarget_use_package
,$(1),nss
)
3345 $(call gb_LinkTarget_add_libs
,$(1),\
3346 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3349 $(call gb_LinkTarget_add_libs
,$(1),\
3350 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3356 define gb_ExternalProject__use_nss3
3357 $(call gb_ExternalProject_use_package
,$(1),nss
)
3365 ifeq ($(ENABLE_BREAKPAD
),TRUE
)
3367 define gb_LinkTarget__use_breakpad
3368 $(call gb_LinkTarget_set_include
,$(1),\
3369 -I
$(call gb_UnpackedTarball_get_dir
,breakpad
)/src \
3374 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3378 $(call gb_LinkTarget_add_libs
,$(1),\
3379 $(call gb_UnpackedTarball_get_dir
,breakpad
)/src
/client
/linux
/libbreakpad_client.a \
3383 $(call gb_LinkTarget_use_external_project
,$(1),breakpad
)
3387 endif # ENABLE_BREAKPAD
3389 ifneq ($(SYSTEM_GPGMEPP
),)
3391 gb_ExternalProject__use_gpgmepp
:=
3392 gb_ExternalProject__use_libassuan
:=
3393 gb_ExternalProject__use_libgpg-error
:=
3395 define gb_LinkTarget__use_gpgmepp
3396 $(call gb_LinkTarget_set_include
,$(1),\
3398 $$(GPGMEPP_CFLAGS
) \
3401 $(call gb_LinkTarget_add_libs
,$(1),\
3407 else # NON-SYSTEM_GPGME
3409 define gb_ExternalProject__use_gpgmepp
3410 $(call gb_ExternalProject_use_external_project
,$(1),gpgme
)
3413 define gb_ExternalProject__use_libassuan
3414 $(call gb_ExternalProject_use_external_project
,$(1),libassuan
)
3417 define gb_ExternalProject__use_libgpg-error
3418 $(call gb_ExternalProject_use_external_project
,$(1),libgpg-error
)
3422 define gb_LinkTarget__use_gpgmepp
3423 $(call gb_LinkTarget_set_include
,$(1),\
3424 -I
$(call gb_UnpackedTarball_get_dir
,gpgme
)/lang
/cpp/src \
3425 -I
$(call gb_UnpackedTarball_get_dir
,gpgme
)/src \
3426 $$(GPG_ERROR_CFLAGS
) \
3429 $(call gb_LinkTarget_add_libs
,$(1),\
3430 -L
$(call gb_UnpackedTarball_get_dir
,gpgme
)/lang
/cpp/src
/.libs
/ -lgpgmepp \
3432 $(call gb_LinkTarget_use_package
,$(1),gpgme
)
3438 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
3448 ifeq ($(ENABLE_GLTF
),TRUE
)
3450 ifneq ($(SYSTEM_LIBGLTF
),TRUE
)
3452 define gb_LinkTarget__use_libgltf
3453 $(call gb_LinkTarget_set_include
,$(1),\
3454 -I
$(call gb_UnpackedTarball_get_dir
,libgltf
)/inc \
3459 $(call gb_LinkTarget_add_libs
,$(1),\
3460 $(call gb_UnpackedTarball_get_dir
,libgltf
)/build
/win32
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
/libgltf.lib
,Release
/libgltf.lib
) \
3463 $(call gb_LinkTarget_add_libs
,$(1),\
3464 $(call gb_UnpackedTarball_get_dir
,libgltf
)/src
/.libs
/libgltf-0.1
$(gb_StaticLibrary_PLAINEXT
) \
3468 $(call gb_LinkTarget_use_external_project
,$(1),libgltf
)
3472 else # SYSTEM_LIBGLTF
3474 define gb_LinkTarget__use_libgltf
3475 $(call gb_LinkTarget_set_include
,$(1),\
3479 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGLTF_LIBS
))
3483 endif # SYSTEM_LIBGLTF
3485 ifeq ($(ENABLE_COLLADA
),TRUE
)
3487 ifeq ($(SYSTEM_OPENCOLLADA
),TRUE
)
3489 define gb_LinkTarget__use_opencollada_parser
3490 $(call gb_LinkTarget_set_include
,$(1),\
3492 $(OPENCOLLADA_CFLAGS
) \
3495 $(call gb_LinkTarget_add_libs
,$(1),$(OPENCOLLADA_LIBS
))
3499 else # !SYSTEM_OPENCOLLADA
3501 define gb_LinkTarget__use_opencollada_parser
3502 $(call gb_LinkTarget_set_include
,$(1),\
3503 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADABaseUtils
/include \
3504 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADAFramework
/include \
3505 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADASaxFrameworkLoader
/include \
3506 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/GeneratedSaxParser
/include \
3510 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3511 opencollada_parser \
3515 endif # SYSTEM_OPENCOLLADA
3517 ifeq ($(SYSTEM_COLLADA2GLTF
),TRUE
)
3519 define gb_LinkTarget__use_collada2gltf
3520 $(call gb_LinkTarget_set_include
,$(1),\
3522 $(COLLADA2GLTF_CFLAGS
) \
3525 $(call gb_LinkTarget_add_libs
,$(1),$(COLLADA2GLTF_LIBS
))
3529 else # !SYSTEM_COLLADA2GLTF
3531 define gb_LinkTarget__use_collada2gltf
3532 $(call gb_LinkTarget_set_include
,$(1),\
3533 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
) \
3534 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/assetModifiers \
3535 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/GLTF \
3536 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/helpers \
3537 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/JSON \
3538 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/dependencies
/json
/include/rapidjson
/ \
3542 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3547 endif # SYSTEM_COLLADA2GLTF
3549 endif # ENABLE_COLLADA
3553 define gb_LinkTarget__use_dconf
3554 $(call gb_LinkTarget_add_defs
,$(1),$(DCONF_CFLAGS
))
3555 $(call gb_LinkTarget_add_libs
,$(1),$(DCONF_LIBS
))
3558 ### Jars ############################################################
3560 ifneq ($(SYSTEM_HSQLDB
),)
3562 define gb_Jar__use_hsqldb
3563 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3565 define gb_JunitTest__use_hsqldb
3566 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3569 else # !SYSTEM_HSQLDB
3571 ifeq ($(ENABLE_JAVA
),TRUE
)
3572 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3577 define gb_Jar__use_hsqldb
3578 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3580 define gb_JunitTest__use_hsqldb
3581 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3584 endif # SYSTEM_HSQLDB
3587 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3589 ifneq ($(SYSTEM_BSH
),)
3591 define gb_Jar__use_bsh
3592 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3597 ifeq ($(ENABLE_JAVA
),TRUE
)
3598 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3603 define gb_Jar__use_bsh
3604 $(call gb_Jar_use_jar
,$(1),bsh
)
3611 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3613 ifneq ($(SYSTEM_RHINO
),)
3615 define gb_Jar__use_rhino
3616 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3619 else # !SYSTEM_RHINO
3621 ifeq ($(ENABLE_JAVA
),TRUE
)
3622 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3627 define gb_Jar__use_rhino
3628 $(call gb_Jar_use_jar
,$(1),js
)
3631 endif # SYSTEM_RHINO
3635 ifneq ($(SYSTEM_APACHE_COMMONS
),)
3637 define gb_Jar__use_commons-logging
3638 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
3640 gb_ExternalProject__use_commons-logging
:=
3642 else # !SYSTEM_APACHE_COMMONS
3644 ifeq ($(ENABLE_JAVA
),TRUE
)
3645 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3646 commons-logging-
$(COMMONS_LOGGING_VERSION
) \
3650 define gb_Jar__use_commons-logging
3651 $(call gb_Jar_use_external_project
,$(1),apache_commons_logging
)
3652 $(call gb_Jar_use_jar
,$(1),commons-logging-
$(COMMONS_LOGGING_VERSION
))
3654 define gb_ExternalProject__use_commons-logging
3655 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
3658 endif # SYSTEM_APACHE_COMMONS
3661 ifneq ($(SYSTEM_JFREEREPORT
),)
3663 define gb_Jar__use_flow-engine
3664 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3667 define gb_Jar__use_flute
3668 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3671 define gb_Jar__use_libbase
3672 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3675 define gb_Jar__use_libfonts
3676 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3679 define gb_Jar__use_libformula
3680 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3683 define gb_Jar__use_liblayout
3684 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3687 define gb_Jar__use_libloader
3688 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3691 define gb_Jar__use_librepository
3692 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3695 define gb_Jar__use_libserializer
3696 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3699 define gb_Jar__use_libxml
3700 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3703 define gb_Jar__use_sac
3704 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3707 else # !SYSTEM_JFREEREPORT
3709 ifeq ($(ENABLE_JAVA
),TRUE
)
3710 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3718 librepository-1.1
.6 \
3719 libserializer-1.1
.6 \
3725 define gb_Jar__use_flow-engine
3726 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3729 define gb_Jar__use_flute
3730 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3733 define gb_Jar__use_libbase
3734 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3737 define gb_Jar__use_libfonts
3738 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3741 define gb_Jar__use_libformula
3742 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3745 define gb_Jar__use_liblayout
3746 $(call gb_Jar_use_jar
,$(1),liblayout
)
3749 define gb_Jar__use_libloader
3750 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3753 define gb_Jar__use_librepository
3754 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3757 define gb_Jar__use_libserializer
3758 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3761 define gb_Jar__use_libxml
3762 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3765 define gb_Jar__use_sac
3766 $(call gb_Jar_use_jar
,$(1),sac
)
3769 endif # SYSTEM_JFREEREPORT
3774 # FIXME: the library target should be for build too
3775 define gb_Executable__register_bestreversemap
3776 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3777 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3781 # TODO depending on the whole URE might be overkill, but I do not have a
3782 # Windows machine to debug it...
3783 # FIXME: the library target should be for build too
3784 define gb_Executable__register_climaker
3785 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3786 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3787 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3788 $(call gb_UnoApi_get_target
,udkapi
) \
3789 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3793 define gb_Executable__register_cppumaker
3794 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3795 $(if
$(filter $(OS
),ANDROID
),,$(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),,$(call gb_Library_get_target
,sal_textenc
))) \
3799 # This is used to determine what we need for 'build' platform.
3800 # FIXME: the library target should be for build too
3801 define gb_Executable__register_gengal
3802 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3803 $(call gb_AllLangResTarget_get_target
,ofa
) \
3804 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3805 $(call gb_Package_get_target_for_build
,postprocess_images
) \
3806 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3807 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
) \
3808 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,fundamental
) \
3809 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,louno
) \
3810 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3811 $(INSTROOT_FOR_BUILD
)/$(LIBO_ETC_FOLDER
)/services
/services.rdb \
3812 $(call gb_UnoApi_get_target
,offapi
) \
3813 $(call gb_UnoApi_get_target
,udkapi
) \
3817 ifeq ($(SYSTEM_ICU
),)
3819 define gb_Executable__register_gendict
3820 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3821 $(call gb_Package_get_target_for_build
,icu
) \
3822 $(call gb_Package_get_target_for_build
,icu_ure
) \
3828 define gb_Executable__register_idlc
3829 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3830 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3834 define gb_Executable__register_localize
3835 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3836 $(foreach exec
,cfgex helpex propex transex3 treex uiex ulfex xrmex
,\
3837 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3842 # FIXME ure/services.rdb needs cleanup
3843 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3844 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3845 # FIXME: the library target should be for build too
3846 define gb_Executable__register_saxparser
3847 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3848 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3849 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3850 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3851 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD
)/services.rdb \
3852 $(call gb_UnoApi_get_target
,udkapi
) \
3856 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3857 # required due to the settings for URE_SERVICES and URE_TYPES in
3858 # cppuhelper/source/unorc
3859 # FIXME: the library target should be for build too
3860 define gb_Executable__register_uno
3861 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3862 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3863 $(INSTROOT_FOR_BUILD
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3864 $(call gb_UnoApi_get_target
,udkapi
) \
3869 # External executables
3871 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3873 gb_ExternalExecutable__register_xmllint
:=
3875 else # ! SYSTEM_LIBXML_FOR_BUILD
3877 define gb_ExternalExecutable__register_xmllint
3878 $(call gb_ExternalExecutable_set_internal
,xmllint
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/xml2
/$(if
$(filter MSC
,$(COM
)),win32
/bin.msvc
)/xmllint
$(gb_Executable_EXT_for_build
),xml2
)
3879 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3880 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3881 $(call gb_Package_get_target
,xml2
) \
3886 endif # SYSTEM_LIBXML_FOR_BUILD
3888 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3890 gb_ExternalExecutable__register_xsltproc
:=
3892 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3894 define gb_ExternalExecutable__register_xsltproc
3895 $(call gb_ExternalExecutable_set_internal
,xsltproc
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/xslt
/$(if
$(filter MSC
,$(COM
)),win32
/bin.msvc
,xsltproc
)/xsltproc
$(gb_Executable_EXT_for_build
),xslt
)
3896 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3897 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3898 $(call gb_Package_get_target
,xml2
) \
3899 $(call gb_Package_get_target
,xslt
) \
3904 endif # SYSTEM_LIBXSLT_FOR_BUILD
3906 ifneq (,$(SYSTEM_UCPP
))
3908 gb_ExternalExecutable__register_ucpp
:=
3910 else # ! SYSTEM_UCPP
3912 define gb_ExternalExecutable__register_ucpp
3913 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3919 ifeq (,$(PYTHON_FOR_BUILD
))
3921 define gb_ExternalExecutable__register_python
3924 # use set_external, to avoid having the command added as prerequisite for the
3925 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3926 # matching rule to build that specific file)
3927 $(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
))
3928 # the Zip ensures that internal python has been built (cannot use the Package
3929 # target, as that is not used on Mac)
3930 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3934 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
3935 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
3936 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
3944 define gb_ExternalExecutable__register_python
3945 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
3949 endif # PYTHON_FOR_BUILD
3951 ifneq ($(SYSTEM_GENBRK
),)
3953 define gb_ExternalExecutable__register_genbrk
3954 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
3958 else # ! SYSTEM_GENBRK
3960 define gb_ExternalExecutable__register_genbrk
3961 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
3962 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3963 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
3964 $(call gb_Package_get_target_for_build
,icu
) \
3965 $(call gb_Package_get_target_for_build
,icu_ure
) \
3972 ifneq ($(SYSTEM_GENCCODE
),)
3974 define gb_ExternalExecutable__register_genccode
3975 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
3979 else # ! SYSTEM_GENCCODE
3981 define gb_ExternalExecutable__register_genccode
3982 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
3983 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3984 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
3985 $(call gb_Package_get_target_for_build
,icu
) \
3986 $(call gb_Package_get_target_for_build
,icu_ure
) \
3993 ifneq ($(SYSTEM_GENCMN
),)
3995 define gb_ExternalExecutable__register_gencmn
3996 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4000 else # ! SYSTEM_GENCMN
4002 define gb_ExternalExecutable__register_gencmn
4003 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4004 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4005 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4006 $(call gb_Package_get_target_for_build
,icu
) \
4007 $(call gb_Package_get_target_for_build
,icu_ure
) \
4014 ifeq (OWNCLOUD_ANDROID_LIB
,$(filter OWNCLOUD_ANDROID_LIB
,$(BUILD_TYPE
)))
4016 $(eval
$(call gb_Helper_register_jars
,OXT
,\
4017 owncloud-android-library \
4020 define gb_Jar__use_owncloud_android_lib
4021 $(call gb_Jar_use_external_project
,$(1),owncloud-android-lib
)
4022 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,owncloud-android-lib
)/bin
/owncloud-android-library.jar
)
4024 define gb_ExternalProject__use_owncloud_android_lib
4025 $(call gb_ExternalProject_use_external_project
,$(1),owncloud_android_lib
)
4030 ifneq ($(ENABLE_ONLINE_UPDATE_MAR
),)
4031 ifneq ($(SYSTEM_BZIP2
),)
4033 define gb_LinkTarget__use_bzip2
4034 $(call gb_LinkTarget_set_include
,$(1),\
4038 $(call gb_LinkTarget_add_libs
,$(1),$(BZIP2_LIBS
))
4042 gb_ExternalProject__use_bzip2
:=
4044 else # !SYSTEM_BZIP2
4046 define gb_LinkTarget__use_bzip2
4047 $(call gb_LinkTarget_set_include
,$(1),\
4048 -I
$(call gb_UnpackedTarball_get_dir
,bzip2
) \
4053 $(call gb_LinkTarget_add_libs
,$(1),\
4054 $(call gb_UnpackedTarball_get_dir
,bzip2
)/libbz2.lib \
4057 $(call gb_LinkTarget_add_libs
,$(1),\
4058 -L
$(call gb_UnpackedTarball_get_dir
,bzip2
) -lbz2 \
4062 $(call gb_LinkTarget_use_external_project
,$(1),bzip2
)
4065 define gb_ExternalProject__use_bzip2
4066 $(call gb_ExternalProject_use_external_project
,$(1),bzip2
)
4072 define gb_LinkTarget__use_clew
4073 $(call gb_LinkTarget_set_include
,$(1), \
4074 -I
$(SRCDIR
)/external
/clew
/source
/include \
4077 $(call gb_LinkTarget_use_libraries
,$(1),clew
)
4080 ifneq ($(ENABLE_PDFIUM
),)
4081 define gb_LinkTarget__use_pdfium
4082 $(call gb_LinkTarget_set_include
,$(1),\
4083 -I
$(call gb_UnpackedTarball_get_dir
,pdfium
)/public \
4086 $(call gb_LinkTarget_use_libraries
,$(1),pdfium
)
4088 $(eval
$(call gb_Helper_register_libraries_for_install
,OOOLIBS
,ooo
,\
4093 # vim: set noet sw=4 ts=4: