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 ifeq ($(SYSTEM_MARIADB
),YES
)
34 define gb_LinkTarget__use_mariadb
35 $(call gb_LinkTarget_set_include
,$(1),\
39 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
42 gb_ExternalProject__use_mariadb
:=
44 else # !SYSTEM_MARIADB
46 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
50 define gb_LinkTarget__use_mariadb
51 $(call gb_LinkTarget_set_include
,$(1),\
55 $(call gb_LinkTarget_use_static_libraries
,$(1),\
60 define gb_ExternalProject__use_mariadb
61 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadblib
)
65 endif # SYSTEM_MARIADB
68 ifeq ($(SYSTEM_MESA_HEADERS
),YES
)
70 gb_LinkTarget__use_mesa_headers
:=
74 define gb_LinkTarget__use_mesa_headers
75 $(call gb_LinkTarget_set_include
,$(1),\
76 -I
$(SRCDIR
)/Mesa
/inc \
84 ifeq ($(SYSTEM_NPAPI_HEADERS
),YES
)
86 # yes this uses internal headers too...
87 # they are split across 2 dirs for this reason
88 define gb_LinkTarget__use_npapi_headers
89 $(call gb_LinkTarget_set_include
,$(1),\
90 $(NPAPI_HEADERS_CFLAGS
) \
97 else #!SYSTEM_NPAPI_HEADERS
99 define gb_LinkTarget__use_npapi_headers
100 $(call gb_LinkTarget_set_include
,$(1),\
101 -I
$(SRCDIR
)/np_sdk
/inc \
108 endif #SYSTEM_NPAPI_HEADERS
110 ifeq ($(SYSTEM_ODBC_HEADERS
),YES
)
112 define gb_LinkTarget__use_odbc_headers
113 $(call gb_LinkTarget_add_defs
,$(1),\
114 -DSYSTEM_ODBC_HEADERS \
121 define gb_LinkTarget__use_odbc_headers
122 $(call gb_LinkTarget_set_include
,$(1),\
123 -I
$(SRCDIR
)/unixODBC
/inc \
131 ifeq ($(SYSTEM_VIGRA
),YES
)
133 gb_LinkTarget__use_vigra_headers
:=
137 define gb_LinkTarget__use_vigra_headers
138 $(call gb_LinkTarget_use_unpacked
,$(1),vigra
)
139 $(call gb_LinkTarget_set_include
,$(1),\
140 -I
$(call gb_UnpackedTarball_get_dir
,vigra
/include) \
148 ifeq ($(SYSTEM_MDDS
),YES
)
150 gb_LinkTarget__use_mdds_headers
:=
154 define gb_LinkTarget__use_mdds_headers
155 $(call gb_LinkTarget_use_unpacked
,$(1),mdds
)
156 $(call gb_LinkTarget_set_include
,$(1),\
157 -I
$(call gb_UnpackedTarball_get_dir
,mdds
/include) \
165 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
167 define gb_LinkTarget__use_sane_headers
168 $(call gb_LinkTarget_set_include
,$(1),\
169 -I
$(SRCDIR
)/$(if
$(filter WNT
,$(OS
)),twain
,sane
)/inc \
177 gb_LinkTarget__use_sane_headers
:=
183 ifeq ($(SYSTEM_CPPUNIT
),YES
)
185 define gb_LinkTarget__use_cppunit
186 $(call gb_LinkTarget_set_include
,$(1),\
191 $(call gb_LinkTarget_add_libs
,$(1),\
199 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_NONE
,\
203 define gb_LinkTarget__use_cppunit
204 $(call gb_LinkTarget_use_package
,$(1),cppunit
)
206 $(call gb_LinkTarget_use_libraries
,$(1),\
209 $(call gb_LinkTarget_set_include
,$(1),\
210 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
218 define gb_LinkTarget__use_iconv
219 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
223 ifeq ($(SYSTEM_MARIADB
),YES
)
225 define gb_LinkTarget__use_mysql
227 $(call gb_LinkTarget_add_defs
,$(1),\
231 $(call gb_LinkTarget_add_libs
,$(1),\
235 $(call gb_LinkTarget_set_include
,$(1),\
243 define gb_LinkTarget__use_mysql
245 $(call gb_LinkTarget_set_include
,$(1),\
253 ifeq ($(SYSTEM_MYSQL_CPPCONN
),YES
)
255 define gb_LinkTarget__use_mysqlcppconn
256 $(call gb_LinkTarget_add_libs
,$(1),\
260 $(call gb_LinkTarget_add_defs
,$(1),\
261 -DSYSTEM_MYSQL_CPPCONN \
267 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_NONE
,\
271 # note: this does not link mysqlcppconn, it is loaded via osl_loadModuleRelative
272 define gb_LinkTarget__use_mysqlcppconn
274 $(call gb_LinkTarget_use_unpacked
,$(1),mysqlcppconn
)
276 $(call gb_LinkTarget_add_defs
,$(1),\
277 -DCPPCONN_LIB_BUILD \
280 $(call gb_LinkTarget_set_include
,$(1),\
281 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
) \
282 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
)/cppconn \
290 ifeq ($(SYSTEM_ZLIB
),YES
)
292 define gb_LinkTarget__use_zlib
293 $(call gb_LinkTarget_add_defs
,$(1),\
296 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
301 define gb_LinkTarget__use_zlib_x64
305 gb_ExternalProject__use_zlib
:=
309 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
314 define gb_LinkTarget__use_zlib_multiarch
315 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
317 $(call gb_LinkTarget_set_include
,$(1),\
322 $(call gb_LinkTarget_use_static_libraries
,$(1),\
328 define gb_LinkTarget__use_zlib
329 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
333 define gb_LinkTarget__use_zlib_x64
334 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
338 define gb_ExternalProject__use_zlib
339 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
346 ifeq ($(SYSTEM_JPEG
),YES
)
348 define gb_LinkTarget__use_jpeg
349 $(call gb_LinkTarget_add_libs
,$(1),-ljpeg
)
350 $(call gb_LinkTarget_set_ldflags
,$(1),\
351 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
358 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
362 define gb_LinkTarget__use_jpeg
363 $(call gb_LinkTarget_set_include
,$(1),\
364 -I
$(call gb_UnpackedTarball_get_dir
,jpeg
) \
368 $(call gb_LinkTarget_use_static_libraries
,$(1),\
376 ifeq ($(SYSTEM_MYTHES
),YES
)
378 define gb_LinkTarget__use_mythes
379 $(call gb_LinkTarget_set_include
,$(1),\
383 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
387 else # !SYSTEM_MYTHES
389 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
393 define gb_LinkTarget__use_mythes
394 $(call gb_LinkTarget_set_include
,$(1),\
395 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
398 $(call gb_LinkTarget_use_package
,$(1),\
401 $(call gb_LinkTarget_use_static_libraries
,$(1),\
407 endif # SYSTEM_MYTHES
410 ifeq ($(SYSTEM_EXPAT
),YES
)
412 define gb_LinkTarget__use_expat_impl
413 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
415 $(call gb_LinkTarget_add_defs
,$(1),\
419 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
423 gb_ExternalProject__use_expat
:=
427 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
432 define gb_LinkTarget__use_expat_impl
433 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
435 $(call gb_LinkTarget_set_include
,$(1),\
436 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
440 $(call gb_LinkTarget_use_static_libraries
,$(1),\
446 define gb_ExternalProject__use_expat
447 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
453 define gb_LinkTarget__use_expat
454 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
458 define gb_LinkTarget__use_expat_x64
459 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
464 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
470 ifeq ($(SYSTEM_HYPH
),YES
)
472 define gb_LinkTarget__use_hyphen
473 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
479 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
483 define gb_LinkTarget__use_hyphen
484 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
485 $(call gb_LinkTarget_set_include
,$(1),\
486 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
489 $(call gb_LinkTarget_use_static_libraries
,$(1),\
497 ifeq ($(SYSTEM_HUNSPELL
),YES
)
499 define gb_LinkTarget__use_hunspell
500 $(call gb_LinkTarget_set_include
,$(1),\
504 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
508 else # !SYSTEM_HUNSPELL
510 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
514 define gb_LinkTarget__use_hunspell
515 $(call gb_LinkTarget_add_defs
,$(1),\
518 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
519 $(call gb_LinkTarget_set_include
,$(1),\
520 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
523 $(call gb_LinkTarget_use_static_libraries
,$(1),\
529 endif # SYSTEM_HUNSPELL
532 ifeq ($(SYSTEM_BOOST
),YES
)
534 define gb_LinkTarget__use_boostdatetime
535 $(call gb_LinkTarget_set_include
,$(1),\
540 $(call gb_LinkTarget_add_ldflags
,$(1),\
544 $(call gb_LinkTarget_add_libs
,$(1),\
545 $(BOOST_DATE_TIME_LIB
) \
550 define gb_LinkTarget__use_boost_headers
551 $(call gb_LinkTarget_set_include
,$(1),\
558 gb_ExternalProject__use_boost_headers
:=
562 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
567 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
571 define gb_LinkTarget__use_boostthread
572 $(call gb_LinkTarget_add_defs
,$(1),\
576 $(call gb_LinkTarget_use_static_libraries
,$(1),\
583 define gb_LinkTarget__use_boostdatetime
584 $(call gb_LinkTarget_add_defs
,$(1),\
588 $(call gb_LinkTarget_use_static_libraries
,$(1),\
594 define gb_LinkTarget__use_boost_headers
595 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
596 $(call gb_LinkTarget_set_include
,$(1),\
597 -I
$(call gb_UnpackedTarball_get_dir
,boost
) \
603 define gb_ExternalProject__use_boost_headers
604 $(call gb_ExternalProject_get_preparation_target
,$(1)) :|
$(call gb_UnpackedTarball_get_final_target
,boost
)
610 ifeq ($(SYSTEM_CMIS
),YES
)
612 define gb_LinkTarget__use_cmis
613 $(call gb_LinkTarget_set_include
,$(1),\
617 $(call gb_LinkTarget_add_libs
,$(1),$(CMIS_LIBS
))
623 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
627 define gb_LinkTarget__use_cmis
628 $(call gb_LinkTarget_set_include
,$(1),\
629 -I
$(call gb_UnpackedTarball_get_dir
,cmis
)/src \
632 $(call gb_LinkTarget_use_static_libraries
,$(1),\
640 ifeq ($(OS
)$(COM
),WNTGCC
)
642 define gb_LinkTarget__use_jawt
643 $(call gb_LinkTarget_use_packages
,$(1),\
649 else # $(OS)$(COM) != WNTGCC
651 gb_LinkTarget__use_jawt
:=
653 endif # $(OS)$(COM) = WNTGCC
656 ifeq ($(SYSTEM_LIBEXTTEXTCAT
),YES
)
658 define gb_LinkTarget__use_libexttextcat
659 $(call gb_LinkTarget_set_include
,$(1),\
661 $(LIBEXTTEXTCAT_CFLAGS
) \
663 $(call gb_LinkTarget_add_defs
,$(1),\
664 -DSYSTEM_LIBEXTTEXTCAT \
666 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
670 else # !SYSTEM_LIBEXTTEXTCAT
672 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
676 define gb_LinkTarget__use_libexttextcat
677 $(call gb_LinkTarget_use_static_libraries
,$(1),\
681 $(call gb_LinkTarget_set_include
,$(1),\
682 -I
$(call gb_UnpackedTarball_get_dir
,exttextcat
/src
) \
688 endif # SYSTEM_LIBEXTTEXTCAT
691 ifeq ($(SYSTEM_LIBXML
),YES
)
693 define gb_LinkTarget__use_libxml2
694 $(call gb_LinkTarget_add_defs
,$(1),\
697 $(call gb_LinkTarget_set_include
,$(1),\
701 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
704 gb_ExternalProject__use_libxml2
:=
706 else # !SYSTEM_LIBXML
708 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_URE
, \
712 define gb_LinkTarget__use_libxml2
713 $(call gb_LinkTarget_use_package
,$(1),xml2
)
714 $(call gb_LinkTarget_use_libraries
,$(1),\
717 $(call gb_LinkTarget_set_include
,$(1),\
719 -I
$(call gb_UnpackedTarball_get_dir
,xml2
)/include \
723 define gb_ExternalProject__use_libxml2
724 $(call gb_ExternalProject_use_package
,$(1),xml2
)
728 endif # SYSTEM_LIBXML
731 ifeq ($(SYSTEM_LIBXSLT
),YES
)
733 define gb_LinkTarget__use_libxslt
734 $(call gb_LinkTarget_set_include
,$(1),\
738 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
742 define gb_LinkTarget__use_libexslt
743 $(call gb_LinkTarget_set_include
,$(1),\
748 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
752 else # !SYSTEM_LIBXSLT
754 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
759 define gb_LinkTarget__use_libxslt
760 $(call gb_LinkTarget_use_package
,$(1),xslt
)
761 $(call gb_LinkTarget_set_include
,$(1),\
763 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
765 $(call gb_LinkTarget_use_libraries
,$(1),\
771 define gb_LinkTarget__use_libexslt
772 $(call gb_LinkTarget_use_package
,$(1),xslt
)
773 $(call gb_LinkTarget_set_include
,$(1),\
775 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
778 $(call gb_LinkTarget_use_libraries
,$(1),\
784 endif # SYSTEM_LIBXSLT
786 define gb_LinkTarget__use_glib
787 $(error gb_LinkTarget__use_glib should not be called any more
)
790 ifeq ($(ENABLE_LIBLANGTAG
),YES
)
792 ifeq ($(SYSTEM_LIBLANGTAG
),YES
)
794 define gb_LinkTarget__use_liblangtag
795 $(call gb_LinkTarget_set_include
,$(1),\
797 $(LIBLANGTAG_CFLAGS
) \
800 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
804 else # !SYSTEM_LIBLANGTAG
806 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
810 define gb_LinkTarget__use_liblangtag
811 $(call gb_LinkTarget_use_unpacked
,$(1),langtag
)
812 $(call gb_LinkTarget_set_include
,$(1),\
813 -I
$(call gb_UnpackedTarball_get_dir
,langtag
) \
816 $(call gb_LinkTarget_use_static_libraries
,$(1),\
822 endif # SYSTEM_LIBLANGTAG
826 gb_LinkTarget__use_liblangtag
:=
828 endif # ENABLE_LIBLANGTAG
831 ifeq ($(SYSTEM_NEON
),YES
)
833 define gb_LinkTarget__use_neon
834 $(call gb_LinkTarget_add_defs
,$(1),\
835 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
838 $(call gb_LinkTarget_set_include
,$(1),\
843 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
849 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
,\
853 define gb_LinkTarget__use_neon
854 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
855 $(call gb_LinkTarget_set_include
,$(1),\
856 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
859 $(call gb_LinkTarget_use_libraries
,$(1),\
868 ifeq ($(SYSTEM_REDLAND
),YES
)
870 define gb_LinkTarget__use_librdf
871 $(call gb_LinkTarget_add_defs
,$(1),\
874 $(call gb_LinkTarget_set_include
,$(1),\
878 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
882 gb_LinkTarget__use_redland_headers
:=
884 gb_LinkTarget__use_raptor_headers
:=
886 gb_LinkTarget__use_rasqal_headers
:=
888 else # !SYSTEM_REDLAND
890 define gb_LinkTarget__use_redland_headers
891 $(call gb_LinkTarget_set_include
,$(1),\
892 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
898 define gb_LinkTarget__use_raptor_headers
899 $(call gb_LinkTarget_set_include
,$(1),\
900 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
906 define gb_LinkTarget__use_rasqal_headers
907 $(call gb_LinkTarget_set_include
,$(1),\
908 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
914 ifneq ($(OS
),ANDROID
)
916 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
922 define gb_LinkTarget__use_librdf
923 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
924 $(call gb_LinkTarget_use_libraries
,$(1),\
933 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
939 define gb_LinkTarget__use_librdf
940 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
941 $(call gb_LinkTarget_use_static_libraries
,$(1),\
951 endif # SYSTEM_REDLAND
954 ifeq ($(SYSTEM_CAIRO
),YES
)
956 # FREETYPE_CLAGS from environment if ENABLE_CAIRO is used
957 define gb_LinkTarget__use_cairo
958 $(call gb_LinkTarget_set_include
,$(1),\
963 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
967 else ifeq ($(SYSTEM_CAIRO
),NO
)
969 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
971 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
976 define gb_LinkTarget__use_cairo
977 $(call gb_LinkTarget_use_package
,$(1),cairo
)
978 $(call gb_LinkTarget_use_package
,$(1),pixman
)
979 $(call gb_LinkTarget_set_include
,$(1),\
980 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
981 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
985 $(call gb_LinkTarget_use_libraries
,$(1),\
987 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
996 define gb_LinkTarget__use_freetype
997 $(call gb_LinkTarget_set_include
,$(1),\
1002 ifneq ($(OS
),ANDROID
)
1003 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1005 $(call gb_LinkTarget_use_static_libraries
,$(1),freetype
)
1010 define gb_LinkTarget__use_fontconfig
1011 $(call gb_LinkTarget_set_include
,$(1),\
1013 $(FONTCONFIG_CFLAGS
) \
1016 ifneq ($(OS
),ANDROID
)
1017 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1019 $(call gb_LinkTarget_use_static_libraries
,$(1),fontconfig
)
1024 ifeq ($(SYSTEM_GRAPHITE
),YES
)
1026 define gb_LinkTarget__use_graphite
1027 $(call gb_LinkTarget_set_include
,$(1),\
1029 $(GRAPHITE_CFLAGS
) \
1031 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1035 else ifeq ($(SYSTEM_GRAPHITE
),NO
)
1037 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1040 define gb_LinkTarget__use_graphite
1041 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1042 $(call gb_LinkTarget_set_include
,$(1),\
1043 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1046 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1052 else # DISABLED GRAPHITE
1054 gb_LinkTarget__use_graphite
:=
1056 endif # SYSTEM_GRAPHITE
1058 ifeq ($(SYSTEM_ICU
),YES
)
1060 gb_LinkTarget__use_icu_headers
:=
1061 gb_ExternalProject__use_icu
:=
1063 define gb_LinkTarget__use_icudata
1064 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1067 define gb_LinkTarget__use_icui18n
1068 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1071 define gb_LinkTarget__use_icule
1072 $(call gb_LinkTarget_add_libs
,$(1),-licule
)
1075 define gb_LinkTarget__use_icutu
1076 $(call gb_LinkTarget_add_libs
,$(1),-licutu
)
1079 define gb_LinkTarget__use_icuuc
1080 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1086 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1092 define gb_LinkTarget__use_icu_headers
1093 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1094 $(call gb_LinkTarget_set_include
,$(1),\
1095 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1096 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1097 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1103 define gb_ExternalProject__use_icu
1104 $(call gb_ExternalProject_use_package
,$(1),icu
)
1108 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1109 ifeq ($(OS
)$(COM
),WNTMSC
)
1110 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
1115 define gb_LinkTarget__use_icudata
1116 $(call gb_LinkTarget_use_package
,$(1),icu
)
1117 $(call gb_LinkTarget_use_libraries
,$(1),\
1122 define gb_LinkTarget__use_icui18n
1123 $(call gb_LinkTarget_use_package
,$(1),icu
)
1124 $(call gb_LinkTarget_use_libraries
,$(1),\
1130 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
1131 icudata
$(gb_ICU_suffix
) \
1132 icui18n
$(gb_ICU_suffix
) \
1135 define gb_LinkTarget__use_icudata
1136 $(call gb_LinkTarget_use_package
,$(1),icu
)
1137 $(call gb_LinkTarget_use_libraries
,$(1),\
1138 icudata
$(gb_ICU_suffix
) \
1142 define gb_LinkTarget__use_icui18n
1143 $(call gb_LinkTarget_use_package
,$(1),icu
)
1144 $(call gb_LinkTarget_use_libraries
,$(1),\
1145 icui18n
$(gb_ICU_suffix
) \
1151 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
1152 icule
$(gb_ICU_suffix
) \
1153 icutu
$(gb_ICU_suffix
) \
1154 icuuc
$(gb_ICU_suffix
) \
1157 define gb_LinkTarget__use_icule
1158 $(call gb_LinkTarget_use_package
,$(1),icu
)
1159 $(call gb_LinkTarget_use_libraries
,$(1),\
1160 icule
$(gb_ICU_suffix
) \
1164 define gb_LinkTarget__use_icutu
1165 $(call gb_LinkTarget_use_package
,$(1),icu
)
1166 $(call gb_LinkTarget_use_libraries
,$(1),\
1167 icutu
$(gb_ICU_suffix
) \
1171 define gb_LinkTarget__use_icuuc
1172 $(call gb_LinkTarget_use_package
,$(1),icu
)
1173 $(call gb_LinkTarget_use_libraries
,$(1),\
1174 icuuc
$(gb_ICU_suffix
) \
1181 ifeq ($(ENABLE_HARFBUZZ
),TRUE
)
1182 ifeq ($(SYSTEM_HARFBUZZ
),YES
)
1184 define gb_LinkTarget__use_harfbuzz
1185 $(call gb_LinkTarget_set_include
,$(1),\
1187 $(HARFBUZZ_CFLAGS
) \
1189 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1193 else # SYSTEM_HARFBUZZ != YES
1195 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1198 define gb_LinkTarget__use_harfbuzz
1199 $(call gb_LinkTarget_set_include
,$(1),\
1200 -I
$(call gb_UnpackedTarball_get_dir
,harfbuzz
)/src \
1203 $(call gb_LinkTarget_use_package
,$(1),\
1206 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1212 endif # SYSTEM_HARFBUZZ
1213 else # ENABLE_HARFBUZZ != YES
1215 gb_LinkTarget__use_harfbuzz
:=
1217 endif # ENABLE_HARFBUZZ
1219 ifeq ($(DISABLE_OPENSSL
),YES
)
1221 gb_ExternalProject__use_openssl
:=
1222 gb_LinkTarget__use_openssl_headers
:=
1223 gb_LinkTarget__use_openssl
:=
1225 else # !DISABLE_OPENSSL
1227 ifeq ($(SYSTEM_OPENSSL
),YES
)
1229 gb_LinkTarget__use_openssl_headers
:=
1230 gb_ExternalProject__use_openssl
:=
1232 define gb_LinkTarget__use_openssl
1233 $(call gb_LinkTarget_set_include
,$(1),\
1237 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1241 else # !SYSTEM_OPENSSL
1244 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
1249 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1255 define gb_ExternalProject__use_openssl
1256 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1260 define gb_LinkTarget__use_openssl_headers
1261 $(call gb_LinkTarget_set_include
,$(1),\
1262 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1268 define gb_LinkTarget__use_openssl
1269 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1271 $(call gb_LinkTarget_use_libraries
,$(1),\
1276 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1280 ifeq ($(OS
),SOLARIS
)
1281 $(call gb_LinkTarget_add_libs
,$(1),\
1290 endif # SYSTEM_OPENSSL
1291 endif # DISABLE_OPENSSL
1294 ifeq ($(DISABLE_OPENSSL
),YES
)
1296 define gb_LinkTarget__use_gnutls
1297 $(call gb_LinkTarget_set_include
,$(1),\
1302 $(call gb_LinkTarget_add_defs
,$(1),\
1306 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1310 define gb_LinkTarget__use_libgcrypt
1311 $(call gb_LinkTarget_set_include
,$(1),\
1313 $(LIBGCRYPT_CFLAGS
) \
1316 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1320 else # !DISABLE_OPENSSL
1322 gb_LinkTarget__use_gnutls
:=
1323 gb_LinkTarget__use_libgcrypt
:=
1325 endif # DISABLE_OPENSSL
1328 ifeq ($(SYSTEM_CDR
),YES
)
1330 define gb_LinkTarget__use_cdr
1331 $(call gb_LinkTarget_set_include
,$(1),\
1335 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1341 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1345 define gb_LinkTarget__use_cdr
1346 $(call gb_LinkTarget_use_package
,$(1),\
1349 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1358 ifeq ($(SYSTEM_ODFGEN
),YES
)
1360 define gb_LinkTarget__use_odfgen
1361 $(call gb_LinkTarget_set_include
,$(1),\
1365 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1369 else # !SYSTEM_ODFGEN
1371 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1375 define gb_LinkTarget__use_odfgen
1376 $(call gb_LinkTarget_use_package
,$(1),\
1379 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1385 endif # SYSTEM_ODFGEN
1388 ifeq ($(SYSTEM_MSPUB
),YES
)
1390 define gb_LinkTarget__use_mspub
1391 $(call gb_LinkTarget_set_include
,$(1),\
1395 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1399 else # !SYSTEM_MSPUB
1401 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1405 define gb_LinkTarget__use_mspub
1406 $(call gb_LinkTarget_set_include
,$(1),\
1407 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1410 $(call gb_LinkTarget_use_package
,$(1),\
1413 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1419 endif # SYSTEM_MSPUB
1422 ifeq ($(SYSTEM_VISIO
),YES
)
1424 define gb_LinkTarget__use_visio
1425 $(call gb_LinkTarget_set_include
,$(1),\
1429 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
1433 else # !SYSTEM_VISIO
1435 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1439 define gb_LinkTarget__use_visio
1440 $(call gb_LinkTarget_set_include
,$(1),\
1441 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
1444 $(call gb_LinkTarget_use_package
,$(1),\
1447 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1453 endif # SYSTEM_VISIO
1456 ifeq ($(SYSTEM_WPD
),YES
)
1458 define gb_LinkTarget__use_wpd
1459 $(call gb_LinkTarget_set_include
,$(1),\
1463 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
1466 gb_ExternalProject__use_wpd
:=
1470 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1474 define gb_LinkTarget__use_wpd
1475 $(call gb_LinkTarget_set_include
,$(1),\
1479 $(call gb_LinkTarget_use_package
,$(1),\
1482 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1487 define gb_ExternalProject__use_wpd
1488 $(call gb_ExternalProject_use_package
,$(1),libwpd
)
1495 ifeq ($(SYSTEM_WPG
),YES
)
1497 define gb_LinkTarget__use_wpg
1498 $(call gb_LinkTarget_set_include
,$(1),\
1502 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
1505 gb_ExternalProject__use_wpg
:=
1509 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1513 define gb_LinkTarget__use_wpg
1514 $(call gb_LinkTarget_use_package
,$(1),\
1517 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1522 define gb_ExternalProject__use_wpg
1523 $(call gb_ExternalProject_use_package
,$(1),libwpg
)
1530 ifeq ($(SYSTEM_WPS
),YES
)
1532 define gb_LinkTarget__use_wps
1533 $(call gb_LinkTarget_set_include
,$(1),\
1537 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
1540 gb_ExternalProject__use_wps
:=
1544 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1548 define gb_LinkTarget__use_wps
1549 $(call gb_LinkTarget_use_package
,$(1),\
1552 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1557 define gb_ExternalProject__use_wps
1558 $(call gb_ExternalProject_use_package
,$(1),libwps
)
1565 ifeq ($(SYSTEM_MWAW
),YES
)
1567 define gb_LinkTarget__use_mwaw
1568 $(call gb_LinkTarget_set_include
,$(1),\
1572 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
1578 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1582 define gb_LinkTarget__use_mwaw
1583 $(call gb_LinkTarget_set_include
,$(1),\
1584 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
1587 $(call gb_LinkTarget_use_package
,$(1),\
1590 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1599 ifeq ($(SYSTEM_LCMS2
),YES
)
1601 define gb_LinkTarget__use_lcms2
1602 $(call gb_LinkTarget_set_include
,$(1),\
1606 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
1610 gb_ExternalProject__use_lcms2
:=
1612 else # !SYSTEM_LCMS2
1614 define gb_ExternalProject__use_lcms2
1615 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
1619 ifeq ($(OS
),ANDROID
)
1621 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
, \
1625 define gb_LinkTarget__use_lcms2
1626 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
1627 $(call gb_LinkTarget_set_include
,$(1),\
1628 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
1631 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1639 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
1643 define gb_LinkTarget__use_lcms2
1644 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
1645 $(call gb_LinkTarget_set_include
,$(1),\
1646 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
1649 $(call gb_LinkTarget_use_libraries
,$(1),\
1656 endif # SYSTEM_LCMS2
1659 ifeq ($(SYSTEM_LPSOLVE
),YES
)
1661 define gb_LinkTarget__use_lpsolve
1662 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
1663 $(call gb_LinkTarget_add_defs
,$(1),\
1669 else # !SYSTEM_LPSOLVE
1671 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
1675 define gb_LinkTarget__use_lpsolve
1676 $(call gb_LinkTarget_use_unpacked
,$(1),lpsolve
)
1677 $(call gb_LinkTarget_use_libraries
,$(1),\
1680 $(call gb_LinkTarget_set_include
,$(1),\
1681 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
1687 endif # SYSTEM_LPSOLVE
1689 ifeq ($(ENABLE_GIO
),TRUE
)
1691 define gb_LinkTarget__use_gio
1692 $(call gb_LinkTarget_set_include
,$(1),\
1697 $(call gb_LinkTarget_add_defs
,$(1),\
1701 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
1707 define gb_LinkTarget__use_gio
1713 define gb_LinkTarget__use_gtk
1714 $(call gb_LinkTarget_set_include
,$(1),\
1719 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_LIBS
))
1721 ifeq ($(ENABLE_GTK_PRINT
),TRUE
)
1723 $(call gb_LinkTarget_add_defs
,$(1),-DENABLE_GTK_PRINT
)
1725 $(call gb_LinkTarget_set_include
,$(1),\
1727 $(GTK_PRINT_CFLAGS
) \
1730 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_PRINT_LIBS
))
1736 define gb_LinkTarget__use_gthread
1737 $(call gb_LinkTarget_add_libs
,$(1),$(GTHREAD_LIBS
))
1740 ifeq ($(ENABLE_CUPS
),TRUE
)
1742 define gb_LinkTarget__use_cups
1743 $(call gb_LinkTarget_add_defs
,$(1),\
1747 $(call gb_LinkTarget_add_libs
,$(1),\
1755 define gb_LinkTarget__use_cups
1761 ifeq ($(ENABLE_DBUS
),TRUE
)
1763 define gb_LinkTarget__use_dbus
1764 $(call gb_LinkTarget_set_include
,$(1),\
1769 $(call gb_LinkTarget_add_defs
,$(1),\
1773 ifeq ($(ENABLE_PACKAGEKIT
),YES
)
1774 $(call gb_LinkTarget_add_defs
,$(1),\
1775 -DENABLE_PACKAGEKIT \
1777 endif # ENABLE_PACKAGEKIT
1779 $(call gb_LinkTarget_add_libs
,$(1),\
1787 define gb_LinkTarget__use_dbus
1794 define gb_LinkTarget__use_dbusmenugtk
1795 $(call gb_LinkTarget_set_include
,$(1),\
1797 $(DBUSMENUGTK_CFLAGS
) \
1800 $(call gb_LinkTarget_add_libs
,$(1),$(DBUSMENUGTK_LIBS
))
1805 ifeq ($(ENABLE_TELEPATHY
),TRUE
)
1807 define gb_LinkTarget__use_telepathy
1808 $(call gb_LinkTarget_set_include
,$(1),\
1810 $(TELEPATHY_CFLAGS
) \
1813 $(call gb_LinkTarget_add_libs
,$(1),\
1819 else # !ENABLE_TELEPATHY
1821 gb_LinkTarget__use_telepathy
:=
1823 endif # ENABLE_TELEPATHY
1825 define gb_LinkTarget__use_croco
1826 $(error gb_LinkTarget__use_croco should not be used any more
)
1829 define gb_LinkTarget__use_pango
1830 $(error gb_LinkTarget__use_pango should not be used any more
)
1833 define gb_LinkTarget__use_gsf
1834 $(error gb_LinkTarget__use_gsf should not be used any more
)
1837 define gb_LinkTarget__use_pixbuf
1838 $(error gb_LinkTarget__use_pixbuf should not be used any more
)
1841 ifeq ($(SYSTEM_LIBPNG
),YES
)
1843 define gb_LinkTarget__use_png
1844 $(call gb_LinkTarget_set_include
,$(1),\
1849 $(call gb_LinkTarget_add_libs
,$(1),\
1855 else # !SYSTEM_LIBPNG
1857 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
1861 define gb_LinkTarget__use_png
1862 $(call gb_LinkTarget_set_include
,$(1),\
1866 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1869 $(call gb_LinkTarget__use_zlib
,$(1))
1873 endif # !SYSTEM_LIBPNG
1876 ifeq ($(SYSTEM_CURL
),YES
)
1878 define gb_LinkTarget__use_curl
1879 $(call gb_LinkTarget_set_include
,$(1),\
1883 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
1889 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
, \
1893 define gb_LinkTarget__use_curl
1894 $(call gb_LinkTarget_use_package
,$(1),curl
)
1895 $(call gb_LinkTarget_set_include
,$(1),\
1896 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
1899 $(call gb_LinkTarget_use_libraries
,$(1),\
1907 ifeq ($(ENABLE_VALGRIND
),TRUE
)
1909 define gb_LinkTarget__use_valgrind
1910 $(call gb_LinkTarget_add_defs
,$(1),\
1911 -DHAVE_VALGRIND_HEADERS \
1914 $(call gb_LinkTarget_set_include
,$(1),\
1916 $(VALGRIND_CFLAGS
) \
1921 else # !ENABLE_VALGRIND
1923 define gb_LinkTarget__use_valgrind
1927 endif # ENABLE_VALGRIND
1929 ifeq ($(SYSTEM_POPPLER
),YES
)
1931 define gb_LinkTarget__use_poppler
1932 $(call gb_LinkTarget_add_defs
,$(1),\
1936 $(call gb_LinkTarget_set_include
,$(1),\
1941 $(call gb_LinkTarget_add_libs
,$(1),\
1947 else # !SYSTEM_POPPLER
1949 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
1955 define gb_LinkTarget__use_poppler
1956 $(call gb_LinkTarget_use_package
,$(1),xpdf
)
1958 $(call gb_LinkTarget_set_include
,$(1),\
1959 -I
$(call gb_UnpackedTarball_get_dir
,xpdf
) \
1960 -I
$(call gb_UnpackedTarball_get_dir
,xpdf
)/xpdf \
1961 -I
$(call gb_UnpackedTarball_get_dir
,xpdf
)/goo \
1965 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1972 $(call gb_LinkTarget_add_libs
,$(1),\
1975 else ifeq ($(OS
),WNT
)
1976 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1984 endif # SYSTEM_POPPLER
1987 ifeq ($(SYSTEM_CLUCENE
),YES
)
1989 define gb_LinkTarget__use_clucene
1990 $(call gb_LinkTarget_add_defs
,$(1),\
1991 $(filter-out -I
%,$(CLUCENE_CFLAGS
)) \
1994 $(call gb_LinkTarget_set_include
,$(1),\
1995 $(filter -I
%,$(CLUCENE_CFLAGS
)) \
1999 $(call gb_LinkTarget_add_libs
,$(1),\
2005 else # !SYSTEM_CLUCENE
2007 define gb_LinkTarget__use_clucene
2008 $(call gb_LinkTarget_set_include
,$(1),\
2009 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2010 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2011 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2015 $(call gb_LinkTarget_use_libraries
,$(1),\
2021 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
,\
2025 endif # SYSTEM_CLUCENE
2027 define gb_LinkTarget__use_gobject
2028 $(call gb_LinkTarget_add_libs
,$(1),\
2032 $(call gb_LinkTarget_set_include
,$(1),\
2038 ifeq ($(SYSTEM_HSQLDB
),YES
)
2040 define gb_LinkTarget__use_hsqldb
2042 $(call gb_LinkTarget_add_defs
,$(1),\
2044 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2049 else # !SYSTEM_HSQLDB
2051 define gb_LinkTarget__use_hsqldb
2055 endif # SYSTEM_HSQLDB
2058 ifeq ($(SYSTEM_OPENLDAP
),YES
)
2060 define gb_LinkTarget__use_openldap
2062 $(call gb_LinkTarget_add_libs
,$(1),\
2069 else ifeq ($(SYSTEM_OPENLDAP
),NO
)
2071 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
2076 define gb_LinkTarget__use_openldap
2077 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2078 $(call gb_LinkTarget_set_include
,$(1),\
2079 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2082 $(call gb_LinkTarget_use_package
,$(1),openldap
)
2083 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2092 gb_LinkTarget__use_openldap
:=
2094 endif # SYSTEM_OPENLDAP
2097 ifeq ($(SYSTEM_POSTGRESQL
),YES
)
2099 define gb_LinkTarget__use_postgresql
2101 $(call gb_LinkTarget_set_include
,$(1),\
2106 $(call gb_LinkTarget_add_libs
,$(1),\
2110 $(call gb_LinkTarget_add_ldflags
,$(1),\
2116 else # !SYSTEM_POSTGRESQL
2118 define gb_LinkTarget__use_postgresql
2120 $(call gb_LinkTarget_use_packages
,$(1),\
2124 $(call gb_LinkTarget_set_include
,$(1),\
2125 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
2126 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
2130 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2131 $(if
$(filter MSC
,$(COM
)),lib
)pq \
2134 ifeq ($(OS
)$(COM
),WNTMSC
)
2135 $(call gb_LinkTarget_use_external
,$(1),openssl
)
2137 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2146 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
2147 $(if
$(filter MSC
,$(COM
)),lib
)pq \
2150 endif # SYSTEM_POSTGRESQL
2152 ifneq (,$(filter DESKTOP
,$(BUILD_TYPE
)))
2153 define gb_LinkTarget__use_mozilla
2155 $(call gb_LinkTarget_add_defs
,$(1),\
2156 -DMOZILLA_INTERNAL_API \
2159 $(call gb_LinkTarget_set_include
,$(1),\
2161 -I
$(OUTDIR
)/inc
/mozilla \
2164 $(call gb_LinkTarget_use_libraries
,$(1),\
2170 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2175 $(call gb_LinkTarget_add_defs
,$(1),\
2178 -DMOZ_REFLOW_PERF_DSP \
2190 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2195 -Woverloaded-virtual \
2203 ifneq ($(DBG_LEVEL
),0)
2204 $(call gb_LinkTarget_add_defs
,$(1),\
2205 -D_STL_NOFORCE_MANIFEST \
2209 $(call gb_LinkTarget_add_libs
,$(1),\
2210 $(OUTDIR
)/lib
/embed_base_s.lib \
2211 $(OUTDIR
)/lib
/mozreg_s.lib \
2218 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_NONE
,\
2223 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
2230 ifeq ($(ENABLE_KDE
),TRUE
)
2232 define gb_LinkTarget__use_kde
2233 $(call gb_LinkTarget_set_include
,$(1),\
2234 $(filter -I
%,$(KDE_CFLAGS
)) \
2238 $(call gb_LinkTarget_add_defs
,$(1),\
2239 $(filter-out -I
%,$(KDE_CFLAGS
)) \
2242 $(call gb_LinkTarget_add_libs
,$(1),\
2247 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2256 define gb_LinkTarget__use_kde
2263 ifeq ($(ENABLE_KDE4
),TRUE
)
2265 define gb_LinkTarget__use_kde4
2266 $(call gb_LinkTarget_set_include
,$(1),\
2267 $(filter -I
%,$(KDE4_CFLAGS
)) \
2271 $(call gb_LinkTarget_add_defs
,$(1),\
2272 $(filter-out -I
%,$(KDE4_CFLAGS
)) \
2275 $(call gb_LinkTarget_add_libs
,$(1),\
2280 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2289 define gb_LinkTarget__use_kde4
2296 ifeq ($(ENABLE_TDE
),TRUE
)
2298 define gb_LinkTarget__use_tde
2299 $(call gb_LinkTarget_add_libs
,$(1),\
2303 $(call gb_LinkTarget_set_include
,$(1),\
2311 define gb_LinkTarget__use_tde
2318 ifeq ($(ENABLE_GCONF
),TRUE
)
2320 define gb_LinkTarget__use_gconf
2321 $(call gb_LinkTarget_set_include
,$(1),\
2322 $(filter -I
%,$(GCONF_CFLAGS
)) \
2326 $(call gb_LinkTarget_add_defs
,$(1),\
2327 $(filter-out -I
%,$(GCONF_CFLAGS
)) \
2330 $(call gb_LinkTarget_add_libs
,$(1),\
2336 else # !ENABLE_GCONF
2338 define gb_LinkTarget__use_gconf
2342 endif # ENABLE_GCONF
2346 # extra python_headers external because pyuno wrapper must not link python
2347 ifeq ($(SYSTEM_PYTHON
),YES
)
2349 define gb_LinkTarget__use_python_headers
2350 $(call gb_LinkTarget_add_defs
,$(1),\
2351 $(filter-out -I
%,$(PYTHON_CFLAGS
)) \
2354 $(call gb_LinkTarget_set_include
,$(1),\
2355 $(filter -I
%,$(PYTHON_CFLAGS
)) \
2361 define gb_LinkTarget__use_python
2362 $(call gb_LinkTarget__use_python_headers
,$(1))
2364 $(call gb_LinkTarget_add_libs
,$(1),\
2370 else # !SYSTEM_PYTHON
2372 # depend on external project because on MACOSX the Package is disabled...
2373 define gb_LinkTarget__use_python_headers
2374 $(call gb_LinkTarget_use_external_project
,$(1),python3
)
2375 $(call gb_LinkTarget_set_include
,$(1),\
2376 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
2377 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
2378 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
2384 define gb_LinkTarget__use_python
2385 $(call gb_LinkTarget__use_python_headers
,$(1))
2388 $(call gb_LinkTarget_add_libs
,$(1),\
2389 $(call gb_UnpackedTarball_get_dir
,python3
)/$(if
$(filter 90,$(VCVER
)),PC
/VS9.0
,PCbuild
)$(if
$(filter X86_64
,$(CPUNAME
)),/amd64
)/python
$(PYTHON_VERSION_MAJOR
)$(PYTHON_VERSION_MINOR
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).lib \
2391 else ifeq ($(OS
),MACOSX
)
2392 $(call gb_LinkTarget_add_libs
,$(1),\
2393 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
2396 $(call gb_LinkTarget_add_libs
,$(1),\
2397 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
2398 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
2404 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
,\
2405 python
$(PYTHON_VERSION_MAJOR
) \
2406 python
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
2409 endif # SYSTEM_PYTHON
2412 ifeq ($(SYSTEM_LIBORCUS
),YES
)
2414 define gb_LinkTarget__use_orcus
2415 $(call gb_LinkTarget_set_include
,$(1),\
2419 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
2422 define gb_LinkTarget__use_orcus-parser
2426 else # !SYSTEM_LIBORCUS
2428 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
2432 $(eval
$(call gb_Helper_register_static_libraries
,PLAINLIBS
,\
2436 define gb_LinkTarget__use_orcus
2437 $(call gb_LinkTarget_use_unpacked
,$(1),liborcus
)
2438 $(call gb_LinkTarget_set_include
,$(1),\
2439 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
2442 $(call gb_LinkTarget_use_static_libraries
,$(1),orcus
)
2444 $(if
$(filter YES
,$(SYSTEM_BOOST
)), \
2445 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
2446 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
2451 define gb_LinkTarget__use_orcus-parser
2452 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2458 endif # SYSTEM_LIBORCUS
2463 ifeq ($(GUIBASE
),unx
)
2465 # TODO: do we really need these X11 headers in the repo?
2466 ifneq ($(filter X11_EXTENSIONS
,$(BUILD_TYPE
)),)
2468 define gb_LinkTarget__use_x11extensions
2469 $(call gb_LinkTarget_set_include
,$(1),\
2470 -I
$(SRCDIR
)/x11_extensions
/inc \
2475 else # !X11_EXTENSIONS
2477 gb_LinkTarget__use_x11extensions
:=
2479 endif # X11_EXTENSIONS
2481 ifeq ($(XRANDR_DLOPEN
),FALSE
)
2483 define gb_LinkTarget__use_Xrandr
2484 $(call gb_LinkTarget__use_x11extensions
,$(1))
2486 $(call gb_LinkTarget_set_include
,$(1),\
2491 $(call gb_LinkTarget_add_libs
,$(1),\
2496 else # XRANDR_DLOPEN
2498 define gb_LinkTarget__use_Xrandr
2499 $(call gb_LinkTarget__use_x11extensions
,$(1))
2501 $(call gb_LinkTarget_add_defs
,$(1),\
2506 endif # XRANDR_DLOPEN
2508 define gb_LinkTarget__use_Xrender
2509 $(call gb_LinkTarget__use_x11extensions
,$(1))
2511 $(call gb_LinkTarget_set_include
,$(1),\
2516 $(call gb_LinkTarget_add_libs
,$(1),\
2524 gb_ExternalProject__use_nss3
:=
2526 ifeq (,$(filter DESKTOP
,$(BUILD_TYPE
)))
2528 gb_LinkTarget__use_nss3
:=
2532 ifeq ($(SYSTEM_NSS
),YES
)
2534 define gb_LinkTarget__use_nss3
2535 $(call gb_LinkTarget_add_defs
,$(1),\
2539 $(call gb_LinkTarget_set_include
,$(1),\
2544 $(call gb_LinkTarget_add_libs
,$(1),\
2550 define gb_LinkTarget__use_plc4
2551 $(call gb_LinkTarget__use_nss3
,$(1))
2555 define gb_LinkTarget__use_ssl3
2556 $(call gb_LinkTarget__use_nss3
,$(1))
2562 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_OOO
,\
2570 define gb_LinkTarget__use_nss3
2571 $(call gb_LinkTarget_use_package
,$(1),nss
)
2572 $(call gb_LinkTarget_set_include
,$(1),\
2574 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/mozilla
/dist/public
/nss \
2575 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/mozilla
/dist/out
/include \
2578 $(call gb_LinkTarget_use_libraries
,$(1),\
2586 define gb_LinkTarget__use_plc4
2587 $(call gb_LinkTarget_use_package
,$(1),nss
)
2588 $(call gb_LinkTarget_use_libraries
,$(1),\
2594 define gb_LinkTarget__use_ssl3
2595 $(call gb_LinkTarget_use_package
,$(1),nss
)
2596 $(call gb_LinkTarget_use_libraries
,$(1),\
2602 define gb_ExternalProject__use_nss3
2603 $(call gb_ExternalProject_use_package
,$(1),nss
)
2604 $(call gb_ExternalProject_use_libraries
,$(1),\
2615 ### Jars ############################################################
2617 ifeq ($(SYSTEM_HSQLDB
),YES
)
2619 define gb_Jar__use_hsqldb
2620 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
2622 define gb_JunitTest__use_hsqldb
2623 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
2626 else # !SYSTEM_HSQLDB
2628 $(eval
$(call gb_Helper_register_jars
,OOO
,\
2632 define gb_Jar__use_hsqldb
2633 $(call gb_Jar_use_jar
,$(1),hsqldb
)
2635 define gb_JunitTest__use_hsqldb
2636 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
2639 endif # SYSTEM_HSQLDB
2642 ifeq ($(SYSTEM_BSH
),YES
)
2644 define gb_Jar__use_bsh
2645 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
2650 $(eval
$(call gb_Helper_register_jars
,OOO
,\
2654 define gb_Jar__use_bsh
2655 $(call gb_Jar_use_jar
,$(1),bsh
)
2661 ifeq ($(SYSTEM_RHINO
),YES
)
2663 define gb_Jar__use_rhino
2664 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
2667 else # !SYSTEM_RHINO
2669 $(eval
$(call gb_Helper_register_jars
,OOO
,\
2673 define gb_Jar__use_rhino
2674 $(call gb_Jar_use_jar
,$(1),js
)
2677 endif # SYSTEM_RHINO
2679 ifeq ($(SYSTEM_APACHE_COMMONS
),YES
)
2681 define gb_Jar__use_commons-codec
2682 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_CODEC_JAR
))
2684 gb_ExternalProject__use_commons-codec
:=
2686 define gb_Jar__use_commons-httpclient
2687 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_HTTPCLIENT_JAR
))
2689 gb_ExternalProject__use_commons-httpclient
:=
2691 define gb_Jar__use_commons-lang
2692 $(call gb_Jar_usadd_linked_libse_system_jar
,$(1),$(COMMONS_LANG_JAR
))
2694 gb_ExternalProject__use_commons-lang
:=
2696 define gb_Jar__use_commons-logging
2697 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
2699 gb_ExternalProject__use_commons-logging
:=
2701 else # !SYSTEM_APACHE_COMMONS
2703 $(eval
$(call gb_Helper_register_jars
,OXT
,\
2705 commons-httpclient-3.1 \
2707 commons-logging-1.1
.1 \
2710 define gb_Jar__use_commons-codec
2711 $(call gb_Jar_use_jar
,$(1),commons-codec-1.6
)
2713 define gb_ExternalProject__use_commons-codec
2714 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_codec
)
2717 define gb_Jar__use_commons-httpclient
2718 $(call gb_Jar_use_jar
,$(1),commons-httpclient-3.1
)
2720 define gb_ExternalProject__use_commons-httpclient
2721 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_httpclient
)
2724 define gb_Jar__use_commons-lang
2725 $(call gb_Jar_use_jar
,$(1),commons-lang-2.4
)
2727 define gb_ExternalProject__use_commons-lang
2728 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_lang
)
2731 define gb_Jar__use_commons-logging
2732 $(call gb_Jar_use_jar
,$(1),commons-logging-1.1
.1)
2734 define gb_ExternalProject__use_commons-logging
2735 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
2738 endif # SYSTEM_APACHE_COMMONS
2741 ifeq ($(SYSTEM_JFREEREPORT
),YES
)
2743 define gb_Jar__use_flow-engine
2744 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
2747 define gb_Jar__use_flute
2748 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
2751 define gb_Jar__use_libbase
2752 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
2755 define gb_Jar__use_libfonts
2756 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
2759 define gb_Jar__use_libformula
2760 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
2763 define gb_Jar__use_liblayout
2764 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
2767 define gb_Jar__use_libloader
2768 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
2771 define gb_Jar__use_librepository
2772 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
2775 define gb_Jar__use_libserializer
2776 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
2779 define gb_Jar__use_libxml
2780 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
2783 define gb_Jar__use_sac
2784 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
2787 else # !SYSTEM_JFREEREPORT
2789 $(eval
$(call gb_Helper_register_jars
,OXT
,\
2797 librepository-1.1
.6 \
2798 libserializer-1.1
.6 \
2803 define gb_Jar__use_flow-engine
2804 $(call gb_Jar_use_jar
,$(1),flow-engine-0.9
.4)
2807 define gb_Jar__use_flute
2808 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
2811 define gb_Jar__use_libbase
2812 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
2815 define gb_Jar__use_libfonts
2816 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
2819 define gb_Jar__use_libformula
2820 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
2823 define gb_Jar__use_liblayout
2824 $(call gb_Jar_use_jar
,$(1),liblayout-0.2
.10)
2827 define gb_Jar__use_libloader
2828 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
2831 define gb_Jar__use_librepository
2832 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
2835 define gb_Jar__use_libserializer
2836 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
2839 define gb_Jar__use_libxml
2840 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
2843 define gb_Jar__use_sac
2844 $(call gb_Jar_use_jar
,$(1),sac
)
2847 endif # SYSTEM_JFREEREPORT
2852 # FIXME: the library target should be for build too
2853 define gb_Executable__register_bestreversemap
2854 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
2855 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
2859 # TODO depending on the whole URE might be overkill, but I do not have a
2860 # Windows machine to debug it...
2861 # FIXME: the library target should be for build too
2862 define gb_Executable__register_climaker
2863 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
2864 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
2865 $(call gb_Package_get_target_for_build
,cppuhelper_unorc
) \
2866 $(call gb_Rdb_get_outdir_target_for_build
,ure
/services
) \
2867 $(call gb_UnoApi_get_target
,udkapi
) \
2871 # Better duplication with gb_Gallery__UNO_COMPONENTS than nothing.
2872 # This is used to determine what we need for 'build' platform.
2873 define gb_Executable__register_gengal_impl
2874 $(call gb_Executable_add_runtime_dependencies
,$(1),\
2875 $(foreach component
, \
2876 comphelper
/util
/comphelp \
2877 configmgr
/source
/configmgr \
2878 fileaccess
/source
/fileacc \
2879 framework
/util
/fwk \
2880 i18npool
/util
/i18npool \
2881 package
/source
/xstor
/xstor \
2882 package
/util
/package2 \
2886 ucb
/source
/core
/ucb1 \
2887 ucb
/source
/ucp
/file
/ucpfile1 \
2888 unoxml
/source
/service
/unoxml \
2889 ,$(call gb_ComponentTarget_get_outdir_target_for_build
,$(component
))) \
2890 $(call gb_AllLangResTarget_get_target
,ofa
) \
2891 $(call gb_Configuration_get_target
,registry
) \
2892 $(call gb_Configuration_get_target
,fcfg_langpack
) \
2893 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
2894 $(if
$(filter-out MACOSX WNT
,$(OS_FOR_BUILD
)),$(if
$(ENABLE_HEADLESS
),, \
2895 $(call gb_Library_get_target
,vclplug_svp
) \
2897 $(call gb_Package_get_target_for_build
,cppuhelper_unorc
) \
2898 $(call gb_Rdb_get_outdir_target_for_build
,ure
/services
) \
2899 $(call gb_UnoApi_get_target
,offapi
) \
2900 $(call gb_UnoApi_get_target
,udkapi
) \
2905 gb_Executable__register_gengal
= $(call gb_Executable__register_gengal_impl
,gengal
)
2907 gb_Executable__register_gengal.bin
= $(call gb_Executable__register_gengal_impl
,gengal.bin
)
2910 ifneq ($(SYSTEM_ICU
),YES
)
2912 define gb_Executable__register_gendict
2913 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
2914 $(call gb_Package_get_target_for_build
,icu
) \
2920 define gb_Executable__register_idlc
2921 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
2922 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
2926 define gb_Executable__register_localize
2927 $(call gb_Executable_add_runtime_dependencies
,localize
,\
2928 $(foreach exec
,cfgex helpex propex transex3 treex uiex ulfex xrmex
,\
2929 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
2934 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
2935 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
2936 # FIXME: the library target should be for build too
2937 define gb_Executable__register_saxparser
2938 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
2939 $(call gb_ComponentTarget_get_outdir_target
,sax
/source
/expatwrap
/expwrap
) \
2940 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
2941 $(call gb_Package_get_target_for_build
,cppuhelper_unorc
) \
2942 $(call gb_Rdb_get_outdir_target_for_build
,ure
/services
) \
2943 $(call gb_UnoApi_get_target
,udkapi
) \
2947 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
2948 # required due to the settings for URE_SERVICES and URE_TYPES in
2949 # cppuhelper/source/unorc
2950 # FIXME: the library target should be for build too
2951 define gb_Executable__register_uno
2952 $(call gb_Executable_add_runtime_dependencies
,uno
,\
2953 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
2954 $(call gb_Package_get_target_for_build
,cppuhelper_unorc
) \
2955 $(call gb_Rdb_get_outdir_target_for_build
,ure
/services
) \
2956 $(call gb_UnoApi_get_target
,udkapi
) \
2961 # External executables
2963 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),YES
)
2965 gb_ExternalExecutable__register_xmllint
:=
2967 else # ! SYSTEM_LIBXML_FOR_BUILD
2969 define gb_ExternalExecutable__register_xmllint
2970 $(call gb_ExternalExecutable_set_internal
,xmllint
)
2974 endif # SYSTEM_LIBXML_FOR_BUILD
2976 ifeq ($(SYSTEM_LIBXSLT_FOR_BUILD
),YES
)
2978 gb_ExternalExecutable__register_xsltproc
:=
2980 else # ! SYSTEM_LIBXSLT_FOR_BUILD
2982 define gb_ExternalExecutable__register_xsltproc
2983 $(call gb_ExternalExecutable_set_internal
,xsltproc
)
2984 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,$(call gb_Package_get_target
,xslt
))
2988 endif # SYSTEM_LIBXSLT_FOR_BUILD
2990 ifneq (,$(SYSTEM_UCPP
))
2992 gb_ExternalExecutable__register_ucpp
:=
2994 else # ! SYSTEM_UCPP
2996 define gb_ExternalExecutable__register_ucpp
2997 $(call gb_ExternalExecutable_set_internal
,ucpp
)
3003 ifeq (,$(PYTHON_FOR_BUILD
))
3005 define gb_ExternalExecutable__register_python
3008 # use set_external, to avoid having the command added as prerequisite for the
3009 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3010 # matching rule to build that specific file)
3011 $(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
))
3012 # the Zip ensures that internal python has been built (cannot use the Package
3013 # target, as that is not used on Mac)
3014 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3018 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTDIR
)/program
/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
3019 $(call gb_ExternalExecutable_set_precommand
,python
,$(gb_Python_PRECOMMAND
))
3020 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
3028 define gb_ExternalExecutable__register_python
3029 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
3033 endif # PYTHON_FOR_BUILD
3035 ifneq ($(SYSTEM_GENBRK
),)
3037 define gb_ExternalExecutable__register_genbrk
3038 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
3042 else # ! SYSTEM_GENBRK
3044 define gb_ExternalExecutable__register_genbrk
3045 $(call gb_ExternalExecutable_set_internal
,genbrk
)
3046 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
3047 $(call gb_Package_get_target_for_build
,icu
) \
3054 ifneq ($(SYSTEM_GENCCODE
),)
3056 define gb_ExternalExecutable__register_genccode
3057 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
3061 else # ! SYSTEM_GENCCODE
3063 define gb_ExternalExecutable__register_genccode
3064 $(call gb_ExternalExecutable_set_internal
,genccode
)
3065 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
3066 $(call gb_Package_get_target_for_build
,icu
) \
3073 ifneq ($(SYSTEM_GENCMN
),)
3075 define gb_ExternalExecutable__register_gencmn
3076 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
3080 else # ! SYSTEM_GENCMN
3082 define gb_ExternalExecutable__register_gencmn
3083 $(call gb_ExternalExecutable_set_internal
,gencmn
)
3084 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
3085 $(call gb_Package_get_target_for_build
,icu
) \
3092 # vim: set noet sw=4 ts=4: