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
:=
145 gb_ExternalProject__use_glm_headers
:=
149 define gb_LinkTarget__use_glm_headers
150 $(call gb_LinkTarget_use_unpacked
,$(1),glm
)
151 $(call gb_LinkTarget_set_include
,$(1),\
152 -I
$(call gb_UnpackedTarball_get_dir
,glm
) \
158 define gb_ExternalProject__use_glm_headers
159 $(call gb_ExternalProject_get_preparation_target
,$(1)) :|
$(call gb_UnpackedTarball_get_final_target
,glm
)
165 ifeq (SANE
,$(filter SANE
,$(BUILD_TYPE
)))
167 define gb_LinkTarget__use_sane_headers
168 $(call gb_LinkTarget_set_include
,$(1),\
169 -I
$(SRCDIR
)/external
/$(if
$(filter WNT
,$(OS
)),twain
,sane
)/inc \
177 gb_LinkTarget__use_sane_headers
:=
181 ifneq ($(SYSTEM_BLUEZ
),)
183 gb_LinkTarget__use_bluez_bluetooth_headers
:=
187 define gb_LinkTarget__use_bluez_bluetooth_headers
188 $(call gb_LinkTarget_set_include
,$(1),\
189 -I
$(SRCDIR
)/external
/bluez_bluetooth
/inc \
199 ifneq ($(SYSTEM_CPPUNIT
),)
201 define gb_LinkTarget__use_cppunit
202 $(call gb_LinkTarget_set_include
,$(1),\
207 $(call gb_LinkTarget_add_libs
,$(1),\
213 else # !SYSTEM_CPPUNIT
215 define gb_LinkTarget__use_cppunit
216 $(call gb_LinkTarget_use_external_project
,$(1),cppunit
)
218 $(call gb_LinkTarget_set_include
,$(1),\
219 -I
$(call gb_UnpackedTarball_get_dir
,cppunit
/include)\
224 $(call gb_LinkTarget_add_libs
,$(1),\
225 $(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),DebugDll
/cppunitd_dll.lib
,ReleaseDll
/cppunit_dll.lib
) \
228 $(call gb_LinkTarget_add_libs
,$(1),\
229 -L
$(call gb_UnpackedTarball_get_dir
,cppunit
)/src
/cppunit
/.libs
-lcppunit \
235 endif # SYSTEM_CPPUNIT
237 ifneq ($(SYSTEM_GLEW
),)
239 define gb_LinkTarget__use_glew
240 $(call gb_LinkTarget_set_include
,$(1),\
244 $(call gb_LinkTarget_add_libs
,$(1),$(GLEW_LIBS
))
248 gb_ExternalProject__use_glew
:=
252 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
256 define gb_LinkTarget__use_glew
257 $(call gb_LinkTarget_use_package
,$(1),glew
)
258 $(call gb_LinkTarget_set_include
,$(1),\
259 -I
$(call gb_UnpackedTarball_get_dir
,glew
/include) \
264 $(call gb_LinkTarget_add_libs
,$(1),\
265 $(call gb_UnpackedTarball_get_dir
,glew
)/lib
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
/Win32
/glew32d.lib
,Release
/Win32
/glew32.lib
) \
268 $(call gb_LinkTarget_add_libs
,$(1),\
269 -L
$(call gb_UnpackedTarball_get_dir
,glew
)/lib
/ -lGLEW \
275 define gb_ExternalProject__use_glew
276 $(call gb_ExternalProject_use_external_project
,$(1),glew
)
282 define gb_LinkTarget__use_iconv
283 $(call gb_LinkTarget_add_libs
,$(1),-liconv
)
287 ifneq ($(SYSTEM_MARIADB
),)
289 define gb_LinkTarget__use_mariadb
290 $(call gb_LinkTarget_set_include
,$(1),\
294 $(call gb_LinkTarget_add_libs
,$(1),$(MARIADB_LIBS
))
297 gb_ExternalProject__use_mariadb
:=
299 else # !SYSTEM_MARIADB
301 define gb_LinkTarget__use_mariadb
302 $(call gb_LinkTarget_set_include
,$(1),\
306 $(call gb_LinkTarget_use_static_libraries
,$(1),\
311 define gb_ExternalProject__use_mariadb
312 $(call gb_ExternalProject_use_static_libraries
,$(1),mariadblib
)
316 endif # SYSTEM_MARIADB
319 ifneq ($(SYSTEM_MARIADB
),)
321 define gb_LinkTarget__use_mysql
323 $(call gb_LinkTarget_add_defs
,$(1),\
327 $(call gb_LinkTarget_add_libs
,$(1),\
331 $(call gb_LinkTarget_set_include
,$(1),\
339 define gb_LinkTarget__use_mysql
341 $(call gb_LinkTarget_set_include
,$(1),\
349 ifneq ($(SYSTEM_MYSQL_CPPCONN
),)
351 define gb_LinkTarget__use_mysqlcppconn
352 $(call gb_LinkTarget_add_libs
,$(1),\
356 $(call gb_LinkTarget_add_defs
,$(1),\
357 -DSYSTEM_MYSQL_CPPCONN \
363 $(eval
$(call gb_Helper_register_libraries
,PLAINLIBS_NONE
,\
367 # note: this does not link mysqlcppconn, it is loaded via osl_loadModuleRelative
368 define gb_LinkTarget__use_mysqlcppconn
370 $(call gb_LinkTarget_use_unpacked
,$(1),mysqlcppconn
)
372 $(call gb_LinkTarget_add_defs
,$(1),\
373 -DCPPCONN_LIB_BUILD \
376 $(call gb_LinkTarget_set_include
,$(1),\
377 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
) \
378 -I
$(call gb_UnpackedTarball_get_dir
,mysqlcppconn
)/cppconn \
386 ifneq ($(SYSTEM_ZLIB
),)
388 define gb_LinkTarget__use_zlib
389 $(call gb_LinkTarget_add_defs
,$(1),\
392 $(call gb_LinkTarget_add_libs
,$(1),-lz
)
397 define gb_LinkTarget__use_zlib_x64
401 gb_ExternalProject__use_zlib
:=
405 define gb_LinkTarget__use_zlib_multiarch
406 $(if
$(2),,$(call gb_Output_error
,gb_LinkTarget__use_zlib_multiarch needs two arguments
))
408 $(call gb_LinkTarget_set_include
,$(1),\
413 $(call gb_LinkTarget_use_static_libraries
,$(1),\
419 define gb_LinkTarget__use_zlib
420 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib
)
424 define gb_LinkTarget__use_zlib_x64
425 $(call gb_LinkTarget__use_zlib_multiarch
,$(1),zlib_x64
)
429 define gb_ExternalProject__use_zlib
430 $(call gb_ExternalProject_use_static_libraries
,$(1),zlib
)
437 ifneq ($(SYSTEM_JPEG
),)
439 define gb_LinkTarget__use_jpeg
440 $(call gb_LinkTarget_add_libs
,$(1),-ljpeg
)
441 $(call gb_LinkTarget_set_ldflags
,$(1),\
442 $$(filter-out -L
/usr
/lib
/jvm
%,$$(T_LDFLAGS
)) \
449 define gb_LinkTarget__use_jpeg
450 $(call gb_LinkTarget_set_include
,$(1),\
451 -I
$(call gb_UnpackedTarball_get_dir
,jpeg
) \
455 $(call gb_LinkTarget_use_static_libraries
,$(1),\
463 ifneq ($(SYSTEM_MYTHES
),)
465 define gb_LinkTarget__use_mythes
466 $(call gb_LinkTarget_set_include
,$(1),\
470 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
474 else # !SYSTEM_MYTHES
476 define gb_LinkTarget__use_mythes
477 $(call gb_LinkTarget_set_include
,$(1),\
478 -I
$(call gb_UnpackedTarball_get_dir
,mythes
) \
483 $(call gb_LinkTarget_use_static_libraries
,$(1),\
487 $(call gb_LinkTarget_add_libs
,$(1),$(MYTHES_LIBS
))
488 $(call gb_LinkTarget_use_external_project
,$(1),mythes
)
493 endif # SYSTEM_MYTHES
496 ifneq ($(SYSTEM_EXPAT
),)
498 define gb_LinkTarget__use_expat_impl
499 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
501 $(call gb_LinkTarget_add_defs
,$(1),\
505 $(call gb_LinkTarget_add_libs
,$(1),-lexpat
)
509 gb_ExternalProject__use_expat
:=
513 define gb_LinkTarget__use_expat_impl
514 $(if
$(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter
))
516 $(call gb_LinkTarget_set_include
,$(1),\
517 -I
$(call gb_UnpackedTarball_get_dir
,expat
)/lib \
521 $(call gb_LinkTarget_use_static_libraries
,$(1),\
527 define gb_ExternalProject__use_expat
528 $(call gb_ExternalProject_use_static_libraries
,$(1),expat
)
534 define gb_LinkTarget__use_expat
535 $(call gb_LinkTarget__use_expat_impl
,$(1),expat
)
539 define gb_LinkTarget__use_expat_x64
540 $(call gb_LinkTarget__use_expat_impl
,$(1),expat_x64
)
544 ifneq ($(SYSTEM_HYPH
),)
546 define gb_LinkTarget__use_hyphen
547 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
553 define gb_LinkTarget__use_hyphen
554 $(call gb_LinkTarget_use_unpacked
,$(1),hyphen
)
555 $(call gb_LinkTarget_set_include
,$(1),\
556 -I
$(call gb_UnpackedTarball_get_dir
,hyphen
)\
561 $(call gb_LinkTarget_use_static_libraries
,$(1),\
565 $(call gb_LinkTarget_add_libs
,$(1),$(HYPHEN_LIB
))
566 $(call gb_LinkTarget_use_external_project
,$(1),hyphen
)
573 ifneq ($(SYSTEM_HUNSPELL
),)
575 define gb_LinkTarget__use_hunspell
576 $(call gb_LinkTarget_set_include
,$(1),\
580 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
584 gb_ExternalProject__use_hunspell
:=
586 else # !SYSTEM_HUNSPELL
588 define gb_LinkTarget__use_hunspell
589 $(call gb_LinkTarget_add_defs
,$(1),\
592 $(call gb_LinkTarget_use_unpacked
,$(1),hunspell
)
593 $(call gb_LinkTarget_set_include
,$(1),\
594 -I
$(call gb_UnpackedTarball_get_dir
,hunspell
/src
/hunspell
)\
599 $(call gb_LinkTarget_use_static_libraries
,$(1),\
603 $(call gb_LinkTarget_add_libs
,$(1),$(HUNSPELL_LIBS
))
604 $(call gb_LinkTarget_use_external_project
,$(1),hunspell
)
609 define gb_ExternalProject__use_hunspell
610 $(call gb_ExternalProject_use_external_project
,$(1),hunspell
)
614 endif # SYSTEM_HUNSPELL
617 ifneq ($(SYSTEM_BOOST
),)
619 define gb_LinkTarget__use_boostdatetime
620 $(call gb_LinkTarget_set_include
,$(1),\
625 $(call gb_LinkTarget_add_ldflags
,$(1),\
629 $(call gb_LinkTarget_add_libs
,$(1),\
630 $(BOOST_DATE_TIME_LIB
) \
635 define gb_LinkTarget__use_boost_iostreams
636 $(call gb_LinkTarget_set_include
,$(1),\
641 $(call gb_LinkTarget_add_ldflags
,$(1),\
645 $(call gb_LinkTarget_add_libs
,$(1),\
646 $(BOOST_IOSTREAMS_LIB
) \
651 gb_ExternalProject__use_boost_iostreams
:=
653 define gb_LinkTarget__use_boost_system
654 $(call gb_LinkTarget_set_include
,$(1),\
659 $(call gb_LinkTarget_add_ldflags
,$(1),\
663 $(call gb_LinkTarget_add_libs
,$(1),\
664 $(BOOST_SYSTEM_LIB
) \
669 gb_ExternalProject__use_boost_system
:=
671 define gb_LinkTarget__use_boost_headers
672 $(call gb_LinkTarget_set_include
,$(1),\
679 gb_ExternalProject__use_boost_headers
:=
684 define gb_LinkTarget__use_boostthread
685 $(call gb_LinkTarget_add_defs
,$(1),\
689 $(call gb_LinkTarget_use_static_libraries
,$(1),\
695 define gb_LinkTarget__use_boostdatetime
696 $(call gb_LinkTarget_add_defs
,$(1),\
700 $(call gb_LinkTarget_use_static_libraries
,$(1),\
706 define gb_LinkTarget__use_boost_iostreams
707 $(call gb_LinkTarget_add_defs
,$(1),\
711 $(call gb_LinkTarget_use_static_libraries
,$(1),\
717 define gb_ExternalProject__use_boost_iostreams
718 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_iostreams
)
721 define gb_LinkTarget__use_boost_system
722 $(call gb_LinkTarget_add_defs
,$(1),\
726 $(call gb_LinkTarget_use_static_libraries
,$(1),\
732 define gb_ExternalProject__use_boost_system
733 $(call gb_ExternalProject_use_static_libraries
,$(1),boost_system
)
736 define gb_LinkTarget__use_boost_headers
737 $(call gb_LinkTarget_use_unpacked
,$(1),boost
)
738 $(call gb_LinkTarget_set_include
,$(1),\
739 -I
$(call gb_UnpackedTarball_get_dir
,boost
) \
745 define gb_ExternalProject__use_boost_headers
746 $(call gb_ExternalProject_get_preparation_target
,$(1)) :|
$(call gb_UnpackedTarball_get_final_target
,boost
)
752 ifneq ($(SYSTEM_CMIS
),)
754 define gb_LinkTarget__use_cmis
755 $(call gb_LinkTarget_set_include
,$(1),\
759 $(call gb_LinkTarget_add_libs
,$(1),$(CMIS_LIBS
))
765 define gb_LinkTarget__use_cmis
766 $(call gb_LinkTarget_set_include
,$(1),\
767 -I
$(call gb_UnpackedTarball_get_dir
,cmis
)/src \
770 $(call gb_LinkTarget_use_static_libraries
,$(1),\
778 ifeq ($(ENABLE_JAVA
),TRUE
)
780 ifeq ($(OS
)$(COM
),WNTGCC
)
782 define gb_LinkTarget__use_jawt
783 $(call gb_LinkTarget_use_custom_headers
,$(1),external
/jawt
)
785 $(call gb_LinkTarget_add_ldflags
,$(1),\
786 -L
$(call gb_CustomTarget_get_workdir
,external
/jawt
) \
789 $(call gb_LinkTarget_add_libs
,$(1),\
795 else # $(OS)$(COM) != WNTGCC
797 define gb_LinkTarget__use_jawt
798 $(call gb_LinkTarget_add_libs
,$(1),\
804 endif # $(OS)$(COM) = WNTGCC
808 gb_LinkTarget__use_jawt
:=
812 ifneq ($(SYSTEM_LIBATOMIC_OPS
),)
814 define gb_LinkTarget__use_libatomic_ops
815 $(call gb_LinkTarget_set_include
,$(1),\
817 $(LIBATOMIC_OPS_CFLAGS
) \
819 $(call gb_LinkTarget_add_libs
,$(1), $(LIBATOMIC_OPS_LIBS
))
822 gb_ExternalProject__use_libatomic_ops
:=
824 else # !SYSTEM_LIBATOMIC_OPS
826 define gb_LinkTarget__use_libatomic_ops
827 $(call gb_LinkTarget_set_include
,$(1),\
828 $(LIBATOMIC_OPS_CFLAGS
) \
830 $(LIBATOMIC_OPS_CFLAGS
) \
832 $(call gb_LinkTarget_use_external_project
,$(1),\
836 $(call gb_LinkTarget_add_libs
,$(1),\
837 -L
$(call gb_UnpackedTarball_get_dir
,libatomic_ops
)/src
/lib
-latomic_ops \
842 define gb_ExternalProject__use_libatomic_ops
843 $(call gb_ExternalProject_use_external_project
,$(1),libatomic_ops
)
847 endif # SYSTEM_LIBATOMIC_OPS
850 ifneq ($(SYSTEM_LIBEXTTEXTCAT
),)
852 define gb_LinkTarget__use_libexttextcat
853 $(call gb_LinkTarget_set_include
,$(1),\
855 $(LIBEXTTEXTCAT_CFLAGS
) \
857 $(call gb_LinkTarget_add_defs
,$(1),\
858 -DSYSTEM_LIBEXTTEXTCAT \
860 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXTTEXTCAT_LIBS
))
864 else # !SYSTEM_LIBEXTTEXTCAT
866 define gb_LinkTarget__use_libexttextcat
867 $(call gb_LinkTarget_set_include
,$(1),\
868 -I
$(call gb_UnpackedTarball_get_dir
,exttextcat
/src
) \
873 $(call gb_LinkTarget_use_static_libraries
,$(1),\
877 $(call gb_LinkTarget_add_libs
,$(1),\
878 $(call gb_UnpackedTarball_get_dir
,exttextcat
)/src
/.libs
/libexttextcat-2.0.a\
880 $(call gb_LinkTarget_use_external_project
,$(1),exttextcat
)
886 endif # SYSTEM_LIBEXTTEXTCAT
889 ifneq ($(SYSTEM_LIBXML
),)
891 define gb_LinkTarget__use_libxml2
892 $(call gb_LinkTarget_add_defs
,$(1),\
895 $(call gb_LinkTarget_set_include
,$(1),\
899 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXML_LIBS
))
902 gb_ExternalProject__use_libxml2
:=
904 else # !SYSTEM_LIBXML
906 $(eval
$(call gb_Helper_register_packages_for_install
,ure
,\
910 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
914 define gb_LinkTarget__use_libxml2
915 $(call gb_LinkTarget_use_package
,$(1),xml2
)
916 $(call gb_LinkTarget_set_include
,$(1),\
921 $(call gb_LinkTarget_add_libs
,$(1),\
926 $(call gb_LinkTarget_use_external
,$(1),icu_headers
)
930 define gb_ExternalProject__use_libxml2
931 $(call gb_ExternalProject_use_package
,$(1),xml2
)
934 $(call gb_ExternalProject_use_external_project
,$(1),icu
)
939 endif # SYSTEM_LIBXML
942 ifneq ($(SYSTEM_LIBXSLT
),)
944 define gb_LinkTarget__use_libxslt
945 $(call gb_LinkTarget_set_include
,$(1),\
949 $(call gb_LinkTarget_add_libs
,$(1),$(LIBXSLT_LIBS
))
953 define gb_LinkTarget__use_libexslt
954 $(call gb_LinkTarget_set_include
,$(1),\
959 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEXSLT_LIBS
))
963 else # !SYSTEM_LIBXSLT
965 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
969 define gb_LinkTarget__use_libxslt
970 $(call gb_LinkTarget_use_package
,$(1),xslt
)
971 $(call gb_LinkTarget_set_include
,$(1),\
973 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
977 $(call gb_LinkTarget_add_libs
,$(1),\
978 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libxslt.lib \
981 $(call gb_LinkTarget_add_libs
,$(1),\
982 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libxslt
/.libs
-lxslt \
988 define gb_LinkTarget__use_libexslt
989 $(call gb_LinkTarget_use_package
,$(1),xslt
)
990 $(call gb_LinkTarget_set_include
,$(1),\
992 -I
$(call gb_UnpackedTarball_get_dir
,xslt
) \
996 $(call gb_LinkTarget_add_libs
,$(1),\
997 $(call gb_UnpackedTarball_get_dir
,xslt
)/win32
/bin.msvc
/libexslt.lib \
1000 $(call gb_LinkTarget_add_libs
,$(1),\
1001 -L
$(call gb_UnpackedTarball_get_dir
,xslt
)/libexslt
/.libs
-lexslt \
1007 endif # SYSTEM_LIBXSLT
1009 ifeq ($(ENABLE_LIBLANGTAG
),TRUE
)
1011 ifneq ($(SYSTEM_LIBLANGTAG
),)
1013 define gb_LinkTarget__use_liblangtag
1014 $(call gb_LinkTarget_set_include
,$(1),\
1016 $(LIBLANGTAG_CFLAGS
) \
1019 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1023 else # !SYSTEM_LIBLANGTAG
1025 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1029 define gb_LinkTarget__use_liblangtag
1030 $(call gb_LinkTarget_use_unpacked
,$(1),langtag
)
1031 $(call gb_LinkTarget_set_include
,$(1),\
1032 -I
$(call gb_UnpackedTarball_get_dir
,langtag
) \
1035 $(call gb_LinkTarget_add_libs
,$(1),$(LIBLANGTAG_LIBS
))
1036 $(call gb_LinkTarget_use_external_project
,$(1),langtag
)
1040 endif # SYSTEM_LIBLANGTAG
1044 gb_LinkTarget__use_liblangtag
:=
1046 endif # ENABLE_LIBLANGTAG
1048 gb_ExternalProject__use_apr
:=
1050 ifeq ($(WITH_WEBDAV
),serf
)
1052 define gb_LinkTarget__use_apr
1053 $(call gb_LinkTarget_set_include
,$(1),\
1057 $(call gb_LinkTarget_add_libs
,$(1),\
1059 $(if
$(filter $(OS
),LINUX
),-lpthread
) \
1060 $(if
$(filter $(OS
),MACOSX
),-liconv
) \
1063 ifeq ($(SYSTEM_APR
),)
1064 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
1069 $(call gb_LinkTarget_add_defs
,$(1),\
1070 -DAPR_DECLARE_STATIC \
1071 -DAPU_DECLARE_STATIC \
1073 $(call gb_LinkTarget_use_external_project
,$(1),apr_util
)
1078 define gb_ExternalProject__use_apr
1079 ifeq ($(SYSTEM_APR
),)
1080 $(call gb_ExternalProject_use_external_project
,$(1),apr_util
)
1085 define gb_LinkTarget__use_serf
1086 $(call gb_LinkTarget_set_include
,$(1),\
1090 $(call gb_LinkTarget_add_libs
,$(1),\
1094 ifeq ($(SYSTEM_SERF
),)
1095 $(call gb_LinkTarget_use_external_project
,$(1),serf
)
1100 else ifeq ($(WITH_WEBDAV
),neon
)
1102 ifneq ($(SYSTEM_NEON
),)
1104 define gb_LinkTarget__use_neon
1105 $(call gb_LinkTarget_add_defs
,$(1),\
1106 -DNEON_VERSION
=0x
$(NEON_VERSION
) \
1109 $(call gb_LinkTarget_set_include
,$(1),\
1114 $(call gb_LinkTarget_add_libs
,$(1),$(NEON_LIBS
))
1120 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1124 define gb_LinkTarget__use_neon
1125 $(call gb_LinkTarget_use_unpacked
,$(1),neon
)
1126 $(call gb_LinkTarget_set_include
,$(1),\
1127 -I
$(call gb_UnpackedTarball_get_dir
,neon
/src
) \
1130 $(call gb_LinkTarget_use_libraries
,$(1),\
1140 ifneq ($(SYSTEM_REDLAND
),)
1142 define gb_LinkTarget__use_librdf
1143 $(call gb_LinkTarget_add_defs
,$(1),\
1146 $(call gb_LinkTarget_set_include
,$(1),\
1150 $(call gb_LinkTarget_add_libs
,$(1),$(REDLAND_LIBS
))
1154 gb_LinkTarget__use_redland_headers
:=
1156 gb_LinkTarget__use_raptor_headers
:=
1158 gb_LinkTarget__use_rasqal_headers
:=
1160 else # !SYSTEM_REDLAND
1162 define gb_LinkTarget__use_redland_headers
1163 $(call gb_LinkTarget_set_include
,$(1),\
1164 -I
$(call gb_UnpackedTarball_get_dir
,redland
)/src \
1170 define gb_LinkTarget__use_raptor_headers
1171 $(call gb_LinkTarget_set_include
,$(1),\
1172 -I
$(call gb_UnpackedTarball_get_dir
,raptor
)/src \
1178 define gb_LinkTarget__use_rasqal_headers
1179 $(call gb_LinkTarget_set_include
,$(1),\
1180 -I
$(call gb_UnpackedTarball_get_dir
,rasqal
)/src \
1186 ifneq ($(OS
),ANDROID
)
1189 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
, \
1195 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1202 define gb_LinkTarget__use_librdf
1204 $(call gb_LinkTarget_use_libraries
,$(1),\
1209 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
1211 $(call gb_LinkTarget_add_libs
,$(1),\
1212 -L
$(call gb_UnpackedTarball_get_dir
,raptor
)/src
/.libs
-lraptor2 \
1213 -L
$(call gb_UnpackedTarball_get_dir
,redland
)/src
/.libs
-lrdf \
1221 define gb_LinkTarget__use_librdf
1222 $(call gb_LinkTarget_use_packages
,$(1),raptor rasqal redland
)
1228 endif # SYSTEM_REDLAND
1231 ifneq ($(filter unx
,$(GUIBASE
))$(ENABLE_CAIRO_CANVAS
),) # or
1233 ifneq ($(SYSTEM_CAIRO
),)
1235 define gb_LinkTarget__use_cairo
1236 $(call gb_LinkTarget_set_include
,$(1),\
1240 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1241 $(call gb_LinkTarget_add_libs
,$(1),$(CAIRO_LIBS
))
1245 else # !SYSTEM_CAIRO
1247 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
1249 $(if
$(filter $(OS
),WNT
),,pixman
) \
1252 define gb_LinkTarget__use_cairo
1253 $(call gb_LinkTarget_use_package
,$(1),cairo
)
1254 $(call gb_LinkTarget_use_package
,$(1),pixman
)
1255 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1256 $(call gb_LinkTarget_set_include
,$(1),\
1257 -I
$(call gb_UnpackedTarball_get_dir
,cairo
) \
1258 -I
$(call gb_UnpackedTarball_get_dir
,cairo
)/src \
1261 $(call gb_LinkTarget_add_libs
,$(1),\
1262 -L
$(call gb_UnpackedTarball_get_dir
,cairo
)/src
/.libs
-lcairo \
1263 $(if
$(filter-out MACOSX WNT
,$(OS
)), \
1264 -L
$(call gb_UnpackedTarball_get_dir
,pixman
)/pixman
/.libs
-lpixman-1 \
1270 endif # SYSTEM_CAIRO
1274 ifneq ($(SYSTEM_FREETYPE
),)
1276 define gb_LinkTarget__use_freetype_headers
1277 $(call gb_LinkTarget_set_include
,$(1),\
1279 $(FREETYPE_CFLAGS
) \
1284 define gb_LinkTarget__use_freetype
1285 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1286 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1290 gb_ExternalProject__use_freetype
:=
1292 else ifeq ($(OS
),ANDROID
)
1294 define gb_LinkTarget__use_freetype_headers
1295 $(call gb_LinkTarget_use_external_project
,$(1),freetype
)
1296 $(call gb_LinkTarget_set_include
,$(1),\
1297 -I
$(call gb_UnpackedTarball_get_dir
,freetype
)/include \
1303 define gb_LinkTarget__use_freetype
1304 $(call gb_LinkTarget_use_external
,$(1),freetype_headers
)
1305 $(call gb_LinkTarget_add_libs
,$(1),$(FREETYPE_LIBS
))
1309 define gb_ExternalProject__use_freetype
1310 $(call gb_ExternalProject_use_external_project
,$(1),freetype
)
1314 endif # SYSTEM_FREETYPE
1316 ifneq ($(SYSTEM_FONTCONFIG
),)
1318 define gb_LinkTarget__use_fontconfig
1319 $(call gb_LinkTarget_set_include
,$(1),\
1321 $(FONTCONFIG_CFLAGS
) \
1324 $(call gb_LinkTarget_add_libs
,$(1),$(FONTCONFIG_LIBS
))
1328 else ifeq ($(OS
),ANDROID
)
1330 define gb_LinkTarget__use_fontconfig
1331 $(call gb_LinkTarget_use_external_project
,$(1),fontconfig
)
1332 $(call gb_LinkTarget_set_include
,$(1),\
1333 -I
$(call gb_UnpackedTarball_get_dir
,fontconfig
) \
1339 endif # SYSTEM_FONTCONFIG
1341 ifeq ($(ENABLE_GRAPHITE
),TRUE
)
1343 ifneq ($(SYSTEM_GRAPHITE
),)
1345 define gb_LinkTarget__use_graphite
1346 $(call gb_LinkTarget_set_include
,$(1),\
1348 $(GRAPHITE_CFLAGS
) \
1350 $(call gb_LinkTarget_add_libs
,$(1),$(GRAPHITE_LIBS
))
1354 else # !SYSTEM_GRAPHITE
1356 define gb_LinkTarget__use_graphite
1357 $(call gb_LinkTarget_use_unpacked
,$(1),graphite
)
1358 $(call gb_LinkTarget_set_include
,$(1),\
1359 -I
$(call gb_UnpackedTarball_get_dir
,graphite
/include) \
1362 $(call gb_LinkTarget_use_static_libraries
,$(1),\
1368 endif # SYSTEM_GRAPHITE
1370 else # !ENABLE_GRAPHITE
1372 gb_LinkTarget__use_graphite
:=
1374 endif # ENABLE_GRAPHITE
1376 ifneq ($(SYSTEM_ICU
),)
1378 gb_LinkTarget__use_icu_headers
:=
1379 gb_ExternalProject__use_icu
:=
1381 define gb_LinkTarget__use_icudata
1382 $(call gb_LinkTarget_add_libs
,$(1),-licudata
)
1385 define gb_LinkTarget__use_icui18n
1386 $(call gb_LinkTarget_add_libs
,$(1),-licui18n
)
1389 define gb_LinkTarget__use_icuuc
1390 $(call gb_LinkTarget_add_libs
,$(1),-licuuc
)
1396 $(eval
$(call gb_Helper_register_packages_for_install
,ure
, \
1400 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1404 ifeq ($(OS
)$(DISABLE_DYNLOADING
),ANDROID
)
1410 define gb_LinkTarget__use_icu_headers
1411 $(call gb_LinkTarget_use_unpacked
,$(1),icu
)
1412 $(call gb_LinkTarget_set_include
,$(1),\
1413 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source \
1414 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/i18n \
1415 -I
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/common \
1421 define gb_ExternalProject__use_icu
1422 $(call gb_ExternalProject_use_package
,$(1),icu
)
1426 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1427 define gb_LinkTarget__use_icudata
1428 $(call gb_LinkTarget_use_package
,$(1),icu
)
1431 $(call gb_LinkTarget_add_libs
,$(1),\
1432 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icudt
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1435 $(call gb_LinkTarget_add_libs
,$(1),\
1436 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licudata
$(gb_ICU_suffix
) \
1442 define gb_LinkTarget__use_icui18n
1443 $(call gb_LinkTarget_use_package
,$(1),icu
)
1446 $(call gb_LinkTarget_add_libs
,$(1),\
1447 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuin
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1450 $(call gb_LinkTarget_add_libs
,$(1),\
1451 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licui18n
$(gb_ICU_suffix
) \
1457 define gb_LinkTarget__use_icuuc
1458 $(call gb_LinkTarget_use_package
,$(1),icu
)
1461 $(call gb_LinkTarget_add_libs
,$(1),\
1462 $(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
/icuuc
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
).lib \
1465 $(call gb_LinkTarget_add_libs
,$(1),\
1466 -L
$(call gb_UnpackedTarball_get_dir
,icu
)/source
/lib
-licuuc
$(gb_ICU_suffix
) \
1474 ifeq ($(ENABLE_HARFBUZZ
),TRUE
)
1475 ifneq ($(SYSTEM_HARFBUZZ
),)
1477 define gb_LinkTarget__use_harfbuzz
1478 $(call gb_LinkTarget_set_include
,$(1),\
1480 $(HARFBUZZ_CFLAGS
) \
1482 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1486 else # SYSTEM_HARFBUZZ != TRUE
1488 define gb_LinkTarget__use_harfbuzz
1489 $(call gb_LinkTarget_set_include
,$(1),\
1490 $(HARFBUZZ_CFLAGS
) \
1493 $(call gb_LinkTarget_add_libs
,$(1),$(HARFBUZZ_LIBS
))
1494 $(call gb_LinkTarget_use_external_project
,$(1),harfbuzz
)
1498 endif # SYSTEM_HARFBUZZ
1499 else # ENABLE_HARFBUZZ != YES
1501 gb_LinkTarget__use_harfbuzz
:=
1503 endif # ENABLE_HARFBUZZ
1505 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1507 gb_ExternalProject__use_openssl
:=
1508 gb_LinkTarget__use_openssl_headers
:=
1509 gb_LinkTarget__use_openssl
:=
1511 else # !DISABLE_OPENSSL
1513 ifneq ($(SYSTEM_OPENSSL
),)
1515 gb_LinkTarget__use_openssl_headers
:=
1516 gb_ExternalProject__use_openssl
:=
1518 define gb_LinkTarget__use_openssl
1519 $(call gb_LinkTarget_set_include
,$(1),\
1523 $(call gb_LinkTarget_add_libs
,$(1),$(OPENSSL_LIBS
))
1527 else # !SYSTEM_OPENSSL
1529 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1533 define gb_ExternalProject__use_openssl
1534 $(call gb_ExternalProject_use_package
,$(1),openssl
)
1538 define gb_LinkTarget__use_openssl_headers
1539 $(call gb_LinkTarget_set_include
,$(1),\
1540 -I
$(call gb_UnpackedTarball_get_dir
,openssl
)/include \
1546 define gb_LinkTarget__use_openssl
1547 $(call gb_LinkTarget_use_package
,$(1),openssl
)
1549 $(call gb_LinkTarget_add_libs
,$(1),\
1550 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/ssleay32.lib \
1551 $(call gb_UnpackedTarball_get_dir
,openssl
)/out32dll
/libeay32.lib \
1554 $(call gb_LinkTarget_add_libs
,$(1),\
1555 $(call gb_UnpackedTarball_get_dir
,openssl
)/libssl.a \
1556 $(call gb_UnpackedTarball_get_dir
,openssl
)/libcrypto.a \
1558 $(call gb_LinkTarget_use_external_project
,$(1),openssl
)
1559 ifeq ($(OS
),SOLARIS
)
1560 $(call gb_LinkTarget_add_libs
,$(1),\
1569 endif # SYSTEM_OPENSSL
1570 endif # DISABLE_OPENSSL
1573 ifeq ($(DISABLE_OPENSSL
),TRUE
)
1575 define gb_LinkTarget__use_gnutls
1576 $(call gb_LinkTarget_set_include
,$(1),\
1581 $(call gb_LinkTarget_add_defs
,$(1),\
1585 $(call gb_LinkTarget_add_libs
,$(1),$(GNUTLS_LIBS
))
1589 define gb_LinkTarget__use_libgcrypt
1590 $(call gb_LinkTarget_set_include
,$(1),\
1592 $(LIBGCRYPT_CFLAGS
) \
1595 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGCRYPT_LIBS
))
1599 else # !DISABLE_OPENSSL
1601 gb_LinkTarget__use_gnutls
:=
1602 gb_LinkTarget__use_libgcrypt
:=
1604 endif # DISABLE_OPENSSL
1607 ifneq ($(SYSTEM_CDR
),)
1609 define gb_LinkTarget__use_cdr
1610 $(call gb_LinkTarget_set_include
,$(1),\
1614 $(call gb_LinkTarget_add_libs
,$(1),$(CDR_LIBS
))
1620 define gb_LinkTarget__use_cdr
1621 $(call gb_LinkTarget_set_include
,$(1),\
1622 -I
$(call gb_UnpackedTarball_get_dir
,libcdr
)/inc \
1625 $(call gb_LinkTarget_add_libs
,$(1),\
1626 $(call gb_UnpackedTarball_get_dir
,libcdr
)/src
/lib
/.libs
/libcdr-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1628 $(call gb_LinkTarget_use_external_project
,$(1),libcdr
)
1634 ifneq ($(SYSTEM_EBOOK
),)
1636 define gb_LinkTarget__use_ebook
1637 $(call gb_LinkTarget_set_include
,$(1),\
1641 $(call gb_LinkTarget_add_libs
,$(1),$(EBOOK_LIBS
))
1645 gb_ExternalProject__use_ebook
:=
1647 else # !SYSTEM_EBOOK
1649 define gb_LinkTarget__use_ebook
1650 $(call gb_LinkTarget_set_include
,$(1),\
1651 -I
${WORKDIR}/UnpackedTarball
/libebook
/inc \
1654 $(call gb_LinkTarget_add_libs
,$(1),\
1655 $(call gb_UnpackedTarball_get_dir
,libebook
)/src
/lib
/.libs
/libe-book-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1657 $(call gb_LinkTarget_use_external_project
,$(1),libebook
)
1661 define gb_ExternalProject__use_ebook
1662 $(call gb_ExternalProject_use_external_project
,$(1),libebook
)
1666 endif # SYSTEM_EBOOK
1669 ifneq ($(SYSTEM_ETONYEK
),)
1671 define gb_LinkTarget__use_etonyek
1672 $(call gb_LinkTarget_set_include
,$(1),\
1676 $(call gb_LinkTarget_add_libs
,$(1),$(ETONYEK_LIBS
))
1680 gb_ExternalProject__use_etonyek
:=
1682 else # !SYSTEM_ETONYEK
1684 define gb_LinkTarget__use_etonyek
1685 $(call gb_LinkTarget_set_include
,$(1),\
1686 -I
${WORKDIR}/UnpackedTarball
/libetonyek
/inc \
1689 $(call gb_LinkTarget_add_libs
,$(1),\
1690 $(call gb_UnpackedTarball_get_dir
,libetonyek
)/src
/lib
/.libs
/libetonyek-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1692 $(call gb_LinkTarget_use_external_project
,$(1),libetonyek
)
1696 define gb_ExternalProject__use_etonyek
1697 $(call gb_ExternalProject_use_external_project
,$(1),libetonyek
)
1701 endif # SYSTEM_ETONYEK
1704 ifneq ($(SYSTEM_FREEHAND
),)
1706 define gb_LinkTarget__use_freehand
1707 $(call gb_LinkTarget_set_include
,$(1),\
1709 $(FREEHAND_CFLAGS
) \
1711 $(call gb_LinkTarget_add_libs
,$(1),$(FREEHAND_LIBS
))
1715 gb_ExternalProject__use_freehand
:=
1717 else # !SYSTEM_FREEHAND
1719 define gb_LinkTarget__use_freehand
1720 $(call gb_LinkTarget_set_include
,$(1),\
1721 -I
${WORKDIR}/UnpackedTarball
/libfreehand
/inc \
1724 $(call gb_LinkTarget_add_libs
,$(1),\
1725 $(call gb_UnpackedTarball_get_dir
,libfreehand
)/src
/lib
/.libs
/libfreehand-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1727 $(call gb_LinkTarget_use_external_project
,$(1),libfreehand
)
1731 define gb_ExternalProject__use_freehand
1732 $(call gb_ExternalProject_use_external_project
,$(1),libfreehand
)
1736 endif # SYSTEM_FREEHAND
1739 ifneq ($(SYSTEM_ODFGEN
),)
1741 define gb_LinkTarget__use_odfgen
1742 $(call gb_LinkTarget_set_include
,$(1),\
1746 $(call gb_LinkTarget_add_libs
,$(1),$(ODFGEN_LIBS
))
1750 else # !SYSTEM_ODFGEN
1754 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1758 define gb_LinkTarget__use_odfgen
1759 $(call gb_LinkTarget_set_include
,$(1),\
1760 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1763 $(call gb_LinkTarget_use_libraries
,$(1),\
1771 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1775 define gb_LinkTarget__use_odfgen
1776 $(call gb_LinkTarget_use_package
,$(1),libodfgen
)
1778 $(call gb_LinkTarget_set_include
,$(1),\
1779 -I
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/inc \
1782 $(call gb_LinkTarget_add_libs
,$(1),\
1783 -L
$(call gb_UnpackedTarball_get_dir
,libodfgen
)/src
/.libs
-lodfgen-0.1 \
1790 endif # SYSTEM_ODFGEN
1793 ifneq ($(SYSTEM_REVENGE
),)
1795 define gb_LinkTarget__use_revenge
1796 $(call gb_LinkTarget_set_include
,$(1),\
1800 $(call gb_LinkTarget_add_libs
,$(1),$(REVENGE_LIBS
))
1804 gb_ExternalProject__use_revenge
:=
1806 else # !SYSTEM_REVENGE
1810 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
1814 define gb_LinkTarget__use_revenge
1815 $(call gb_LinkTarget_set_include
,$(1),\
1819 $(call gb_LinkTarget_use_libraries
,$(1),\
1825 define gb_ExternalProject__use_revenge
1826 $(call gb_ExternalProject_get_preparation_target
,$(1)) : $(call gb_Library_get_target
,revenge
)
1832 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
1836 define gb_LinkTarget__use_revenge
1837 $(call gb_LinkTarget_use_package
,$(1),librevenge
)
1839 $(call gb_LinkTarget_set_include
,$(1),\
1843 $(call gb_LinkTarget_add_libs
,$(1),\
1848 define gb_ExternalProject__use_revenge
1849 $(call gb_ExternalProject_use_package
,$(1),librevenge
)
1855 endif # SYSTEM_REVENGE
1858 ifneq ($(SYSTEM_ABW
),)
1860 define gb_LinkTarget__use_abw
1861 $(call gb_LinkTarget_set_include
,$(1),\
1865 $(call gb_LinkTarget_add_libs
,$(1),$(ABW_LIBS
))
1868 gb_ExternalProject__use_abw
:=
1872 define gb_LinkTarget__use_abw
1873 $(call gb_LinkTarget_set_include
,$(1),\
1874 -I
$(call gb_UnpackedTarball_get_dir
,libabw
)/inc \
1877 $(call gb_LinkTarget_add_libs
,$(1),\
1878 $(call gb_UnpackedTarball_get_dir
,libabw
)/src
/lib
/.libs
/libabw-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1880 $(call gb_LinkTarget_use_external_project
,$(1),libabw
)
1883 define gb_ExternalProject__use_abw
1884 $(call gb_ExternalProject_use_external_project
,$(1),libabw
)
1891 ifneq ($(SYSTEM_MSPUB
),)
1893 define gb_LinkTarget__use_mspub
1894 $(call gb_LinkTarget_set_include
,$(1),\
1898 $(call gb_LinkTarget_add_libs
,$(1),$(MSPUB_LIBS
))
1902 else # !SYSTEM_MSPUB
1904 define gb_LinkTarget__use_mspub
1905 $(call gb_LinkTarget_set_include
,$(1),\
1906 -I
$(call gb_UnpackedTarball_get_dir
,libmspub
)/inc \
1909 $(call gb_LinkTarget_add_libs
,$(1),\
1910 $(call gb_UnpackedTarball_get_dir
,libmspub
)/src
/lib
/.libs
/libmspub-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1912 $(call gb_LinkTarget_use_external_project
,$(1),libmspub
)
1916 endif # SYSTEM_MSPUB
1919 ifneq ($(SYSTEM_VISIO
),)
1921 define gb_LinkTarget__use_visio
1922 $(call gb_LinkTarget_set_include
,$(1),\
1926 $(call gb_LinkTarget_add_libs
,$(1),$(VISIO_LIBS
))
1930 else # !SYSTEM_VISIO
1932 define gb_LinkTarget__use_visio
1933 $(call gb_LinkTarget_set_include
,$(1),\
1934 -I
$(call gb_UnpackedTarball_get_dir
,libvisio
)/inc \
1937 $(call gb_LinkTarget_add_libs
,$(1),\
1938 $(call gb_UnpackedTarball_get_dir
,libvisio
)/src
/lib
/.libs
/libvisio-0.1
$(gb_StaticLibrary_PLAINEXT
) \
1940 $(call gb_LinkTarget_use_external_project
,$(1),libvisio
)
1944 endif # SYSTEM_VISIO
1947 ifneq ($(SYSTEM_WPD
),)
1949 define gb_LinkTarget__use_wpd
1950 $(call gb_LinkTarget_set_include
,$(1),\
1954 $(call gb_LinkTarget_add_libs
,$(1),$(WPD_LIBS
))
1957 gb_ExternalProject__use_wpd
:=
1961 define gb_LinkTarget__use_wpd
1962 $(call gb_LinkTarget_set_include
,$(1),\
1966 $(call gb_LinkTarget_add_libs
,$(1),\
1967 $(call gb_UnpackedTarball_get_dir
,libwpd
)/src
/lib
/.libs
/libwpd-0.10
$(gb_StaticLibrary_PLAINEXT
) \
1969 $(call gb_LinkTarget_use_external_project
,$(1),libwpd
)
1972 define gb_ExternalProject__use_wpd
1973 $(call gb_ExternalProject_use_external_project
,$(1),libwpd
)
1980 ifneq ($(SYSTEM_WPG
),)
1982 define gb_LinkTarget__use_wpg
1983 $(call gb_LinkTarget_set_include
,$(1),\
1987 $(call gb_LinkTarget_add_libs
,$(1),$(WPG_LIBS
))
1990 gb_ExternalProject__use_wpg
:=
1994 define gb_LinkTarget__use_wpg
1995 $(call gb_LinkTarget_set_include
,$(1),\
1996 -I
$(call gb_UnpackedTarball_get_dir
,libwpg
)/inc \
1999 $(call gb_LinkTarget_add_libs
,$(1),\
2000 $(call gb_UnpackedTarball_get_dir
,libwpg
)/src
/lib
/.libs
/libwpg-0.3
$(gb_StaticLibrary_PLAINEXT
) \
2002 $(call gb_LinkTarget_use_external_project
,$(1),libwpg
)
2005 define gb_ExternalProject__use_wpg
2006 $(call gb_ExternalProject_use_external_project
,$(1),libwpg
)
2013 ifneq ($(SYSTEM_WPS
),)
2015 define gb_LinkTarget__use_wps
2016 $(call gb_LinkTarget_set_include
,$(1),\
2020 $(call gb_LinkTarget_add_libs
,$(1),$(WPS_LIBS
))
2023 gb_ExternalProject__use_wps
:=
2029 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2033 define gb_LinkTarget__use_wps
2034 $(call gb_LinkTarget_set_include
,$(1),\
2035 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2039 $(call gb_LinkTarget_use_libraries
,$(1),\
2047 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
2051 define gb_LinkTarget__use_wps
2052 $(call gb_LinkTarget_use_package
,$(1),libwps
)
2054 $(call gb_LinkTarget_set_include
,$(1),\
2055 -I
$(call gb_UnpackedTarball_get_dir
,libwps
)/inc \
2058 $(call gb_LinkTarget_add_libs
,$(1),\
2059 -L
$(call gb_UnpackedTarball_get_dir
,libwps
)/src
/lib
/.libs
-lwps-0.3 \
2069 ifneq ($(SYSTEM_MWAW
),)
2071 define gb_LinkTarget__use_mwaw
2072 $(call gb_LinkTarget_set_include
,$(1),\
2076 $(call gb_LinkTarget_add_libs
,$(1),$(MWAW_LIBS
))
2084 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2088 define gb_LinkTarget__use_mwaw
2089 $(call gb_LinkTarget_set_include
,$(1),\
2090 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2094 $(call gb_LinkTarget_use_libraries
,$(1),\
2102 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2106 define gb_LinkTarget__use_mwaw
2107 $(call gb_LinkTarget_use_package
,$(1),libmwaw
)
2109 $(call gb_LinkTarget_set_include
,$(1),\
2110 -I
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/inc \
2113 $(call gb_LinkTarget_add_libs
,$(1),\
2114 -L
$(call gb_UnpackedTarball_get_dir
,libmwaw
)/src
/lib
/.libs
-lmwaw-0.3 \
2124 ifneq ($(SYSTEM_LCMS2
),)
2126 define gb_LinkTarget__use_lcms2
2127 $(call gb_LinkTarget_set_include
,$(1),\
2131 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2135 gb_ExternalProject__use_lcms2
:=
2137 else # !SYSTEM_LCMS2
2139 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2143 define gb_ExternalProject__use_lcms2
2144 $(call gb_ExternalProject_use_package
,$(1),lcms2
)
2148 ifeq ($(OS
),ANDROID
)
2150 define gb_LinkTarget__use_lcms2
2151 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2152 $(call gb_LinkTarget_set_include
,$(1),\
2153 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2161 define gb_LinkTarget__use_lcms2
2162 $(call gb_LinkTarget_use_package
,$(1),lcms2
)
2163 $(call gb_LinkTarget_set_include
,$(1),\
2164 -I
$(call gb_UnpackedTarball_get_dir
,lcms2
/include) \
2167 $(call gb_LinkTarget_add_libs
,$(1),$(LCMS2_LIBS
))
2172 endif # SYSTEM_LCMS2
2174 ifneq ($(ENABLE_LPSOLVE
),)
2176 ifneq ($(SYSTEM_LPSOLVE
),)
2178 define gb_LinkTarget__use_lpsolve
2179 $(call gb_LinkTarget_add_libs
,$(1),-llpsolve55
)
2180 $(call gb_LinkTarget_add_defs
,$(1),\
2186 else # !SYSTEM_LPSOLVE
2188 define gb_LinkTarget__use_lpsolve
2189 $(call gb_LinkTarget_use_unpacked
,$(1),lpsolve
)
2191 $(call gb_LinkTarget_add_libs
,$(1),\
2192 $(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
/lpsolve55.lib \
2195 $(call gb_LinkTarget_add_libs
,$(1),\
2196 -L
$(call gb_UnpackedTarball_get_dir
,lpsolve
)/lpsolve55
-llpsolve55 \
2199 $(call gb_LinkTarget_set_include
,$(1),\
2200 -I
$(call gb_UnpackedTarball_get_dir
,lpsolve
) \
2206 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2210 endif # SYSTEM_LPSOLVE
2214 gb_LinkTarget__use_lpsolve
:=
2216 endif # ENABLE_LPSOLVE
2218 ifneq ($(ENABLE_COINMP
),)
2220 define gb_LinkTarget__use_coinmp
2221 $(call gb_LinkTarget_use_package
,$(1),coinmp
)
2223 $(call gb_LinkTarget_add_libs
,$(1),\
2224 $(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/MSVisualStudio
/v9
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
)/CoinMP.lib \
2227 $(call gb_LinkTarget_add_libs
,$(1),\
2228 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cbc
/src
/.libs
-lCbc
-lCbcSolver \
2229 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Cgl
/src
/.libs
-lCgl \
2230 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/.libs
-lClp \
2231 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Clp
/src
/OsiClp
/.libs
-lOsiClp \
2232 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src
/.libs
-lCoinMP \
2233 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinUtils
/src
/.libs
-lCoinUtils \
2234 -L
$(call gb_UnpackedTarball_get_dir
,coinmp
)/Osi
/src
/Osi
/.libs
-lOsi \
2237 $(call gb_LinkTarget_set_include
,$(1),\
2238 -I
$(call gb_UnpackedTarball_get_dir
,coinmp
)/CoinMP
/src \
2244 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2250 gb_LinkTarget__use_coinmp
:=
2252 endif # ENABLE_COINMP
2254 ifeq ($(ENABLE_GIO
),TRUE
)
2256 define gb_LinkTarget__use_gio
2257 $(call gb_LinkTarget_set_include
,$(1),\
2262 $(call gb_LinkTarget_add_defs
,$(1),\
2266 $(call gb_LinkTarget_add_libs
,$(1),$(GIO_LIBS
))
2272 define gb_LinkTarget__use_gio
2278 ifeq ($(ENABLE_AVAHI
),TRUE
)
2280 define gb_LinkTarget__use_avahi
2281 $(call gb_LinkTarget_set_include
,$(1),\
2286 $(call gb_LinkTarget_add_defs
,$(1),\
2290 $(call gb_LinkTarget_add_libs
,$(1),$(AVAHI_LIBS
))
2296 gb_LinkTarget__use_avahi
:=
2298 endif # ENABLE_AVAHI
2301 define gb_LinkTarget__use_gtk
2302 $(call gb_LinkTarget_set_include
,$(1),\
2307 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_LIBS
))
2309 ifeq ($(ENABLE_GTK_PRINT
),TRUE
)
2311 $(call gb_LinkTarget_add_defs
,$(1),-DENABLE_GTK_PRINT
)
2313 $(call gb_LinkTarget_set_include
,$(1),\
2315 $(GTK_PRINT_CFLAGS
) \
2318 $(call gb_LinkTarget_add_libs
,$(1),$(GTK_PRINT_LIBS
))
2324 define gb_LinkTarget__use_gthread
2325 $(call gb_LinkTarget_add_libs
,$(1),$(GTHREAD_LIBS
))
2328 ifeq ($(ENABLE_CUPS
),TRUE
)
2330 define gb_LinkTarget__use_cups
2331 $(call gb_LinkTarget_add_defs
,$(1),\
2335 $(call gb_LinkTarget_add_libs
,$(1),\
2343 define gb_LinkTarget__use_cups
2349 ifeq ($(ENABLE_DBUS
),TRUE
)
2351 define gb_LinkTarget__use_dbus
2352 $(call gb_LinkTarget_set_include
,$(1),\
2357 $(call gb_LinkTarget_add_defs
,$(1),\
2361 ifeq ($(ENABLE_PACKAGEKIT
),TRUE
)
2362 $(call gb_LinkTarget_add_defs
,$(1),\
2363 -DENABLE_PACKAGEKIT \
2365 endif # ENABLE_PACKAGEKIT
2367 $(call gb_LinkTarget_add_libs
,$(1),\
2375 define gb_LinkTarget__use_dbus
2382 define gb_LinkTarget__use_dbusmenugtk
2383 $(call gb_LinkTarget_set_include
,$(1),\
2385 $(DBUSMENUGTK_CFLAGS
) \
2388 $(call gb_LinkTarget_add_libs
,$(1),$(DBUSMENUGTK_LIBS
))
2393 ifeq ($(ENABLE_TELEPATHY
),TRUE
)
2395 define gb_LinkTarget__use_telepathy
2396 $(call gb_LinkTarget_set_include
,$(1),\
2398 $(TELEPATHY_CFLAGS
) \
2401 $(call gb_LinkTarget_add_libs
,$(1),\
2407 else # !ENABLE_TELEPATHY
2409 gb_LinkTarget__use_telepathy
:=
2411 endif # ENABLE_TELEPATHY
2413 ifneq ($(SYSTEM_LIBPNG
),)
2415 define gb_LinkTarget__use_png
2416 $(call gb_LinkTarget_set_include
,$(1),\
2421 $(call gb_LinkTarget_add_libs
,$(1),\
2427 else # !SYSTEM_LIBPNG
2429 define gb_LinkTarget__use_png
2430 $(call gb_LinkTarget_set_include
,$(1),\
2434 $(call gb_LinkTarget_use_static_libraries
,$(1),\
2437 $(call gb_LinkTarget__use_zlib
,$(1))
2441 endif # !SYSTEM_LIBPNG
2444 ifneq ($(SYSTEM_CURL
),)
2446 define gb_LinkTarget__use_curl
2447 $(call gb_LinkTarget_add_defs
,$(1),\
2450 $(call gb_LinkTarget_set_include
,$(1),\
2454 $(call gb_LinkTarget_add_libs
,$(1),$(CURL_LIBS
))
2460 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2464 define gb_LinkTarget__use_curl
2465 $(call gb_LinkTarget_use_package
,$(1),curl
)
2466 $(call gb_LinkTarget_set_include
,$(1),\
2467 -I
$(call gb_UnpackedTarball_get_dir
,curl
/include) \
2472 $(call gb_LinkTarget_add_libs
,$(1),\
2473 $(call gb_UnpackedTarball_get_dir
,curl
)/lib
/libcurl
$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
)_imp.lib \
2476 $(call gb_LinkTarget_add_libs
,$(1),\
2477 -L
$(call gb_UnpackedTarball_get_dir
,curl
)/lib
/.libs
-lcurl \
2485 ifeq ($(ENABLE_VALGRIND
),TRUE
)
2487 define gb_LinkTarget__use_valgrind
2488 $(call gb_LinkTarget_add_defs
,$(1),\
2489 -DHAVE_VALGRIND_HEADERS \
2492 $(call gb_LinkTarget_set_include
,$(1),\
2494 $(VALGRIND_CFLAGS
) \
2499 else # !ENABLE_VALGRIND
2501 define gb_LinkTarget__use_valgrind
2505 endif # ENABLE_VALGRIND
2507 ifneq ($(SYSTEM_POPPLER
),)
2509 define gb_LinkTarget__use_poppler
2510 $(call gb_LinkTarget_set_include
,$(1),\
2515 $(call gb_LinkTarget_add_libs
,$(1),\
2521 else # !SYSTEM_POPPLER
2523 define gb_LinkTarget__use_poppler
2524 $(call gb_LinkTarget_use_external_project
,$(1),poppler
)
2526 $(call gb_LinkTarget_set_include
,$(1),\
2527 -I
$(call gb_UnpackedTarball_get_dir
,poppler
) \
2528 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/poppler \
2529 -I
$(call gb_UnpackedTarball_get_dir
,poppler
)/goo \
2533 $(call gb_LinkTarget_add_libs
,$(1),\
2534 $(call gb_UnpackedTarball_get_dir
,poppler
)/fofi
/.libs
/libfofi
$(gb_StaticLibrary_PLAINEXT
) \
2535 $(call gb_UnpackedTarball_get_dir
,poppler
)/goo
/.libs
/libgoo
$(gb_StaticLibrary_PLAINEXT
) \
2536 $(call gb_UnpackedTarball_get_dir
,poppler
)/poppler
/.libs
/libpoppler
$(gb_StaticLibrary_PLAINEXT
) \
2540 $(call gb_LinkTarget_add_libs
,$(1),\
2543 else ifeq ($(OS
),WNT
)
2544 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2552 endif # SYSTEM_POPPLER
2555 ifneq ($(SYSTEM_CLUCENE
),)
2557 define gb_LinkTarget__use_clucene
2558 $(call gb_LinkTarget_add_defs
,$(1),\
2559 $(filter-out -I
%,$(CLUCENE_CFLAGS
)) \
2562 $(call gb_LinkTarget_set_include
,$(1),\
2563 $(filter -I
%,$(CLUCENE_CFLAGS
)) \
2567 $(call gb_LinkTarget_add_libs
,$(1),\
2573 else # !SYSTEM_CLUCENE
2575 define gb_LinkTarget__use_clucene
2576 $(call gb_LinkTarget_set_include
,$(1),\
2577 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/core \
2578 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/shared \
2579 -I
$(call gb_UnpackedTarball_get_dir
,clucene
)/src
/contribs-lib \
2583 $(call gb_LinkTarget_use_libraries
,$(1),\
2589 $(eval
$(call gb_Helper_register_libraries_for_install
,PLAINLIBS_OOO
,ooo
,\
2593 endif # SYSTEM_CLUCENE
2595 define gb_LinkTarget__use_gobject
2596 $(call gb_LinkTarget_add_libs
,$(1),\
2600 $(call gb_LinkTarget_set_include
,$(1),\
2606 ifneq ($(SYSTEM_HSQLDB
),)
2608 define gb_LinkTarget__use_hsqldb
2610 $(call gb_LinkTarget_add_defs
,$(1),\
2612 -DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\" \
2617 else # !SYSTEM_HSQLDB
2619 define gb_LinkTarget__use_hsqldb
2623 endif # SYSTEM_HSQLDB
2626 ifneq ($(SYSTEM_OPENLDAP
),)
2628 define gb_LinkTarget__use_openldap
2630 $(call gb_LinkTarget_add_libs
,$(1),\
2637 gb_ExternalProject__use_openldap
:=
2639 else # !SYSTEM_OPENLDAP
2641 define gb_LinkTarget__use_openldap
2642 $(call gb_LinkTarget_use_unpacked
,$(1),openldap
)
2643 $(call gb_LinkTarget_set_include
,$(1),\
2644 -I
$(call gb_UnpackedTarball_get_dir
,openldap
/include) \
2647 $(call gb_LinkTarget_use_external_project
,$(1),openldap
)
2648 $(call gb_LinkTarget_add_libs
,$(1), \
2649 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/libldap
/.libs
/libldap.a \
2650 $(call gb_UnpackedTarball_get_dir
,openldap
)/libraries
/liblber
/.libs
/liblber.a \
2655 define gb_ExternalProject__use_openldap
2656 $(call gb_ExternalProject_use_external_project
,$(1),openldap
)
2660 endif # SYSTEM_OPENLDAP
2663 ifeq ($(ENABLE_FIREBIRD_SDBC
),TRUE
)
2665 ifneq ($(SYSTEM_FIREBIRD
),)
2667 define gb_LinkTarget__use_libfbembed
2668 $(call gb_LinkTarget_set_include
,$(1),\
2669 $(FIREBIRD_CFLAGS
) \
2672 $(call gb_LinkTarget_add_libs
,$(1),$(FIREBIRD_LIBS
))
2676 # gb_LinkTarget__use_atomic_ops :=
2677 # gb_LinkTarget__use_tommath :=
2679 else # !SYSTEM_FIREBIRD
2681 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2683 define gb_LinkTarget__use_libfbembed
2684 $(call gb_LinkTarget_use_package
,$(1),firebird
)
2685 $(call gb_LinkTarget_set_include
,$(1),\
2687 -I
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/include \
2690 $(call gb_LinkTarget_add_libs
,$(1),\
2691 $(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/bin
/ifbembed.lib \
2694 $(call gb_LinkTarget_add_libs
,$(1),\
2695 -L
$(call gb_UnpackedTarball_get_dir
,firebird
)/gen
/firebird
/lib
-lfbembed \
2701 # define gb_LinkTarget__use_tommath
2702 # $(call gb_LinkTarget_set_include,$(1),\
2703 # $(TOMMATH_CFLAGS) \
2707 # $(call gb_LinkTarget_add_libs,$(1),$(TOMMATH_LIBS))
2711 endif # SYSTEM_FIREBIRD
2713 else # !ENABLE_FIREBIRD_SDBC
2715 gb_LinkTarget__use_firebird
:=
2716 # gb_LinkTarget__use_atomic_ops :=
2717 # gb_LinkTarget__use_tommath :=
2719 endif # ENABLE_FIREBIRD_SDBC
2722 ifneq ($(SYSTEM_POSTGRESQL
),)
2724 define gb_LinkTarget__use_postgresql
2726 $(call gb_LinkTarget_set_include
,$(1),\
2731 $(call gb_LinkTarget_add_libs
,$(1),\
2735 $(call gb_LinkTarget_add_ldflags
,$(1),\
2741 else # !SYSTEM_POSTGRESQL
2743 define gb_LinkTarget__use_postgresql
2745 $(call gb_LinkTarget_use_external_project
,$(1),postgresql
)
2747 $(call gb_LinkTarget_set_include
,$(1),\
2748 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/include \
2749 -I
$(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq \
2753 $(call gb_LinkTarget_add_libs
,$(1),\
2754 $(call gb_UnpackedTarball_get_dir
,postgresql
)/src
/interfaces
/libpq
/libpq
$(gb_StaticLibrary_PLAINEXT
) \
2757 ifeq ($(OS
)$(COM
),WNTMSC
)
2758 $(call gb_LinkTarget_use_external
,$(1),openssl
)
2760 $(call gb_LinkTarget_use_system_win32_libs
,$(1),\
2769 endif # SYSTEM_POSTGRESQL
2771 ifneq ($(WITH_MOZAB4WIN
),)
2773 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
,\
2777 define gb_LinkTarget__use_mozilla
2779 $(call gb_LinkTarget_use_unpacked
,$(1),moz_lib
)
2780 $(call gb_LinkTarget_use_unpacked
,$(1),moz_inc
)
2782 $(call gb_LinkTarget_add_defs
,$(1),\
2783 -DMOZILLA_INTERNAL_API \
2786 $(call gb_LinkTarget_set_include
,$(1),\
2787 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
) \
2788 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/addrbook \
2789 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/content \
2790 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/embed_base \
2791 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/intl \
2792 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mime \
2793 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/mozldap \
2794 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/msgbase \
2795 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/necko \
2796 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/pref \
2797 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/profile \
2798 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/rdf \
2799 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/string \
2800 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/uconv \
2801 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom \
2802 -I
$(call gb_UnpackedTarball_get_dir
,moz_inc
)/xpcom_obsolete \
2806 $(call gb_LinkTarget_add_libs
,$(1),\
2807 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
2808 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom.lib \
2809 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/xpcom_core.lib \
2812 $(call gb_LinkTarget_add_defs
,$(1),\
2815 -DMOZ_REFLOW_PERF_DSP \
2827 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2832 -Woverloaded-virtual \
2840 ifneq ($(DBG_LEVEL
),0)
2841 $(call gb_LinkTarget_add_defs
,$(1),\
2842 -D_STL_NOFORCE_MANIFEST \
2846 $(call gb_LinkTarget_add_libs
,$(1),\
2847 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/embed_base_s.lib \
2848 $(call gb_UnpackedTarball_get_dir
,moz_lib
)/mozreg_s.lib \
2855 endif # WITH_MOZAB4WIN
2857 ifeq ($(ENABLE_KDE
),TRUE
)
2859 define gb_LinkTarget__use_kde
2860 $(call gb_LinkTarget_set_include
,$(1),\
2861 $(filter -I
%,$(KDE_CFLAGS
)) \
2865 $(call gb_LinkTarget_add_defs
,$(1),\
2866 $(filter-out -I
%,$(KDE_CFLAGS
)) \
2869 $(call gb_LinkTarget_add_libs
,$(1),\
2874 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2883 define gb_LinkTarget__use_kde
2890 ifeq ($(ENABLE_KDE4
),TRUE
)
2892 define gb_LinkTarget__use_kde4
2893 $(call gb_LinkTarget_set_include
,$(1),\
2894 $(filter -I
%,$(KDE4_CFLAGS
)) \
2898 $(call gb_LinkTarget_add_defs
,$(1),\
2899 $(filter-out -I
%,$(KDE4_CFLAGS
)) \
2902 $(call gb_LinkTarget_add_libs
,$(1),\
2907 $(call gb_LinkTarget_add_cxxflags
,$(1),\
2916 define gb_LinkTarget__use_kde4
2923 ifeq ($(ENABLE_TDE
),TRUE
)
2925 define gb_LinkTarget__use_tde
2926 $(call gb_LinkTarget_add_libs
,$(1),\
2930 $(call gb_LinkTarget_set_include
,$(1),\
2938 define gb_LinkTarget__use_tde
2945 ifeq ($(ENABLE_GCONF
),TRUE
)
2947 define gb_LinkTarget__use_gconf
2948 $(call gb_LinkTarget_set_include
,$(1),\
2949 $(filter -I
%,$(GCONF_CFLAGS
)) \
2953 $(call gb_LinkTarget_add_defs
,$(1),\
2954 $(filter-out -I
%,$(GCONF_CFLAGS
)) \
2957 $(call gb_LinkTarget_add_libs
,$(1),\
2963 else # !ENABLE_GCONF
2965 define gb_LinkTarget__use_gconf
2969 endif # ENABLE_GCONF
2973 # extra python_headers external because pyuno wrapper must not link python
2974 ifneq ($(SYSTEM_PYTHON
),)
2976 define gb_LinkTarget__use_python_headers
2977 $(call gb_LinkTarget_add_defs
,$(1),\
2978 $(filter-out -I
%,$(PYTHON_CFLAGS
)) \
2981 $(call gb_LinkTarget_set_include
,$(1),\
2982 $(filter -I
%,$(PYTHON_CFLAGS
)) \
2988 define gb_LinkTarget__use_python
2989 $(call gb_LinkTarget__use_python_headers
,$(1))
2991 $(call gb_LinkTarget_add_libs
,$(1),\
2997 else # !SYSTEM_PYTHON
2999 $(eval
$(call gb_Helper_register_packages_for_install
,python
,\
3003 # depend on external project because on MACOSX the Package is disabled...
3004 define gb_LinkTarget__use_python_headers
3005 $(call gb_LinkTarget_use_external_project
,$(1),python3
)
3006 $(call gb_LinkTarget_set_include
,$(1),\
3007 -I
$(call gb_UnpackedTarball_get_dir
,python3
) \
3008 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/PC \
3009 -I
$(call gb_UnpackedTarball_get_dir
,python3
)/Include \
3015 define gb_LinkTarget__use_python
3016 $(call gb_LinkTarget__use_python_headers
,$(1))
3019 $(call gb_LinkTarget_add_libs
,$(1),\
3020 $(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 \
3022 else ifeq ($(OS
),MACOSX
)
3023 $(call gb_LinkTarget_add_libs
,$(1),\
3024 -F
$(call gb_UnpackedTarball_get_dir
,python3
)/python-inst
/@__________________________________________________OOO
-framework LibreOfficePython \
3027 $(call gb_LinkTarget_add_libs
,$(1),\
3028 -L
$(call gb_UnpackedTarball_get_dir
,python3
) \
3029 -lpython
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)m \
3035 endif # SYSTEM_PYTHON
3038 ifeq ($(ENABLE_ORCUS
),TRUE
)
3040 ifneq ($(SYSTEM_LIBORCUS
),)
3042 define gb_LinkTarget__use_orcus
3043 $(call gb_LinkTarget_set_include
,$(1),\
3047 $(call gb_LinkTarget_add_libs
,$(1),$(ORCUS_LIBS
))
3050 define gb_LinkTarget__use_orcus-parser
3054 else # !SYSTEM_LIBORCUS
3056 define gb_LinkTarget__use_orcus
3057 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
3058 $(call gb_LinkTarget_set_include
,$(1),\
3059 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3062 $(call gb_LinkTarget_add_libs
,$(1),\
3063 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/liborcus
/.libs
/liborcus-0.8
$(gb_StaticLibrary_PLAINEXT
) \
3066 $(if
$(SYSTEM_BOOST
), \
3067 $(call gb_LinkTarget_add_ldflags
,$(1),$(BOOST_LDFLAGS
)) \
3068 $(call gb_LinkTarget_add_libs
,$(1),$(BOOST_SYSTEM_LIB
)) \
3073 define gb_LinkTarget__use_orcus-parser
3074 $(call gb_LinkTarget_use_external_project
,$(1),liborcus
)
3075 $(call gb_LinkTarget_set_include
,$(1),\
3076 -I
$(call gb_UnpackedTarball_get_dir
,liborcus
/include) \
3079 $(call gb_LinkTarget_add_libs
,$(1),\
3080 $(call gb_UnpackedTarball_get_dir
,liborcus
)/src
/parser
/.libs
/liborcus-parser-0.8
$(gb_StaticLibrary_PLAINEXT
) \
3085 endif # SYSTEM_LIBORCUS
3087 else # ENABLE_ORCUS != TRUE
3089 gb_LinkTarget__use_orcus
:=
3090 gb_LinkTarget__use_orcus-parser
:=
3094 ifeq ($(ENABLE_EOT
),TRUE
)
3096 ifneq ($(SYSTEM_LIBEOT
),)
3098 define gb_LinkTarget__use_libeot
3099 $(call gb_LinkTarget_set_include
,$(1),\
3103 $(call gb_LinkTarget_add_libs
,$(1),$(LIBEOT_LIBS
))
3107 gb_ExternalProject__use_libeot
:=
3109 else # !SYSTEM_LIBEOT
3111 define gb_LinkTarget__use_libeot
3112 $(call gb_LinkTarget_set_include
,$(1),\
3113 -I
$(call gb_UnpackedTarball_get_dir
,libeot
)/inc \
3116 $(call gb_LinkTarget_add_libs
,$(1),\
3117 $(call gb_UnpackedTarball_get_dir
,libeot
)/.libs
/libeot
$(gb_StaticLibrary_PLAINEXT
) \
3119 $(call gb_LinkTarget_use_external_project
,$(1),libeot
)
3123 define gb_ExternalProject__use_libeot
3124 $(call gb_ExternalProject_use_external_project
,$(1),libeot
)
3128 endif # SYSTEM_LIBEOT
3132 gb_LinkTarget__use_libeot
:=
3133 gb_ExternalProject__use_libeot
:=
3139 ifeq ($(GUIBASE
),unx
)
3141 ifeq ($(XRANDR_DLOPEN
),FALSE
)
3143 define gb_LinkTarget__use_Xrandr
3144 $(call gb_LinkTarget_set_include
,$(1),\
3149 $(call gb_LinkTarget_add_libs
,$(1),\
3154 else # XRANDR_DLOPEN
3156 define gb_LinkTarget__use_Xrandr
3157 $(call gb_LinkTarget_add_defs
,$(1),\
3162 endif # XRANDR_DLOPEN
3164 define gb_LinkTarget__use_Xrender
3165 $(call gb_LinkTarget_set_include
,$(1),\
3170 $(call gb_LinkTarget_add_libs
,$(1),\
3178 gb_ExternalProject__use_nss3
:=
3180 ifeq (,$(filter DESKTOP
,$(BUILD_TYPE
)))
3182 gb_LinkTarget__use_nss3
:=
3186 ifneq ($(SYSTEM_NSS
),)
3188 define gb_LinkTarget__use_nss3
3189 $(call gb_LinkTarget_add_defs
,$(1),\
3193 $(call gb_LinkTarget_set_include
,$(1),\
3198 $(call gb_LinkTarget_add_libs
,$(1),\
3204 define gb_LinkTarget__use_plc4
3205 $(call gb_LinkTarget__use_nss3
,$(1))
3209 define gb_LinkTarget__use_ssl3
3210 $(call gb_LinkTarget__use_nss3
,$(1))
3216 $(eval
$(call gb_Helper_register_packages_for_install
,ooo
, \
3220 define gb_LinkTarget__use_nss3
3221 $(call gb_LinkTarget_use_package
,$(1),nss
)
3222 $(call gb_LinkTarget_set_include
,$(1),\
3224 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/public
/nss \
3225 -I
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/include \
3229 $(call gb_LinkTarget_add_libs
,$(1),\
3230 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nspr4.lib \
3231 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/nss3.lib \
3232 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/smime3.lib \
3235 $(call gb_LinkTarget_add_libs
,$(1),\
3236 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib \
3245 define gb_LinkTarget__use_plc4
3246 $(call gb_LinkTarget_use_package
,$(1),nss
)
3248 $(call gb_LinkTarget_add_libs
,$(1),\
3249 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/plc4.lib \
3252 $(call gb_LinkTarget_add_libs
,$(1),\
3253 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lplc4 \
3259 define gb_LinkTarget__use_ssl3
3260 $(call gb_LinkTarget_use_package
,$(1),nss
)
3262 $(call gb_LinkTarget_add_libs
,$(1),\
3263 $(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
/ssl3.lib \
3266 $(call gb_LinkTarget_add_libs
,$(1),\
3267 -L
$(call gb_UnpackedTarball_get_dir
,nss
)/dist/out
/lib
-lssl3 \
3273 define gb_ExternalProject__use_nss3
3274 $(call gb_ExternalProject_use_package
,$(1),nss
)
3282 ifeq ($(ENABLE_GLTF
),TRUE
)
3284 ifneq ($(SYSTEM_LIBGLTF
),TRUE
)
3286 define gb_LinkTarget__use_libgltf
3287 $(call gb_LinkTarget_set_include
,$(1),\
3288 -I
$(call gb_UnpackedTarball_get_dir
,libgltf
)/inc \
3293 $(call gb_LinkTarget_add_libs
,$(1),\
3294 $(call gb_UnpackedTarball_get_dir
,libgltf
)/build
/win32
/$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
/libgltf.lib
,Release
/libgltf.lib
) \
3297 $(call gb_LinkTarget_add_libs
,$(1),\
3298 $(call gb_UnpackedTarball_get_dir
,libgltf
)/src
/.libs
/libgltf-0.0
$(gb_StaticLibrary_PLAINEXT
) \
3302 $(call gb_LinkTarget_use_external_project
,$(1),libgltf
)
3306 else # SYSTEM_LIBGLTF
3308 define gb_LinkTarget__use_libgltf
3309 $(call gb_LinkTarget_set_include
,$(1),\
3313 $(call gb_LinkTarget_add_libs
,$(1),$(LIBGLTF_LIBS
))
3317 endif # SYSTEN_LIBGLTF
3319 ifeq ($(ENABLE_COLLADA
),TRUE
)
3321 define gb_LinkTarget__use_opencollada_parser
3322 $(call gb_LinkTarget_set_include
,$(1),\
3323 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADABaseUtils
/include \
3324 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADAFramework
/include \
3325 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/COLLADASaxFrameworkLoader
/include \
3326 -I
$(call gb_UnpackedTarball_get_dir
,opencollada
)/GeneratedSaxParser
/include \
3330 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3331 opencollada_parser \
3335 define gb_LinkTarget__use_collada2gltf
3336 $(call gb_LinkTarget_set_include
,$(1),\
3337 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
) \
3338 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/assetModifiers \
3339 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/GLTF \
3340 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/helpers \
3341 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/JSON \
3342 -I
$(call gb_UnpackedTarball_get_dir
,collada2gltf
)/dependencies
/json
/include/rapidjson
/ \
3346 $(call gb_LinkTarget_use_static_libraries
,$(1),\
3351 endif # ENABLE_COLLADA
3355 ### Jars ############################################################
3357 ifneq ($(SYSTEM_HSQLDB
),)
3359 define gb_Jar__use_hsqldb
3360 $(call gb_Jar_use_system_jar
,$(1),$(HSQLDB_JAR
))
3362 define gb_JunitTest__use_hsqldb
3363 $(call gb_JunitTest_use_system_jar
,$(1),$(HSQLDB_JAR
))
3366 else # !SYSTEM_HSQLDB
3368 ifeq ($(ENABLE_JAVA
),TRUE
)
3369 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,ooo
, \
3374 define gb_Jar__use_hsqldb
3375 $(call gb_Jar_use_jar
,$(1),hsqldb
)
3377 define gb_JunitTest__use_hsqldb
3378 $(call gb_JunitTest_use_jar
,$(1),hsqldb
)
3381 endif # SYSTEM_HSQLDB
3384 ifeq ($(ENABLE_SCRIPTING_BEANSHELL
),TRUE
)
3386 ifneq ($(SYSTEM_BSH
),)
3388 define gb_Jar__use_bsh
3389 $(call gb_Jar_use_system_jar
,$(1),$(BSH_JAR
))
3394 ifeq ($(ENABLE_JAVA
),TRUE
)
3395 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_bsh
, \
3400 define gb_Jar__use_bsh
3401 $(call gb_Jar_use_jar
,$(1),bsh
)
3408 ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT
),TRUE
)
3410 ifneq ($(SYSTEM_RHINO
),)
3412 define gb_Jar__use_rhino
3413 $(call gb_Jar_use_system_jar
,$(1),$(RHINO_JAR
))
3416 else # !SYSTEM_RHINO
3418 ifeq ($(ENABLE_JAVA
),TRUE
)
3419 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,extensions_rhino
, \
3424 define gb_Jar__use_rhino
3425 $(call gb_Jar_use_jar
,$(1),js
)
3428 endif # SYSTEM_RHINO
3432 ifneq ($(SYSTEM_APACHE_COMMONS
),)
3434 define gb_Jar__use_commons-codec
3435 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_CODEC_JAR
))
3437 gb_ExternalProject__use_commons-codec
:=
3439 define gb_Jar__use_commons-httpclient
3440 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_HTTPCLIENT_JAR
))
3442 gb_ExternalProject__use_commons-httpclient
:=
3444 define gb_Jar__use_commons-lang
3445 $(call gb_Jar_usadd_linked_libse_system_jar
,$(1),$(COMMONS_LANG_JAR
))
3447 gb_ExternalProject__use_commons-lang
:=
3449 define gb_Jar__use_commons-logging
3450 $(call gb_Jar_use_system_jar
,$(1),$(COMMONS_LOGGING_JAR
))
3452 gb_ExternalProject__use_commons-logging
:=
3454 else # !SYSTEM_APACHE_COMMONS
3456 ifeq ($(ENABLE_JAVA
),TRUE
)
3457 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3458 commons-logging-1.1
.3 \
3461 $(eval
$(call gb_Helper_register_jars
,OXT
,\
3462 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9
,commons-codec-1.6
) \
3463 commons-httpclient-3.1 \
3464 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4
) \
3467 define gb_Jar__use_commons-codec
3468 $(call gb_Jar_use_external_project
,$(1),apache_commons_codec
)
3469 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_codec
)\
3470 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/dist/commons-codec-1.9.jar
,/dist/commons-codec-1.6.jar
),\
3471 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-codec-1.9.jar
,commons-codec-1.6.jar
)\
3474 define gb_ExternalProject__use_commons-codec
3475 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_codec
)
3478 define gb_Jar__use_commons-httpclient
3479 $(call gb_Jar_use_external_project
,$(1),apache_commons_httpclient
)
3480 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_httpclient
)/dist/commons-httpclient.jar
,commons-httpclient-3.1.jar
)
3482 define gb_ExternalProject__use_commons-httpclient
3483 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_httpclient
)
3486 define gb_Jar__use_commons-lang
3487 $(call gb_Jar_use_external_project
,$(1),apache_commons_lang
)
3488 $(call gb_Jar_use_external_jar
,$(1),$(call gb_UnpackedTarball_get_dir
,apache_commons_lang
)\
3489 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),/target
/commons-lang3-3.3
.1.jar
,/dist/commons-lang-2.4.jar
),\
3490 $(if
$(filter TRUE
,$(HAVE_JAVA6
)),commons-lang3-3.3
.1.jar
,commons-lang-2.4.jar
)\
3493 define gb_ExternalProject__use_commons-lang
3494 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_lang
)
3497 define gb_Jar__use_commons-logging
3498 $(call gb_Jar_use_external_project
,$(1),apache_commons_logging
)
3499 $(call gb_Jar_use_jar
,$(1),commons-logging-1.1
.3)
3501 define gb_ExternalProject__use_commons-logging
3502 $(call gb_ExternalProject_use_external_project
,$(1),apache_commons_logging
)
3505 endif # SYSTEM_APACHE_COMMONS
3508 ifneq ($(SYSTEM_JFREEREPORT
),)
3510 define gb_Jar__use_flow-engine
3511 $(call gb_Jar_use_system_jar
,$(1),$(JFREEREPORT_JAR
))
3514 define gb_Jar__use_flute
3515 $(call gb_Jar_use_system_jar
,$(1),$(FLUTE_JAR
))
3518 define gb_Jar__use_libbase
3519 $(call gb_Jar_use_system_jar
,$(1),$(LIBBASE_JAR
))
3522 define gb_Jar__use_libfonts
3523 $(call gb_Jar_use_system_jar
,$(1),$(LIBFONTS_JAR
))
3526 define gb_Jar__use_libformula
3527 $(call gb_Jar_use_system_jar
,$(1),$(LIBFORMULA_JAR
))
3530 define gb_Jar__use_liblayout
3531 $(call gb_Jar_use_system_jar
,$(1),$(LIBLAYOUT_JAR
))
3534 define gb_Jar__use_libloader
3535 $(call gb_Jar_use_system_jar
,$(1),$(LIBLOADER_JAR
))
3538 define gb_Jar__use_librepository
3539 $(call gb_Jar_use_system_jar
,$(1),$(LIBREPOSITORY_JAR
))
3542 define gb_Jar__use_libserializer
3543 $(call gb_Jar_use_system_jar
,$(1),$(LIBSERIALIZER_JAR
))
3546 define gb_Jar__use_libxml
3547 $(call gb_Jar_use_system_jar
,$(1),$(LIBXML_JAR
))
3550 define gb_Jar__use_sac
3551 $(call gb_Jar_use_system_jar
,$(1),$(SAC_JAR
))
3554 else # !SYSTEM_JFREEREPORT
3556 ifeq ($(ENABLE_JAVA
),TRUE
)
3557 $(eval
$(call gb_Helper_register_jars_for_install
,OOO
,reportbuilder
,\
3565 librepository-1.1
.6 \
3566 libserializer-1.1
.6 \
3572 define gb_Jar__use_flow-engine
3573 $(call gb_Jar_use_jar
,$(1),flow-engine
)
3576 define gb_Jar__use_flute
3577 $(call gb_Jar_use_jar
,$(1),flute-1.1
.6)
3580 define gb_Jar__use_libbase
3581 $(call gb_Jar_use_jar
,$(1),libbase-1.1
.6)
3584 define gb_Jar__use_libfonts
3585 $(call gb_Jar_use_jar
,$(1),libfonts-1.1
.6)
3588 define gb_Jar__use_libformula
3589 $(call gb_Jar_use_jar
,$(1),libformula-1.1
.7)
3592 define gb_Jar__use_liblayout
3593 $(call gb_Jar_use_jar
,$(1),liblayout
)
3596 define gb_Jar__use_libloader
3597 $(call gb_Jar_use_jar
,$(1),libloader-1.1
.6)
3600 define gb_Jar__use_librepository
3601 $(call gb_Jar_use_jar
,$(1),librepository-1.1
.6)
3604 define gb_Jar__use_libserializer
3605 $(call gb_Jar_use_jar
,$(1),libserializer-1.1
.6)
3608 define gb_Jar__use_libxml
3609 $(call gb_Jar_use_jar
,$(1),libxml-1.1
.7)
3612 define gb_Jar__use_sac
3613 $(call gb_Jar_use_jar
,$(1),sac
)
3616 endif # SYSTEM_JFREEREPORT
3621 # FIXME: the library target should be for build too
3622 define gb_Executable__register_bestreversemap
3623 $(call gb_Executable_add_runtime_dependencies
,bestreversemap
,\
3624 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3628 # TODO depending on the whole URE might be overkill, but I do not have a
3629 # Windows machine to debug it...
3630 # FIXME: the library target should be for build too
3631 define gb_Executable__register_climaker
3632 $(call gb_Executable_add_runtime_dependencies
,climaker
,\
3633 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3634 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3635 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3636 $(call gb_UnoApi_get_target
,udkapi
) \
3640 define gb_Executable__register_cppumaker
3641 $(call gb_Executable_add_runtime_dependencies
,cppumaker
,\
3642 $(if
$(filter-out ANDROID
,$(OS
)),$(call gb_Library_get_target
,sal_textenc
)) \
3646 gb_Gallery__UNO_COMPONENTS
:= \
3647 comphelper
/util
/comphelp \
3648 configmgr
/source
/configmgr \
3649 drawinglayer
/drawinglayer \
3650 framework
/util
/fwk \
3651 i18npool
/util
/i18npool \
3652 package
/source
/xstor
/xstor \
3653 package
/util
/package2 \
3654 sax
/source
/expatwrap
/expwrap \
3659 ucb
/source
/core
/ucb1 \
3660 ucb
/source
/ucp
/file
/ucpfile1 \
3661 unoxml
/source
/service
/unoxml
3663 # This is used to determine what we need for 'build' platform.
3664 define gb_Executable__register_gengal
3665 $(call gb_Executable_add_runtime_dependencies
,gengal
,\
3666 $(foreach component
,$(gb_Gallery__UNO_COMPONENTS
) \
3667 ,$(call gb_ComponentTarget_get_target_for_build
,$(component
))) \
3668 $(call gb_AllLangResTarget_get_target
,ofa
) \
3669 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3670 $(if
$(filter-out MACOSX WNT
,$(OS_FOR_BUILD
)),$(if
$(ENABLE_HEADLESS
),, \
3671 $(call gb_Library_get_target
,vclplug_svp
) \
3673 $(call gb_Package_get_target_for_build
,postprocess_registry
) \
3674 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3675 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3676 $(call gb_UnoApi_get_target
,offapi
) \
3677 $(call gb_UnoApi_get_target
,udkapi
) \
3681 ifeq ($(SYSTEM_ICU
),)
3683 define gb_Executable__register_gendict
3684 $(call gb_Executable_add_runtime_dependencies
,gendict
,\
3685 $(call gb_Package_get_target_for_build
,icu
) \
3691 define gb_Executable__register_idlc
3692 $(call gb_Executable_add_runtime_dependencies
,idlc
,\
3693 $(call gb_ExternalExecutable_get_dependencies
,ucpp
) \
3697 define gb_Executable__register_localize
3698 $(call gb_Executable_add_runtime_dependencies
,localize
,\
3699 $(foreach exec
,cfgex helpex propex transex3 treex uiex ulfex xrmex
,\
3700 $(call gb_Executable_get_runtime_dependencies
,$(exec
)) \
3705 # FIXME ure/services.rdb needs cleanup
3706 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3707 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3708 # FIXME: the library target should be for build too
3709 define gb_Executable__register_saxparser
3710 $(call gb_Executable_add_runtime_dependencies
,saxparser
,\
3711 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3712 $(call gb_Rdb_get_target_for_build
,saxparser
) \
3713 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3714 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3715 $(call gb_UnoApi_get_target
,udkapi
) \
3719 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3720 # required due to the settings for URE_SERVICES and URE_TYPES in
3721 # cppuhelper/source/unorc
3722 # FIXME: the library target should be for build too
3723 define gb_Executable__register_uno
3724 $(call gb_Executable_add_runtime_dependencies
,uno
,\
3725 $(call gb_Library_get_target
,$(gb_CPPU_ENV
)_uno
) \
3726 $(call gb_Rdb_get_target_for_build
,ure
/services
) \
3727 $(INSTROOT
)/$(LIBO_URE_SHARE_FOLDER
)/misc
/services.rdb \
3728 $(call gb_UnoApi_get_target
,udkapi
) \
3733 # External executables
3735 ifneq ($(SYSTEM_LIBXML_FOR_BUILD
),)
3737 gb_ExternalExecutable__register_xmllint
:=
3739 else # ! SYSTEM_LIBXML_FOR_BUILD
3741 define gb_ExternalExecutable__register_xmllint
3742 $(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
)
3743 $(call gb_ExternalExecutable_add_dependencies
,xmllint
,$(call gb_Package_get_target
,xml2
))
3747 endif # SYSTEM_LIBXML_FOR_BUILD
3749 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD
),)
3751 gb_ExternalExecutable__register_xsltproc
:=
3753 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3755 define gb_ExternalExecutable__register_xsltproc
3756 $(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
)
3757 $(call gb_ExternalExecutable_add_dependencies
,xsltproc
,$(call gb_Package_get_target
,xslt
))
3761 endif # SYSTEM_LIBXSLT_FOR_BUILD
3763 ifneq (,$(SYSTEM_UCPP
))
3765 gb_ExternalExecutable__register_ucpp
:=
3767 else # ! SYSTEM_UCPP
3769 define gb_ExternalExecutable__register_ucpp
3770 $(call gb_ExternalExecutable_set_internal
,ucpp
,$(INSTDIR_FOR_BUILD
)/$(SDKDIRNAME
)/bin
/ucpp
$(gb_Executable_EXT_for_build
))
3776 ifeq (,$(PYTHON_FOR_BUILD
))
3778 define gb_ExternalExecutable__register_python
3781 # use set_external, to avoid having the command added as prerequisite for the
3782 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3783 # matching rule to build that specific file)
3784 $(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
))
3785 # the Zip ensures that internal python has been built (cannot use the Package
3786 # target, as that is not used on Mac)
3787 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_GeneratedPackage_get_target_for_build
,python3
))
3791 $(call gb_ExternalExecutable_set_internal
,python
,$(INSTROOT
)/$(LIBO_BIN_FOLDER
)/$(if
$(filter WNT
,$(OS
)),python-core-
$(PYTHON_VERSION
)/bin
/python.exe
,python.bin
))
3792 $(call gb_ExternalExecutable_set_precommand
,python
,$(subst $$,$$$$,$(gb_Python_PRECOMMAND
)))
3793 $(call gb_ExternalExecutable_add_dependencies
,python
,$(call gb_Package_get_target_for_build
,python3
))
3801 define gb_ExternalExecutable__register_python
3802 $(call gb_ExternalExecutable_set_external
,python
,$(PYTHON_FOR_BUILD
))
3806 endif # PYTHON_FOR_BUILD
3808 ifneq ($(SYSTEM_GENBRK
),)
3810 define gb_ExternalExecutable__register_genbrk
3811 $(call gb_ExternalExecutable_set_external
,genbrk
,$(SYSTEM_GENBRK
))
3815 else # ! SYSTEM_GENBRK
3817 define gb_ExternalExecutable__register_genbrk
3818 $(call gb_ExternalExecutable_set_internal
,genbrk
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genbrk
$(gb_Executable_EXT_for_build
),icu
)
3819 $(call gb_ExternalExecutable_set_precommand
,genbrk
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3820 $(call gb_ExternalExecutable_add_dependencies
,genbrk
,\
3821 $(call gb_Package_get_target_for_build
,icu
) \
3828 ifneq ($(SYSTEM_GENCCODE
),)
3830 define gb_ExternalExecutable__register_genccode
3831 $(call gb_ExternalExecutable_set_external
,genccode
,$(SYSTEM_GENCCODE
))
3835 else # ! SYSTEM_GENCCODE
3837 define gb_ExternalExecutable__register_genccode
3838 $(call gb_ExternalExecutable_set_internal
,genccode
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/genccode
$(gb_Executable_EXT_for_build
),icu
)
3839 $(call gb_ExternalExecutable_set_precommand
,genccode
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3840 $(call gb_ExternalExecutable_add_dependencies
,genccode
,\
3841 $(call gb_Package_get_target_for_build
,icu
) \
3848 ifneq ($(SYSTEM_GENCMN
),)
3850 define gb_ExternalExecutable__register_gencmn
3851 $(call gb_ExternalExecutable_set_external
,gencmn
,$(SYSTEM_GENCMN
))
3855 else # ! SYSTEM_GENCMN
3857 define gb_ExternalExecutable__register_gencmn
3858 $(call gb_ExternalExecutable_set_internal
,gencmn
,$(WORKDIR_FOR_BUILD
)/UnpackedTarball
/icu
/source
/bin
/gencmn
$(gb_Executable_EXT_for_build
),icu
)
3859 $(call gb_ExternalExecutable_set_precommand
,gencmn
,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND
)))
3860 $(call gb_ExternalExecutable_add_dependencies
,gencmn
,\
3861 $(call gb_Package_get_target_for_build
,icu
) \
3868 # vim: set noet sw=4 ts=4: