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.
32 ifneq ($(SYSTEM_MESA_HEADERS
),)
34 gb_LinkTarget__use_mesa_headers
:=
36 else # !SYSTEM_MESA_HEADERS
38 define gb_LinkTarget__use_mesa_headers
39 $(call gb_LinkTarget_set_include
,$(1),\
40 -I
$(SRCDIR
)/external
/Mesa
/inc \
46 endif # SYSTEM_MESA_HEADERS
48 ifneq ($(SYSTEM_NPAPI_HEADERS
),)
50 # yes this uses internal headers too...
51 # they are split across 2 dirs for this reason
52 define gb_LinkTarget__use_npapi_headers
53 $(call gb_LinkTarget_set_include
,$(1),\
54 $(NPAPI_HEADERS_CFLAGS
) \
55 -I
$(SRCDIR
)/external
/np_sdk \
61 else #!SYSTEM_NPAPI_HEADERS
63 define gb_LinkTarget__use_npapi_headers
64 $(call gb_LinkTarget_set_include
,$(1),\
65 -I
$(SRCDIR
)/external
/np_sdk
/inc \
66 -I
$(SRCDIR
)/external
/np_sdk \
72 endif #SYSTEM_NPAPI_HEADERS
74 ifneq ($(SYSTEM_ODBC_HEADERS
),)
76 define gb_LinkTarget__use_odbc_headers
77 $(call gb_LinkTarget_add_defs
,$(1),\
78 -DSYSTEM_ODBC_HEADERS \
83 else # !SYSTEM_ODBC_HEADERS
85 define gb_LinkTarget__use_odbc_headers
86 $(call gb_LinkTarget_set_include
,$(1),\
87 -I
$(SRCDIR
)/external
/unixODBC
/inc \
93 endif # SYSTEM_ODBC_HEADERS
95 ifneq ($(SYSTEM_VIGRA
),)
97 gb_LinkTarget__use_vigra_headers
:=
101 define gb_LinkTarget__use_vigra_headers
102 $(call gb_LinkTarget_use_unpacked
,$(1),vigra
)
103 $(call gb_LinkTarget_set_include
,$(1),\
104 -I
$(call gb_UnpackedTarball_get_dir
,vigra
/include) \
112 ifneq ($(SYSTEM_MDDS
),)
114 gb_ExternalProject__use_mdds_headers
:=
116 define gb_LinkTarget__use_mdds_headers
117 $(call gb_LinkTarget_set_include
,$(1),\
126 define gb_ExternalProject__use_mdds_headers
127 $(call gb_ExternalProject_use_external_project
,$(1),mdds
)
131 define gb_LinkTarget__use_mdds_headers
132 $(call gb_LinkTarget_use_unpacked
,$(1),mdds
)
133 $(call gb_LinkTarget_set_include
,$(1),\
142 ifneq ($(SYSTEM_GLM
),)
144 gb_LinkTarget__use_glm_headers
:=
148 define gb_LinkTarget__use_glm_headers
149 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
150 $(call gb_LinkTarget_set_include
,$(1),\
151 -I
$(call gb_UnpackedTarball_get_dir
,glm
) \
159 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
161 define gb_LinkTarget__use_sane_headers
162 $(call gb_LinkTarget_set_include
,$(1),\
163 -I
$(SRCDIR
)/external
/$(if
$(filter WNT
,$(OS
)),twain
,sane
)/inc \
171 gb_LinkTarget__use_sane_headers
:=
175 ifneq ($(SYSTEM_BLUEZ
),)
177 gb_LinkTarget__use_bluez_bluetooth_headers
:=
181 define gb_LinkTarget__use_bluez_bluetooth_headers
182 $(call gb_LinkTarget_set_include
,$(1),\
183 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
193 ifneq ($(SYSTEM_CPPUNIT
),)
195 define gb_LinkTarget__use_cppunit
196 $(call gb_LinkTarget_set_include
,$(1),\
201 $(call gb_LinkTarget_add_libs
,$(1),\
207 else # !SYSTEM_CPPUNIT
209 define gb_LinkTarget__use_cppunit
210 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
)
212 $(call gb_LinkTarget_set_include
,$(1),\
213 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
218 $(call gb_LinkTarget_add_libs
,$(1),\
219 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
222 $(call gb_LinkTarget_add_libs
,$(1),\
223 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
229 endif # SYSTEM_CPPUNIT
231 ifneq ($(SYSTEM_GLEW
),)
233 define gb_LinkTarget__use_glew
234 $(call gb_LinkTarget_set_include
,$(1),\
238 $(call gb_LinkTarget_add_libs
,$(1),$(GLEW_LIBS
))
244 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
248 define gb_LinkTarget__use_glew
249 $(call gb_LinkTarget_use_package
,$(1),glew
)
250 $(call gb_LinkTarget_set_include
,$(1),\
251 -I
$(call gb_UnpackedTarball_get_dir
,glew
/include) \
256 $(call gb_LinkTarget_add_libs
,$(1),\
257 $(call gb_UnpackedTarball_get_dir
,glew
)/lib
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
/Win32
/glew32d.lib
,Release
/Win32
/glew32.lib
) \
260 $(call gb_LinkTarget_add_libs
,$(1),\
261 -L
$(call gb_UnpackedTarball_get_dir
,glew
)/lib
/ -lGLEW \
269 define gb_LinkTarget__use_iconv
270 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
274 ifneq ($(SYSTEM_MARIADB
),)
276 define gb_LinkTarget__use_mariadb
277 $(call gb_LinkTarget_set_include
,$(1),\
281 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
284 gb_ExternalProject__use_mariadb
:=
286 else # !SYSTEM_MARIADB
288 define gb_LinkTarget__use_mariadb
289 $(call gb_LinkTarget_set_include
,$(1),\
293 $(call gb_LinkTarget_use_static_libraries
,$(1),\
298 define gb_ExternalProject__use_mariadb
299 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadblib
)
303 endif # SYSTEM_MARIADB
306 ifneq ($(SYSTEM_MARIADB
),)
308 define gb_LinkTarget__use_mysql
310 $(call gb_LinkTarget_add_defs
,$(1),\
314 $(call gb_LinkTarget_add_libs
,$(1),\
318 $(call gb_LinkTarget_set_include
,$(1),\
326 define gb_LinkTarget__use_mysql
328 $(call gb_LinkTarget_set_include
,$(1),\
336 ifneq ($(SYSTEM_MYSQL_CPPCONN
),)
338 define gb_LinkTarget__use_mysqlcppconn
339 $(call gb_LinkTarget_add_libs
,$(1),\
343 $(call gb_LinkTarget_add_defs
,$(1),\
344 -DSYSTEM_MYSQL_CPPCONN \
350 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_NONE
,\
354 # note: this does not link mysqlcppconn, it is loaded via osl_loadModuleRelative
355 define gb_LinkTarget__use_mysqlcppconn
357 $(call gb_LinkTarget_use_unpacked
,$(1),mysqlcppconn
)
359 $(call gb_LinkTarget_add_defs
,$(1),\
360 -DCPPCONN_LIB_BUILD \
363 $(call gb_LinkTarget_set_include
,$(1),\
364 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
) \
365 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
)/cppconn \
373 ifneq ($(SYSTEM_ZLIB
),)
375 define gb_LinkTarget__use_zlib
376 $(call gb_LinkTarget_add_defs
,$(1),\
379 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
384 define gb_LinkTarget__use_zlib_x64
388 gb_ExternalProject__use_zlib
:=
392 define gb_LinkTarget__use_zlib_multiarch
393 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
395 $(call gb_LinkTarget_set_include
,$(1),\
400 $(call gb_LinkTarget_use_static_libraries
,$(1),\
406 define gb_LinkTarget__use_zlib
407 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
411 define gb_LinkTarget__use_zlib_x64
412 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
416 define gb_ExternalProject__use_zlib
417 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
424 ifneq ($(SYSTEM_JPEG
),)
426 define gb_LinkTarget__use_jpeg
427 $(call gb_LinkTarget_add_libs
,$(1),-ljpeg
)
428 $(call gb_LinkTarget_set_ldflags
,$(1),\
429 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
436 define gb_LinkTarget__use_jpeg
437 $(call gb_LinkTarget_set_include
,$(1),\
438 -I
$(call gb_UnpackedTarball_get_dir
,jpeg
) \
442 $(call gb_LinkTarget_use_static_libraries
,$(1),\
450 ifneq ($(SYSTEM_MYTHES
),)
452 define gb_LinkTarget__use_mythes
453 $(call gb_LinkTarget_set_include
,$(1),\
457 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
461 else # !SYSTEM_MYTHES
463 define gb_LinkTarget__use_mythes
464 $(call gb_LinkTarget_set_include
,$(1),\
465 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
470 $(call gb_LinkTarget_use_static_libraries
,$(1),\
474 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
475 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
480 endif # SYSTEM_MYTHES
483 ifneq ($(SYSTEM_EXPAT
),)
485 define gb_LinkTarget__use_expat_impl
486 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
488 $(call gb_LinkTarget_add_defs
,$(1),\
492 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
496 gb_ExternalProject__use_expat
:=
500 define gb_LinkTarget__use_expat_impl
501 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
503 $(call gb_LinkTarget_set_include
,$(1),\
504 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
508 $(call gb_LinkTarget_use_static_libraries
,$(1),\
514 define gb_ExternalProject__use_expat
515 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
521 define gb_LinkTarget__use_expat
522 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
526 define gb_LinkTarget__use_expat_x64
527 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
531 ifneq ($(SYSTEM_HYPH
),)
533 define gb_LinkTarget__use_hyphen
534 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
540 define gb_LinkTarget__use_hyphen
541 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
542 $(call gb_LinkTarget_set_include
,$(1),\
543 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
548 $(call gb_LinkTarget_use_static_libraries
,$(1),\
552 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
553 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
560 ifneq ($(SYSTEM_HUNSPELL
),)
562 define gb_LinkTarget__use_hunspell
563 $(call gb_LinkTarget_set_include
,$(1),\
567 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
571 gb_ExternalProject__use_hunspell
:=
573 else # !SYSTEM_HUNSPELL
575 define gb_LinkTarget__use_hunspell
576 $(call gb_LinkTarget_add_defs
,$(1),\
579 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
580 $(call gb_LinkTarget_set_include
,$(1),\
581 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
586 $(call gb_LinkTarget_use_static_libraries
,$(1),\
590 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
591 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
596 define gb_ExternalProject__use_hunspell
597 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
601 endif # SYSTEM_HUNSPELL
604 ifneq ($(SYSTEM_BOOST
),)
606 define gb_LinkTarget__use_boostdatetime
607 $(call gb_LinkTarget_set_include
,$(1),\
612 $(call gb_LinkTarget_add_ldflags
,$(1),\
616 $(call gb_LinkTarget_add_libs
,$(1),\
617 $(BOOST_DATE_TIME_LIB
) \
622 define gb_LinkTarget__use_boost_iostreams
623 $(call gb_LinkTarget_set_include
,$(1),\
628 $(call gb_LinkTarget_add_ldflags
,$(1),\
632 $(call gb_LinkTarget_add_libs
,$(1),\
633 $(BOOST_IOSTREAMS_LIB
) \
638 gb_ExternalProject__use_boost_iostreams
:=
640 define gb_LinkTarget__use_boost_system
641 $(call gb_LinkTarget_set_include
,$(1),\
646 $(call gb_LinkTarget_add_ldflags
,$(1),\
650 $(call gb_LinkTarget_add_libs
,$(1),\
651 $(BOOST_SYSTEM_LIB
) \
656 gb_ExternalProject__use_boost_system
:=
658 define gb_LinkTarget__use_boost_headers
659 $(call gb_LinkTarget_set_include
,$(1),\
666 gb_ExternalProject__use_boost_headers
:=
671 define gb_LinkTarget__use_boostthread
672 $(call gb_LinkTarget_add_defs
,$(1),\
676 $(call gb_LinkTarget_use_static_libraries
,$(1),\
682 define gb_LinkTarget__use_boostdatetime
683 $(call gb_LinkTarget_add_defs
,$(1),\
687 $(call gb_LinkTarget_use_static_libraries
,$(1),\
693 define gb_LinkTarget__use_boost_iostreams
694 $(call gb_LinkTarget_add_defs
,$(1),\
698 $(call gb_LinkTarget_use_static_libraries
,$(1),\
704 define gb_ExternalProject__use_boost_iostreams
705 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
708 define gb_LinkTarget__use_boost_system
709 $(call gb_LinkTarget_add_defs
,$(1),\
713 $(call gb_LinkTarget_use_static_libraries
,$(1),\
719 define gb_ExternalProject__use_boost_system
720 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
723 define gb_LinkTarget__use_boost_headers
724 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
725 $(call gb_LinkTarget_set_include
,$(1),\
726 -I
$(call gb_UnpackedTarball_get_dir
,boost
) \
732 define gb_ExternalProject__use_boost_headers
733 $(call gb_ExternalProject_get_preparation_target
,$(1)) :|
$(call gb_UnpackedTarball_get_final_target
,boost
)
739 ifneq ($(SYSTEM_CMIS
),)
741 define gb_LinkTarget__use_cmis
742 $(call gb_LinkTarget_set_include
,$(1),\
746 $(call gb_LinkTarget_add_libs
,$(1),$(CMIS_LIBS
))
752 define gb_LinkTarget__use_cmis
753 $(call gb_LinkTarget_set_include
,$(1),\
754 -I
$(call gb_UnpackedTarball_get_dir
,cmis
)/src \
757 $(call gb_LinkTarget_use_static_libraries
,$(1),\
765 ifeq ($(ENABLE_JAVA
),TRUE
)
767 ifeq ($(OS
)$(COM
),WNTGCC
)
769 define gb_LinkTarget__use_jawt
770 $(call gb_LinkTarget_use_custom_headers
,$(1),external
/jawt
)
772 $(call gb_LinkTarget_add_ldflags
,$(1),\
773 -L
$(call gb_CustomTarget_get_workdir
,external
/jawt
) \
776 $(call gb_LinkTarget_add_libs
,$(1),\
782 else # $(OS)$(COM) != WNTGCC
784 define gb_LinkTarget__use_jawt
785 $(call gb_LinkTarget_add_libs
,$(1),\
791 endif # $(OS)$(COM) = WNTGCC
795 gb_LinkTarget__use_jawt
:=
799 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
801 define gb_LinkTarget__use_libatomic_ops
802 $(call gb_LinkTarget_set_include
,$(1),\
804 $(LIBATOMIC_OPS_CFLAGS
) \
806 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
809 gb_ExternalProject__use_libatomic_ops
:=
811 else # !SYSTEM_LIBATOMIC_OPS
813 define gb_LinkTarget__use_libatomic_ops
814 $(call gb_LinkTarget_set_include
,$(1),\
815 $(LIBATOMIC_OPS_CFLAGS
) \
817 $(LIBATOMIC_OPS_CFLAGS
) \
819 $(call gb_LinkTarget_use_external_project
,$(1),\
823 $(call gb_LinkTarget_add_libs
,$(1),\
824 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
829 define gb_ExternalProject__use_libatomic_ops
830 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
834 endif # SYSTEM_LIBATOMIC_OPS
837 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
839 define gb_LinkTarget__use_libexttextcat
840 $(call gb_LinkTarget_set_include
,$(1),\
842 $(LIBEXTTEXTCAT_CFLAGS
) \
844 $(call gb_LinkTarget_add_defs
,$(1),\
845 -DSYSTEM_LIBEXTTEXTCAT \
847 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
851 else # !SYSTEM_LIBEXTTEXTCAT
853 define gb_LinkTarget__use_libexttextcat
854 $(call gb_LinkTarget_set_include
,$(1),\
855 -I
$(call gb_UnpackedTarball_get_dir
,exttextcat
/src
) \
860 $(call gb_LinkTarget_use_static_libraries
,$(1),\
864 $(call gb_LinkTarget_add_libs
,$(1),\
865 $(call gb_UnpackedTarball_get_dir
,exttextcat
)/src
/.libs
/libexttextcat-2.0.a\
867 $(call gb_LinkTarget_use_external_project
,$(1),exttextcat
)
873 endif # SYSTEM_LIBEXTTEXTCAT
876 ifneq ($(SYSTEM_LIBXML
),)
878 define gb_LinkTarget__use_libxml2
879 $(call gb_LinkTarget_add_defs
,$(1),\
882 $(call gb_LinkTarget_set_include
,$(1),\
886 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
889 gb_ExternalProject__use_libxml2
:=
891 else # !SYSTEM_LIBXML
893 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
897 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
901 define gb_LinkTarget__use_libxml2
902 $(call gb_LinkTarget_use_package
,$(1),xml2
)
903 $(call gb_LinkTarget_set_include
,$(1),\
905 -I
$(call gb_UnpackedTarball_get_dir
,xml2
)/include \
909 $(call gb_LinkTarget_add_libs
,$(1),\
910 $(call gb_UnpackedTarball_get_dir
,xml2
)/win32
/bin.msvc
/libxml2.lib \
913 $(call gb_LinkTarget_add_libs
,$(1),\
914 -L
$(call gb_UnpackedTarball_get_dir
,xml2
)/.libs
-lxml2 \
919 define gb_ExternalProject__use_libxml2
920 $(call gb_ExternalProject_use_package
,$(1),xml2
)
924 endif # SYSTEM_LIBXML
927 ifneq ($(SYSTEM_LIBXSLT
),)
929 define gb_LinkTarget__use_libxslt
930 $(call gb_LinkTarget_set_include
,$(1),\
934 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
938 define gb_LinkTarget__use_libexslt
939 $(call gb_LinkTarget_set_include
,$(1),\
944 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
948 else # !SYSTEM_LIBXSLT
950 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
954 define gb_LinkTarget__use_libxslt
955 $(call gb_LinkTarget_use_package
,$(1),xslt
)
956 $(call gb_LinkTarget_set_include
,$(1),\
958 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
962 $(call gb_LinkTarget_add_libs
,$(1),\
963 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libxslt.lib \
966 $(call gb_LinkTarget_add_libs
,$(1),\
967 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libxslt
/.libs
-lxslt \
973 define gb_LinkTarget__use_libexslt
974 $(call gb_LinkTarget_use_package
,$(1),xslt
)
975 $(call gb_LinkTarget_set_include
,$(1),\
977 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
981 $(call gb_LinkTarget_add_libs
,$(1),\
982 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libexslt.lib \
985 $(call gb_LinkTarget_add_libs
,$(1),\
986 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libexslt
/.libs
-lexslt \
992 endif # SYSTEM_LIBXSLT
994 ifeq ($(ENABLE_LIBLANGTAG
),TRUE
)
996 ifneq ($(SYSTEM_LIBLANGTAG
),)
998 define gb_LinkTarget__use_liblangtag
999 $(call gb_LinkTarget_set_include
,$(1),\
1001 $(LIBLANGTAG_CFLAGS
) \
1004 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1008 else # !SYSTEM_LIBLANGTAG
1010 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1014 define gb_LinkTarget__use_liblangtag
1015 $(call gb_LinkTarget_use_unpacked
,$(1),langtag
)
1016 $(call gb_LinkTarget_set_include
,$(1),\
1017 -I
$(call gb_UnpackedTarball_get_dir
,langtag
) \
1020 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1021 $(call gb_LinkTarget_use_external_project
,$(1),langtag
)
1025 endif # SYSTEM_LIBLANGTAG
1029 gb_LinkTarget__use_liblangtag
:=
1031 endif # ENABLE_LIBLANGTAG
1033 gb_ExternalProject__use_apr
:=
1035 ifeq ($(WITH_WEBDAV
),serf
)
1037 define gb_LinkTarget__use_apr
1038 $(call gb_LinkTarget_set_include
,$(1),\
1042 $(call gb_LinkTarget_add_libs
,$(1),\
1046 ifeq ($(SYSTEM_APR
),)
1047 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1052 $(call gb_LinkTarget_add_defs
,$(1),\
1053 -DAPR_DECLARE_STATIC \
1054 -DAPU_DECLARE_STATIC \
1056 $(call gb_LinkTarget_use_external_project
,$(1),apr_util
)
1061 define gb_ExternalProject__use_apr
1062 ifeq ($(SYSTEM_APR
),)
1063 $(call gb_ExternalProject_use_external_project
,$(1),apr_util
)
1068 define gb_LinkTarget__use_serf
1069 $(call gb_LinkTarget_set_include
,$(1),\
1073 $(call gb_LinkTarget_add_libs
,$(1),\
1077 ifeq ($(SYSTEM_SERF
),)
1078 $(call gb_LinkTarget_use_external_project
,$(1),serf
)
1083 else ifeq ($(WITH_WEBDAV
),neon
)
1085 ifneq ($(SYSTEM_NEON
),)
1087 define gb_LinkTarget__use_neon
1088 $(call gb_LinkTarget_add_defs
,$(1),\
1089 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
1092 $(call gb_LinkTarget_set_include
,$(1),\
1097 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
1103 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1107 define gb_LinkTarget__use_neon
1108 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
1109 $(call gb_LinkTarget_set_include
,$(1),\
1110 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
1113 $(call gb_LinkTarget_use_libraries
,$(1),\
1123 ifneq ($(SYSTEM_REDLAND
),)
1125 define gb_LinkTarget__use_librdf
1126 $(call gb_LinkTarget_add_defs
,$(1),\
1129 $(call gb_LinkTarget_set_include
,$(1),\
1133 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1137 gb_LinkTarget__use_redland_headers
:=
1139 gb_LinkTarget__use_raptor_headers
:=
1141 gb_LinkTarget__use_rasqal_headers
:=
1143 else # !SYSTEM_REDLAND
1145 define gb_LinkTarget__use_redland_headers
1146 $(call gb_LinkTarget_set_include
,$(1),\
1147 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1153 define gb_LinkTarget__use_raptor_headers
1154 $(call gb_LinkTarget_set_include
,$(1),\
1155 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1161 define gb_LinkTarget__use_rasqal_headers
1162 $(call gb_LinkTarget_set_include
,$(1),\
1163 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1169 ifneq ($(OS
),ANDROID
)
1172 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1178 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1185 define gb_LinkTarget__use_librdf
1187 $(call gb_LinkTarget_use_libraries
,$(1),\
1192 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
1194 $(call gb_LinkTarget_add_libs
,$(1),\
1195 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1196 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1204 define gb_LinkTarget__use_librdf
1205 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
1211 endif # SYSTEM_REDLAND
1214 ifneq ($(filter unx
,$(GUIBASE
))$(ENABLE_CAIRO_CANVAS
),) # or
1216 ifneq ($(SYSTEM_CAIRO
),)
1218 define gb_LinkTarget__use_cairo
1219 $(call gb_LinkTarget_set_include
,$(1),\
1223 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1224 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1228 else # !SYSTEM_CAIRO
1230 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1232 $(if
$(filter $(OS
),WNT
),,pixman
) \
1235 define gb_LinkTarget__use_cairo
1236 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1237 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1238 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1239 $(call gb_LinkTarget_set_include
,$(1),\
1240 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1241 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1244 $(call gb_LinkTarget_add_libs
,$(1),\
1245 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1246 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
1247 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1253 endif # SYSTEM_CAIRO
1257 ifneq ($(SYSTEM_FREETYPE
),)
1259 define gb_LinkTarget__use_freetype_headers
1260 $(call gb_LinkTarget_set_include
,$(1),\
1262 $(FREETYPE_CFLAGS
) \
1267 define gb_LinkTarget__use_freetype
1268 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1269 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1273 gb_ExternalProject__use_freetype
:=
1275 else ifneq (,$(or
$(findstring ANDROID
,$(OS
)),$(ENABLE_GLTF
)))
1277 define gb_LinkTarget__use_freetype_headers
1278 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1279 $(call gb_LinkTarget_set_include
,$(1),\
1280 -I
$(call gb_UnpackedTarball_get_dir
,freetype
)/include \
1286 define gb_LinkTarget__use_freetype
1287 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1288 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1292 define gb_ExternalProject__use_freetype
1293 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1297 endif # SYSTEM_FREETYPE
1299 ifneq ($(SYSTEM_FONTCONFIG
),)
1301 define gb_LinkTarget__use_fontconfig
1302 $(call gb_LinkTarget_set_include
,$(1),\
1304 $(FONTCONFIG_CFLAGS
) \
1307 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1311 else ifeq ($(OS
),ANDROID
)
1313 define gb_LinkTarget__use_fontconfig
1314 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1315 $(call gb_LinkTarget_set_include
,$(1),\
1316 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1322 endif # SYSTEM_FONTCONFIG
1324 ifneq ($(SYSTEM_GRAPHITE
),)
1326 define gb_LinkTarget__use_graphite
1327 $(call gb_LinkTarget_set_include
,$(1),\
1329 $(GRAPHITE_CFLAGS
) \
1331 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1335 else # !SYSTEM_GRAPHITE
1337 define gb_LinkTarget__use_graphite
1338 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1339 $(call gb_LinkTarget_set_include
,$(1),\
1340 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1343 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1349 endif # SYSTEM_GRAPHITE
1351 ifneq ($(SYSTEM_ICU
),)
1353 gb_LinkTarget__use_icu_headers
:=
1354 gb_ExternalProject__use_icu
:=
1356 define gb_LinkTarget__use_icudata
1357 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1360 define gb_LinkTarget__use_icui18n
1361 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1364 define gb_LinkTarget__use_icuuc
1365 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1371 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1375 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1381 define gb_LinkTarget__use_icu_headers
1382 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1383 $(call gb_LinkTarget_set_include
,$(1),\
1384 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1385 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1386 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1392 define gb_ExternalProject__use_icu
1393 $(call gb_ExternalProject_use_package
,$(1),icu
)
1397 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1398 define gb_LinkTarget__use_icudata
1399 $(call gb_LinkTarget_use_package
,$(1),icu
)
1402 $(call gb_LinkTarget_add_libs
,$(1),\
1403 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1406 $(call gb_LinkTarget_add_libs
,$(1),\
1407 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1413 define gb_LinkTarget__use_icui18n
1414 $(call gb_LinkTarget_use_package
,$(1),icu
)
1417 $(call gb_LinkTarget_add_libs
,$(1),\
1418 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1421 $(call gb_LinkTarget_add_libs
,$(1),\
1422 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1428 define gb_LinkTarget__use_icuuc
1429 $(call gb_LinkTarget_use_package
,$(1),icu
)
1432 $(call gb_LinkTarget_add_libs
,$(1),\
1433 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1436 $(call gb_LinkTarget_add_libs
,$(1),\
1437 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1445 ifeq ($(ENABLE_HARFBUZZ
),TRUE
)
1446 ifneq ($(SYSTEM_HARFBUZZ
),)
1448 define gb_LinkTarget__use_harfbuzz
1449 $(call gb_LinkTarget_set_include
,$(1),\
1451 $(HARFBUZZ_CFLAGS
) \
1453 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1457 else # SYSTEM_HARFBUZZ != TRUE
1459 define gb_LinkTarget__use_harfbuzz
1460 $(call gb_LinkTarget_set_include
,$(1),\
1461 $(HARFBUZZ_CFLAGS
) \
1464 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1465 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1469 endif # SYSTEM_HARFBUZZ
1470 else # ENABLE_HARFBUZZ != YES
1472 gb_LinkTarget__use_harfbuzz
:=
1474 endif # ENABLE_HARFBUZZ
1476 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1478 gb_ExternalProject__use_openssl
:=
1479 gb_LinkTarget__use_openssl_headers
:=
1480 gb_LinkTarget__use_openssl
:=
1482 else # !DISABLE_OPENSSL
1484 ifneq ($(SYSTEM_OPENSSL
),)
1486 gb_LinkTarget__use_openssl_headers
:=
1487 gb_ExternalProject__use_openssl
:=
1489 define gb_LinkTarget__use_openssl
1490 $(call gb_LinkTarget_set_include
,$(1),\
1494 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1498 else # !SYSTEM_OPENSSL
1500 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1504 define gb_ExternalProject__use_openssl
1505 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1509 define gb_LinkTarget__use_openssl_headers
1510 $(call gb_LinkTarget_set_include
,$(1),\
1511 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1517 define gb_LinkTarget__use_openssl
1518 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1520 $(call gb_LinkTarget_add_libs
,$(1),\
1521 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/ssleay32.lib \
1522 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/libeay32.lib \
1525 $(call gb_LinkTarget_add_libs
,$(1),\
1526 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1527 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1529 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1530 ifeq ($(OS
),SOLARIS
)
1531 $(call gb_LinkTarget_add_libs
,$(1),\
1540 endif # SYSTEM_OPENSSL
1541 endif # DISABLE_OPENSSL
1544 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1546 define gb_LinkTarget__use_gnutls
1547 $(call gb_LinkTarget_set_include
,$(1),\
1552 $(call gb_LinkTarget_add_defs
,$(1),\
1556 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1560 define gb_LinkTarget__use_libgcrypt
1561 $(call gb_LinkTarget_set_include
,$(1),\
1563 $(LIBGCRYPT_CFLAGS
) \
1566 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1570 else # !DISABLE_OPENSSL
1572 gb_LinkTarget__use_gnutls
:=
1573 gb_LinkTarget__use_libgcrypt
:=
1575 endif # DISABLE_OPENSSL
1578 ifneq ($(SYSTEM_CDR
),)
1580 define gb_LinkTarget__use_cdr
1581 $(call gb_LinkTarget_set_include
,$(1),\
1585 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1591 define gb_LinkTarget__use_cdr
1592 $(call gb_LinkTarget_set_include
,$(1),\
1593 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1596 $(call gb_LinkTarget_add_libs
,$(1),\
1597 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1599 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1605 ifneq ($(SYSTEM_EBOOK
),)
1607 define gb_LinkTarget__use_ebook
1608 $(call gb_LinkTarget_set_include
,$(1),\
1612 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1616 gb_ExternalProject__use_ebook
:=
1618 else # !SYSTEM_EBOOK
1620 define gb_LinkTarget__use_ebook
1621 $(call gb_LinkTarget_set_include
,$(1),\
1625 $(call gb_LinkTarget_add_libs
,$(1),\
1626 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1628 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1632 define gb_ExternalProject__use_ebook
1633 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1637 endif # SYSTEM_EBOOK
1640 ifneq ($(SYSTEM_ETONYEK
),)
1642 define gb_LinkTarget__use_etonyek
1643 $(call gb_LinkTarget_set_include
,$(1),\
1647 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1651 gb_ExternalProject__use_etonyek
:=
1653 else # !SYSTEM_ETONYEK
1655 define gb_LinkTarget__use_etonyek
1656 $(call gb_LinkTarget_set_include
,$(1),\
1660 $(call gb_LinkTarget_add_libs
,$(1),\
1661 $(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
/libetonyek-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1663 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1667 define gb_ExternalProject__use_etonyek
1668 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1672 endif # SYSTEM_ETONYEK
1675 ifneq ($(SYSTEM_FREEHAND
),)
1677 define gb_LinkTarget__use_freehand
1678 $(call gb_LinkTarget_set_include
,$(1),\
1680 $(FREEHAND_CFLAGS
) \
1682 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1686 gb_ExternalProject__use_freehand
:=
1688 else # !SYSTEM_FREEHAND
1690 define gb_LinkTarget__use_freehand
1691 $(call gb_LinkTarget_set_include
,$(1),\
1692 $(FREEHAND_CFLAGS
) \
1695 $(call gb_LinkTarget_add_libs
,$(1),\
1696 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1698 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1702 define gb_ExternalProject__use_freehand
1703 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1707 endif # SYSTEM_FREEHAND
1710 ifneq ($(SYSTEM_ODFGEN
),)
1712 define gb_LinkTarget__use_odfgen
1713 $(call gb_LinkTarget_set_include
,$(1),\
1717 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1721 else # !SYSTEM_ODFGEN
1723 define gb_LinkTarget__use_odfgen
1724 $(call gb_LinkTarget_set_include
,$(1),\
1725 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1728 $(call gb_LinkTarget_add_libs
,$(1),\
1729 $(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
/libodfgen-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1731 $(call gb_LinkTarget_use_external_project
,$(1),libodfgen
)
1735 endif # SYSTEM_ODFGEN
1738 ifneq ($(SYSTEM_ABW
),)
1740 define gb_LinkTarget__use_abw
1741 $(call gb_LinkTarget_set_include
,$(1),\
1745 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1748 gb_ExternalProject__use_abw
:=
1752 define gb_LinkTarget__use_abw
1753 $(call gb_LinkTarget_set_include
,$(1),\
1754 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1757 $(call gb_LinkTarget_add_libs
,$(1),\
1758 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1760 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1763 define gb_ExternalProject__use_abw
1764 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1771 ifneq ($(SYSTEM_MSPUB
),)
1773 define gb_LinkTarget__use_mspub
1774 $(call gb_LinkTarget_set_include
,$(1),\
1778 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1782 else # !SYSTEM_MSPUB
1784 define gb_LinkTarget__use_mspub
1785 $(call gb_LinkTarget_set_include
,$(1),\
1786 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1789 $(call gb_LinkTarget_add_libs
,$(1),\
1790 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1792 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1796 endif # SYSTEM_MSPUB
1799 ifneq ($(SYSTEM_VISIO
),)
1801 define gb_LinkTarget__use_visio
1802 $(call gb_LinkTarget_set_include
,$(1),\
1806 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
1810 else # !SYSTEM_VISIO
1812 define gb_LinkTarget__use_visio
1813 $(call gb_LinkTarget_set_include
,$(1),\
1814 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
1817 $(call gb_LinkTarget_add_libs
,$(1),\
1818 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.0
$(gb_StaticLibrary_PLAINEXT
) \
1820 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
1824 endif # SYSTEM_VISIO
1827 ifneq ($(SYSTEM_WPD
),)
1829 define gb_LinkTarget__use_wpd
1830 $(call gb_LinkTarget_set_include
,$(1),\
1834 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
1837 gb_ExternalProject__use_wpd
:=
1841 define gb_LinkTarget__use_wpd
1842 $(call gb_LinkTarget_set_include
,$(1),\
1846 $(call gb_LinkTarget_add_libs
,$(1),\
1847 $(call gb_UnpackedTarball_get_dir
,libwpd
)/src
/lib
/.libs
/libwpd-0.9
$(gb_StaticLibrary_PLAINEXT
) \
1849 $(call gb_LinkTarget_use_external_project
,$(1),libwpd
)
1852 define gb_ExternalProject__use_wpd
1853 $(call gb_ExternalProject_use_external_project
,$(1),libwpd
)
1860 ifneq ($(SYSTEM_WPG
),)
1862 define gb_LinkTarget__use_wpg
1863 $(call gb_LinkTarget_set_include
,$(1),\
1867 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
1870 gb_ExternalProject__use_wpg
:=
1874 define gb_LinkTarget__use_wpg
1875 $(call gb_LinkTarget_set_include
,$(1),\
1876 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
1879 $(call gb_LinkTarget_add_libs
,$(1),\
1880 $(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
/libwpg-0.2
$(gb_StaticLibrary_PLAINEXT
) \
1882 $(call gb_LinkTarget_use_external_project
,$(1),libwpg
)
1885 define gb_ExternalProject__use_wpg
1886 $(call gb_ExternalProject_use_external_project
,$(1),libwpg
)
1893 ifneq ($(SYSTEM_WPS
),)
1895 define gb_LinkTarget__use_wps
1896 $(call gb_LinkTarget_set_include
,$(1),\
1900 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
1903 gb_ExternalProject__use_wps
:=
1907 define gb_LinkTarget__use_wps
1908 $(call gb_LinkTarget_set_include
,$(1),\
1909 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
1912 $(call gb_LinkTarget_add_libs
,$(1),\
1913 $(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
/libwps-0.2
$(gb_StaticLibrary_PLAINEXT
) \
1915 $(call gb_LinkTarget_use_external_project
,$(1),libwps
)
1918 define gb_ExternalProject__use_wps
1919 $(call gb_ExternalProject_use_external_project
,$(1),libwps
)
1926 ifneq ($(SYSTEM_MWAW
),)
1928 define gb_LinkTarget__use_mwaw
1929 $(call gb_LinkTarget_set_include
,$(1),\
1933 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
1939 define gb_LinkTarget__use_mwaw
1940 $(call gb_LinkTarget_set_include
,$(1),\
1941 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
1944 $(call gb_LinkTarget_add_libs
,$(1),\
1945 $(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
/libmwaw-0.2
$(gb_StaticLibrary_PLAINEXT
) \
1947 $(call gb_LinkTarget_use_external_project
,$(1),libmwaw
)
1954 ifneq ($(SYSTEM_LCMS2
),)
1956 define gb_LinkTarget__use_lcms2
1957 $(call gb_LinkTarget_set_include
,$(1),\
1961 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
1965 gb_ExternalProject__use_lcms2
:=
1967 else # !SYSTEM_LCMS2
1969 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1973 define gb_ExternalProject__use_lcms2
1974 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
1978 ifeq ($(OS
),ANDROID
)
1980 define gb_LinkTarget__use_lcms2
1981 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
1982 $(call gb_LinkTarget_set_include
,$(1),\
1983 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
1991 define gb_LinkTarget__use_lcms2
1992 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
1993 $(call gb_LinkTarget_set_include
,$(1),\
1994 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
1997 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2002 endif # SYSTEM_LCMS2
2004 ifneq ($(ENABLE_LPSOLVE
),)
2006 ifneq ($(SYSTEM_LPSOLVE
),)
2008 define gb_LinkTarget__use_lpsolve
2009 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2010 $(call gb_LinkTarget_add_defs
,$(1),\
2016 else # !SYSTEM_LPSOLVE
2018 define gb_LinkTarget__use_lpsolve
2019 $(call gb_LinkTarget_use_unpacked
,$(1),lpsolve
)
2021 $(call gb_LinkTarget_add_libs
,$(1),\
2022 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2025 $(call gb_LinkTarget_add_libs
,$(1),\
2026 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2029 $(call gb_LinkTarget_set_include
,$(1),\
2030 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2036 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2040 endif # SYSTEM_LPSOLVE
2044 gb_LinkTarget__use_lpsolve
:=
2046 endif # ENABLE_LPSOLVE
2048 ifneq ($(ENABLE_COINMP
),)
2050 define gb_LinkTarget__use_coinmp
2051 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2053 $(call gb_LinkTarget_add_libs
,$(1),\
2054 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2057 $(call gb_LinkTarget_add_libs
,$(1),\
2058 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2059 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2060 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2061 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2062 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2063 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2064 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2067 $(call gb_LinkTarget_set_include
,$(1),\
2068 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2074 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2080 gb_LinkTarget__use_coinmp
:=
2082 endif # ENABLE_COINMP
2084 ifeq ($(ENABLE_GIO
),TRUE
)
2086 define gb_LinkTarget__use_gio
2087 $(call gb_LinkTarget_set_include
,$(1),\
2092 $(call gb_LinkTarget_add_defs
,$(1),\
2096 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2102 define gb_LinkTarget__use_gio
2108 ifeq ($(ENABLE_AVAHI
),TRUE
)
2110 define gb_LinkTarget__use_avahi
2111 $(call gb_LinkTarget_set_include
,$(1),\
2116 $(call gb_LinkTarget_add_defs
,$(1),\
2120 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2126 gb_LinkTarget__use_avahi
:=
2128 endif # ENABLE_AVAHI
2131 define gb_LinkTarget__use_gtk
2132 $(call gb_LinkTarget_set_include
,$(1),\
2137 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_LIBS
))
2139 ifeq ($(ENABLE_GTK_PRINT
),TRUE
)
2141 $(call gb_LinkTarget_add_defs
,$(1),-DENABLE_GTK_PRINT
)
2143 $(call gb_LinkTarget_set_include
,$(1),\
2145 $(GTK_PRINT_CFLAGS
) \
2148 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_PRINT_LIBS
))
2154 define gb_LinkTarget__use_gthread
2155 $(call gb_LinkTarget_add_libs
,$(1),$(GTHREAD_LIBS
))
2158 ifeq ($(ENABLE_CUPS
),TRUE
)
2160 define gb_LinkTarget__use_cups
2161 $(call gb_LinkTarget_add_defs
,$(1),\
2165 $(call gb_LinkTarget_add_libs
,$(1),\
2173 define gb_LinkTarget__use_cups
2179 ifeq ($(ENABLE_DBUS
),TRUE
)
2181 define gb_LinkTarget__use_dbus
2182 $(call gb_LinkTarget_set_include
,$(1),\
2187 $(call gb_LinkTarget_add_defs
,$(1),\
2191 ifeq ($(ENABLE_PACKAGEKIT
),TRUE
)
2192 $(call gb_LinkTarget_add_defs
,$(1),\
2193 -DENABLE_PACKAGEKIT \
2195 endif # ENABLE_PACKAGEKIT
2197 $(call gb_LinkTarget_add_libs
,$(1),\
2205 define gb_LinkTarget__use_dbus
2212 define gb_LinkTarget__use_dbusmenugtk
2213 $(call gb_LinkTarget_set_include
,$(1),\
2215 $(DBUSMENUGTK_CFLAGS
) \
2218 $(call gb_LinkTarget_add_libs
,$(1),$(DBUSMENUGTK_LIBS
))
2223 ifeq ($(ENABLE_TELEPATHY
),TRUE
)
2225 define gb_LinkTarget__use_telepathy
2226 $(call gb_LinkTarget_set_include
,$(1),\
2228 $(TELEPATHY_CFLAGS
) \
2231 $(call gb_LinkTarget_add_libs
,$(1),\
2237 else # !ENABLE_TELEPATHY
2239 gb_LinkTarget__use_telepathy
:=
2241 endif # ENABLE_TELEPATHY
2243 ifneq ($(SYSTEM_LIBPNG
),)
2245 define gb_LinkTarget__use_png
2246 $(call gb_LinkTarget_set_include
,$(1),\
2251 $(call gb_LinkTarget_add_libs
,$(1),\
2257 else # !SYSTEM_LIBPNG
2259 define gb_LinkTarget__use_png
2260 $(call gb_LinkTarget_set_include
,$(1),\
2264 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2267 $(call gb_LinkTarget__use_zlib
,$(1))
2271 endif # !SYSTEM_LIBPNG
2274 ifneq ($(SYSTEM_CURL
),)
2276 define gb_LinkTarget__use_curl
2277 $(call gb_LinkTarget_set_include
,$(1),\
2281 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2287 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2291 define gb_LinkTarget__use_curl
2292 $(call gb_LinkTarget_use_package
,$(1),curl
)
2293 $(call gb_LinkTarget_set_include
,$(1),\
2294 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2299 $(call gb_LinkTarget_add_libs
,$(1),\
2300 $(call gb_UnpackedTarball_get_dir
,curl
)/lib
/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
)_imp.lib \
2303 $(call gb_LinkTarget_add_libs
,$(1),\
2304 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2312 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2314 define gb_LinkTarget__use_valgrind
2315 $(call gb_LinkTarget_add_defs
,$(1),\
2316 -DHAVE_VALGRIND_HEADERS \
2319 $(call gb_LinkTarget_set_include
,$(1),\
2321 $(VALGRIND_CFLAGS
) \
2326 else # !ENABLE_VALGRIND
2328 define gb_LinkTarget__use_valgrind
2332 endif # ENABLE_VALGRIND
2334 ifneq ($(SYSTEM_POPPLER
),)
2336 define gb_LinkTarget__use_poppler
2337 $(call gb_LinkTarget_set_include
,$(1),\
2342 $(call gb_LinkTarget_add_libs
,$(1),\
2348 else # !SYSTEM_POPPLER
2350 define gb_LinkTarget__use_poppler
2351 $(call gb_LinkTarget_use_external_project
,$(1),poppler
)
2353 $(call gb_LinkTarget_set_include
,$(1),\
2354 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2355 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2356 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2360 $(call gb_LinkTarget_add_libs
,$(1),\
2361 $(call gb_UnpackedTarball_get_dir
,poppler
)/fofi
/.libs
/libfofi
$(gb_StaticLibrary_PLAINEXT
) \
2362 $(call gb_UnpackedTarball_get_dir
,poppler
)/goo
/.libs
/libgoo
$(gb_StaticLibrary_PLAINEXT
) \
2363 $(call gb_UnpackedTarball_get_dir
,poppler
)/poppler
/.libs
/libpoppler
$(gb_StaticLibrary_PLAINEXT
) \
2367 $(call gb_LinkTarget_add_libs
,$(1),\
2370 else ifeq ($(OS
),WNT
)
2371 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2379 endif # SYSTEM_POPPLER
2382 ifneq ($(SYSTEM_CLUCENE
),)
2384 define gb_LinkTarget__use_clucene
2385 $(call gb_LinkTarget_add_defs
,$(1),\
2386 $(filter-out -I
%,$(CLUCENE_CFLAGS
)) \
2389 $(call gb_LinkTarget_set_include
,$(1),\
2390 $(filter -I
%,$(CLUCENE_CFLAGS
)) \
2394 $(call gb_LinkTarget_add_libs
,$(1),\
2400 else # !SYSTEM_CLUCENE
2402 define gb_LinkTarget__use_clucene
2403 $(call gb_LinkTarget_set_include
,$(1),\
2404 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2405 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2406 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2410 $(call gb_LinkTarget_use_libraries
,$(1),\
2416 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2420 endif # SYSTEM_CLUCENE
2422 define gb_LinkTarget__use_gobject
2423 $(call gb_LinkTarget_add_libs
,$(1),\
2427 $(call gb_LinkTarget_set_include
,$(1),\
2433 ifneq ($(SYSTEM_HSQLDB
),)
2435 define gb_LinkTarget__use_hsqldb
2437 $(call gb_LinkTarget_add_defs
,$(1),\
2439 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2444 else # !SYSTEM_HSQLDB
2446 define gb_LinkTarget__use_hsqldb
2450 endif # SYSTEM_HSQLDB
2453 ifneq ($(SYSTEM_OPENLDAP
),)
2455 define gb_LinkTarget__use_openldap
2457 $(call gb_LinkTarget_add_libs
,$(1),\
2464 gb_ExternalProject__use_openldap
:=
2466 else # !SYSTEM_OPENLDAP
2468 define gb_LinkTarget__use_openldap
2469 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2470 $(call gb_LinkTarget_set_include
,$(1),\
2471 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2474 $(call gb_LinkTarget_use_external_project
,$(1),openldap
)
2475 $(call gb_LinkTarget_add_libs
,$(1), \
2476 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2477 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2482 define gb_ExternalProject__use_openldap
2483 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2487 endif # SYSTEM_OPENLDAP
2490 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2492 ifneq ($(SYSTEM_FIREBIRD
),)
2494 define gb_LinkTarget__use_libfbembed
2495 $(call gb_LinkTarget_set_include
,$(1),\
2496 $(FIREBIRD_CFLAGS
) \
2499 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2503 # gb_LinkTarget__use_atomic_ops :=
2504 # gb_LinkTarget__use_tommath :=
2506 else # !SYSTEM_FIREBIRD
2508 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2510 define gb_LinkTarget__use_libfbembed
2511 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2512 $(call gb_LinkTarget_set_include
,$(1),\
2514 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/include \
2517 $(call gb_LinkTarget_add_libs
,$(1),\
2518 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/bin
/ifbembed.lib \
2521 $(call gb_LinkTarget_add_libs
,$(1),\
2522 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/lib
-lfbembed \
2528 # define gb_LinkTarget__use_tommath
2529 # $(call gb_LinkTarget_set_include,$(1),\
2530 # $(TOMMATH_CFLAGS) \
2534 # $(call gb_LinkTarget_add_libs,$(1),$(TOMMATH_LIBS))
2538 endif # SYSTEM_FIREBIRD
2540 else # !ENABLE_FIREBIRD_SDBC
2542 gb_LinkTarget__use_firebird
:=
2543 # gb_LinkTarget__use_atomic_ops :=
2544 # gb_LinkTarget__use_tommath :=
2546 endif # ENABLE_FIREBIRD_SDBC
2549 ifneq ($(SYSTEM_POSTGRESQL
),)
2551 define gb_LinkTarget__use_postgresql
2553 $(call gb_LinkTarget_set_include
,$(1),\
2558 $(call gb_LinkTarget_add_libs
,$(1),\
2562 $(call gb_LinkTarget_add_ldflags
,$(1),\
2568 else # !SYSTEM_POSTGRESQL
2570 define gb_LinkTarget__use_postgresql
2572 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
)
2574 $(call gb_LinkTarget_set_include
,$(1),\
2575 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
2576 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
2580 $(call gb_LinkTarget_add_libs
,$(1),\
2581 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
2584 ifeq ($(OS
)$(COM
),WNTMSC
)
2585 $(call gb_LinkTarget_use_external
,$(1),openssl
)
2587 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2596 endif # SYSTEM_POSTGRESQL
2598 ifneq ($(WITH_MOZAB4WIN
),)
2600 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2604 define gb_LinkTarget__use_mozilla
2606 $(call gb_LinkTarget_use_unpacked
,$(1),moz_lib
)
2607 $(call gb_LinkTarget_use_unpacked
,$(1),moz_inc
)
2609 $(call gb_LinkTarget_add_defs
,$(1),\
2610 -DMOZILLA_INTERNAL_API \
2613 $(call gb_LinkTarget_set_include
,$(1),\
2614 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
) \
2615 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/addrbook \
2616 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/content \
2617 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/embed_base \
2618 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/intl \
2619 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mime \
2620 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mozldap \
2621 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/msgbase \
2622 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/necko \
2623 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/pref \
2624 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/profile \
2625 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/rdf \
2626 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/string \
2627 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/uconv \
2628 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom \
2629 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom_obsolete \
2633 $(call gb_LinkTarget_add_libs
,$(1),\
2634 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
2635 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom.lib \
2636 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom_core.lib \
2639 $(call gb_LinkTarget_add_defs
,$(1),\
2642 -DMOZ_REFLOW_PERF_DSP \
2654 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2659 -Woverloaded-virtual \
2667 ifneq ($(DBG_LEVEL
),0)
2668 $(call gb_LinkTarget_add_defs
,$(1),\
2669 -D_STL_NOFORCE_MANIFEST \
2673 $(call gb_LinkTarget_add_libs
,$(1),\
2674 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/embed_base_s.lib \
2675 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/mozreg_s.lib \
2682 endif # WITH_MOZAB4WIN
2684 ifeq ($(ENABLE_KDE
),TRUE
)
2686 define gb_LinkTarget__use_kde
2687 $(call gb_LinkTarget_set_include
,$(1),\
2688 $(filter -I
%,$(KDE_CFLAGS
)) \
2692 $(call gb_LinkTarget_add_defs
,$(1),\
2693 $(filter-out -I
%,$(KDE_CFLAGS
)) \
2696 $(call gb_LinkTarget_add_libs
,$(1),\
2701 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2710 define gb_LinkTarget__use_kde
2717 ifeq ($(ENABLE_KDE4
),TRUE
)
2719 define gb_LinkTarget__use_kde4
2720 $(call gb_LinkTarget_set_include
,$(1),\
2721 $(filter -I
%,$(KDE4_CFLAGS
)) \
2725 $(call gb_LinkTarget_add_defs
,$(1),\
2726 $(filter-out -I
%,$(KDE4_CFLAGS
)) \
2729 $(call gb_LinkTarget_add_libs
,$(1),\
2734 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2743 define gb_LinkTarget__use_kde4
2750 ifeq ($(ENABLE_TDE
),TRUE
)
2752 define gb_LinkTarget__use_tde
2753 $(call gb_LinkTarget_add_libs
,$(1),\
2757 $(call gb_LinkTarget_set_include
,$(1),\
2765 define gb_LinkTarget__use_tde
2772 ifeq ($(ENABLE_GCONF
),TRUE
)
2774 define gb_LinkTarget__use_gconf
2775 $(call gb_LinkTarget_set_include
,$(1),\
2776 $(filter -I
%,$(GCONF_CFLAGS
)) \
2780 $(call gb_LinkTarget_add_defs
,$(1),\
2781 $(filter-out -I
%,$(GCONF_CFLAGS
)) \
2784 $(call gb_LinkTarget_add_libs
,$(1),\
2790 else # !ENABLE_GCONF
2792 define gb_LinkTarget__use_gconf
2796 endif # ENABLE_GCONF
2800 # extra python_headers external because pyuno wrapper must not link python
2801 ifneq ($(SYSTEM_PYTHON
),)
2803 define gb_LinkTarget__use_python_headers
2804 $(call gb_LinkTarget_add_defs
,$(1),\
2805 $(filter-out -I
%,$(PYTHON_CFLAGS
)) \
2808 $(call gb_LinkTarget_set_include
,$(1),\
2809 $(filter -I
%,$(PYTHON_CFLAGS
)) \
2815 define gb_LinkTarget__use_python
2816 $(call gb_LinkTarget__use_python_headers
,$(1))
2818 $(call gb_LinkTarget_add_libs
,$(1),\
2824 else # !SYSTEM_PYTHON
2826 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
2830 # depend on external project because on MACOSX the Package is disabled...
2831 define gb_LinkTarget__use_python_headers
2832 $(call gb_LinkTarget_use_external_project
,$(1),python3
)
2833 $(call gb_LinkTarget_set_include
,$(1),\
2834 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
2835 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
2836 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
2842 define gb_LinkTarget__use_python
2843 $(call gb_LinkTarget__use_python_headers
,$(1))
2846 $(call gb_LinkTarget_add_libs
,$(1),\
2847 $(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 \
2849 else ifeq ($(OS
),MACOSX
)
2850 $(call gb_LinkTarget_add_libs
,$(1),\
2851 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
2854 $(call gb_LinkTarget_add_libs
,$(1),\
2855 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
2856 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
2862 endif # SYSTEM_PYTHON
2865 ifeq ($(ENABLE_ORCUS
),TRUE
)
2867 ifneq ($(SYSTEM_LIBORCUS
),)
2869 define gb_LinkTarget__use_orcus
2870 $(call gb_LinkTarget_set_include
,$(1),\
2874 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
2877 define gb_LinkTarget__use_orcus-parser
2881 else # !SYSTEM_LIBORCUS
2883 define gb_LinkTarget__use_orcus
2884 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
2885 $(call gb_LinkTarget_set_include
,$(1),\
2886 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
2889 $(call gb_LinkTarget_add_libs
,$(1),\
2890 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
/liborcus-0.8
$(gb_StaticLibrary_PLAINEXT
) \
2893 $(if
$(SYSTEM_BOOST
), \
2894 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
2895 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
2900 define gb_LinkTarget__use_orcus-parser
2901 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
2902 $(call gb_LinkTarget_set_include
,$(1),\
2903 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
2906 $(call gb_LinkTarget_add_libs
,$(1),\
2907 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
/liborcus-parser-0.8
$(gb_StaticLibrary_PLAINEXT
) \
2912 endif # SYSTEM_LIBORCUS
2914 else # ENABLE_ORCUS != TRUE
2916 gb_LinkTarget__use_orcus
:=
2917 gb_LinkTarget__use_orcus-parser
:=
2921 ifeq ($(ENABLE_EOT
),TRUE
)
2923 ifneq ($(SYSTEM_LIBEOT
),)
2925 define gb_LinkTarget__use_libeot
2926 $(call gb_LinkTarget_set_include
,$(1),\
2930 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
2934 gb_ExternalProject__use_libeot
:=
2936 else # !SYSTEM_LIBEOT
2938 define gb_LinkTarget__use_libeot
2939 $(call gb_LinkTarget_set_include
,$(1),\
2940 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
2943 $(call gb_LinkTarget_add_libs
,$(1),\
2944 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
2946 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
2950 define gb_ExternalProject__use_libeot
2951 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
2955 endif # SYSTEM_LIBEOT
2959 gb_LinkTarget__use_libeot
:=
2960 gb_ExternalProject__use_libeot
:=
2966 ifeq ($(GUIBASE
),unx
)
2968 ifeq ($(XRANDR_DLOPEN
),FALSE
)
2970 define gb_LinkTarget__use_Xrandr
2971 $(call gb_LinkTarget_set_include
,$(1),\
2976 $(call gb_LinkTarget_add_libs
,$(1),\
2981 else # XRANDR_DLOPEN
2983 define gb_LinkTarget__use_Xrandr
2984 $(call gb_LinkTarget_add_defs
,$(1),\
2989 endif # XRANDR_DLOPEN
2991 define gb_LinkTarget__use_Xrender
2992 $(call gb_LinkTarget_set_include
,$(1),\
2997 $(call gb_LinkTarget_add_libs
,$(1),\
3005 gb_ExternalProject__use_nss3
:=
3007 ifeq (,$(filter DESKTOP
,$(BUILD_TYPE
)))
3009 gb_LinkTarget__use_nss3
:=
3013 ifneq ($(SYSTEM_NSS
),)
3015 define gb_LinkTarget__use_nss3
3016 $(call gb_LinkTarget_add_defs
,$(1),\
3020 $(call gb_LinkTarget_set_include
,$(1),\
3025 $(call gb_LinkTarget_add_libs
,$(1),\
3031 define gb_LinkTarget__use_plc4
3032 $(call gb_LinkTarget__use_nss3
,$(1))
3036 define gb_LinkTarget__use_ssl3
3037 $(call gb_LinkTarget__use_nss3
,$(1))
3043 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3047 define gb_LinkTarget__use_nss3
3048 $(call gb_LinkTarget_use_package
,$(1),nss
)
3049 $(call gb_LinkTarget_set_include
,$(1),\
3051 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3052 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3056 $(call gb_LinkTarget_add_libs
,$(1),\
3057 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3058 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3059 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3062 $(call gb_LinkTarget_add_libs
,$(1),\
3063 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3072 define gb_LinkTarget__use_plc4
3073 $(call gb_LinkTarget_use_package
,$(1),nss
)
3075 $(call gb_LinkTarget_add_libs
,$(1),\
3076 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3079 $(call gb_LinkTarget_add_libs
,$(1),\
3080 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3086 define gb_LinkTarget__use_ssl3
3087 $(call gb_LinkTarget_use_package
,$(1),nss
)
3089 $(call gb_LinkTarget_add_libs
,$(1),\
3090 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3093 $(call gb_LinkTarget_add_libs
,$(1),\
3094 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3100 define gb_ExternalProject__use_nss3
3101 $(call gb_ExternalProject_use_package
,$(1),nss
)
3110 ifeq ($(ENABLE_GLTF
),TRUE
)
3112 define gb_LinkTarget__use_libgltf
3113 $(call gb_LinkTarget_set_include
,$(1),\
3114 -I
$(call gb_UnpackedTarball_get_dir
,libgltf
)/inc \
3118 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3123 define gb_LinkTarget__use_opencollada_parser
3124 $(call gb_LinkTarget_set_include
,$(1),\
3125 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADABaseUtils
/include \
3126 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADAFramework
/include \
3127 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADASaxFrameworkLoader
/include \
3128 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/GeneratedSaxParser
/include \
3132 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3133 opencollada_parser \
3137 define gb_LinkTarget__use_collada2gltf
3138 $(call gb_LinkTarget_set_include
,$(1),\
3139 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
) \
3140 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/assetModifiers \
3141 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/GLTF \
3142 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/helpers \
3143 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/JSON \
3144 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/dependencies
/json
/include/rapidjson
/ \
3148 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3155 ### Jars ############################################################
3157 ifneq ($(SYSTEM_HSQLDB
),)
3159 define gb_Jar__use_hsqldb
3160 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3162 define gb_JunitTest__use_hsqldb
3163 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3166 else # !SYSTEM_HSQLDB
3168 ifeq ($(ENABLE_JAVA
),TRUE
)
3169 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3174 define gb_Jar__use_hsqldb
3175 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3177 define gb_JunitTest__use_hsqldb
3178 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3181 endif # SYSTEM_HSQLDB
3184 ifneq ($(SYSTEM_BSH
),)
3186 define gb_Jar__use_bsh
3187 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3192 ifeq ($(ENABLE_JAVA
),TRUE
)
3193 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3198 define gb_Jar__use_bsh
3199 $(call gb_Jar_use_jar
,$(1),bsh
)
3205 ifneq ($(SYSTEM_RHINO
),)
3207 define gb_Jar__use_rhino
3208 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3211 else # !SYSTEM_RHINO
3213 ifeq ($(ENABLE_JAVA
),TRUE
)
3214 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3219 define gb_Jar__use_rhino
3220 $(call gb_Jar_use_jar
,$(1),js
)
3223 endif # SYSTEM_RHINO
3225 ifneq ($(SYSTEM_APACHE_COMMONS
),)
3227 define gb_Jar__use_commons-codec
3228 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_CODEC_JAR
))
3230 gb_ExternalProject__use_commons-codec
:=
3232 define gb_Jar__use_commons-httpclient
3233 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_HTTPCLIENT_JAR
))
3235 gb_ExternalProject__use_commons-httpclient
:=
3237 define gb_Jar__use_commons-lang
3238 $(call gb_Jar_usadd_linked_libse_system_jar
,$(1),$(COMMONS_LANG_JAR
))
3240 gb_ExternalProject__use_commons-lang
:=
3242 define gb_Jar__use_commons-logging
3243 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
3245 gb_ExternalProject__use_commons-logging
:=
3247 else # !SYSTEM_APACHE_COMMONS
3249 ifeq ($(ENABLE_JAVA
),TRUE
)
3250 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3251 commons-logging-1.1
.3 \
3254 $(eval
$(call gb_Helper_register_jars
,OXT
,\
3255 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9
,commons-codec-1.6
) \
3256 commons-httpclient-3.1 \
3257 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4
) \
3260 define gb_Jar__use_commons-codec
3261 $(call gb_Jar_use_external_project
,$(1),apache_commons_codec
)
3262 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_codec
)\
3263 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/dist/commons-codec-1.9.jar
,/dist/commons-codec-1.6.jar
),\
3264 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9.jar
,commons-codec-1.6.jar
)\
3267 define gb_ExternalProject__use_commons-codec
3268 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_codec
)
3271 define gb_Jar__use_commons-httpclient
3272 $(call gb_Jar_use_external_project
,$(1),apache_commons_httpclient
)
3273 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_httpclient
)/dist/commons-httpclient.jar
,commons-httpclient-3.1.jar
)
3275 define gb_ExternalProject__use_commons-httpclient
3276 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_httpclient
)
3279 define gb_Jar__use_commons-lang
3280 $(call gb_Jar_use_external_project
,$(1),apache_commons_lang
)
3281 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_lang
)\
3282 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/target
/commons-lang3-3.3
.1.jar
,/dist/commons-lang-2.4.jar
),\
3283 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4.jar
)\
3286 define gb_ExternalProject__use_commons-lang
3287 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_lang
)
3290 define gb_Jar__use_commons-logging
3291 $(call gb_Jar_use_external_project
,$(1),apache_commons_logging
)
3292 $(call gb_Jar_use_jar
,$(1),commons-logging-1.1
.3)
3294 define gb_ExternalProject__use_commons-logging
3295 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
3298 endif # SYSTEM_APACHE_COMMONS
3301 ifneq ($(SYSTEM_JFREEREPORT
),)
3303 define gb_Jar__use_flow-engine
3304 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3307 define gb_Jar__use_flute
3308 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3311 define gb_Jar__use_libbase
3312 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3315 define gb_Jar__use_libfonts
3316 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3319 define gb_Jar__use_libformula
3320 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3323 define gb_Jar__use_liblayout
3324 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3327 define gb_Jar__use_libloader
3328 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3331 define gb_Jar__use_librepository
3332 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3335 define gb_Jar__use_libserializer
3336 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3339 define gb_Jar__use_libxml
3340 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3343 define gb_Jar__use_sac
3344 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3347 else # !SYSTEM_JFREEREPORT
3349 ifeq ($(ENABLE_JAVA
),TRUE
)
3350 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3358 librepository-1.1
.6 \
3359 libserializer-1.1
.6 \
3365 define gb_Jar__use_flow-engine
3366 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3369 define gb_Jar__use_flute
3370 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3373 define gb_Jar__use_libbase
3374 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3377 define gb_Jar__use_libfonts
3378 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3381 define gb_Jar__use_libformula
3382 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3385 define gb_Jar__use_liblayout
3386 $(call gb_Jar_use_jar
,$(1),liblayout
)
3389 define gb_Jar__use_libloader
3390 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3393 define gb_Jar__use_librepository
3394 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3397 define gb_Jar__use_libserializer
3398 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3401 define gb_Jar__use_libxml
3402 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3405 define gb_Jar__use_sac
3406 $(call gb_Jar_use_jar
,$(1),sac
)
3409 endif # SYSTEM_JFREEREPORT
3414 # FIXME: the library target should be for build too
3415 define gb_Executable__register_bestreversemap
3416 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3417 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3421 # TODO depending on the whole URE might be overkill, but I do not have a
3422 # Windows machine to debug it...
3423 # FIXME: the library target should be for build too
3424 define gb_Executable__register_climaker
3425 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3426 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3427 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3428 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3429 $(call gb_UnoApi_get_target
,udkapi
) \
3433 define gb_Executable__register_cppumaker
3434 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3435 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3439 gb_Gallery__UNO_COMPONENTS
:= \
3440 comphelper
/util
/comphelp \
3441 configmgr
/source
/configmgr \
3442 drawinglayer
/drawinglayer \
3443 framework
/util
/fwk \
3444 i18npool
/util
/i18npool \
3445 package
/source
/xstor
/xstor \
3446 package
/util
/package2 \
3447 sax
/source
/expatwrap
/expwrap \
3452 ucb
/source
/core
/ucb1 \
3453 ucb
/source
/ucp
/file
/ucpfile1 \
3454 unoxml
/source
/service
/unoxml
3456 # This is used to determine what we need for 'build' platform.
3457 define gb_Executable__register_gengal
3458 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3459 $(foreach component
,$(gb_Gallery__UNO_COMPONENTS
) \
3460 ,$(call gb_ComponentTarget_get_target_for_build
,$(component
))) \
3461 $(call gb_AllLangResTarget_get_target
,ofa
) \
3462 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3463 $(if
$(filter-out MACOSX WNT
,$(OS_FOR_BUILD
)),$(if
$(ENABLE_HEADLESS
),, \
3464 $(call gb_Library_get_target
,vclplug_svp
) \
3466 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3467 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3468 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3469 $(call gb_UnoApi_get_target
,offapi
) \
3470 $(call gb_UnoApi_get_target
,udkapi
) \
3474 ifeq ($(SYSTEM_ICU
),)
3476 define gb_Executable__register_gendict
3477 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3478 $(call gb_Package_get_target_for_build
,icu
) \
3484 define gb_Executable__register_idlc
3485 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3486 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3490 define gb_Executable__register_localize
3491 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3492 $(foreach exec
,cfgex helpex propex transex3 treex uiex ulfex xrmex
,\
3493 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3498 # FIXME ure/services.rdb needs cleanup
3499 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3500 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3501 # FIXME: the library target should be for build too
3502 define gb_Executable__register_saxparser
3503 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3504 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3505 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3506 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3507 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3508 $(call gb_UnoApi_get_target
,udkapi
) \
3512 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3513 # required due to the settings for URE_SERVICES and URE_TYPES in
3514 # cppuhelper/source/unorc
3515 # FIXME: the library target should be for build too
3516 define gb_Executable__register_uno
3517 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3518 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3519 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3520 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3521 $(call gb_UnoApi_get_target
,udkapi
) \
3526 # External executables
3528 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3530 gb_ExternalExecutable__register_xmllint
:=
3532 else # ! SYSTEM_LIBXML_FOR_BUILD
3534 define gb_ExternalExecutable__register_xmllint
3535 $(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
)
3536 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,$(call gb_Package_get_target
,xml2
))
3540 endif # SYSTEM_LIBXML_FOR_BUILD
3542 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3544 gb_ExternalExecutable__register_xsltproc
:=
3546 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3548 define gb_ExternalExecutable__register_xsltproc
3549 $(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
)
3550 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,$(call gb_Package_get_target
,xslt
))
3554 endif # SYSTEM_LIBXSLT_FOR_BUILD
3556 ifneq (,$(SYSTEM_UCPP
))
3558 gb_ExternalExecutable__register_ucpp
:=
3560 else # ! SYSTEM_UCPP
3562 define gb_ExternalExecutable__register_ucpp
3563 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3569 ifeq (,$(PYTHON_FOR_BUILD
))
3571 define gb_ExternalExecutable__register_python
3574 # use set_external, to avoid having the command added as prerequisite for the
3575 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3576 # matching rule to build that specific file)
3577 $(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
))
3578 # the Zip ensures that internal python has been built (cannot use the Package
3579 # target, as that is not used on Mac)
3580 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3584 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
3585 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
3586 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
3594 define gb_ExternalExecutable__register_python
3595 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
3599 endif # PYTHON_FOR_BUILD
3601 ifneq ($(SYSTEM_GENBRK
),)
3603 define gb_ExternalExecutable__register_genbrk
3604 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
3608 else # ! SYSTEM_GENBRK
3610 define gb_ExternalExecutable__register_genbrk
3611 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
3612 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3613 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
3614 $(call gb_Package_get_target_for_build
,icu
) \
3621 ifneq ($(SYSTEM_GENCCODE
),)
3623 define gb_ExternalExecutable__register_genccode
3624 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
3628 else # ! SYSTEM_GENCCODE
3630 define gb_ExternalExecutable__register_genccode
3631 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
3632 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3633 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
3634 $(call gb_Package_get_target_for_build
,icu
) \
3641 ifneq ($(SYSTEM_GENCMN
),)
3643 define gb_ExternalExecutable__register_gencmn
3644 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
3648 else # ! SYSTEM_GENCMN
3650 define gb_ExternalExecutable__register_gencmn
3651 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
3652 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3653 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
3654 $(call gb_Package_get_target_for_build
,icu
) \
3661 # vim: set noet sw=4 ts=4: