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_external_project
,$(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),\
160 -I
$(call gb_UnpackedTarball_get_dir
,glm
) \
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
1703 define gb_LinkTarget__use_etonyek
1704 $(call gb_LinkTarget_set_include
,$(1),\
1705 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1708 $(call gb_LinkTarget_add_libs
,$(1),\
1709 $(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
/libetonyek-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1711 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1715 define gb_ExternalProject__use_etonyek
1716 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1720 endif # SYSTEM_ETONYEK
1723 ifneq ($(SYSTEM_FREEHAND
),)
1725 define gb_LinkTarget__use_freehand
1726 $(call gb_LinkTarget_set_include
,$(1),\
1728 $(FREEHAND_CFLAGS
) \
1730 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1734 gb_ExternalProject__use_freehand
:=
1736 else # !SYSTEM_FREEHAND
1738 define gb_LinkTarget__use_freehand
1739 $(call gb_LinkTarget_set_include
,$(1),\
1740 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1743 $(call gb_LinkTarget_add_libs
,$(1),\
1744 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1746 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1750 define gb_ExternalProject__use_freehand
1751 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1755 endif # SYSTEM_FREEHAND
1758 ifneq ($(SYSTEM_ODFGEN
),)
1760 define gb_LinkTarget__use_odfgen
1761 $(call gb_LinkTarget_set_include
,$(1),\
1765 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1769 else # !SYSTEM_ODFGEN
1773 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1777 define gb_LinkTarget__use_odfgen
1778 $(call gb_LinkTarget_set_include
,$(1),\
1779 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1782 $(call gb_LinkTarget_use_libraries
,$(1),\
1790 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1794 define gb_LinkTarget__use_odfgen
1795 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1797 $(call gb_LinkTarget_set_include
,$(1),\
1798 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1799 -DLIBODFGEN_VISIBILITY \
1802 $(call gb_LinkTarget_add_libs
,$(1),\
1803 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1810 endif # SYSTEM_ODFGEN
1813 ifneq ($(SYSTEM_REVENGE
),)
1815 define gb_LinkTarget__use_revenge
1816 $(call gb_LinkTarget_set_include
,$(1),\
1820 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1824 gb_ExternalProject__use_revenge
:=
1826 else # !SYSTEM_REVENGE
1830 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1834 define gb_LinkTarget__use_revenge
1835 $(call gb_LinkTarget_set_include
,$(1),\
1839 $(call gb_LinkTarget_use_libraries
,$(1),\
1845 define gb_ExternalProject__use_revenge
1846 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1852 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1856 define gb_LinkTarget__use_revenge
1857 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1859 $(call gb_LinkTarget_set_include
,$(1),\
1861 -DLIBREVENGE_VISIBILITY \
1864 $(call gb_LinkTarget_add_libs
,$(1),\
1869 define gb_ExternalProject__use_revenge
1870 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1876 endif # SYSTEM_REVENGE
1879 ifneq ($(SYSTEM_ABW
),)
1881 define gb_LinkTarget__use_abw
1882 $(call gb_LinkTarget_set_include
,$(1),\
1886 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1889 gb_ExternalProject__use_abw
:=
1893 define gb_LinkTarget__use_abw
1894 $(call gb_LinkTarget_set_include
,$(1),\
1895 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1898 $(call gb_LinkTarget_add_libs
,$(1),\
1899 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1901 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1904 define gb_ExternalProject__use_abw
1905 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1912 ifneq ($(SYSTEM_MSPUB
),)
1914 define gb_LinkTarget__use_mspub
1915 $(call gb_LinkTarget_set_include
,$(1),\
1919 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1923 else # !SYSTEM_MSPUB
1925 define gb_LinkTarget__use_mspub
1926 $(call gb_LinkTarget_set_include
,$(1),\
1927 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1930 $(call gb_LinkTarget_add_libs
,$(1),\
1931 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1933 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1937 endif # SYSTEM_MSPUB
1940 ifneq ($(SYSTEM_PAGEMAKER
),)
1942 define gb_LinkTarget__use_pagemaker
1943 $(call gb_LinkTarget_set_include
,$(1),\
1945 $(PAGEMAKER_CFLAGS
) \
1947 $(call gb_LinkTarget_add_libs
,$(1),$(PAGEMAKER_LIBS
))
1950 gb_ExternalProject__use_pagemaker
:=
1952 else # !SYSTEM_PAGEMAKER
1954 define gb_LinkTarget__use_pagemaker
1955 $(call gb_LinkTarget_set_include
,$(1),\
1956 -I
$(call gb_UnpackedTarball_get_dir
,libpagemaker
)/inc \
1959 $(call gb_LinkTarget_add_libs
,$(1),\
1960 $(call gb_UnpackedTarball_get_dir
,libpagemaker
)/src
/lib
/.libs
/libpagemaker-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1962 $(call gb_LinkTarget_use_external_project
,$(1),libpagemaker
)
1965 define gb_ExternalProject__use_pagemaker
1966 $(call gb_ExternalProject_use_external_project
,$(1),libpagemaker
)
1970 endif # SYSTEM_PAGEMAKER
1973 ifneq ($(SYSTEM_VISIO
),)
1975 define gb_LinkTarget__use_visio
1976 $(call gb_LinkTarget_set_include
,$(1),\
1980 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
1984 else # !SYSTEM_VISIO
1986 define gb_LinkTarget__use_visio
1987 $(call gb_LinkTarget_set_include
,$(1),\
1988 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
1991 $(call gb_LinkTarget_add_libs
,$(1),\
1992 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1994 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
1998 endif # SYSTEM_VISIO
2001 ifneq ($(SYSTEM_WPD
),)
2003 define gb_LinkTarget__use_wpd
2004 $(call gb_LinkTarget_set_include
,$(1),\
2008 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
2011 gb_ExternalProject__use_wpd
:=
2017 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2021 define gb_LinkTarget__use_wpd
2022 $(call gb_LinkTarget_set_include
,$(1),\
2026 $(call gb_LinkTarget_use_libraries
,$(1),\
2032 define gb_ExternalProject__use_wpd
2033 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,wpd
)
2039 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2043 define gb_LinkTarget__use_wpd
2044 $(call gb_LinkTarget_use_package
,$(1),libwpd
)
2046 $(call gb_LinkTarget_set_include
,$(1),\
2050 $(call gb_LinkTarget_add_libs
,$(1),\
2056 define gb_ExternalProject__use_wpd
2057 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
2066 ifneq ($(SYSTEM_WPG
),)
2068 define gb_LinkTarget__use_wpg
2069 $(call gb_LinkTarget_set_include
,$(1),\
2073 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
2076 gb_ExternalProject__use_wpg
:=
2082 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2086 define gb_LinkTarget__use_wpg
2087 $(call gb_LinkTarget_set_include
,$(1),\
2088 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2091 $(call gb_LinkTarget_use_libraries
,$(1),\
2099 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2103 define gb_LinkTarget__use_wpg
2104 $(call gb_LinkTarget_use_package
,$(1),libwpg
)
2106 $(call gb_LinkTarget_set_include
,$(1),\
2107 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
2110 $(call gb_LinkTarget_add_libs
,$(1),\
2111 -L
$(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
-lwpg-0.3 \
2121 ifneq ($(SYSTEM_WPS
),)
2123 define gb_LinkTarget__use_wps
2124 $(call gb_LinkTarget_set_include
,$(1),\
2128 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2131 gb_ExternalProject__use_wps
:=
2137 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2141 define gb_LinkTarget__use_wps
2142 $(call gb_LinkTarget_set_include
,$(1),\
2143 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2147 $(call gb_LinkTarget_use_libraries
,$(1),\
2155 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2159 define gb_LinkTarget__use_wps
2160 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2162 $(call gb_LinkTarget_set_include
,$(1),\
2163 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2166 $(call gb_LinkTarget_add_libs
,$(1),\
2167 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.3 \
2177 ifneq ($(SYSTEM_MWAW
),)
2179 define gb_LinkTarget__use_mwaw
2180 $(call gb_LinkTarget_set_include
,$(1),\
2184 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2192 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2196 define gb_LinkTarget__use_mwaw
2197 $(call gb_LinkTarget_set_include
,$(1),\
2198 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2202 $(call gb_LinkTarget_use_libraries
,$(1),\
2210 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2214 define gb_LinkTarget__use_mwaw
2215 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2217 $(call gb_LinkTarget_set_include
,$(1),\
2218 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2221 $(call gb_LinkTarget_add_libs
,$(1),\
2222 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2232 ifneq ($(SYSTEM_LCMS2
),)
2234 define gb_LinkTarget__use_lcms2
2235 $(call gb_LinkTarget_set_include
,$(1),\
2239 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2243 gb_ExternalProject__use_lcms2
:=
2245 else # !SYSTEM_LCMS2
2247 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2251 define gb_ExternalProject__use_lcms2
2252 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2256 ifeq ($(OS
),ANDROID
)
2258 define gb_LinkTarget__use_lcms2
2259 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2260 $(call gb_LinkTarget_set_include
,$(1),\
2261 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2269 define gb_LinkTarget__use_lcms2
2270 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2271 $(call gb_LinkTarget_set_include
,$(1),\
2272 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2275 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2280 endif # SYSTEM_LCMS2
2282 ifneq ($(ENABLE_LPSOLVE
),)
2284 ifneq ($(SYSTEM_LPSOLVE
),)
2286 define gb_LinkTarget__use_lpsolve
2287 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2288 $(call gb_LinkTarget_add_defs
,$(1),\
2294 else # !SYSTEM_LPSOLVE
2296 define gb_LinkTarget__use_lpsolve
2297 $(call gb_LinkTarget_use_unpacked
,$(1),lpsolve
)
2299 $(call gb_LinkTarget_add_libs
,$(1),\
2300 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2303 $(call gb_LinkTarget_add_libs
,$(1),\
2304 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2307 $(call gb_LinkTarget_set_include
,$(1),\
2308 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2314 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2318 endif # SYSTEM_LPSOLVE
2322 gb_LinkTarget__use_lpsolve
:=
2324 endif # ENABLE_LPSOLVE
2326 ifneq ($(ENABLE_COINMP
),)
2328 ifneq ($(SYSTEM_COINMP
),TRUE
)
2330 define gb_LinkTarget__use_coinmp
2331 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2333 $(call gb_LinkTarget_add_libs
,$(1),\
2334 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2337 $(call gb_LinkTarget_add_libs
,$(1),\
2338 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2339 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2340 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2341 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2342 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2343 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2344 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2347 $(call gb_LinkTarget_set_include
,$(1),\
2348 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2349 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src \
2355 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2359 else # SYSTEM_COINMP
2361 define gb_LinkTarget__use_coinmp
2362 $(call gb_LinkTarget_set_include
,$(1),\
2366 $(call gb_LinkTarget_add_libs
,$(1),$(COINMP_LIBS
))
2374 gb_LinkTarget__use_coinmp
:=
2376 endif # ENABLE_COINMP
2378 ifeq ($(ENABLE_GIO
),TRUE
)
2380 define gb_LinkTarget__use_gio
2381 $(call gb_LinkTarget_set_include
,$(1),\
2386 $(call gb_LinkTarget_add_defs
,$(1),\
2390 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2396 define gb_LinkTarget__use_gio
2402 ifeq ($(ENABLE_AVAHI
),TRUE
)
2404 define gb_LinkTarget__use_avahi
2405 $(call gb_LinkTarget_set_include
,$(1),\
2410 $(call gb_LinkTarget_add_defs
,$(1),\
2414 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2420 gb_LinkTarget__use_avahi
:=
2422 endif # ENABLE_AVAHI
2425 define gb_LinkTarget__use_gtk
2426 $(call gb_LinkTarget_set_include
,$(1),\
2431 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_LIBS
))
2433 ifeq ($(ENABLE_GTK_PRINT
),TRUE
)
2435 $(call gb_LinkTarget_add_defs
,$(1),-DENABLE_GTK_PRINT
)
2437 $(call gb_LinkTarget_set_include
,$(1),\
2439 $(GTK_PRINT_CFLAGS
) \
2442 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_PRINT_LIBS
))
2448 define gb_LinkTarget__use_gthread
2449 $(call gb_LinkTarget_add_libs
,$(1),$(GTHREAD_LIBS
))
2452 ifeq ($(ENABLE_CUPS
),TRUE
)
2454 define gb_LinkTarget__use_cups
2455 $(call gb_LinkTarget_add_defs
,$(1),\
2459 $(call gb_LinkTarget_add_libs
,$(1),\
2467 define gb_LinkTarget__use_cups
2473 ifeq ($(ENABLE_DBUS
),TRUE
)
2475 define gb_LinkTarget__use_dbus
2476 $(call gb_LinkTarget_set_include
,$(1),\
2481 $(call gb_LinkTarget_add_defs
,$(1),\
2485 ifeq ($(ENABLE_PACKAGEKIT
),TRUE
)
2486 $(call gb_LinkTarget_add_defs
,$(1),\
2487 -DENABLE_PACKAGEKIT \
2489 endif # ENABLE_PACKAGEKIT
2491 $(call gb_LinkTarget_add_libs
,$(1),\
2499 define gb_LinkTarget__use_dbus
2506 define gb_LinkTarget__use_dbusmenugtk
2507 $(call gb_LinkTarget_set_include
,$(1),\
2509 $(DBUSMENUGTK_CFLAGS
) \
2512 $(call gb_LinkTarget_add_libs
,$(1),$(DBUSMENUGTK_LIBS
))
2517 ifeq ($(ENABLE_TELEPATHY
),TRUE
)
2519 define gb_LinkTarget__use_telepathy
2520 $(call gb_LinkTarget_set_include
,$(1),\
2522 $(TELEPATHY_CFLAGS
) \
2525 $(call gb_LinkTarget_add_libs
,$(1),\
2531 else # !ENABLE_TELEPATHY
2533 gb_LinkTarget__use_telepathy
:=
2535 endif # ENABLE_TELEPATHY
2537 ifneq ($(SYSTEM_LIBPNG
),)
2539 define gb_LinkTarget__use_png
2540 $(call gb_LinkTarget_set_include
,$(1),\
2545 $(call gb_LinkTarget_add_libs
,$(1),\
2551 else # !SYSTEM_LIBPNG
2553 define gb_LinkTarget__use_png
2554 $(call gb_LinkTarget_set_include
,$(1),\
2558 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2561 $(call gb_LinkTarget__use_zlib
,$(1))
2565 endif # !SYSTEM_LIBPNG
2568 ifneq ($(SYSTEM_CURL
),)
2570 define gb_LinkTarget__use_curl
2571 $(call gb_LinkTarget_add_defs
,$(1),\
2574 $(call gb_LinkTarget_set_include
,$(1),\
2578 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2584 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2588 define gb_LinkTarget__use_curl
2589 $(call gb_LinkTarget_use_package
,$(1),curl
)
2590 $(call gb_LinkTarget_set_include
,$(1),\
2591 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2596 $(call gb_LinkTarget_add_libs
,$(1),\
2597 $(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 \
2600 $(call gb_LinkTarget_add_libs
,$(1),\
2601 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2609 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2611 define gb_LinkTarget__use_valgrind
2612 $(call gb_LinkTarget_add_defs
,$(1),\
2613 -DHAVE_VALGRIND_HEADERS \
2616 $(call gb_LinkTarget_set_include
,$(1),\
2618 $(VALGRIND_CFLAGS
) \
2623 else # !ENABLE_VALGRIND
2625 define gb_LinkTarget__use_valgrind
2629 endif # ENABLE_VALGRIND
2631 ifneq ($(SYSTEM_POPPLER
),)
2633 define gb_LinkTarget__use_poppler
2634 $(call gb_LinkTarget_set_include
,$(1),\
2639 $(call gb_LinkTarget_add_libs
,$(1),\
2645 else # !SYSTEM_POPPLER
2647 define gb_LinkTarget__use_poppler
2648 $(call gb_LinkTarget_use_external_project
,$(1),poppler
)
2650 $(call gb_LinkTarget_set_include
,$(1),\
2651 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2652 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2653 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2657 $(call gb_LinkTarget_add_libs
,$(1),\
2658 $(call gb_UnpackedTarball_get_dir
,poppler
)/fofi
/.libs
/libfofi
$(gb_StaticLibrary_PLAINEXT
) \
2659 $(call gb_UnpackedTarball_get_dir
,poppler
)/goo
/.libs
/libgoo
$(gb_StaticLibrary_PLAINEXT
) \
2660 $(call gb_UnpackedTarball_get_dir
,poppler
)/poppler
/.libs
/libpoppler
$(gb_StaticLibrary_PLAINEXT
) \
2664 $(call gb_LinkTarget_add_libs
,$(1),\
2667 else ifeq ($(OS
),LINUX
)
2668 $(call gb_LinkTarget_add_libs
,$(1),\
2671 else ifeq ($(OS
),WNT
)
2672 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2680 endif # SYSTEM_POPPLER
2683 ifneq ($(SYSTEM_CLUCENE
),)
2685 define gb_LinkTarget__use_clucene
2686 $(call gb_LinkTarget_add_defs
,$(1),\
2687 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
))) \
2690 $(call gb_LinkTarget_set_include
,$(1),\
2691 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(CLUCENE_CFLAGS
)))) \
2695 $(call gb_LinkTarget_add_libs
,$(1),\
2701 else # !SYSTEM_CLUCENE
2703 define gb_LinkTarget__use_clucene
2704 $(call gb_LinkTarget_set_include
,$(1),\
2705 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2706 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2707 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2711 $(call gb_LinkTarget_use_libraries
,$(1),\
2717 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2721 endif # SYSTEM_CLUCENE
2723 define gb_LinkTarget__use_gobject
2724 $(call gb_LinkTarget_add_libs
,$(1),\
2728 $(call gb_LinkTarget_set_include
,$(1),\
2734 ifneq ($(SYSTEM_HSQLDB
),)
2736 define gb_LinkTarget__use_hsqldb
2738 $(call gb_LinkTarget_add_defs
,$(1),\
2740 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2745 else # !SYSTEM_HSQLDB
2747 define gb_LinkTarget__use_hsqldb
2751 endif # SYSTEM_HSQLDB
2754 ifneq ($(SYSTEM_OPENLDAP
),)
2756 define gb_LinkTarget__use_openldap
2758 $(call gb_LinkTarget_add_libs
,$(1),\
2765 gb_ExternalProject__use_openldap
:=
2767 else # !SYSTEM_OPENLDAP
2769 define gb_LinkTarget__use_openldap
2770 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2771 $(call gb_LinkTarget_set_include
,$(1),\
2772 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2775 $(call gb_LinkTarget_use_external_project
,$(1),openldap
)
2776 $(call gb_LinkTarget_add_libs
,$(1), \
2777 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2778 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2783 define gb_ExternalProject__use_openldap
2784 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2788 endif # SYSTEM_OPENLDAP
2791 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2793 ifneq ($(SYSTEM_FIREBIRD
),)
2795 define gb_LinkTarget__use_libfbembed
2796 $(call gb_LinkTarget_set_include
,$(1),\
2797 $(FIREBIRD_CFLAGS
) \
2800 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2804 # gb_LinkTarget__use_atomic_ops :=
2805 # gb_LinkTarget__use_tommath :=
2807 else # !SYSTEM_FIREBIRD
2809 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2811 define gb_LinkTarget__use_libfbembed
2812 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2813 $(call gb_LinkTarget_set_include
,$(1),\
2815 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/include \
2818 $(call gb_LinkTarget_add_libs
,$(1),\
2819 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/bin
/ifbembed.lib \
2822 $(call gb_LinkTarget_add_libs
,$(1),\
2823 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/lib
-lfbembed \
2829 # define gb_LinkTarget__use_tommath
2830 # $(call gb_LinkTarget_set_include,$(1),\
2831 # $(TOMMATH_CFLAGS) \
2835 # $(call gb_LinkTarget_add_libs,$(1),$(TOMMATH_LIBS))
2839 endif # SYSTEM_FIREBIRD
2841 else # !ENABLE_FIREBIRD_SDBC
2843 gb_LinkTarget__use_firebird
:=
2844 # gb_LinkTarget__use_atomic_ops :=
2845 # gb_LinkTarget__use_tommath :=
2847 endif # ENABLE_FIREBIRD_SDBC
2850 ifneq ($(SYSTEM_POSTGRESQL
),)
2852 define gb_LinkTarget__use_postgresql
2854 $(call gb_LinkTarget_set_include
,$(1),\
2859 $(call gb_LinkTarget_add_libs
,$(1),\
2863 $(call gb_LinkTarget_add_ldflags
,$(1),\
2869 else # !SYSTEM_POSTGRESQL
2871 define gb_LinkTarget__use_postgresql
2873 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
)
2875 $(call gb_LinkTarget_set_include
,$(1),\
2876 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
2877 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
2881 $(call gb_LinkTarget_add_libs
,$(1),\
2882 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
2885 ifeq ($(OS
)$(COM
),WNTMSC
)
2886 $(call gb_LinkTarget_use_external
,$(1),openssl
)
2888 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2897 endif # SYSTEM_POSTGRESQL
2899 ifneq ($(WITH_MOZAB4WIN
),)
2901 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2905 define gb_LinkTarget__use_mozilla
2907 $(call gb_LinkTarget_use_unpacked
,$(1),moz_lib
)
2908 $(call gb_LinkTarget_use_unpacked
,$(1),moz_inc
)
2910 $(call gb_LinkTarget_add_defs
,$(1),\
2911 -DMOZILLA_INTERNAL_API \
2914 $(call gb_LinkTarget_set_include
,$(1),\
2915 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
) \
2916 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/addrbook \
2917 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/content \
2918 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/embed_base \
2919 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/intl \
2920 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mime \
2921 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mozldap \
2922 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/msgbase \
2923 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/necko \
2924 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/pref \
2925 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/profile \
2926 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/rdf \
2927 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/string \
2928 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/uconv \
2929 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom \
2930 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom_obsolete \
2934 $(call gb_LinkTarget_add_libs
,$(1),\
2935 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
2936 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom.lib \
2937 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom_core.lib \
2940 $(call gb_LinkTarget_add_defs
,$(1),\
2943 -DMOZ_REFLOW_PERF_DSP \
2955 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2960 -Woverloaded-virtual \
2968 ifneq ($(DBG_LEVEL
),0)
2969 $(call gb_LinkTarget_add_defs
,$(1),\
2970 -D_STL_NOFORCE_MANIFEST \
2974 $(call gb_LinkTarget_add_libs
,$(1),\
2975 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/embed_base_s.lib \
2976 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/mozreg_s.lib \
2983 endif # WITH_MOZAB4WIN
2985 ifeq ($(ENABLE_KDE
),TRUE
)
2987 define gb_LinkTarget__use_kde
2988 $(call gb_LinkTarget_set_include
,$(1),\
2989 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE_CFLAGS
)))) \
2993 $(call gb_LinkTarget_add_defs
,$(1),\
2994 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE_CFLAGS
))) \
2997 $(call gb_LinkTarget_add_libs
,$(1),\
3002 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3011 define gb_LinkTarget__use_kde
3018 ifeq ($(ENABLE_KDE4
),TRUE
)
3020 define gb_LinkTarget__use_kde4
3021 $(call gb_LinkTarget_set_include
,$(1),\
3022 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE4_CFLAGS
)))) \
3026 $(call gb_LinkTarget_add_defs
,$(1),\
3027 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(KDE4_CFLAGS
))) \
3030 $(call gb_LinkTarget_add_libs
,$(1),\
3035 $(call gb_LinkTarget_add_cxxflags
,$(1),\
3044 define gb_LinkTarget__use_kde4
3051 ifeq ($(ENABLE_TDE
),TRUE
)
3053 define gb_LinkTarget__use_tde
3054 $(call gb_LinkTarget_add_libs
,$(1),\
3058 $(call gb_LinkTarget_set_include
,$(1),\
3066 define gb_LinkTarget__use_tde
3073 ifeq ($(ENABLE_GCONF
),TRUE
)
3075 define gb_LinkTarget__use_gconf
3076 $(call gb_LinkTarget_set_include
,$(1),\
3077 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(GCONF_CFLAGS
)))) \
3081 $(call gb_LinkTarget_add_defs
,$(1),\
3082 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(GCONF_CFLAGS
))) \
3085 $(call gb_LinkTarget_add_libs
,$(1),\
3091 else # !ENABLE_GCONF
3093 define gb_LinkTarget__use_gconf
3097 endif # ENABLE_GCONF
3101 # extra python_headers external because pyuno wrapper must not link python
3102 ifneq ($(SYSTEM_PYTHON
),)
3104 define gb_LinkTarget__use_python_headers
3105 $(call gb_LinkTarget_add_defs
,$(1),\
3106 $(filter-out -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYHTON_CFLAGS
)))) \
3109 $(call gb_LinkTarget_set_include
,$(1),\
3110 $(subst -isystem
/,-isystem
/,$(filter -I
% -isystem
%,$(subst -isystem
/,-isystem
/,$(PYTHON_CFLAGS
)))) \
3116 define gb_LinkTarget__use_python
3117 $(call gb_LinkTarget__use_python_headers
,$(1))
3119 $(call gb_LinkTarget_add_libs
,$(1),\
3125 else # !SYSTEM_PYTHON
3127 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3131 # depend on external project because on MACOSX the Package is disabled...
3132 define gb_LinkTarget__use_python_headers
3133 $(call gb_LinkTarget_use_external_project
,$(1),python3
)
3134 $(call gb_LinkTarget_set_include
,$(1),\
3135 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3136 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3137 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3143 define gb_LinkTarget__use_python
3144 $(call gb_LinkTarget__use_python_headers
,$(1))
3147 $(call gb_LinkTarget_add_libs
,$(1),\
3148 $(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 \
3150 else ifeq ($(OS
),MACOSX
)
3151 $(call gb_LinkTarget_add_libs
,$(1),\
3152 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3155 $(call gb_LinkTarget_add_libs
,$(1),\
3156 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3157 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
3163 endif # SYSTEM_PYTHON
3166 ifeq ($(ENABLE_ORCUS
),TRUE
)
3168 ifneq ($(SYSTEM_LIBORCUS
),)
3170 define gb_LinkTarget__use_orcus
3171 $(call gb_LinkTarget_set_include
,$(1),\
3175 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3178 define gb_LinkTarget__use_orcus-parser
3182 else # !SYSTEM_LIBORCUS
3184 define gb_LinkTarget__use_orcus
3185 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
3186 $(call gb_LinkTarget_set_include
,$(1),\
3187 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3190 $(call gb_LinkTarget_add_libs
,$(1),\
3191 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
/liborcus-0.8
$(gb_StaticLibrary_PLAINEXT
) \
3194 $(if
$(SYSTEM_BOOST
), \
3195 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3196 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3201 define gb_LinkTarget__use_orcus-parser
3202 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
3203 $(call gb_LinkTarget_set_include
,$(1),\
3204 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3207 $(call gb_LinkTarget_add_libs
,$(1),\
3208 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
/liborcus-parser-0.8
$(gb_StaticLibrary_PLAINEXT
) \
3213 endif # SYSTEM_LIBORCUS
3215 else # ENABLE_ORCUS != TRUE
3217 gb_LinkTarget__use_orcus
:=
3218 gb_LinkTarget__use_orcus-parser
:=
3222 ifeq ($(ENABLE_EOT
),TRUE
)
3224 ifneq ($(SYSTEM_LIBEOT
),)
3226 define gb_LinkTarget__use_libeot
3227 $(call gb_LinkTarget_set_include
,$(1),\
3231 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3235 gb_ExternalProject__use_libeot
:=
3237 else # !SYSTEM_LIBEOT
3239 define gb_LinkTarget__use_libeot
3240 $(call gb_LinkTarget_set_include
,$(1),\
3241 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3244 $(call gb_LinkTarget_add_libs
,$(1),\
3245 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3247 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3251 define gb_ExternalProject__use_libeot
3252 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3256 endif # SYSTEM_LIBEOT
3260 gb_LinkTarget__use_libeot
:=
3261 gb_ExternalProject__use_libeot
:=
3267 ifeq ($(GUIBASE
),unx
)
3269 ifeq ($(XRANDR_DLOPEN
),FALSE
)
3271 define gb_LinkTarget__use_Xrandr
3272 $(call gb_LinkTarget_set_include
,$(1),\
3277 $(call gb_LinkTarget_add_libs
,$(1),\
3282 else # XRANDR_DLOPEN
3284 define gb_LinkTarget__use_Xrandr
3285 $(call gb_LinkTarget_add_defs
,$(1),\
3290 endif # XRANDR_DLOPEN
3292 define gb_LinkTarget__use_Xrender
3293 $(call gb_LinkTarget_set_include
,$(1),\
3298 $(call gb_LinkTarget_add_libs
,$(1),\
3306 gb_ExternalProject__use_nss3
:=
3308 ifeq ($(OS
),ANDROID
)
3310 gb_LinkTarget__use_nss3
:=
3311 gb_LinkTarget__use_plc4
:=
3315 ifneq ($(SYSTEM_NSS
),)
3317 define gb_LinkTarget__use_nss3
3318 $(call gb_LinkTarget_add_defs
,$(1),\
3322 $(call gb_LinkTarget_set_include
,$(1),\
3327 $(call gb_LinkTarget_add_libs
,$(1),\
3333 define gb_LinkTarget__use_plc4
3334 $(call gb_LinkTarget__use_nss3
,$(1))
3338 define gb_LinkTarget__use_ssl3
3339 $(call gb_LinkTarget__use_nss3
,$(1))
3345 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3349 define gb_LinkTarget__use_nss3
3350 $(call gb_LinkTarget_use_package
,$(1),nss
)
3351 $(call gb_LinkTarget_set_include
,$(1),\
3353 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3354 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3358 $(call gb_LinkTarget_add_libs
,$(1),\
3359 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3360 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3361 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3364 $(call gb_LinkTarget_add_libs
,$(1),\
3365 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3374 define gb_LinkTarget__use_plc4
3375 $(call gb_LinkTarget_use_package
,$(1),nss
)
3377 $(call gb_LinkTarget_add_libs
,$(1),\
3378 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3381 $(call gb_LinkTarget_add_libs
,$(1),\
3382 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3388 define gb_LinkTarget__use_ssl3
3389 $(call gb_LinkTarget_use_package
,$(1),nss
)
3391 $(call gb_LinkTarget_add_libs
,$(1),\
3392 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3395 $(call gb_LinkTarget_add_libs
,$(1),\
3396 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3402 define gb_ExternalProject__use_nss3
3403 $(call gb_ExternalProject_use_package
,$(1),nss
)
3411 ifeq ($(ENABLE_GLTF
),TRUE
)
3413 ifneq ($(SYSTEM_LIBGLTF
),TRUE
)
3415 define gb_LinkTarget__use_libgltf
3416 $(call gb_LinkTarget_set_include
,$(1),\
3417 -I
$(call gb_UnpackedTarball_get_dir
,libgltf
)/inc \
3422 $(call gb_LinkTarget_add_libs
,$(1),\
3423 $(call gb_UnpackedTarball_get_dir
,libgltf
)/build
/win32
/$(wnt_arch_subdir_optional
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
/libgltf.lib
,Release
/libgltf.lib
) \
3426 $(call gb_LinkTarget_add_libs
,$(1),\
3427 $(call gb_UnpackedTarball_get_dir
,libgltf
)/src
/.libs
/libgltf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
3431 $(call gb_LinkTarget_use_external_project
,$(1),libgltf
)
3435 else # SYSTEM_LIBGLTF
3437 define gb_LinkTarget__use_libgltf
3438 $(call gb_LinkTarget_set_include
,$(1),\
3442 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGLTF_LIBS
))
3446 endif # SYSTEN_LIBGLTF
3448 ifeq ($(ENABLE_COLLADA
),TRUE
)
3450 ifeq ($(SYSTEM_OPENCOLLADA
),TRUE
)
3452 define gb_LinkTarget__use_opencollada_parser
3453 $(call gb_LinkTarget_set_include
,$(1),\
3455 $(OPENCOLLADA_CFLAGS
) \
3458 $(call gb_LinkTarget_add_libs
,$(1),$(OPENCOLLADA_LIBS
))
3462 else # !SYSTEM_OPENCOLLADA
3464 define gb_LinkTarget__use_opencollada_parser
3465 $(call gb_LinkTarget_set_include
,$(1),\
3466 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADABaseUtils
/include \
3467 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADAFramework
/include \
3468 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADASaxFrameworkLoader
/include \
3469 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/GeneratedSaxParser
/include \
3473 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3474 opencollada_parser \
3478 endif # SYSTEM_OPENCOLLADA
3480 ifeq ($(SYSTEM_COLLADA2GLTF
),TRUE
)
3482 define gb_LinkTarget__use_collada2gltf
3483 $(call gb_LinkTarget_set_include
,$(1),\
3485 $(COLLADA2GLTF_CFLAGS
) \
3488 $(call gb_LinkTarget_add_libs
,$(1),$(COLLADA2GLTF_LIBS
))
3492 else # !SYSTEM_COLLADA2GLTF
3494 define gb_LinkTarget__use_collada2gltf
3495 $(call gb_LinkTarget_set_include
,$(1),\
3496 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
) \
3497 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/assetModifiers \
3498 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/GLTF \
3499 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/helpers \
3500 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/JSON \
3501 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/dependencies
/json
/include/rapidjson
/ \
3505 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3510 endif # SYSTEM_COLLADA2GLTF
3512 endif # ENABLE_COLLADA
3516 ### Jars ############################################################
3518 ifneq ($(SYSTEM_HSQLDB
),)
3520 define gb_Jar__use_hsqldb
3521 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3523 define gb_JunitTest__use_hsqldb
3524 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3527 else # !SYSTEM_HSQLDB
3529 ifeq ($(ENABLE_JAVA
),TRUE
)
3530 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3535 define gb_Jar__use_hsqldb
3536 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3538 define gb_JunitTest__use_hsqldb
3539 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3542 endif # SYSTEM_HSQLDB
3545 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3547 ifneq ($(SYSTEM_BSH
),)
3549 define gb_Jar__use_bsh
3550 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3555 ifeq ($(ENABLE_JAVA
),TRUE
)
3556 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3561 define gb_Jar__use_bsh
3562 $(call gb_Jar_use_jar
,$(1),bsh
)
3569 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3571 ifneq ($(SYSTEM_RHINO
),)
3573 define gb_Jar__use_rhino
3574 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3577 else # !SYSTEM_RHINO
3579 ifeq ($(ENABLE_JAVA
),TRUE
)
3580 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3585 define gb_Jar__use_rhino
3586 $(call gb_Jar_use_jar
,$(1),js
)
3589 endif # SYSTEM_RHINO
3593 ifneq ($(SYSTEM_APACHE_COMMONS
),)
3595 define gb_Jar__use_commons-codec
3596 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_CODEC_JAR
))
3598 gb_ExternalProject__use_commons-codec
:=
3600 define gb_Jar__use_commons-httpclient
3601 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_HTTPCLIENT_JAR
))
3603 gb_ExternalProject__use_commons-httpclient
:=
3605 define gb_Jar__use_commons-lang
3606 $(call gb_Jar_usadd_linked_libse_system_jar
,$(1),$(COMMONS_LANG_JAR
))
3608 gb_ExternalProject__use_commons-lang
:=
3610 define gb_Jar__use_commons-logging
3611 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
3613 gb_ExternalProject__use_commons-logging
:=
3615 else # !SYSTEM_APACHE_COMMONS
3617 ifeq ($(ENABLE_JAVA
),TRUE
)
3618 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3619 commons-logging-
$(COMMONS_LOGGING_VERSION
) \
3622 $(eval
$(call gb_Helper_register_jars
,OXT
,\
3623 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9
,commons-codec-1.6
) \
3624 commons-httpclient-3.1 \
3625 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4
) \
3628 define gb_Jar__use_commons-codec
3629 $(call gb_Jar_use_external_project
,$(1),apache_commons_codec
)
3630 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_codec
)\
3631 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/dist/commons-codec-1.9.jar
,/dist/commons-codec-1.6.jar
),\
3632 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9.jar
,commons-codec-1.6.jar
)\
3635 define gb_ExternalProject__use_commons-codec
3636 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_codec
)
3639 define gb_Jar__use_commons-httpclient
3640 $(call gb_Jar_use_external_project
,$(1),apache_commons_httpclient
)
3641 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_httpclient
)/dist/commons-httpclient.jar
,commons-httpclient-3.1.jar
)
3643 define gb_ExternalProject__use_commons-httpclient
3644 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_httpclient
)
3647 define gb_Jar__use_commons-lang
3648 $(call gb_Jar_use_external_project
,$(1),apache_commons_lang
)
3649 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_lang
)\
3650 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/target
/commons-lang3-3.3
.1.jar
,/dist/commons-lang-2.4.jar
),\
3651 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4.jar
)\
3654 define gb_ExternalProject__use_commons-lang
3655 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_lang
)
3658 define gb_Jar__use_commons-logging
3659 $(call gb_Jar_use_external_project
,$(1),apache_commons_logging
)
3660 $(call gb_Jar_use_jar
,$(1),commons-logging-
$(COMMONS_LOGGING_VERSION
))
3662 define gb_ExternalProject__use_commons-logging
3663 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
3666 endif # SYSTEM_APACHE_COMMONS
3669 ifneq ($(SYSTEM_JFREEREPORT
),)
3671 define gb_Jar__use_flow-engine
3672 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3675 define gb_Jar__use_flute
3676 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3679 define gb_Jar__use_libbase
3680 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3683 define gb_Jar__use_libfonts
3684 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3687 define gb_Jar__use_libformula
3688 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3691 define gb_Jar__use_liblayout
3692 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3695 define gb_Jar__use_libloader
3696 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3699 define gb_Jar__use_librepository
3700 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3703 define gb_Jar__use_libserializer
3704 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3707 define gb_Jar__use_libxml
3708 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3711 define gb_Jar__use_sac
3712 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3715 else # !SYSTEM_JFREEREPORT
3717 ifeq ($(ENABLE_JAVA
),TRUE
)
3718 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3726 librepository-1.1
.6 \
3727 libserializer-1.1
.6 \
3733 define gb_Jar__use_flow-engine
3734 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3737 define gb_Jar__use_flute
3738 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3741 define gb_Jar__use_libbase
3742 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3745 define gb_Jar__use_libfonts
3746 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3749 define gb_Jar__use_libformula
3750 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3753 define gb_Jar__use_liblayout
3754 $(call gb_Jar_use_jar
,$(1),liblayout
)
3757 define gb_Jar__use_libloader
3758 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3761 define gb_Jar__use_librepository
3762 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3765 define gb_Jar__use_libserializer
3766 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3769 define gb_Jar__use_libxml
3770 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3773 define gb_Jar__use_sac
3774 $(call gb_Jar_use_jar
,$(1),sac
)
3777 endif # SYSTEM_JFREEREPORT
3782 # FIXME: the library target should be for build too
3783 define gb_Executable__register_bestreversemap
3784 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3785 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3789 # TODO depending on the whole URE might be overkill, but I do not have a
3790 # Windows machine to debug it...
3791 # FIXME: the library target should be for build too
3792 define gb_Executable__register_climaker
3793 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3794 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3795 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3796 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3797 $(call gb_UnoApi_get_target
,udkapi
) \
3798 $(INSTROOT
)/$(LIBO_URE_ETC_FOLDER
)/$(call gb_Helper_get_rcfile
,uno
)
3802 define gb_Executable__register_cppumaker
3803 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3804 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3808 gb_Gallery__UNO_COMPONENTS
:= \
3809 comphelper
/util
/comphelp \
3810 configmgr
/source
/configmgr \
3811 drawinglayer
/drawinglayer \
3812 framework
/util
/fwk \
3813 i18npool
/util
/i18npool \
3814 package
/source
/xstor
/xstor \
3815 package
/util
/package2 \
3816 sax
/source
/expatwrap
/expwrap \
3821 ucb
/source
/core
/ucb1 \
3822 ucb
/source
/ucp
/file
/ucpfile1 \
3823 unoxml
/source
/service
/unoxml
3825 # This is used to determine what we need for 'build' platform.
3826 define gb_Executable__register_gengal
3827 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3828 $(foreach component
,$(gb_Gallery__UNO_COMPONENTS
) \
3829 ,$(call gb_ComponentTarget_get_target_for_build
,$(component
))) \
3830 $(call gb_AllLangResTarget_get_target
,ofa
) \
3831 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3832 $(call gb_Package_get_target_for_build
,postprocess_images
) \
3833 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3834 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3835 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3836 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3837 $(call gb_UnoApi_get_target
,offapi
) \
3838 $(call gb_UnoApi_get_target
,udkapi
) \
3842 ifeq ($(SYSTEM_ICU
),)
3844 define gb_Executable__register_gendict
3845 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3846 $(call gb_Package_get_target_for_build
,icu
) \
3852 define gb_Executable__register_idlc
3853 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3854 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3858 define gb_Executable__register_localize
3859 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3860 $(foreach exec
,cfgex helpex propex transex3 treex uiex ulfex xrmex
,\
3861 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3866 # FIXME ure/services.rdb needs cleanup
3867 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3868 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3869 # FIXME: the library target should be for build too
3870 define gb_Executable__register_saxparser
3871 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3872 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3873 $(call gb_Package_get_target_for_build
,instsetoo_native_setup_ure
) \
3874 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3875 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3876 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3877 $(call gb_UnoApi_get_target
,udkapi
) \
3881 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3882 # required due to the settings for URE_SERVICES and URE_TYPES in
3883 # cppuhelper/source/unorc
3884 # FIXME: the library target should be for build too
3885 define gb_Executable__register_uno
3886 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3887 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3888 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3889 $(INSTROOT
)/$(LIBO_URE_MISC_FOLDER
)/services.rdb \
3890 $(call gb_UnoApi_get_target
,udkapi
) \
3895 # External executables
3897 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3899 gb_ExternalExecutable__register_xmllint
:=
3901 else # ! SYSTEM_LIBXML_FOR_BUILD
3903 define gb_ExternalExecutable__register_xmllint
3904 $(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
)
3905 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,\
3906 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3907 $(call gb_Package_get_target
,xml2
) \
3912 endif # SYSTEM_LIBXML_FOR_BUILD
3914 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3916 gb_ExternalExecutable__register_xsltproc
:=
3918 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3920 define gb_ExternalExecutable__register_xsltproc
3921 $(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
)
3922 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,\
3923 $(if
$(filter WNT
,$(OS
)),$(call gb_Package_get_target
,icu_ure
)) \
3924 $(call gb_Package_get_target
,xslt
) \
3929 endif # SYSTEM_LIBXSLT_FOR_BUILD
3931 ifneq (,$(SYSTEM_UCPP
))
3933 gb_ExternalExecutable__register_ucpp
:=
3935 else # ! SYSTEM_UCPP
3937 define gb_ExternalExecutable__register_ucpp
3938 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3944 ifeq (,$(PYTHON_FOR_BUILD
))
3946 define gb_ExternalExecutable__register_python
3949 # use set_external, to avoid having the command added as prerequisite for the
3950 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3951 # matching rule to build that specific file)
3952 $(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
))
3953 # the Zip ensures that internal python has been built (cannot use the Package
3954 # target, as that is not used on Mac)
3955 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3959 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
3960 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
3961 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
3969 define gb_ExternalExecutable__register_python
3970 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
3974 endif # PYTHON_FOR_BUILD
3976 ifneq ($(SYSTEM_GENBRK
),)
3978 define gb_ExternalExecutable__register_genbrk
3979 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
3983 else # ! SYSTEM_GENBRK
3985 define gb_ExternalExecutable__register_genbrk
3986 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
3987 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3988 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
3989 $(call gb_Package_get_target_for_build
,icu
) \
3996 ifneq ($(SYSTEM_GENCCODE
),)
3998 define gb_ExternalExecutable__register_genccode
3999 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
4003 else # ! SYSTEM_GENCCODE
4005 define gb_ExternalExecutable__register_genccode
4006 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
4007 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4008 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
4009 $(call gb_Package_get_target_for_build
,icu
) \
4016 ifneq ($(SYSTEM_GENCMN
),)
4018 define gb_ExternalExecutable__register_gencmn
4019 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
4023 else # ! SYSTEM_GENCMN
4025 define gb_ExternalExecutable__register_gencmn
4026 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
4027 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
4028 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
4029 $(call gb_Package_get_target_for_build
,icu
) \
4036 # vim: set noet sw=4 ts=4: