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_MESA_HEADERS
),)
42 gb_LinkTarget__use_mesa_headers
:=
44 else # !SYSTEM_MESA_HEADERS
46 define gb_LinkTarget__use_mesa_headers
47 $(call gb_LinkTarget_set_include
,$(1),\
48 -I
$(SRCDIR
)/external
/Mesa
/inc \
54 endif # SYSTEM_MESA_HEADERS
56 ifneq ($(SYSTEM_NPAPI_HEADERS
),)
58 # yes this uses internal headers too...
59 # they are split across 2 dirs for this reason
60 define gb_LinkTarget__use_npapi_headers
61 $(call gb_LinkTarget_set_include
,$(1),\
62 $(NPAPI_HEADERS_CFLAGS
) \
63 -I
$(SRCDIR
)/external
/np_sdk \
69 else #!SYSTEM_NPAPI_HEADERS
71 define gb_LinkTarget__use_npapi_headers
72 $(call gb_LinkTarget_set_include
,$(1),\
73 -I
$(SRCDIR
)/external
/np_sdk
/inc \
74 -I
$(SRCDIR
)/external
/np_sdk \
80 endif #SYSTEM_NPAPI_HEADERS
82 ifneq ($(SYSTEM_ODBC_HEADERS
),)
84 define gb_LinkTarget__use_odbc_headers
85 $(call gb_LinkTarget_add_defs
,$(1),\
86 -DSYSTEM_ODBC_HEADERS \
91 else # !SYSTEM_ODBC_HEADERS
93 define gb_LinkTarget__use_odbc_headers
94 $(call gb_LinkTarget_set_include
,$(1),\
95 -I
$(SRCDIR
)/external
/unixODBC
/inc \
101 endif # SYSTEM_ODBC_HEADERS
103 ifneq ($(SYSTEM_VIGRA
),)
105 gb_LinkTarget__use_vigra_headers
:=
109 define gb_LinkTarget__use_vigra_headers
110 $(call gb_LinkTarget_use_unpacked
,$(1),vigra
)
111 $(call gb_LinkTarget_set_include
,$(1),\
112 -I
$(call gb_UnpackedTarball_get_dir
,vigra
/include) \
120 ifneq ($(SYSTEM_MDDS
),)
122 gb_ExternalProject__use_mdds_headers
:=
124 define gb_LinkTarget__use_mdds_headers
125 $(call gb_LinkTarget_set_include
,$(1),\
134 define gb_ExternalProject__use_mdds_headers
135 $(call gb_ExternalProject_use_unpacked
,$(1),mdds
)
139 define gb_LinkTarget__use_mdds_headers
140 $(call gb_LinkTarget_use_unpacked
,$(1),mdds
)
141 $(call gb_LinkTarget_set_include
,$(1),\
150 ifneq ($(SYSTEM_GLM
),)
152 gb_LinkTarget__use_glm_headers
:=
153 gb_ExternalProject__use_glm_headers
:=
157 define gb_LinkTarget__use_glm_headers
158 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
159 $(call gb_LinkTarget_set_include
,$(1),\
166 define gb_ExternalProject__use_glm_headers
167 $(call gb_ExternalProject_get_preparation_target
,$(1)) :|
$(call gb_UnpackedTarball_get_final_target
,glm
)
173 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
175 define gb_LinkTarget__use_sane_headers
176 $(call gb_LinkTarget_set_include
,$(1),\
177 -I
$(SRCDIR
)/external
/$(if
$(filter WNT
,$(OS
)),twain
,sane
)/inc \
185 gb_LinkTarget__use_sane_headers
:=
189 ifneq ($(SYSTEM_BLUEZ
),)
191 gb_LinkTarget__use_bluez_bluetooth_headers
:=
195 define gb_LinkTarget__use_bluez_bluetooth_headers
196 $(call gb_LinkTarget_set_include
,$(1),\
197 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
207 ifneq ($(SYSTEM_CPPUNIT
),)
209 define gb_LinkTarget__use_cppunit
210 $(call gb_LinkTarget_set_include
,$(1),\
215 $(call gb_LinkTarget_add_libs
,$(1),\
221 else # !SYSTEM_CPPUNIT
223 define gb_LinkTarget__use_cppunit
224 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
)
226 $(call gb_LinkTarget_set_include
,$(1),\
227 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
232 $(call gb_LinkTarget_add_libs
,$(1),\
233 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
236 $(call gb_LinkTarget_add_libs
,$(1),\
237 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
243 endif # SYSTEM_CPPUNIT
245 ifneq ($(SYSTEM_GLEW
),)
247 define gb_LinkTarget__use_glew
248 $(call gb_LinkTarget_set_include
,$(1),\
252 $(call gb_LinkTarget_add_libs
,$(1),$(GLEW_LIBS
))
256 gb_ExternalProject__use_glew
:=
260 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
264 define gb_LinkTarget__use_glew
265 $(call gb_LinkTarget_use_package
,$(1),glew
)
266 $(call gb_LinkTarget_set_include
,$(1),\
267 -I
$(call gb_UnpackedTarball_get_dir
,glew
/include) \
273 $(call gb_LinkTarget_add_libs
,$(1),\
274 $(call gb_UnpackedTarball_get_dir
,glew
)/lib
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
/$(wnt_arch_subdir_mandatory
)/glew32d.lib
,Release
/$(wnt_arch_subdir_mandatory
)/glew32.lib
) \
277 $(call gb_LinkTarget_add_libs
,$(1),\
278 -L
$(call gb_UnpackedTarball_get_dir
,glew
)/lib
/ -lGLEW \
284 define gb_ExternalProject__use_glew
285 $(call gb_ExternalProject_use_external_project
,$(1),glew
)
291 define gb_LinkTarget__use_iconv
292 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
296 ifneq ($(SYSTEM_MARIADB
),)
298 define gb_LinkTarget__use_mariadb
299 $(call gb_LinkTarget_set_include
,$(1),\
303 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
306 gb_ExternalProject__use_mariadb
:=
308 else # !SYSTEM_MARIADB
310 define gb_LinkTarget__use_mariadb
311 $(call gb_LinkTarget_set_include
,$(1),\
315 $(call gb_LinkTarget_use_static_libraries
,$(1),\
320 define gb_ExternalProject__use_mariadb
321 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadblib
)
325 endif # SYSTEM_MARIADB
328 ifneq ($(SYSTEM_MARIADB
),)
330 define gb_LinkTarget__use_mysql
332 $(call gb_LinkTarget_add_defs
,$(1),\
336 $(call gb_LinkTarget_add_libs
,$(1),\
340 $(call gb_LinkTarget_set_include
,$(1),\
348 define gb_LinkTarget__use_mysql
350 $(call gb_LinkTarget_set_include
,$(1),\
358 ifneq ($(SYSTEM_MYSQL_CPPCONN
),)
360 define gb_LinkTarget__use_mysqlcppconn
361 $(call gb_LinkTarget_add_libs
,$(1),\
365 $(call gb_LinkTarget_add_defs
,$(1),\
366 -DSYSTEM_MYSQL_CPPCONN \
372 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_NONE
,\
376 # note: this does not link mysqlcppconn, it is loaded via osl_loadModuleRelative
377 define gb_LinkTarget__use_mysqlcppconn
379 $(call gb_LinkTarget_use_unpacked
,$(1),mysqlcppconn
)
381 $(call gb_LinkTarget_add_defs
,$(1),\
382 -DCPPCONN_LIB_BUILD \
385 $(call gb_LinkTarget_set_include
,$(1),\
386 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
) \
387 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
)/cppconn \
395 ifneq ($(SYSTEM_ZLIB
),)
397 define gb_LinkTarget__use_zlib
398 $(call gb_LinkTarget_add_defs
,$(1),\
401 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
406 define gb_LinkTarget__use_zlib_x64
410 gb_ExternalProject__use_zlib
:=
414 define gb_LinkTarget__use_zlib_multiarch
415 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
417 $(call gb_LinkTarget_set_include
,$(1),\
422 $(call gb_LinkTarget_use_static_libraries
,$(1),\
428 define gb_LinkTarget__use_zlib
429 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
433 define gb_LinkTarget__use_zlib_x64
434 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
438 define gb_ExternalProject__use_zlib
439 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
446 ifneq ($(SYSTEM_JPEG
),)
448 define gb_LinkTarget__use_jpeg
449 $(call gb_LinkTarget_add_libs
,$(1),-ljpeg
)
450 $(call gb_LinkTarget_set_ldflags
,$(1),\
451 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
456 else ifneq ($(filter JPEG_TURBO
,$(BUILD_TYPE
)),)
458 define gb_LinkTarget__use_jpeg
459 $(call gb_LinkTarget_set_include
,$(1),\
460 -I
$(call gb_UnpackedTarball_get_dir
,jpeg-turbo
) \
463 $(call gb_LinkTarget_add_libs
,$(1),\
464 $(call gb_UnpackedTarball_get_dir
,jpeg-turbo
)/.libs
/libjpeg
$(gb_StaticLibrary_PLAINEXT
) \
466 $(call gb_LinkTarget_use_external_project
,$(1),jpeg-turbo
)
472 define gb_LinkTarget__use_jpeg
473 $(call gb_LinkTarget_set_include
,$(1),\
474 -I
$(call gb_UnpackedTarball_get_dir
,jpeg
) \
478 $(call gb_LinkTarget_use_static_libraries
,$(1),\
486 ifneq ($(SYSTEM_MYTHES
),)
488 define gb_LinkTarget__use_mythes
489 $(call gb_LinkTarget_set_include
,$(1),\
493 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
497 else # !SYSTEM_MYTHES
499 define gb_LinkTarget__use_mythes
500 $(call gb_LinkTarget_set_include
,$(1),\
501 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
506 $(call gb_LinkTarget_use_static_libraries
,$(1),\
510 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
511 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
516 endif # SYSTEM_MYTHES
519 ifneq ($(SYSTEM_EXPAT
),)
521 define gb_LinkTarget__use_expat_impl
522 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
524 $(call gb_LinkTarget_add_defs
,$(1),\
528 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
532 gb_ExternalProject__use_expat
:=
536 define gb_LinkTarget__use_expat_impl
537 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
539 $(call gb_LinkTarget_set_include
,$(1),\
540 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
544 $(call gb_LinkTarget_use_static_libraries
,$(1),\
550 define gb_ExternalProject__use_expat
551 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
557 define gb_LinkTarget__use_expat
558 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
562 define gb_LinkTarget__use_expat_x64
563 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
567 ifneq ($(SYSTEM_HYPH
),)
569 define gb_LinkTarget__use_hyphen
570 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
576 define gb_LinkTarget__use_hyphen
577 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
578 $(call gb_LinkTarget_set_include
,$(1),\
579 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
584 $(call gb_LinkTarget_use_static_libraries
,$(1),\
588 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
589 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
596 ifneq ($(SYSTEM_HUNSPELL
),)
598 define gb_LinkTarget__use_hunspell
599 $(call gb_LinkTarget_set_include
,$(1),\
603 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
607 gb_ExternalProject__use_hunspell
:=
609 else # !SYSTEM_HUNSPELL
611 define gb_LinkTarget__use_hunspell
612 $(call gb_LinkTarget_add_defs
,$(1),\
615 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
616 $(call gb_LinkTarget_set_include
,$(1),\
617 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
622 $(call gb_LinkTarget_use_static_libraries
,$(1),\
626 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
627 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
632 define gb_ExternalProject__use_hunspell
633 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
637 endif # SYSTEM_HUNSPELL
640 ifneq ($(SYSTEM_BOOST
),)
642 define gb_LinkTarget__use_boostdatetime
643 $(call gb_LinkTarget_set_include
,$(1),\
648 $(call gb_LinkTarget_add_ldflags
,$(1),\
652 $(call gb_LinkTarget_add_libs
,$(1),\
653 $(BOOST_DATE_TIME_LIB
) \
658 define gb_LinkTarget__use_boost_iostreams
659 $(call gb_LinkTarget_set_include
,$(1),\
664 $(call gb_LinkTarget_add_ldflags
,$(1),\
668 $(call gb_LinkTarget_add_libs
,$(1),\
669 $(BOOST_IOSTREAMS_LIB
) \
674 gb_ExternalProject__use_boost_iostreams
:=
676 define gb_LinkTarget__use_boost_system
677 $(call gb_LinkTarget_set_include
,$(1),\
682 $(call gb_LinkTarget_add_ldflags
,$(1),\
686 $(call gb_LinkTarget_add_libs
,$(1),\
687 $(BOOST_SYSTEM_LIB
) \
692 gb_ExternalProject__use_boost_system
:=
694 define gb_LinkTarget__use_boost_headers
695 $(call gb_LinkTarget_set_include
,$(1),\
702 gb_ExternalProject__use_boost_headers
:=
707 define gb_LinkTarget__use_boostthread
708 $(call gb_LinkTarget_add_defs
,$(1),\
712 $(call gb_LinkTarget_use_static_libraries
,$(1),\
718 define gb_LinkTarget__use_boostdatetime
719 $(call gb_LinkTarget_add_defs
,$(1),\
723 $(call gb_LinkTarget_use_static_libraries
,$(1),\
729 define gb_LinkTarget__use_boost_iostreams
730 $(call gb_LinkTarget_add_defs
,$(1),\
734 $(call gb_LinkTarget_use_static_libraries
,$(1),\
740 define gb_ExternalProject__use_boost_iostreams
741 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
744 define gb_LinkTarget__use_boost_system
745 $(call gb_LinkTarget_add_defs
,$(1),\
749 $(call gb_LinkTarget_use_static_libraries
,$(1),\
755 define gb_ExternalProject__use_boost_system
756 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
759 define gb_LinkTarget__use_boost_headers
760 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
761 $(call gb_LinkTarget_set_include
,$(1),\
762 -I
$(call gb_UnpackedTarball_get_dir
,boost
) \
768 define gb_ExternalProject__use_boost_headers
769 $(call gb_ExternalProject_get_preparation_target
,$(1)) :|
$(call gb_UnpackedTarball_get_final_target
,boost
)
775 ifneq ($(SYSTEM_CMIS
),)
777 define gb_LinkTarget__use_cmis
778 $(call gb_LinkTarget_set_include
,$(1),\
782 $(call gb_LinkTarget_add_libs
,$(1),$(CMIS_LIBS
))
788 define gb_LinkTarget__use_cmis
789 $(call gb_LinkTarget_set_include
,$(1),\
790 -I
$(call gb_UnpackedTarball_get_dir
,cmis
)/src \
793 $(call gb_LinkTarget_use_static_libraries
,$(1),\
801 ifeq ($(ENABLE_JAVA
),TRUE
)
803 ifeq ($(OS
)$(COM
),WNTGCC
)
805 define gb_LinkTarget__use_jawt
806 $(call gb_LinkTarget_use_custom_headers
,$(1),external
/jawt
)
808 $(call gb_LinkTarget_add_ldflags
,$(1),\
809 -L
$(call gb_CustomTarget_get_workdir
,external
/jawt
) \
812 $(call gb_LinkTarget_add_libs
,$(1),\
818 else # $(OS)$(COM) != WNTGCC
820 define gb_LinkTarget__use_jawt
821 $(call gb_LinkTarget_add_libs
,$(1),\
827 endif # $(OS)$(COM) = WNTGCC
831 gb_LinkTarget__use_jawt
:=
835 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
837 define gb_LinkTarget__use_libatomic_ops
838 $(call gb_LinkTarget_set_include
,$(1),\
840 $(LIBATOMIC_OPS_CFLAGS
) \
842 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
845 gb_ExternalProject__use_libatomic_ops
:=
847 else # !SYSTEM_LIBATOMIC_OPS
849 define gb_LinkTarget__use_libatomic_ops
850 $(call gb_LinkTarget_set_include
,$(1),\
851 $(LIBATOMIC_OPS_CFLAGS
) \
853 $(LIBATOMIC_OPS_CFLAGS
) \
855 $(call gb_LinkTarget_use_external_project
,$(1),\
859 $(call gb_LinkTarget_add_libs
,$(1),\
860 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
865 define gb_ExternalProject__use_libatomic_ops
866 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
870 endif # SYSTEM_LIBATOMIC_OPS
873 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
875 define gb_LinkTarget__use_libexttextcat
876 $(call gb_LinkTarget_set_include
,$(1),\
878 $(LIBEXTTEXTCAT_CFLAGS
) \
880 $(call gb_LinkTarget_add_defs
,$(1),\
881 -DSYSTEM_LIBEXTTEXTCAT \
883 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
887 else # !SYSTEM_LIBEXTTEXTCAT
889 define gb_LinkTarget__use_libexttextcat
890 $(call gb_LinkTarget_set_include
,$(1),\
891 -I
$(call gb_UnpackedTarball_get_dir
,exttextcat
/src
) \
896 $(call gb_LinkTarget_use_static_libraries
,$(1),\
900 $(call gb_LinkTarget_add_libs
,$(1),\
901 $(call gb_UnpackedTarball_get_dir
,exttextcat
)/src
/.libs
/libexttextcat-2.0.a\
903 $(call gb_LinkTarget_use_external_project
,$(1),exttextcat
)
909 endif # SYSTEM_LIBEXTTEXTCAT
912 ifneq ($(SYSTEM_LIBXML
),)
914 define gb_LinkTarget__use_libxml2
915 $(call gb_LinkTarget_add_defs
,$(1),\
918 $(call gb_LinkTarget_set_include
,$(1),\
922 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
925 gb_ExternalProject__use_libxml2
:=
927 else # !SYSTEM_LIBXML
929 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
933 define gb_LinkTarget__use_libxml2
934 $(call gb_LinkTarget_use_package
,$(1),xml2
)
935 $(call gb_LinkTarget_set_include
,$(1),\
940 $(call gb_LinkTarget_add_libs
,$(1),\
945 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
949 define gb_ExternalProject__use_libxml2
950 $(call gb_ExternalProject_use_package
,$(1),xml2
)
953 $(call gb_ExternalProject_use_external_project
,$(1),icu
)
958 endif # SYSTEM_LIBXML
961 ifneq ($(SYSTEM_LIBXSLT
),)
963 define gb_LinkTarget__use_libxslt
964 $(call gb_LinkTarget_set_include
,$(1),\
968 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
972 define gb_LinkTarget__use_libexslt
973 $(call gb_LinkTarget_set_include
,$(1),\
978 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
982 else # !SYSTEM_LIBXSLT
984 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
988 define gb_LinkTarget__use_libxslt
989 $(call gb_LinkTarget_use_package
,$(1),xslt
)
990 $(call gb_LinkTarget_set_include
,$(1),\
992 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
996 $(call gb_LinkTarget_add_libs
,$(1),\
997 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libxslt.lib \
1000 $(call gb_LinkTarget_add_libs
,$(1),\
1001 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libxslt
/.libs
-lxslt \
1007 define gb_LinkTarget__use_libexslt
1008 $(call gb_LinkTarget_use_package
,$(1),xslt
)
1009 $(call gb_LinkTarget_set_include
,$(1),\
1011 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
1015 $(call gb_LinkTarget_add_libs
,$(1),\
1016 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libexslt.lib \
1019 $(call gb_LinkTarget_add_libs
,$(1),\
1020 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libexslt
/.libs
-lexslt \
1026 endif # SYSTEM_LIBXSLT
1028 ifeq ($(ENABLE_LIBLANGTAG
),TRUE
)
1030 ifneq ($(SYSTEM_LIBLANGTAG
),)
1032 define gb_LinkTarget__use_liblangtag
1033 $(call gb_LinkTarget_set_include
,$(1),\
1035 $(LIBLANGTAG_CFLAGS
) \
1038 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1042 else # !SYSTEM_LIBLANGTAG
1044 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1048 define gb_LinkTarget__use_liblangtag
1049 $(call gb_LinkTarget_use_unpacked
,$(1),langtag
)
1050 $(call gb_LinkTarget_set_include
,$(1),\
1051 -I
$(call gb_UnpackedTarball_get_dir
,langtag
) \
1054 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1055 $(call gb_LinkTarget_use_external_project
,$(1),langtag
)
1059 endif # SYSTEM_LIBLANGTAG
1063 gb_LinkTarget__use_liblangtag
:=
1065 endif # ENABLE_LIBLANGTAG
1067 gb_ExternalProject__use_apr
:=
1069 ifeq ($(WITH_WEBDAV
),serf
)
1071 define gb_LinkTarget__use_apr
1072 $(call gb_LinkTarget_set_include
,$(1),\
1076 $(call gb_LinkTarget_add_libs
,$(1),\
1078 $(if
$(filter $(OS
),LINUX
),-lpthread
) \
1079 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
1082 ifeq ($(SYSTEM_APR
),)
1083 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1088 $(call gb_LinkTarget_add_defs
,$(1),\
1089 -DAPR_DECLARE_STATIC \
1090 -DAPU_DECLARE_STATIC \
1092 $(call gb_LinkTarget_use_external_project
,$(1),apr_util
)
1097 define gb_ExternalProject__use_apr
1098 ifeq ($(SYSTEM_APR
),)
1099 $(call gb_ExternalProject_use_external_project
,$(1),apr_util
)
1104 define gb_LinkTarget__use_serf
1105 $(call gb_LinkTarget_set_include
,$(1),\
1109 $(call gb_LinkTarget_add_libs
,$(1),\
1113 ifeq ($(SYSTEM_SERF
),)
1114 $(call gb_LinkTarget_use_external_project
,$(1),serf
)
1119 else ifeq ($(WITH_WEBDAV
),neon
)
1121 ifneq ($(SYSTEM_NEON
),)
1123 define gb_LinkTarget__use_neon
1124 $(call gb_LinkTarget_add_defs
,$(1),\
1125 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
1128 $(call gb_LinkTarget_set_include
,$(1),\
1133 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
1139 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1143 define gb_LinkTarget__use_neon
1144 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
1145 $(call gb_LinkTarget_set_include
,$(1),\
1146 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
1149 $(call gb_LinkTarget_use_libraries
,$(1),\
1159 ifneq ($(SYSTEM_REDLAND
),)
1161 define gb_LinkTarget__use_librdf
1162 $(call gb_LinkTarget_add_defs
,$(1),\
1165 $(call gb_LinkTarget_set_include
,$(1),\
1169 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1173 gb_LinkTarget__use_redland_headers
:=
1175 gb_LinkTarget__use_raptor_headers
:=
1177 gb_LinkTarget__use_rasqal_headers
:=
1179 else # !SYSTEM_REDLAND
1181 define gb_LinkTarget__use_redland_headers
1182 $(call gb_LinkTarget_set_include
,$(1),\
1183 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1189 define gb_LinkTarget__use_raptor_headers
1190 $(call gb_LinkTarget_set_include
,$(1),\
1191 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1197 define gb_LinkTarget__use_rasqal_headers
1198 $(call gb_LinkTarget_set_include
,$(1),\
1199 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1205 ifneq ($(OS
),ANDROID
)
1208 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1214 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1221 define gb_LinkTarget__use_librdf
1223 $(call gb_LinkTarget_use_libraries
,$(1),\
1228 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
1230 $(call gb_LinkTarget_add_libs
,$(1),\
1231 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1232 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1240 define gb_LinkTarget__use_librdf
1241 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
1247 endif # SYSTEM_REDLAND
1250 ifneq ($(filter unx
,$(GUIBASE
))$(ENABLE_CAIRO_CANVAS
),) # or
1252 ifneq ($(SYSTEM_CAIRO
),)
1254 define gb_LinkTarget__use_cairo
1255 $(call gb_LinkTarget_set_include
,$(1),\
1259 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1260 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1264 else # !SYSTEM_CAIRO
1266 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1268 $(if
$(filter $(OS
),WNT
),,pixman
) \
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 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
1283 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1289 endif # SYSTEM_CAIRO
1293 ifneq ($(SYSTEM_FREETYPE
),)
1295 define gb_LinkTarget__use_freetype_headers
1296 $(call gb_LinkTarget_set_include
,$(1),\
1298 $(FREETYPE_CFLAGS
) \
1303 define gb_LinkTarget__use_freetype
1304 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1305 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1309 gb_ExternalProject__use_freetype
:=
1311 else ifeq ($(OS
),ANDROID
)
1313 define gb_LinkTarget__use_freetype_headers
1314 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1315 $(call gb_LinkTarget_set_include
,$(1),\
1316 -I
$(call gb_UnpackedTarball_get_dir
,freetype
)/include \
1322 define gb_LinkTarget__use_freetype
1323 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1324 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1328 define gb_ExternalProject__use_freetype
1329 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1333 endif # SYSTEM_FREETYPE
1335 ifneq ($(SYSTEM_FONTCONFIG
),)
1337 define gb_LinkTarget__use_fontconfig
1338 $(call gb_LinkTarget_set_include
,$(1),\
1340 $(FONTCONFIG_CFLAGS
) \
1343 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1347 else ifeq ($(OS
),ANDROID
)
1349 define gb_LinkTarget__use_fontconfig
1350 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1351 $(call gb_LinkTarget_set_include
,$(1),\
1352 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1358 endif # SYSTEM_FONTCONFIG
1360 ifeq ($(ENABLE_GRAPHITE
),TRUE
)
1362 ifneq ($(SYSTEM_GRAPHITE
),)
1364 define gb_LinkTarget__use_graphite
1365 $(call gb_LinkTarget_set_include
,$(1),\
1367 $(GRAPHITE_CFLAGS
) \
1369 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1373 else # !SYSTEM_GRAPHITE
1375 define gb_LinkTarget__use_graphite
1376 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1377 $(call gb_LinkTarget_set_include
,$(1),\
1378 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1381 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1387 endif # SYSTEM_GRAPHITE
1389 else # !ENABLE_GRAPHITE
1391 gb_LinkTarget__use_graphite
:=
1393 endif # ENABLE_GRAPHITE
1395 ifneq ($(SYSTEM_ICU
),)
1397 gb_LinkTarget__use_icu_headers
:=
1398 gb_ExternalProject__use_icu
:=
1400 define gb_LinkTarget__use_icudata
1401 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1404 define gb_LinkTarget__use_icui18n
1405 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1408 define gb_LinkTarget__use_icuuc
1409 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1415 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1419 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1423 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1429 define gb_LinkTarget__use_icu_headers
1430 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1431 $(call gb_LinkTarget_set_include
,$(1),\
1432 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1433 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1434 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1440 define gb_ExternalProject__use_icu
1441 $(call gb_ExternalProject_use_package
,$(1),icu
)
1445 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1446 define gb_LinkTarget__use_icudata
1447 $(call gb_LinkTarget_use_package
,$(1),icu
)
1450 $(call gb_LinkTarget_add_libs
,$(1),\
1451 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1454 $(call gb_LinkTarget_add_libs
,$(1),\
1455 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1461 define gb_LinkTarget__use_icui18n
1462 $(call gb_LinkTarget_use_package
,$(1),icu
)
1465 $(call gb_LinkTarget_add_libs
,$(1),\
1466 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1469 $(call gb_LinkTarget_add_libs
,$(1),\
1470 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1476 define gb_LinkTarget__use_icuuc
1477 $(call gb_LinkTarget_use_package
,$(1),icu
)
1480 $(call gb_LinkTarget_add_libs
,$(1),\
1481 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1484 $(call gb_LinkTarget_add_libs
,$(1),\
1485 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1493 ifeq ($(ENABLE_HARFBUZZ
),TRUE
)
1494 ifneq ($(SYSTEM_HARFBUZZ
),)
1496 define gb_LinkTarget__use_harfbuzz
1497 $(call gb_LinkTarget_set_include
,$(1),\
1499 $(HARFBUZZ_CFLAGS
) \
1501 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1505 else # SYSTEM_HARFBUZZ != TRUE
1507 define gb_LinkTarget__use_harfbuzz
1508 $(call gb_LinkTarget_set_include
,$(1),\
1509 $(HARFBUZZ_CFLAGS
) \
1512 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1513 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1517 endif # SYSTEM_HARFBUZZ
1518 else # ENABLE_HARFBUZZ != YES
1520 gb_LinkTarget__use_harfbuzz
:=
1522 endif # ENABLE_HARFBUZZ
1524 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1526 gb_ExternalProject__use_openssl
:=
1527 gb_LinkTarget__use_openssl_headers
:=
1528 gb_LinkTarget__use_openssl
:=
1530 else # !DISABLE_OPENSSL
1532 ifneq ($(SYSTEM_OPENSSL
),)
1534 gb_LinkTarget__use_openssl_headers
:=
1535 gb_ExternalProject__use_openssl
:=
1537 define gb_LinkTarget__use_openssl
1538 $(call gb_LinkTarget_set_include
,$(1),\
1542 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1546 else # !SYSTEM_OPENSSL
1548 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1552 define gb_ExternalProject__use_openssl
1553 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1557 define gb_LinkTarget__use_openssl_headers
1558 $(call gb_LinkTarget_set_include
,$(1),\
1559 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1565 define gb_LinkTarget__use_openssl
1566 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1568 $(call gb_LinkTarget_add_libs
,$(1),\
1569 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/ssleay32.lib \
1570 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/libeay32.lib \
1573 $(call gb_LinkTarget_add_libs
,$(1),\
1574 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1575 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1577 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1578 ifeq ($(OS
),SOLARIS
)
1579 $(call gb_LinkTarget_add_libs
,$(1),\
1588 endif # SYSTEM_OPENSSL
1589 endif # DISABLE_OPENSSL
1592 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1594 define gb_LinkTarget__use_gnutls
1595 $(call gb_LinkTarget_set_include
,$(1),\
1600 $(call gb_LinkTarget_add_defs
,$(1),\
1604 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1608 define gb_LinkTarget__use_libgcrypt
1609 $(call gb_LinkTarget_set_include
,$(1),\
1611 $(LIBGCRYPT_CFLAGS
) \
1614 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1618 else # !DISABLE_OPENSSL
1620 gb_LinkTarget__use_gnutls
:=
1621 gb_LinkTarget__use_libgcrypt
:=
1623 endif # DISABLE_OPENSSL
1626 ifneq ($(SYSTEM_CDR
),)
1628 define gb_LinkTarget__use_cdr
1629 $(call gb_LinkTarget_set_include
,$(1),\
1633 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1639 define gb_LinkTarget__use_cdr
1640 $(call gb_LinkTarget_set_include
,$(1),\
1641 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1644 $(call gb_LinkTarget_add_libs
,$(1),\
1645 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1647 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1653 ifneq ($(SYSTEM_EBOOK
),)
1655 define gb_LinkTarget__use_ebook
1656 $(call gb_LinkTarget_set_include
,$(1),\
1660 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1664 gb_ExternalProject__use_ebook
:=
1666 else # !SYSTEM_EBOOK
1668 define gb_LinkTarget__use_ebook
1669 $(call gb_LinkTarget_set_include
,$(1),\
1670 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1673 $(call gb_LinkTarget_add_libs
,$(1),\
1674 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1676 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1680 define gb_ExternalProject__use_ebook
1681 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1685 endif # SYSTEM_EBOOK
1688 ifneq ($(SYSTEM_ETONYEK
),)
1690 define gb_LinkTarget__use_etonyek
1691 $(call gb_LinkTarget_set_include
,$(1),\
1695 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1699 gb_ExternalProject__use_etonyek
:=
1701 else # !SYSTEM_ETONYEK
1705 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1709 define gb_LinkTarget__use_etonyek
1710 $(call gb_LinkTarget_set_include
,$(1),\
1711 -I
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/inc \
1714 $(call gb_LinkTarget_use_libraries
,$(1),\
1722 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1726 define gb_LinkTarget__use_etonyek
1727 $(call gb_LinkTarget_use_package
,$(1),libetonyek
)
1729 $(call gb_LinkTarget_set_include
,$(1),\
1730 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1731 -DLIBETONYEK_VISIBILITY \
1734 $(call gb_LinkTarget_add_libs
,$(1),\
1735 -L
$(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
-letonyek-0.1 \
1737 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1741 define gb_ExternalProject__use_etonyek
1742 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1748 endif # SYSTEM_ETONYEK
1751 ifneq ($(SYSTEM_FREEHAND
),)
1753 define gb_LinkTarget__use_freehand
1754 $(call gb_LinkTarget_set_include
,$(1),\
1756 $(FREEHAND_CFLAGS
) \
1758 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1762 gb_ExternalProject__use_freehand
:=
1764 else # !SYSTEM_FREEHAND
1766 define gb_LinkTarget__use_freehand
1767 $(call gb_LinkTarget_set_include
,$(1),\
1768 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1771 $(call gb_LinkTarget_add_libs
,$(1),\
1772 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1774 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1778 define gb_ExternalProject__use_freehand
1779 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1783 endif # SYSTEM_FREEHAND
1786 ifneq ($(SYSTEM_ODFGEN
),)
1788 define gb_LinkTarget__use_odfgen
1789 $(call gb_LinkTarget_set_include
,$(1),\
1793 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1797 else # !SYSTEM_ODFGEN
1801 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1805 define gb_LinkTarget__use_odfgen
1806 $(call gb_LinkTarget_set_include
,$(1),\
1807 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1810 $(call gb_LinkTarget_use_libraries
,$(1),\
1818 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1822 define gb_LinkTarget__use_odfgen
1823 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1825 $(call gb_LinkTarget_set_include
,$(1),\
1826 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1827 -DLIBODFGEN_VISIBILITY \
1830 $(call gb_LinkTarget_add_libs
,$(1),\
1831 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1838 endif # SYSTEM_ODFGEN
1841 ifneq ($(SYSTEM_REVENGE
),)
1843 define gb_LinkTarget__use_revenge
1844 $(call gb_LinkTarget_set_include
,$(1),\
1848 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1852 gb_ExternalProject__use_revenge
:=
1854 else # !SYSTEM_REVENGE
1858 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1862 define gb_LinkTarget__use_revenge
1863 $(call gb_LinkTarget_set_include
,$(1),\
1867 $(call gb_LinkTarget_use_libraries
,$(1),\
1873 define gb_ExternalProject__use_revenge
1874 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1880 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1884 define gb_LinkTarget__use_revenge
1885 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1887 $(call gb_LinkTarget_set_include
,$(1),\
1889 -DLIBREVENGE_VISIBILITY \
1892 $(call gb_LinkTarget_add_libs
,$(1),\
1897 define gb_ExternalProject__use_revenge
1898 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1904 endif # SYSTEM_REVENGE
1907 ifneq ($(SYSTEM_ABW
),)
1909 define gb_LinkTarget__use_abw
1910 $(call gb_LinkTarget_set_include
,$(1),\
1914 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1917 gb_ExternalProject__use_abw
:=
1921 define gb_LinkTarget__use_abw
1922 $(call gb_LinkTarget_set_include
,$(1),\
1923 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1926 $(call gb_LinkTarget_add_libs
,$(1),\
1927 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1929 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1932 define gb_ExternalProject__use_abw
1933 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1940 ifneq ($(SYSTEM_MSPUB
),)
1942 define gb_LinkTarget__use_mspub
1943 $(call gb_LinkTarget_set_include
,$(1),\
1947 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1951 else # !SYSTEM_MSPUB
1953 define gb_LinkTarget__use_mspub
1954 $(call gb_LinkTarget_set_include
,$(1),\
1955 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1958 $(call gb_LinkTarget_add_libs
,$(1),\
1959 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1961 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1965 endif # SYSTEM_MSPUB
1968 ifneq ($(SYSTEM_PAGEMAKER
),)
1970 define gb_LinkTarget__use_pagemaker
1971 $(call gb_LinkTarget_set_include
,$(1),\
1973 $(PAGEMAKER_CFLAGS
) \
1975 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1978 gb_ExternalProject__use_pagemaker
:=
1980 else # !SYSTEM_PAGEMAKER
1982 define gb_LinkTarget__use_pagemaker
1983 $(call gb_LinkTarget_set_include
,$(1),\
1984 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1987 $(call gb_LinkTarget_add_libs
,$(1),\
1988 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1990 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1993 define gb_ExternalProject__use_pagemaker
1994 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1998 endif # SYSTEM_PAGEMAKER
2001 ifneq ($(SYSTEM_VISIO
),)
2003 define gb_LinkTarget__use_visio
2004 $(call gb_LinkTarget_set_include
,$(1),\
2008 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
2012 else # !SYSTEM_VISIO
2014 define gb_LinkTarget__use_visio
2015 $(call gb_LinkTarget_set_include
,$(1),\
2016 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
2019 $(call gb_LinkTarget_add_libs
,$(1),\
2020 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
2022 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
2026 endif # SYSTEM_VISIO
2029 ifneq ($(SYSTEM_WPD
),)
2031 define gb_LinkTarget__use_wpd
2032 $(call gb_LinkTarget_set_include
,$(1),\
2036 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2039 gb_ExternalProject__use_wpd
:=
2045 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2049 define gb_LinkTarget__use_wpd
2050 $(call gb_LinkTarget_set_include
,$(1),\
2054 $(call gb_LinkTarget_use_libraries
,$(1),\
2060 define gb_ExternalProject__use_wpd
2061 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2067 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2071 define gb_LinkTarget__use_wpd
2072 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2074 $(call gb_LinkTarget_set_include
,$(1),\
2078 $(call gb_LinkTarget_add_libs
,$(1),\
2084 define gb_ExternalProject__use_wpd
2085 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2094 ifneq ($(SYSTEM_WPG
),)
2096 define gb_LinkTarget__use_wpg
2097 $(call gb_LinkTarget_set_include
,$(1),\
2101 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2104 gb_ExternalProject__use_wpg
:=
2110 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2114 define gb_LinkTarget__use_wpg
2115 $(call gb_LinkTarget_set_include
,$(1),\
2116 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2119 $(call gb_LinkTarget_use_libraries
,$(1),\
2127 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2131 define gb_LinkTarget__use_wpg
2132 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2134 $(call gb_LinkTarget_set_include
,$(1),\
2135 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2138 $(call gb_LinkTarget_add_libs
,$(1),\
2139 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2149 ifneq ($(SYSTEM_WPS
),)
2151 define gb_LinkTarget__use_wps
2152 $(call gb_LinkTarget_set_include
,$(1),\
2156 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2159 gb_ExternalProject__use_wps
:=
2165 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2169 define gb_LinkTarget__use_wps
2170 $(call gb_LinkTarget_set_include
,$(1),\
2171 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2175 $(call gb_LinkTarget_use_libraries
,$(1),\
2183 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2187 define gb_LinkTarget__use_wps
2188 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2190 $(call gb_LinkTarget_set_include
,$(1),\
2191 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2194 $(call gb_LinkTarget_add_libs
,$(1),\
2195 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.4 \
2205 ifneq ($(SYSTEM_MWAW
),)
2207 define gb_LinkTarget__use_mwaw
2208 $(call gb_LinkTarget_set_include
,$(1),\
2212 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2220 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2224 define gb_LinkTarget__use_mwaw
2225 $(call gb_LinkTarget_set_include
,$(1),\
2226 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2230 $(call gb_LinkTarget_use_libraries
,$(1),\
2238 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2242 define gb_LinkTarget__use_mwaw
2243 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2245 $(call gb_LinkTarget_set_include
,$(1),\
2246 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2249 $(call gb_LinkTarget_add_libs
,$(1),\
2250 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2260 ifneq ($(SYSTEM_LCMS2
),)
2262 define gb_LinkTarget__use_lcms2
2263 $(call gb_LinkTarget_set_include
,$(1),\
2267 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2271 gb_ExternalProject__use_lcms2
:=
2273 else # !SYSTEM_LCMS2
2275 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2279 define gb_ExternalProject__use_lcms2
2280 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2284 ifeq ($(OS
),ANDROID
)
2286 define gb_LinkTarget__use_lcms2
2287 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2288 $(call gb_LinkTarget_set_include
,$(1),\
2289 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2297 define gb_LinkTarget__use_lcms2
2298 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2299 $(call gb_LinkTarget_set_include
,$(1),\
2300 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2303 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2308 endif # SYSTEM_LCMS2
2310 ifneq ($(ENABLE_LPSOLVE
),)
2312 ifneq ($(SYSTEM_LPSOLVE
),)
2314 define gb_LinkTarget__use_lpsolve
2315 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2316 $(call gb_LinkTarget_add_defs
,$(1),\
2322 else # !SYSTEM_LPSOLVE
2324 define gb_LinkTarget__use_lpsolve
2325 $(call gb_LinkTarget_use_unpacked
,$(1),lpsolve
)
2327 $(call gb_LinkTarget_add_libs
,$(1),\
2328 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2331 $(call gb_LinkTarget_add_libs
,$(1),\
2332 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2335 $(call gb_LinkTarget_set_include
,$(1),\
2336 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2342 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2346 endif # SYSTEM_LPSOLVE
2350 gb_LinkTarget__use_lpsolve
:=
2352 endif # ENABLE_LPSOLVE
2354 ifneq ($(ENABLE_COINMP
),)
2356 ifneq ($(SYSTEM_COINMP
),TRUE
)
2358 define gb_LinkTarget__use_coinmp
2359 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2361 $(call gb_LinkTarget_add_libs
,$(1),\
2362 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2365 $(call gb_LinkTarget_add_libs
,$(1),\
2366 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2367 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2368 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2369 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2370 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2371 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2372 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2375 $(call gb_LinkTarget_set_include
,$(1),\
2376 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2377 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2383 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2387 else # SYSTEM_COINMP
2389 define gb_LinkTarget__use_coinmp
2390 $(call gb_LinkTarget_set_include
,$(1),\
2394 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2402 gb_LinkTarget__use_coinmp
:=
2404 endif # ENABLE_COINMP
2406 ifeq ($(ENABLE_GIO
),TRUE
)
2408 define gb_LinkTarget__use_gio
2409 $(call gb_LinkTarget_set_include
,$(1),\
2414 $(call gb_LinkTarget_add_defs
,$(1),\
2418 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2424 define gb_LinkTarget__use_gio
2430 ifeq ($(ENABLE_AVAHI
),TRUE
)
2432 define gb_LinkTarget__use_avahi
2433 $(call gb_LinkTarget_set_include
,$(1),\
2438 $(call gb_LinkTarget_add_defs
,$(1),\
2442 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2448 gb_LinkTarget__use_avahi
:=
2450 endif # ENABLE_AVAHI
2453 define gb_LinkTarget__use_gtk
2454 $(call gb_LinkTarget_set_include
,$(1),\
2459 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_LIBS
))
2461 ifeq ($(ENABLE_GTK_PRINT
),TRUE
)
2463 $(call gb_LinkTarget_add_defs
,$(1),-DENABLE_GTK_PRINT
)
2465 $(call gb_LinkTarget_set_include
,$(1),\
2467 $(GTK_PRINT_CFLAGS
) \
2470 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_PRINT_LIBS
))
2476 define gb_LinkTarget__use_gthread
2477 $(call gb_LinkTarget_add_libs
,$(1),$(GTHREAD_LIBS
))
2480 ifeq ($(ENABLE_CUPS
),TRUE
)
2482 define gb_LinkTarget__use_cups
2483 $(call gb_LinkTarget_add_defs
,$(1),\
2487 $(call gb_LinkTarget_add_libs
,$(1),\
2495 define gb_LinkTarget__use_cups
2501 ifeq ($(ENABLE_DBUS
),TRUE
)
2503 define gb_LinkTarget__use_dbus
2504 $(call gb_LinkTarget_set_include
,$(1),\
2509 $(call gb_LinkTarget_add_defs
,$(1),\
2513 ifeq ($(ENABLE_PACKAGEKIT
),TRUE
)
2514 $(call gb_LinkTarget_add_defs
,$(1),\
2515 -DENABLE_PACKAGEKIT \
2517 endif # ENABLE_PACKAGEKIT
2519 $(call gb_LinkTarget_add_libs
,$(1),\
2527 define gb_LinkTarget__use_dbus
2534 define gb_LinkTarget__use_dbusmenugtk
2535 $(call gb_LinkTarget_set_include
,$(1),\
2537 $(DBUSMENUGTK_CFLAGS
) \
2540 $(call gb_LinkTarget_add_libs
,$(1),$(DBUSMENUGTK_LIBS
))
2545 ifeq ($(ENABLE_TELEPATHY
),TRUE
)
2547 define gb_LinkTarget__use_telepathy
2548 $(call gb_LinkTarget_set_include
,$(1),\
2550 $(TELEPATHY_CFLAGS
) \
2553 $(call gb_LinkTarget_add_libs
,$(1),\
2559 else # !ENABLE_TELEPATHY
2561 gb_LinkTarget__use_telepathy
:=
2563 endif # ENABLE_TELEPATHY
2565 ifneq ($(SYSTEM_LIBPNG
),)
2567 define gb_LinkTarget__use_png
2568 $(call gb_LinkTarget_set_include
,$(1),\
2573 $(call gb_LinkTarget_add_libs
,$(1),\
2579 else # !SYSTEM_LIBPNG
2581 define gb_LinkTarget__use_png
2582 $(call gb_LinkTarget_set_include
,$(1),\
2586 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2589 $(call gb_LinkTarget__use_zlib
,$(1))
2593 endif # !SYSTEM_LIBPNG
2596 ifneq ($(SYSTEM_CURL
),)
2598 define gb_LinkTarget__use_curl
2599 $(call gb_LinkTarget_add_defs
,$(1),\
2602 $(call gb_LinkTarget_set_include
,$(1),\
2606 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2612 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2616 define gb_LinkTarget__use_curl
2617 $(call gb_LinkTarget_use_package
,$(1),curl
)
2618 $(call gb_LinkTarget_set_include
,$(1),\
2619 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2624 $(call gb_LinkTarget_add_libs
,$(1),\
2625 $(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 \
2628 $(call gb_LinkTarget_add_libs
,$(1),\
2629 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2637 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2639 define gb_LinkTarget__use_valgrind
2640 $(call gb_LinkTarget_add_defs
,$(1),\
2641 -DHAVE_VALGRIND_HEADERS \
2644 $(call gb_LinkTarget_set_include
,$(1),\
2646 $(VALGRIND_CFLAGS
) \
2651 else # !ENABLE_VALGRIND
2653 define gb_LinkTarget__use_valgrind
2657 endif # ENABLE_VALGRIND
2659 ifneq ($(SYSTEM_POPPLER
),)
2661 define gb_LinkTarget__use_poppler
2662 $(call gb_LinkTarget_set_include
,$(1),\
2667 $(call gb_LinkTarget_add_libs
,$(1),\
2673 else # !SYSTEM_POPPLER
2675 define gb_LinkTarget__use_poppler
2676 $(call gb_LinkTarget_use_external_project
,$(1),poppler
)
2678 $(call gb_LinkTarget_set_include
,$(1),\
2679 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2680 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2681 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2685 $(call gb_LinkTarget_add_libs
,$(1),\
2686 $(call gb_UnpackedTarball_get_dir
,poppler
)/fofi
/.libs
/libfofi
$(gb_StaticLibrary_PLAINEXT
) \
2687 $(call gb_UnpackedTarball_get_dir
,poppler
)/goo
/.libs
/libgoo
$(gb_StaticLibrary_PLAINEXT
) \
2688 $(call gb_UnpackedTarball_get_dir
,poppler
)/poppler
/.libs
/libpoppler
$(gb_StaticLibrary_PLAINEXT
) \
2692 $(call gb_LinkTarget_add_libs
,$(1),\
2695 else ifeq ($(OS
),LINUX
)
2696 $(call gb_LinkTarget_add_libs
,$(1),\
2699 else ifeq ($(OS
),WNT
)
2700 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2708 endif # SYSTEM_POPPLER
2711 ifneq ($(SYSTEM_CLUCENE
),)
2713 define gb_LinkTarget__use_clucene
2714 $(call gb_LinkTarget_add_defs
,$(1),\
2715 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2718 $(call gb_LinkTarget_set_include
,$(1),\
2719 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2723 $(call gb_LinkTarget_add_libs
,$(1),\
2729 else # !SYSTEM_CLUCENE
2731 define gb_LinkTarget__use_clucene
2732 $(call gb_LinkTarget_set_include
,$(1),\
2733 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2734 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2735 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2739 $(call gb_LinkTarget_use_libraries
,$(1),\
2745 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2749 endif # SYSTEM_CLUCENE
2751 define gb_LinkTarget__use_gobject
2752 $(call gb_LinkTarget_add_libs
,$(1),\
2756 $(call gb_LinkTarget_set_include
,$(1),\
2762 ifneq ($(SYSTEM_HSQLDB
),)
2764 define gb_LinkTarget__use_hsqldb
2766 $(call gb_LinkTarget_add_defs
,$(1),\
2768 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2773 else # !SYSTEM_HSQLDB
2775 define gb_LinkTarget__use_hsqldb
2779 endif # SYSTEM_HSQLDB
2782 ifneq ($(SYSTEM_OPENLDAP
),)
2784 define gb_LinkTarget__use_openldap
2786 $(call gb_LinkTarget_add_libs
,$(1),\
2793 gb_ExternalProject__use_openldap
:=
2795 else # !SYSTEM_OPENLDAP
2797 define gb_LinkTarget__use_openldap
2798 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2799 $(call gb_LinkTarget_set_include
,$(1),\
2800 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2803 $(call gb_LinkTarget_use_external_project
,$(1),openldap
)
2804 $(call gb_LinkTarget_add_libs
,$(1), \
2805 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2806 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2811 define gb_ExternalProject__use_openldap
2812 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2816 endif # SYSTEM_OPENLDAP
2819 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2821 ifneq ($(SYSTEM_FIREBIRD
),)
2823 define gb_LinkTarget__use_libfbembed
2824 $(call gb_LinkTarget_set_include
,$(1),\
2825 $(FIREBIRD_CFLAGS
) \
2828 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2832 # gb_LinkTarget__use_atomic_ops :=
2833 # gb_LinkTarget__use_tommath :=
2835 else # !SYSTEM_FIREBIRD
2837 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2839 define gb_LinkTarget__use_libfbembed
2840 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2841 $(call gb_LinkTarget_set_include
,$(1),\
2843 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/include \
2846 $(call gb_LinkTarget_add_libs
,$(1),\
2847 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/bin
/ifbembed.lib \
2850 $(call gb_LinkTarget_add_libs
,$(1),\
2851 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/lib
-lfbembed \
2857 # define gb_LinkTarget__use_tommath
2858 # $(call gb_LinkTarget_set_include,$(1),\
2859 # $(TOMMATH_CFLAGS) \
2863 # $(call gb_LinkTarget_add_libs,$(1),$(TOMMATH_LIBS))
2867 endif # SYSTEM_FIREBIRD
2869 else # !ENABLE_FIREBIRD_SDBC
2871 gb_LinkTarget__use_firebird
:=
2872 # gb_LinkTarget__use_atomic_ops :=
2873 # gb_LinkTarget__use_tommath :=
2875 endif # ENABLE_FIREBIRD_SDBC
2878 ifneq ($(SYSTEM_POSTGRESQL
),)
2880 define gb_LinkTarget__use_postgresql
2882 $(call gb_LinkTarget_set_include
,$(1),\
2887 $(call gb_LinkTarget_add_libs
,$(1),\
2891 $(call gb_LinkTarget_add_ldflags
,$(1),\
2897 else # !SYSTEM_POSTGRESQL
2899 define gb_LinkTarget__use_postgresql
2901 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
)
2903 $(call gb_LinkTarget_set_include
,$(1),\
2904 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
2905 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
2909 $(call gb_LinkTarget_add_libs
,$(1),\
2910 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
2913 ifeq ($(OS
)$(COM
),WNTMSC
)
2914 $(call gb_LinkTarget_use_external
,$(1),openssl
)
2916 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2925 endif # SYSTEM_POSTGRESQL
2927 ifneq ($(WITH_MOZAB4WIN
),)
2929 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2933 define gb_LinkTarget__use_mozilla
2935 $(call gb_LinkTarget_use_unpacked
,$(1),moz_lib
)
2936 $(call gb_LinkTarget_use_unpacked
,$(1),moz_inc
)
2938 $(call gb_LinkTarget_add_defs
,$(1),\
2939 -DMOZILLA_INTERNAL_API \
2942 $(call gb_LinkTarget_set_include
,$(1),\
2943 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
) \
2944 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/addrbook \
2945 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/content \
2946 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/embed_base \
2947 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/intl \
2948 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mime \
2949 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mozldap \
2950 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/msgbase \
2951 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/necko \
2952 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/pref \
2953 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/profile \
2954 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/rdf \
2955 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/string \
2956 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/uconv \
2957 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom \
2958 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom_obsolete \
2962 $(call gb_LinkTarget_add_libs
,$(1),\
2963 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
2964 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom.lib \
2965 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom_core.lib \
2968 $(call gb_LinkTarget_add_defs
,$(1),\
2971 -DMOZ_REFLOW_PERF_DSP \
2983 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2988 -Woverloaded-virtual \
2996 ifneq ($(DBG_LEVEL
),0)
2997 $(call gb_LinkTarget_add_defs
,$(1),\
2998 -D_STL_NOFORCE_MANIFEST \
3002 $(call gb_LinkTarget_add_libs
,$(1),\
3003 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/embed_base_s.lib \
3004 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/mozreg_s.lib \
3011 endif # WITH_MOZAB4WIN
3013 ifeq ($(ENABLE_KDE
),TRUE
)
3015 define gb_LinkTarget__use_kde
3016 $(call gb_LinkTarget_set_include
,$(1),\
3017 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE_CFLAGS
)))) \
3021 $(call gb_LinkTarget_add_defs
,$(1),\
3022 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE_CFLAGS
))) \
3025 $(call gb_LinkTarget_add_libs
,$(1),\
3030 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3039 define gb_LinkTarget__use_kde
3046 ifeq ($(ENABLE_KDE4
),TRUE
)
3048 define gb_LinkTarget__use_kde4
3049 $(call gb_LinkTarget_set_include
,$(1),\
3050 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE4_CFLAGS
)))) \
3054 $(call gb_LinkTarget_add_defs
,$(1),\
3055 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE4_CFLAGS
))) \
3058 $(call gb_LinkTarget_add_libs
,$(1),\
3063 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3072 define gb_LinkTarget__use_kde4
3079 ifeq ($(ENABLE_TDE
),TRUE
)
3081 define gb_LinkTarget__use_tde
3082 $(call gb_LinkTarget_add_libs
,$(1),\
3086 $(call gb_LinkTarget_set_include
,$(1),\
3094 define gb_LinkTarget__use_tde
3101 ifeq ($(ENABLE_GCONF
),TRUE
)
3103 define gb_LinkTarget__use_gconf
3104 $(call gb_LinkTarget_set_include
,$(1),\
3105 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(GCONF_CFLAGS
)))) \
3109 $(call gb_LinkTarget_add_defs
,$(1),\
3110 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(GCONF_CFLAGS
))) \
3113 $(call gb_LinkTarget_add_libs
,$(1),\
3119 else # !ENABLE_GCONF
3121 define gb_LinkTarget__use_gconf
3125 endif # ENABLE_GCONF
3129 # extra python_headers external because pyuno wrapper must not link python
3130 ifneq ($(SYSTEM_PYTHON
),)
3132 define gb_LinkTarget__use_python_headers
3133 $(call gb_LinkTarget_add_defs
,$(1),\
3134 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYHTON_CFLAGS
)))) \
3137 $(call gb_LinkTarget_set_include
,$(1),\
3138 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3144 define gb_LinkTarget__use_python
3145 $(call gb_LinkTarget__use_python_headers
,$(1))
3147 $(call gb_LinkTarget_add_libs
,$(1),\
3153 else # !SYSTEM_PYTHON
3155 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3159 # depend on external project because on MACOSX the Package is disabled...
3160 define gb_LinkTarget__use_python_headers
3161 $(call gb_LinkTarget_use_external_project
,$(1),python3
)
3162 $(call gb_LinkTarget_set_include
,$(1),\
3163 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3164 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3165 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3171 define gb_LinkTarget__use_python
3172 $(call gb_LinkTarget__use_python_headers
,$(1))
3174 $(call gb_LinkTarget_use_generated_package
,$(1),python3
)
3176 $(call gb_LinkTarget_use_package
,$(1),python3
)
3180 $(call gb_LinkTarget_add_libs
,$(1),\
3181 $(call gb_UnpackedTarball_get_dir
,python3
)/PCbuild
$(if
$(filter X86_64
,$(CPUNAME
)),/amd64
)/python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
3183 else ifeq ($(OS
),MACOSX
)
3184 $(call gb_LinkTarget_add_libs
,$(1),\
3185 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3188 $(call gb_LinkTarget_add_libs
,$(1),\
3189 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3190 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
3196 endif # SYSTEM_PYTHON
3199 ifeq ($(ENABLE_ORCUS
),TRUE
)
3201 ifneq ($(SYSTEM_LIBORCUS
),)
3203 define gb_LinkTarget__use_orcus
3204 $(call gb_LinkTarget_set_include
,$(1),\
3208 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3211 define gb_LinkTarget__use_orcus-parser
3215 else # !SYSTEM_LIBORCUS
3217 define gb_LinkTarget__use_orcus
3218 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
3219 $(call gb_LinkTarget_set_include
,$(1),\
3220 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3223 $(call gb_LinkTarget_add_libs
,$(1),\
3224 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
/liborcus-0.8
$(gb_StaticLibrary_PLAINEXT
) \
3227 $(if
$(SYSTEM_BOOST
), \
3228 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3229 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3234 define gb_LinkTarget__use_orcus-parser
3235 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
3236 $(call gb_LinkTarget_set_include
,$(1),\
3237 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3240 $(call gb_LinkTarget_add_libs
,$(1),\
3241 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
/liborcus-parser-0.8
$(gb_StaticLibrary_PLAINEXT
) \
3246 endif # SYSTEM_LIBORCUS
3248 else # ENABLE_ORCUS != TRUE
3250 gb_LinkTarget__use_orcus
:=
3251 gb_LinkTarget__use_orcus-parser
:=
3255 ifeq ($(ENABLE_EOT
),TRUE
)
3257 ifneq ($(SYSTEM_LIBEOT
),)
3259 define gb_LinkTarget__use_libeot
3260 $(call gb_LinkTarget_set_include
,$(1),\
3264 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3268 gb_ExternalProject__use_libeot
:=
3270 else # !SYSTEM_LIBEOT
3272 define gb_LinkTarget__use_libeot
3273 $(call gb_LinkTarget_set_include
,$(1),\
3274 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3277 $(call gb_LinkTarget_add_libs
,$(1),\
3278 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3280 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3284 define gb_ExternalProject__use_libeot
3285 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3289 endif # SYSTEM_LIBEOT
3293 gb_LinkTarget__use_libeot
:=
3294 gb_ExternalProject__use_libeot
:=
3300 ifeq ($(GUIBASE
),unx
)
3302 ifeq ($(XRANDR_DLOPEN
),FALSE
)
3304 define gb_LinkTarget__use_Xrandr
3305 $(call gb_LinkTarget_set_include
,$(1),\
3310 $(call gb_LinkTarget_add_libs
,$(1),\
3315 else # XRANDR_DLOPEN
3317 define gb_LinkTarget__use_Xrandr
3318 $(call gb_LinkTarget_add_defs
,$(1),\
3323 endif # XRANDR_DLOPEN
3325 define gb_LinkTarget__use_Xrender
3326 $(call gb_LinkTarget_set_include
,$(1),\
3331 $(call gb_LinkTarget_add_libs
,$(1),\
3339 gb_ExternalProject__use_nss3
:=
3341 ifeq ($(OS
),ANDROID
)
3343 gb_LinkTarget__use_nss3
:=
3344 gb_LinkTarget__use_plc4
:=
3348 ifneq ($(SYSTEM_NSS
),)
3350 define gb_LinkTarget__use_nss3
3351 $(call gb_LinkTarget_add_defs
,$(1),\
3355 $(call gb_LinkTarget_set_include
,$(1),\
3360 $(call gb_LinkTarget_add_libs
,$(1),\
3366 define gb_LinkTarget__use_plc4
3367 $(call gb_LinkTarget__use_nss3
,$(1))
3371 define gb_LinkTarget__use_ssl3
3372 $(call gb_LinkTarget__use_nss3
,$(1))
3378 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3382 define gb_LinkTarget__use_nss3
3383 $(call gb_LinkTarget_use_package
,$(1),nss
)
3384 $(call gb_LinkTarget_set_include
,$(1),\
3386 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3387 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3391 $(call gb_LinkTarget_add_libs
,$(1),\
3392 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3393 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3394 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3397 $(call gb_LinkTarget_add_libs
,$(1),\
3398 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3407 define gb_LinkTarget__use_plc4
3408 $(call gb_LinkTarget_use_package
,$(1),nss
)
3410 $(call gb_LinkTarget_add_libs
,$(1),\
3411 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3414 $(call gb_LinkTarget_add_libs
,$(1),\
3415 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3421 define gb_LinkTarget__use_ssl3
3422 $(call gb_LinkTarget_use_package
,$(1),nss
)
3424 $(call gb_LinkTarget_add_libs
,$(1),\
3425 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3428 $(call gb_LinkTarget_add_libs
,$(1),\
3429 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3435 define gb_ExternalProject__use_nss3
3436 $(call gb_ExternalProject_use_package
,$(1),nss
)
3444 ifeq ($(ENABLE_GLTF
),TRUE
)
3446 ifneq ($(SYSTEM_LIBGLTF
),TRUE
)
3448 define gb_LinkTarget__use_libgltf
3449 $(call gb_LinkTarget_set_include
,$(1),\
3450 -I
$(call gb_UnpackedTarball_get_dir
,libgltf
)/inc \
3455 $(call gb_LinkTarget_add_libs
,$(1),\
3456 $(call gb_UnpackedTarball_get_dir
,libgltf
)/build
/win32
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
/libgltf.lib
,Release
/libgltf.lib
) \
3459 $(call gb_LinkTarget_add_libs
,$(1),\
3460 $(call gb_UnpackedTarball_get_dir
,libgltf
)/src
/.libs
/libgltf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
3464 $(call gb_LinkTarget_use_external_project
,$(1),libgltf
)
3468 else # SYSTEM_LIBGLTF
3470 define gb_LinkTarget__use_libgltf
3471 $(call gb_LinkTarget_set_include
,$(1),\
3475 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGLTF_LIBS
))
3479 endif # SYSTEN_LIBGLTF
3481 ifeq ($(ENABLE_COLLADA
),TRUE
)
3483 ifeq ($(SYSTEM_OPENCOLLADA
),TRUE
)
3485 define gb_LinkTarget__use_opencollada_parser
3486 $(call gb_LinkTarget_set_include
,$(1),\
3488 $(OPENCOLLADA_CFLAGS
) \
3491 $(call gb_LinkTarget_add_libs
,$(1),$(OPENCOLLADA_LIBS
))
3495 else # !SYSTEM_OPENCOLLADA
3497 define gb_LinkTarget__use_opencollada_parser
3498 $(call gb_LinkTarget_set_include
,$(1),\
3499 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADABaseUtils
/include \
3500 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADAFramework
/include \
3501 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADASaxFrameworkLoader
/include \
3502 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/GeneratedSaxParser
/include \
3506 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3507 opencollada_parser \
3511 endif # SYSTEM_OPENCOLLADA
3513 ifeq ($(SYSTEM_COLLADA2GLTF
),TRUE
)
3515 define gb_LinkTarget__use_collada2gltf
3516 $(call gb_LinkTarget_set_include
,$(1),\
3518 $(COLLADA2GLTF_CFLAGS
) \
3521 $(call gb_LinkTarget_add_libs
,$(1),$(COLLADA2GLTF_LIBS
))
3525 else # !SYSTEM_COLLADA2GLTF
3527 define gb_LinkTarget__use_collada2gltf
3528 $(call gb_LinkTarget_set_include
,$(1),\
3529 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
) \
3530 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/assetModifiers \
3531 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/GLTF \
3532 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/helpers \
3533 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/JSON \
3534 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/dependencies
/json
/include/rapidjson
/ \
3538 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3543 endif # SYSTEM_COLLADA2GLTF
3545 endif # ENABLE_COLLADA
3549 ### Jars ############################################################
3551 ifneq ($(SYSTEM_HSQLDB
),)
3553 define gb_Jar__use_hsqldb
3554 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3556 define gb_JunitTest__use_hsqldb
3557 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3560 else # !SYSTEM_HSQLDB
3562 ifeq ($(ENABLE_JAVA
),TRUE
)
3563 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3568 define gb_Jar__use_hsqldb
3569 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3571 define gb_JunitTest__use_hsqldb
3572 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3575 endif # SYSTEM_HSQLDB
3578 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3580 ifneq ($(SYSTEM_BSH
),)
3582 define gb_Jar__use_bsh
3583 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3588 ifeq ($(ENABLE_JAVA
),TRUE
)
3589 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3594 define gb_Jar__use_bsh
3595 $(call gb_Jar_use_jar
,$(1),bsh
)
3602 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3604 ifneq ($(SYSTEM_RHINO
),)
3606 define gb_Jar__use_rhino
3607 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3610 else # !SYSTEM_RHINO
3612 ifeq ($(ENABLE_JAVA
),TRUE
)
3613 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3618 define gb_Jar__use_rhino
3619 $(call gb_Jar_use_jar
,$(1),js
)
3622 endif # SYSTEM_RHINO
3626 ifneq ($(SYSTEM_APACHE_COMMONS
),)
3628 define gb_Jar__use_commons-codec
3629 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_CODEC_JAR
))
3631 gb_ExternalProject__use_commons-codec
:=
3633 define gb_Jar__use_commons-httpclient
3634 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_HTTPCLIENT_JAR
))
3636 gb_ExternalProject__use_commons-httpclient
:=
3638 define gb_Jar__use_commons-lang
3639 $(call gb_Jar_usadd_linked_libse_system_jar
,$(1),$(COMMONS_LANG_JAR
))
3641 gb_ExternalProject__use_commons-lang
:=
3643 define gb_Jar__use_commons-logging
3644 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
3646 gb_ExternalProject__use_commons-logging
:=
3648 else # !SYSTEM_APACHE_COMMONS
3650 ifeq ($(ENABLE_JAVA
),TRUE
)
3651 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3652 commons-logging-
$(COMMONS_LOGGING_VERSION
) \
3655 $(eval
$(call gb_Helper_register_jars
,OXT
,\
3656 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9
,commons-codec-1.6
) \
3657 commons-httpclient-3.1 \
3658 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4
) \
3661 define gb_Jar__use_commons-codec
3662 $(call gb_Jar_use_external_project
,$(1),apache_commons_codec
)
3663 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_codec
)\
3664 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/dist/commons-codec-1.9.jar
,/dist/commons-codec-1.6.jar
),\
3665 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9.jar
,commons-codec-1.6.jar
)\
3668 define gb_ExternalProject__use_commons-codec
3669 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_codec
)
3672 define gb_Jar__use_commons-httpclient
3673 $(call gb_Jar_use_external_project
,$(1),apache_commons_httpclient
)
3674 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_httpclient
)/dist/commons-httpclient.jar
,commons-httpclient-3.1.jar
)
3676 define gb_ExternalProject__use_commons-httpclient
3677 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_httpclient
)
3680 define gb_Jar__use_commons-lang
3681 $(call gb_Jar_use_external_project
,$(1),apache_commons_lang
)
3682 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_lang
)\
3683 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/target
/commons-lang3-3.3
.1.jar
,/dist/commons-lang-2.4.jar
),\
3684 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4.jar
)\
3687 define gb_ExternalProject__use_commons-lang
3688 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_lang
)
3691 define gb_Jar__use_commons-logging
3692 $(call gb_Jar_use_external_project
,$(1),apache_commons_logging
)
3693 $(call gb_Jar_use_jar
,$(1),commons-logging-
$(COMMONS_LOGGING_VERSION
))
3695 define gb_ExternalProject__use_commons-logging
3696 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
3699 endif # SYSTEM_APACHE_COMMONS
3702 ifneq ($(SYSTEM_JFREEREPORT
),)
3704 define gb_Jar__use_flow-engine
3705 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3708 define gb_Jar__use_flute
3709 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3712 define gb_Jar__use_libbase
3713 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3716 define gb_Jar__use_libfonts
3717 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3720 define gb_Jar__use_libformula
3721 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3724 define gb_Jar__use_liblayout
3725 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3728 define gb_Jar__use_libloader
3729 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3732 define gb_Jar__use_librepository
3733 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3736 define gb_Jar__use_libserializer
3737 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3740 define gb_Jar__use_libxml
3741 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3744 define gb_Jar__use_sac
3745 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3748 else # !SYSTEM_JFREEREPORT
3750 ifeq ($(ENABLE_JAVA
),TRUE
)
3751 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3759 librepository-1.1
.6 \
3760 libserializer-1.1
.6 \
3766 define gb_Jar__use_flow-engine
3767 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3770 define gb_Jar__use_flute
3771 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3774 define gb_Jar__use_libbase
3775 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3778 define gb_Jar__use_libfonts
3779 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3782 define gb_Jar__use_libformula
3783 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3786 define gb_Jar__use_liblayout
3787 $(call gb_Jar_use_jar
,$(1),liblayout
)
3790 define gb_Jar__use_libloader
3791 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3794 define gb_Jar__use_librepository
3795 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3798 define gb_Jar__use_libserializer
3799 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3802 define gb_Jar__use_libxml
3803 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3806 define gb_Jar__use_sac
3807 $(call gb_Jar_use_jar
,$(1),sac
)
3810 endif # SYSTEM_JFREEREPORT
3815 # FIXME: the library target should be for build too
3816 define gb_Executable__register_bestreversemap
3817 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3818 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3822 # TODO depending on the whole URE might be overkill, but I do not have a
3823 # Windows machine to debug it...
3824 # FIXME: the library target should be for build too
3825 define gb_Executable__register_climaker
3826 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3827 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3828 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3829 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3830 $(call gb_UnoApi_get_target
,udkapi
) \
3831 $(INSTROOT
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3835 define gb_Executable__register_cppumaker
3836 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3837 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3841 gb_Gallery__UNO_COMPONENTS
:= \
3842 comphelper
/util
/comphelp \
3843 configmgr
/source
/configmgr \
3844 drawinglayer
/drawinglayer \
3845 framework
/util
/fwk \
3846 i18npool
/util
/i18npool \
3847 package
/source
/xstor
/xstor \
3848 package
/util
/package2 \
3849 sax
/source
/expatwrap
/expwrap \
3854 ucb
/source
/core
/ucb1 \
3855 ucb
/source
/ucp
/file
/ucpfile1 \
3856 unoxml
/source
/service
/unoxml
3858 # This is used to determine what we need for 'build' platform.
3859 define gb_Executable__register_gengal
3860 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3861 $(foreach component
,$(gb_Gallery__UNO_COMPONENTS
) \
3862 ,$(call gb_ComponentTarget_get_target_for_build
,$(component
))) \
3863 $(call gb_AllLangResTarget_get_target
,ofa
) \
3864 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3865 $(call gb_Package_get_target_for_build
,postprocess_images
) \
3866 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3867 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3868 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3869 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3870 $(call gb_UnoApi_get_target
,offapi
) \
3871 $(call gb_UnoApi_get_target
,udkapi
) \
3875 ifeq ($(SYSTEM_ICU
),)
3877 define gb_Executable__register_gendict
3878 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3879 $(call gb_Package_get_target_for_build
,icu
) \
3885 define gb_Executable__register_idlc
3886 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3887 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3891 define gb_Executable__register_localize
3892 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3893 $(foreach exec
,cfgex helpex propex transex3 treex uiex ulfex xrmex
,\
3894 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3899 # FIXME ure/services.rdb needs cleanup
3900 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3901 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3902 # FIXME: the library target should be for build too
3903 define gb_Executable__register_saxparser
3904 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3905 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3906 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3907 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3908 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3909 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3910 $(call gb_UnoApi_get_target
,udkapi
) \
3914 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3915 # required due to the settings for URE_SERVICES and URE_TYPES in
3916 # cppuhelper/source/unorc
3917 # FIXME: the library target should be for build too
3918 define gb_Executable__register_uno
3919 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3920 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3921 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3922 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3923 $(call gb_UnoApi_get_target
,udkapi
) \
3928 # External executables
3930 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3932 gb_ExternalExecutable__register_xmllint
:=
3934 else # ! SYSTEM_LIBXML_FOR_BUILD
3936 define gb_ExternalExecutable__register_xmllint
3937 $(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
)
3938 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3939 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3940 $(call gb_Package_get_target
,xml2
) \
3945 endif # SYSTEM_LIBXML_FOR_BUILD
3947 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3949 gb_ExternalExecutable__register_xsltproc
:=
3951 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3953 define gb_ExternalExecutable__register_xsltproc
3954 $(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
)
3955 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3956 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3957 $(call gb_Package_get_target
,xslt
) \
3962 endif # SYSTEM_LIBXSLT_FOR_BUILD
3964 ifneq (,$(SYSTEM_UCPP
))
3966 gb_ExternalExecutable__register_ucpp
:=
3968 else # ! SYSTEM_UCPP
3970 define gb_ExternalExecutable__register_ucpp
3971 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3977 ifeq (,$(PYTHON_FOR_BUILD
))
3979 define gb_ExternalExecutable__register_python
3982 # use set_external, to avoid having the command added as prerequisite for the
3983 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3984 # matching rule to build that specific file)
3985 $(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
))
3986 # the Zip ensures that internal python has been built (cannot use the Package
3987 # target, as that is not used on Mac)
3988 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3992 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
3993 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
3994 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
4002 define gb_ExternalExecutable__register_python
4003 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
4007 endif # PYTHON_FOR_BUILD
4009 ifneq ($(SYSTEM_GENBRK
),)
4011 define gb_ExternalExecutable__register_genbrk
4012 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
4016 else # ! SYSTEM_GENBRK
4018 define gb_ExternalExecutable__register_genbrk
4019 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
4020 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4021 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
4022 $(call gb_Package_get_target_for_build
,icu
) \
4029 ifneq ($(SYSTEM_GENCCODE
),)
4031 define gb_ExternalExecutable__register_genccode
4032 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4036 else # ! SYSTEM_GENCCODE
4038 define gb_ExternalExecutable__register_genccode
4039 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4040 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4041 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4042 $(call gb_Package_get_target_for_build
,icu
) \
4049 ifneq ($(SYSTEM_GENCMN
),)
4051 define gb_ExternalExecutable__register_gencmn
4052 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4056 else # ! SYSTEM_GENCMN
4058 define gb_ExternalExecutable__register_gencmn
4059 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4060 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4061 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4062 $(call gb_Package_get_target_for_build
,icu
) \
4069 # vim: set noet sw=4 ts=4: