bump product version to 4.4.0.0.alpha0+
[LibreOffice.git] / RepositoryExternal.mk
blob2db4c383c872cf4b59bb2fb763e937d9f179bc25
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.
30 # External headers
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 \
41 $$(INCLUDE) \
44 endef
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 \
56 $$(INCLUDE) \
59 endef
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 \
67 $$(INCLUDE) \
70 endef
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 \
81 endef
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 \
88 $$(INCLUDE) \
91 endef
93 endif # SYSTEM_ODBC_HEADERS
95 ifneq ($(SYSTEM_VIGRA),)
97 gb_LinkTarget__use_vigra_headers :=
99 else
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) \
105 $$(INCLUDE) \
108 endef
110 endif
112 ifneq ($(SYSTEM_MDDS),)
114 gb_ExternalProject__use_mdds_headers :=
116 define gb_LinkTarget__use_mdds_headers
117 $(call gb_LinkTarget_set_include,$(1),\
118 $(MDDS_CFLAGS) \
119 $$(INCLUDE) \
122 endef
124 else # !SYSTEM_MDDS
126 define gb_ExternalProject__use_mdds_headers
127 $(call gb_ExternalProject_use_external_project,$(1),mdds)
129 endef
131 define gb_LinkTarget__use_mdds_headers
132 $(call gb_LinkTarget_use_unpacked,$(1),mdds)
133 $(call gb_LinkTarget_set_include,$(1),\
134 $(MDDS_CFLAGS) \
135 $$(INCLUDE) \
138 endef
140 endif # SYSTEM_MDDS
142 ifneq ($(SYSTEM_GLM),)
144 gb_LinkTarget__use_glm_headers :=
146 else
148 define gb_LinkTarget__use_glm_headers
149 $(call gb_LinkTarget_use_unpacked,$(1),glm)
150 $(call gb_LinkTarget_set_include,$(1),\
151 -I$(call gb_UnpackedTarball_get_dir,glm) \
152 $$(INCLUDE) \
155 endef
157 endif
159 ifeq (SANE,$(filter SANE,$(BUILD_TYPE)))
161 define gb_LinkTarget__use_sane_headers
162 $(call gb_LinkTarget_set_include,$(1),\
163 -I$(SRCDIR)/external/$(if $(filter WNT,$(OS)),twain,sane)/inc \
164 $$(INCLUDE) \
167 endef
169 else
171 gb_LinkTarget__use_sane_headers :=
173 endif
175 ifneq ($(SYSTEM_BLUEZ),)
177 gb_LinkTarget__use_bluez_bluetooth_headers :=
179 else # !SYSTEM_BLUEZ
181 define gb_LinkTarget__use_bluez_bluetooth_headers
182 $(call gb_LinkTarget_set_include,$(1),\
183 -I$(SRCDIR)/external/bluez_bluetooth/inc \
184 $$(INCLUDE) \
187 endef
189 endif # SYSTEM_BLUEZ
191 # External libraries
193 ifneq ($(SYSTEM_CPPUNIT),)
195 define gb_LinkTarget__use_cppunit
196 $(call gb_LinkTarget_set_include,$(1),\
197 $$(INCLUDE) \
198 $(CPPUNIT_CFLAGS) \
201 $(call gb_LinkTarget_add_libs,$(1),\
202 $(CPPUNIT_LIBS) \
205 endef
207 else # !SYSTEM_CPPUNIT
209 define gb_LinkTarget__use_cppunit
210 $(call gb_LinkTarget_use_external_project,$(1),cppunit)
212 $(call gb_LinkTarget_set_include,$(1),\
213 -I$(call gb_UnpackedTarball_get_dir,cppunit/include)\
214 $$(INCLUDE) \
217 ifeq ($(COM),MSC)
218 $(call gb_LinkTarget_add_libs,$(1),\
219 $(call gb_UnpackedTarball_get_dir,cppunit)/src/cppunit/$(if $(MSVC_USE_DEBUG_RUNTIME),DebugDll/cppunitd_dll.lib,ReleaseDll/cppunit_dll.lib) \
221 else
222 $(call gb_LinkTarget_add_libs,$(1),\
223 -L$(call gb_UnpackedTarball_get_dir,cppunit)/src/cppunit/.libs -lcppunit \
225 endif
227 endef
229 endif # SYSTEM_CPPUNIT
231 ifneq ($(SYSTEM_GLEW),)
233 define gb_LinkTarget__use_glew
234 $(call gb_LinkTarget_set_include,$(1),\
235 $$(INCLUDE) \
236 $(GLEW_CFLAGS) \
238 $(call gb_LinkTarget_add_libs,$(1),$(GLEW_LIBS))
240 endef
242 else # !SYSTEM_GLEW
244 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
245 glew \
248 define gb_LinkTarget__use_glew
249 $(call gb_LinkTarget_use_package,$(1),glew)
250 $(call gb_LinkTarget_set_include,$(1),\
251 -I$(call gb_UnpackedTarball_get_dir,glew/include) \
252 $$(INCLUDE) \
255 ifeq ($(COM),MSC)
256 $(call gb_LinkTarget_add_libs,$(1),\
257 $(call gb_UnpackedTarball_get_dir,glew)/lib/$(if $(MSVC_USE_DEBUG_RUNTIME),Debug/Win32/glew32d.lib,Release/Win32/glew32.lib) \
259 else
260 $(call gb_LinkTarget_add_libs,$(1),\
261 -L$(call gb_UnpackedTarball_get_dir,glew)/lib/ -lGLEW \
263 endif
265 endef
267 endif # SYSTEM_GLEW
269 define gb_LinkTarget__use_iconv
270 $(call gb_LinkTarget_add_libs,$(1),-liconv)
272 endef
274 ifneq ($(SYSTEM_MARIADB),)
276 define gb_LinkTarget__use_mariadb
277 $(call gb_LinkTarget_set_include,$(1),\
278 $$(INCLUDE) \
279 $(MARIADB_CFLAGS) \
281 $(call gb_LinkTarget_add_libs,$(1),$(MARIADB_LIBS))
283 endef
284 gb_ExternalProject__use_mariadb :=
286 else # !SYSTEM_MARIADB
288 define gb_LinkTarget__use_mariadb
289 $(call gb_LinkTarget_set_include,$(1),\
290 $$(INCLUDE) \
291 $(MARIADB_CFLAGS) \
293 $(call gb_LinkTarget_use_static_libraries,$(1),\
294 mariadblib \
297 endef
298 define gb_ExternalProject__use_mariadb
299 $(call gb_ExternalProject_use_static_libraries,$(1),mariadblib)
301 endef
303 endif # SYSTEM_MARIADB
306 ifneq ($(SYSTEM_MARIADB),)
308 define gb_LinkTarget__use_mysql
310 $(call gb_LinkTarget_add_defs,$(1),\
311 -DSYSTEM_MARIADB \
314 $(call gb_LinkTarget_add_libs,$(1),\
315 $(MARIADB_LIBS) \
318 $(call gb_LinkTarget_set_include,$(1),\
319 $(MARIADB_CFLAGS) \
320 $$(INCLUDE) \
322 endef
324 else
326 define gb_LinkTarget__use_mysql
328 $(call gb_LinkTarget_set_include,$(1),\
329 $$(INCLUDE) \
332 endef
334 endif
336 ifneq ($(SYSTEM_MYSQL_CPPCONN),)
338 define gb_LinkTarget__use_mysqlcppconn
339 $(call gb_LinkTarget_add_libs,$(1),\
340 -lmysqlcppconn \
343 $(call gb_LinkTarget_add_defs,$(1),\
344 -DSYSTEM_MYSQL_CPPCONN \
346 endef
348 else
350 $(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE,\
351 mysqlcppconn \
354 # note: this does not link mysqlcppconn, it is loaded via osl_loadModuleRelative
355 define gb_LinkTarget__use_mysqlcppconn
357 $(call gb_LinkTarget_use_unpacked,$(1),mysqlcppconn)
359 $(call gb_LinkTarget_add_defs,$(1),\
360 -DCPPCONN_LIB_BUILD \
363 $(call gb_LinkTarget_set_include,$(1),\
364 -I$(call gb_UnpackedTarball_get_dir,mysqlcppconn) \
365 -I$(call gb_UnpackedTarball_get_dir,mysqlcppconn)/cppconn \
366 $$(INCLUDE) \
369 endef
371 endif
373 ifneq ($(SYSTEM_ZLIB),)
375 define gb_LinkTarget__use_zlib
376 $(call gb_LinkTarget_add_defs,$(1),\
377 -DSYSTEM_ZLIB \
379 $(call gb_LinkTarget_add_libs,$(1),-lz)
381 endef
383 # nothing on system
384 define gb_LinkTarget__use_zlib_x64
386 endef
388 gb_ExternalProject__use_zlib :=
390 else # !SYSTEM_ZLIB
392 define gb_LinkTarget__use_zlib_multiarch
393 $(if $(2),,$(call gb_Output_error,gb_LinkTarget__use_zlib_multiarch needs two arguments))
395 $(call gb_LinkTarget_set_include,$(1),\
396 $(ZLIB_CFLAGS) \
397 $$(INCLUDE) \
400 $(call gb_LinkTarget_use_static_libraries,$(1),\
401 $(2) \
404 endef
406 define gb_LinkTarget__use_zlib
407 $(call gb_LinkTarget__use_zlib_multiarch,$(1),zlib)
409 endef
411 define gb_LinkTarget__use_zlib_x64
412 $(call gb_LinkTarget__use_zlib_multiarch,$(1),zlib_x64)
414 endef
416 define gb_ExternalProject__use_zlib
417 $(call gb_ExternalProject_use_static_libraries,$(1),zlib)
419 endef
421 endif # SYSTEM_ZLIB
424 ifneq ($(SYSTEM_JPEG),)
426 define gb_LinkTarget__use_jpeg
427 $(call gb_LinkTarget_add_libs,$(1),-ljpeg)
428 $(call gb_LinkTarget_set_ldflags,$(1),\
429 $$(filter-out -L/usr/lib/jvm%,$$(T_LDFLAGS)) \
432 endef
434 else # !SYSTEM_JPEG
436 define gb_LinkTarget__use_jpeg
437 $(call gb_LinkTarget_set_include,$(1),\
438 -I$(call gb_UnpackedTarball_get_dir,jpeg) \
439 $$(INCLUDE) \
442 $(call gb_LinkTarget_use_static_libraries,$(1),\
443 jpeg \
446 endef
448 endif # SYSTEM_JPEG
450 ifneq ($(SYSTEM_MYTHES),)
452 define gb_LinkTarget__use_mythes
453 $(call gb_LinkTarget_set_include,$(1),\
454 $$(INCLUDE) \
455 $(MYTHES_CFLAGS) \
457 $(call gb_LinkTarget_add_libs,$(1),$(MYTHES_LIBS))
459 endef
461 else # !SYSTEM_MYTHES
463 define gb_LinkTarget__use_mythes
464 $(call gb_LinkTarget_set_include,$(1),\
465 -I$(call gb_UnpackedTarball_get_dir,mythes) \
466 $$(INCLUDE) \
469 ifeq ($(COM),MSC)
470 $(call gb_LinkTarget_use_static_libraries,$(1),\
471 mythes \
473 else
474 $(call gb_LinkTarget_add_libs,$(1),$(MYTHES_LIBS))
475 $(call gb_LinkTarget_use_external_project,$(1),mythes)
476 endif
478 endef
480 endif # SYSTEM_MYTHES
483 ifneq ($(SYSTEM_EXPAT),)
485 define gb_LinkTarget__use_expat_impl
486 $(if $(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter))
488 $(call gb_LinkTarget_add_defs,$(1),\
489 -DSYSTEM_EXPAT \
492 $(call gb_LinkTarget_add_libs,$(1),-lexpat)
494 endef
496 gb_ExternalProject__use_expat :=
498 else # !SYSTEM_EXPAT
500 define gb_LinkTarget__use_expat_impl
501 $(if $(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter))
503 $(call gb_LinkTarget_set_include,$(1),\
504 -I$(call gb_UnpackedTarball_get_dir,expat)/lib \
505 $$(INCLUDE) \
508 $(call gb_LinkTarget_use_static_libraries,$(1),\
509 $(2) \
512 endef
514 define gb_ExternalProject__use_expat
515 $(call gb_ExternalProject_use_static_libraries,$(1),expat)
517 endef
519 endif # SYSTEM_EXPAT
521 define gb_LinkTarget__use_expat
522 $(call gb_LinkTarget__use_expat_impl,$(1),expat)
524 endef
526 define gb_LinkTarget__use_expat_x64
527 $(call gb_LinkTarget__use_expat_impl,$(1),expat_x64)
529 endef
531 ifneq ($(SYSTEM_HYPH),)
533 define gb_LinkTarget__use_hyphen
534 $(call gb_LinkTarget_add_libs,$(1),$(HYPHEN_LIB))
536 endef
538 else # !SYSTEM_HYPH
540 define gb_LinkTarget__use_hyphen
541 $(call gb_LinkTarget_use_unpacked,$(1),hyphen)
542 $(call gb_LinkTarget_set_include,$(1),\
543 -I$(call gb_UnpackedTarball_get_dir,hyphen)\
544 $$(INCLUDE) \
547 ifeq ($(COM),MSC)
548 $(call gb_LinkTarget_use_static_libraries,$(1),\
549 hyphen \
551 else
552 $(call gb_LinkTarget_add_libs,$(1),$(HYPHEN_LIB))
553 $(call gb_LinkTarget_use_external_project,$(1),hyphen)
554 endif
556 endef
558 endif # SYSTEM_HYPH
560 ifneq ($(SYSTEM_HUNSPELL),)
562 define gb_LinkTarget__use_hunspell
563 $(call gb_LinkTarget_set_include,$(1),\
564 $$(INCLUDE) \
565 $(HUNSPELL_CFLAGS) \
567 $(call gb_LinkTarget_add_libs,$(1),$(HUNSPELL_LIBS))
569 endef
571 gb_ExternalProject__use_hunspell :=
573 else # !SYSTEM_HUNSPELL
575 define gb_LinkTarget__use_hunspell
576 $(call gb_LinkTarget_add_defs,$(1),\
577 -DHUNSPELL_STATIC \
579 $(call gb_LinkTarget_use_unpacked,$(1),hunspell)
580 $(call gb_LinkTarget_set_include,$(1),\
581 -I$(call gb_UnpackedTarball_get_dir,hunspell/src/hunspell)\
582 $$(INCLUDE) \
585 ifeq ($(COM),MSC)
586 $(call gb_LinkTarget_use_static_libraries,$(1),\
587 hunspell \
589 else
590 $(call gb_LinkTarget_add_libs,$(1),$(HUNSPELL_LIBS))
591 $(call gb_LinkTarget_use_external_project,$(1),hunspell)
592 endif
594 endef
596 define gb_ExternalProject__use_hunspell
597 $(call gb_ExternalProject_use_external_project,$(1),hunspell)
599 endef
601 endif # SYSTEM_HUNSPELL
604 ifneq ($(SYSTEM_BOOST),)
606 define gb_LinkTarget__use_boostdatetime
607 $(call gb_LinkTarget_set_include,$(1),\
608 $$(INCLUDE) \
609 $(BOOST_CPPFLAGS) \
612 $(call gb_LinkTarget_add_ldflags,$(1),\
613 $(BOOST_LDFLAGS) \
616 $(call gb_LinkTarget_add_libs,$(1),\
617 $(BOOST_DATE_TIME_LIB) \
620 endef
622 define gb_LinkTarget__use_boost_iostreams
623 $(call gb_LinkTarget_set_include,$(1),\
624 $$(INCLUDE) \
625 $(BOOST_CPPFLAGS) \
628 $(call gb_LinkTarget_add_ldflags,$(1),\
629 $(BOOST_LDFLAGS) \
632 $(call gb_LinkTarget_add_libs,$(1),\
633 $(BOOST_IOSTREAMS_LIB) \
636 endef
638 gb_ExternalProject__use_boost_iostreams :=
640 define gb_LinkTarget__use_boost_system
641 $(call gb_LinkTarget_set_include,$(1),\
642 $$(INCLUDE) \
643 $(BOOST_CPPFLAGS) \
646 $(call gb_LinkTarget_add_ldflags,$(1),\
647 $(BOOST_LDFLAGS) \
650 $(call gb_LinkTarget_add_libs,$(1),\
651 $(BOOST_SYSTEM_LIB) \
654 endef
656 gb_ExternalProject__use_boost_system :=
658 define gb_LinkTarget__use_boost_headers
659 $(call gb_LinkTarget_set_include,$(1),\
660 $$(INCLUDE) \
661 $(BOOST_CPPFLAGS) \
664 endef
666 gb_ExternalProject__use_boost_headers:=
668 else # !SYSTEM_BOOST
670 ifeq ($(OS),WNT)
671 define gb_LinkTarget__use_boostthread
672 $(call gb_LinkTarget_add_defs,$(1),\
673 -DBOOST_ALL_NO_LIB \
676 $(call gb_LinkTarget_use_static_libraries,$(1),\
677 boostthread \
679 endef
680 endif
682 define gb_LinkTarget__use_boostdatetime
683 $(call gb_LinkTarget_add_defs,$(1),\
684 -DBOOST_ALL_NO_LIB \
687 $(call gb_LinkTarget_use_static_libraries,$(1),\
688 boostdatetime \
691 endef
693 define gb_LinkTarget__use_boost_iostreams
694 $(call gb_LinkTarget_add_defs,$(1),\
695 -DBOOST_ALL_NO_LIB \
698 $(call gb_LinkTarget_use_static_libraries,$(1),\
699 boost_iostreams \
702 endef
704 define gb_ExternalProject__use_boost_iostreams
705 $(call gb_ExternalProject_use_static_libraries,$(1),boost_iostreams)
706 endef
708 define gb_LinkTarget__use_boost_system
709 $(call gb_LinkTarget_add_defs,$(1),\
710 -DBOOST_ALL_NO_LIB \
713 $(call gb_LinkTarget_use_static_libraries,$(1),\
714 boost_system \
717 endef
719 define gb_ExternalProject__use_boost_system
720 $(call gb_ExternalProject_use_static_libraries,$(1),boost_system)
721 endef
723 define gb_LinkTarget__use_boost_headers
724 $(call gb_LinkTarget_use_unpacked,$(1),boost)
725 $(call gb_LinkTarget_set_include,$(1),\
726 -I$(call gb_UnpackedTarball_get_dir,boost) \
727 $$(INCLUDE) \
730 endef
732 define gb_ExternalProject__use_boost_headers
733 $(call gb_ExternalProject_get_preparation_target,$(1)) :| $(call gb_UnpackedTarball_get_final_target,boost)
735 endef
736 endif # SYSTEM_BOOST
739 ifneq ($(SYSTEM_CMIS),)
741 define gb_LinkTarget__use_cmis
742 $(call gb_LinkTarget_set_include,$(1),\
743 $$(INCLUDE) \
744 $(CMIS_CFLAGS) \
746 $(call gb_LinkTarget_add_libs,$(1),$(CMIS_LIBS))
748 endef
750 else # !SYSTEM_CMIS
752 define gb_LinkTarget__use_cmis
753 $(call gb_LinkTarget_set_include,$(1),\
754 -I$(call gb_UnpackedTarball_get_dir,cmis)/src \
755 $$(INCLUDE) \
757 $(call gb_LinkTarget_use_static_libraries,$(1),\
758 cmislib \
761 endef
763 endif # SYSTEM_CMIS
765 ifeq ($(ENABLE_JAVA),TRUE)
767 ifeq ($(OS)$(COM),WNTGCC)
769 define gb_LinkTarget__use_jawt
770 $(call gb_LinkTarget_use_custom_headers,$(1),external/jawt)
772 $(call gb_LinkTarget_add_ldflags,$(1),\
773 -L$(call gb_CustomTarget_get_workdir,external/jawt) \
776 $(call gb_LinkTarget_add_libs,$(1),\
777 $(JAWTLIB) \
780 endef
782 else # $(OS)$(COM) != WNTGCC
784 define gb_LinkTarget__use_jawt
785 $(call gb_LinkTarget_add_libs,$(1),\
786 $(JAWTLIB) \
789 endef
791 endif # $(OS)$(COM) = WNTGCC
793 else # !ENABLE_JAVA
795 gb_LinkTarget__use_jawt :=
797 endif # ENABLE_JAVA
799 ifneq ($(SYSTEM_LIBATOMIC_OPS),)
801 define gb_LinkTarget__use_libatomic_ops
802 $(call gb_LinkTarget_set_include,$(1),\
803 $$(INCLUDE) \
804 $(LIBATOMIC_OPS_CFLAGS) \
806 $(call gb_LinkTarget_add_libs,$(1), $(LIBATOMIC_OPS_LIBS))
808 endef
809 gb_ExternalProject__use_libatomic_ops :=
811 else # !SYSTEM_LIBATOMIC_OPS
813 define gb_LinkTarget__use_libatomic_ops
814 $(call gb_LinkTarget_set_include,$(1),\
815 $(LIBATOMIC_OPS_CFLAGS) \
816 $$(INCLUDE) \
817 $(LIBATOMIC_OPS_CFLAGS) \
819 $(call gb_LinkTarget_use_external_project,$(1),\
820 libatomic_ops \
823 $(call gb_LinkTarget_add_libs,$(1),\
824 -L$(call gb_UnpackedTarball_get_dir,libatomic_ops)/src/lib -latomic_ops \
827 endef
829 define gb_ExternalProject__use_libatomic_ops
830 $(call gb_ExternalProject_use_external_project,$(1),libatomic_ops)
832 endef
834 endif # SYSTEM_LIBATOMIC_OPS
837 ifneq ($(SYSTEM_LIBEXTTEXTCAT),)
839 define gb_LinkTarget__use_libexttextcat
840 $(call gb_LinkTarget_set_include,$(1),\
841 $$(INCLUDE) \
842 $(LIBEXTTEXTCAT_CFLAGS) \
844 $(call gb_LinkTarget_add_defs,$(1),\
845 -DSYSTEM_LIBEXTTEXTCAT \
847 $(call gb_LinkTarget_add_libs,$(1),$(LIBEXTTEXTCAT_LIBS))
849 endef
851 else # !SYSTEM_LIBEXTTEXTCAT
853 define gb_LinkTarget__use_libexttextcat
854 $(call gb_LinkTarget_set_include,$(1),\
855 -I$(call gb_UnpackedTarball_get_dir,exttextcat/src) \
856 $$(INCLUDE) \
859 ifeq ($(COM),MSC)
860 $(call gb_LinkTarget_use_static_libraries,$(1),\
861 exttextcat \
863 else
864 $(call gb_LinkTarget_add_libs,$(1),\
865 $(call gb_UnpackedTarball_get_dir,exttextcat)/src/.libs/libexttextcat-2.0.a\
867 $(call gb_LinkTarget_use_external_project,$(1),exttextcat)
868 endif
871 endef
873 endif # SYSTEM_LIBEXTTEXTCAT
876 ifneq ($(SYSTEM_LIBXML),)
878 define gb_LinkTarget__use_libxml2
879 $(call gb_LinkTarget_add_defs,$(1),\
880 -DSYSTEM_LIBXML \
882 $(call gb_LinkTarget_set_include,$(1),\
883 $$(INCLUDE) \
884 $(LIBXML_CFLAGS) \
886 $(call gb_LinkTarget_add_libs,$(1),$(LIBXML_LIBS))
888 endef
889 gb_ExternalProject__use_libxml2:=
891 else # !SYSTEM_LIBXML
893 $(eval $(call gb_Helper_register_packages_for_install,ure,\
894 xml2 \
897 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
898 xml2_win32 \
901 define gb_LinkTarget__use_libxml2
902 $(call gb_LinkTarget_use_package,$(1),xml2)
903 $(call gb_LinkTarget_set_include,$(1),\
904 $$(INCLUDE) \
905 -I$(call gb_UnpackedTarball_get_dir,xml2)/include \
908 ifeq ($(COM),MSC)
909 $(call gb_LinkTarget_add_libs,$(1),\
910 $(call gb_UnpackedTarball_get_dir,xml2)/win32/bin.msvc/libxml2.lib \
912 else
913 $(call gb_LinkTarget_add_libs,$(1),\
914 -L$(call gb_UnpackedTarball_get_dir,xml2)/.libs -lxml2 \
916 endif
918 endef
919 define gb_ExternalProject__use_libxml2
920 $(call gb_ExternalProject_use_package,$(1),xml2)
922 endef
924 endif # SYSTEM_LIBXML
927 ifneq ($(SYSTEM_LIBXSLT),)
929 define gb_LinkTarget__use_libxslt
930 $(call gb_LinkTarget_set_include,$(1),\
931 $$(INCLUDE) \
932 $(LIBXSLT_CFLAGS) \
934 $(call gb_LinkTarget_add_libs,$(1),$(LIBXSLT_LIBS))
936 endef
938 define gb_LinkTarget__use_libexslt
939 $(call gb_LinkTarget_set_include,$(1),\
940 $$(INCLUDE) \
941 $(LIBEXSLT_CFLAGS) \
944 $(call gb_LinkTarget_add_libs,$(1),$(LIBEXSLT_LIBS))
946 endef
948 else # !SYSTEM_LIBXSLT
950 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
951 xslt \
954 define gb_LinkTarget__use_libxslt
955 $(call gb_LinkTarget_use_package,$(1),xslt)
956 $(call gb_LinkTarget_set_include,$(1),\
957 $$(INCLUDE) \
958 -I$(call gb_UnpackedTarball_get_dir,xslt) \
961 ifeq ($(COM),MSC)
962 $(call gb_LinkTarget_add_libs,$(1),\
963 $(call gb_UnpackedTarball_get_dir,xslt)/win32/bin.msvc/libxslt.lib \
965 else
966 $(call gb_LinkTarget_add_libs,$(1),\
967 -L$(call gb_UnpackedTarball_get_dir,xslt)/libxslt/.libs -lxslt \
969 endif
971 endef
973 define gb_LinkTarget__use_libexslt
974 $(call gb_LinkTarget_use_package,$(1),xslt)
975 $(call gb_LinkTarget_set_include,$(1),\
976 $$(INCLUDE) \
977 -I$(call gb_UnpackedTarball_get_dir,xslt) \
980 ifeq ($(COM),MSC)
981 $(call gb_LinkTarget_add_libs,$(1),\
982 $(call gb_UnpackedTarball_get_dir,xslt)/win32/bin.msvc/libexslt.lib \
984 else
985 $(call gb_LinkTarget_add_libs,$(1),\
986 -L$(call gb_UnpackedTarball_get_dir,xslt)/libexslt/.libs -lexslt \
988 endif
990 endef
992 endif # SYSTEM_LIBXSLT
994 ifeq ($(ENABLE_LIBLANGTAG),TRUE)
996 ifneq ($(SYSTEM_LIBLANGTAG),)
998 define gb_LinkTarget__use_liblangtag
999 $(call gb_LinkTarget_set_include,$(1),\
1000 $$(INCLUDE) \
1001 $(LIBLANGTAG_CFLAGS) \
1004 $(call gb_LinkTarget_add_libs,$(1),$(LIBLANGTAG_LIBS))
1006 endef
1008 else # !SYSTEM_LIBLANGTAG
1010 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
1011 liblangtag_data \
1014 define gb_LinkTarget__use_liblangtag
1015 $(call gb_LinkTarget_use_unpacked,$(1),langtag)
1016 $(call gb_LinkTarget_set_include,$(1),\
1017 -I$(call gb_UnpackedTarball_get_dir,langtag) \
1018 $$(INCLUDE) \
1020 $(call gb_LinkTarget_add_libs,$(1),$(LIBLANGTAG_LIBS))
1021 $(call gb_LinkTarget_use_external_project,$(1),langtag)
1023 endef
1025 endif # SYSTEM_LIBLANGTAG
1027 else
1029 gb_LinkTarget__use_liblangtag :=
1031 endif # ENABLE_LIBLANGTAG
1033 gb_ExternalProject__use_apr :=
1035 ifeq ($(WITH_WEBDAV),serf)
1037 define gb_LinkTarget__use_apr
1038 $(call gb_LinkTarget_set_include,$(1),\
1039 $$(INCLUDE) \
1040 $(APR_CFLAGS) \
1042 $(call gb_LinkTarget_add_libs,$(1),\
1043 $(APR_LIBS) \
1046 ifeq ($(SYSTEM_APR),)
1047 $(call gb_LinkTarget_use_system_win32_libs,$(1),\
1048 mswsock \
1049 rpcrt4 \
1050 shell32 \
1052 $(call gb_LinkTarget_add_defs,$(1),\
1053 -DAPR_DECLARE_STATIC \
1054 -DAPU_DECLARE_STATIC \
1056 $(call gb_LinkTarget_use_external_project,$(1),apr_util)
1057 endif
1059 endef
1061 define gb_ExternalProject__use_apr
1062 ifeq ($(SYSTEM_APR),)
1063 $(call gb_ExternalProject_use_external_project,$(1),apr_util)
1064 endif
1066 endef
1068 define gb_LinkTarget__use_serf
1069 $(call gb_LinkTarget_set_include,$(1),\
1070 $(SERF_CFLAGS) \
1071 $$(INCLUDE) \
1073 $(call gb_LinkTarget_add_libs,$(1),\
1074 $(SERF_LIBS) \
1077 ifeq ($(SYSTEM_SERF),)
1078 $(call gb_LinkTarget_use_external_project,$(1),serf)
1079 endif
1081 endef
1083 else ifeq ($(WITH_WEBDAV),neon)
1085 ifneq ($(SYSTEM_NEON),)
1087 define gb_LinkTarget__use_neon
1088 $(call gb_LinkTarget_add_defs,$(1),\
1089 -DNEON_VERSION=0x$(NEON_VERSION) \
1090 -DSYSTEM_NEON \
1092 $(call gb_LinkTarget_set_include,$(1),\
1093 $$(INCLUDE) \
1094 $(NEON_CFLAGS) \
1097 $(call gb_LinkTarget_add_libs,$(1),$(NEON_LIBS))
1099 endef
1101 else # !SYSTEM_NEON
1103 $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
1104 neon \
1107 define gb_LinkTarget__use_neon
1108 $(call gb_LinkTarget_use_unpacked,$(1),neon)
1109 $(call gb_LinkTarget_set_include,$(1),\
1110 -I$(call gb_UnpackedTarball_get_dir,neon/src) \
1111 $$(INCLUDE) \
1113 $(call gb_LinkTarget_use_libraries,$(1),\
1114 neon \
1117 endef
1119 endif # SYSTEM_NEON
1121 endif # WITH_WEBDAV
1123 ifneq ($(SYSTEM_REDLAND),)
1125 define gb_LinkTarget__use_librdf
1126 $(call gb_LinkTarget_add_defs,$(1),\
1127 -DSYSTEM_REDLAND \
1129 $(call gb_LinkTarget_set_include,$(1),\
1130 $$(INCLUDE) \
1131 $(REDLAND_CFLAGS) \
1133 $(call gb_LinkTarget_add_libs,$(1),$(REDLAND_LIBS))
1135 endef
1137 gb_LinkTarget__use_redland_headers:=
1139 gb_LinkTarget__use_raptor_headers:=
1141 gb_LinkTarget__use_rasqal_headers:=
1143 else # !SYSTEM_REDLAND
1145 define gb_LinkTarget__use_redland_headers
1146 $(call gb_LinkTarget_set_include,$(1),\
1147 -I$(call gb_UnpackedTarball_get_dir,redland)/src \
1148 $$(INCLUDE) \
1151 endef
1153 define gb_LinkTarget__use_raptor_headers
1154 $(call gb_LinkTarget_set_include,$(1),\
1155 -I$(call gb_UnpackedTarball_get_dir,raptor)/src \
1156 $$(INCLUDE) \
1159 endef
1161 define gb_LinkTarget__use_rasqal_headers
1162 $(call gb_LinkTarget_set_include,$(1),\
1163 -I$(call gb_UnpackedTarball_get_dir,rasqal)/src \
1164 $$(INCLUDE) \
1167 endef
1169 ifneq ($(OS),ANDROID)
1171 ifeq ($(COM),MSC)
1172 $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo, \
1173 raptor2 \
1174 rasqal \
1175 rdf \
1177 else
1178 $(eval $(call gb_Helper_register_packages_for_install,ooo, \
1179 raptor \
1180 rasqal \
1181 redland \
1183 endif
1185 define gb_LinkTarget__use_librdf
1186 ifeq ($(COM),MSC)
1187 $(call gb_LinkTarget_use_libraries,$(1),\
1188 raptor2 \
1189 rdf \
1191 else
1192 $(call gb_LinkTarget_use_packages,$(1),raptor rasqal redland)
1194 $(call gb_LinkTarget_add_libs,$(1),\
1195 -L$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -lraptor2 \
1196 -L$(call gb_UnpackedTarball_get_dir,redland)/src/.libs -lrdf \
1198 endif
1200 endef
1202 else # ANDROID
1204 define gb_LinkTarget__use_librdf
1205 $(call gb_LinkTarget_use_packages,$(1),raptor rasqal redland)
1207 endef
1209 endif # ANDROID
1211 endif # SYSTEM_REDLAND
1214 ifneq ($(filter unx,$(GUIBASE))$(ENABLE_CAIRO_CANVAS),) # or
1216 ifneq ($(SYSTEM_CAIRO),)
1218 define gb_LinkTarget__use_cairo
1219 $(call gb_LinkTarget_set_include,$(1),\
1220 $$(INCLUDE) \
1221 $(CAIRO_CFLAGS) \
1223 $(call gb_LinkTarget_use_external,$(1),freetype_headers)
1224 $(call gb_LinkTarget_add_libs,$(1),$(CAIRO_LIBS))
1226 endef
1228 else # !SYSTEM_CAIRO
1230 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
1231 cairo \
1232 $(if $(filter $(OS),WNT),,pixman) \
1235 define gb_LinkTarget__use_cairo
1236 $(call gb_LinkTarget_use_package,$(1),cairo)
1237 $(call gb_LinkTarget_use_package,$(1),pixman)
1238 $(call gb_LinkTarget_use_external,$(1),freetype_headers)
1239 $(call gb_LinkTarget_set_include,$(1),\
1240 -I$(call gb_UnpackedTarball_get_dir,cairo) \
1241 -I$(call gb_UnpackedTarball_get_dir,cairo)/src \
1242 $$(INCLUDE) \
1244 $(call gb_LinkTarget_add_libs,$(1),\
1245 -L$(call gb_UnpackedTarball_get_dir,cairo)/src/.libs -lcairo \
1246 $(if $(filter-out MACOSX WNT,$(OS)), \
1247 -L$(call gb_UnpackedTarball_get_dir,pixman)/pixman/.libs -lpixman-1 \
1251 endef
1253 endif # SYSTEM_CAIRO
1255 endif # CAIRO
1257 ifneq ($(SYSTEM_FREETYPE),)
1259 define gb_LinkTarget__use_freetype_headers
1260 $(call gb_LinkTarget_set_include,$(1),\
1261 $$(INCLUDE) \
1262 $(FREETYPE_CFLAGS) \
1265 endef
1267 define gb_LinkTarget__use_freetype
1268 $(call gb_LinkTarget_use_external,$(1),freetype_headers)
1269 $(call gb_LinkTarget_add_libs,$(1),$(FREETYPE_LIBS))
1271 endef
1273 gb_ExternalProject__use_freetype :=
1275 else ifneq (,$(or $(findstring ANDROID,$(OS)),$(ENABLE_GLTF)))
1277 define gb_LinkTarget__use_freetype_headers
1278 $(call gb_LinkTarget_use_external_project,$(1),freetype)
1279 $(call gb_LinkTarget_set_include,$(1),\
1280 -I$(call gb_UnpackedTarball_get_dir,freetype)/include \
1281 $$(INCLUDE) \
1284 endef
1286 define gb_LinkTarget__use_freetype
1287 $(call gb_LinkTarget_use_external,$(1),freetype_headers)
1288 $(call gb_LinkTarget_add_libs,$(1),$(FREETYPE_LIBS))
1290 endef
1292 define gb_ExternalProject__use_freetype
1293 $(call gb_ExternalProject_use_external_project,$(1),freetype)
1295 endef
1297 endif # SYSTEM_FREETYPE
1299 ifneq ($(SYSTEM_FONTCONFIG),)
1301 define gb_LinkTarget__use_fontconfig
1302 $(call gb_LinkTarget_set_include,$(1),\
1303 $$(INCLUDE) \
1304 $(FONTCONFIG_CFLAGS) \
1307 $(call gb_LinkTarget_add_libs,$(1),$(FONTCONFIG_LIBS))
1309 endef
1311 else ifeq ($(OS),ANDROID)
1313 define gb_LinkTarget__use_fontconfig
1314 $(call gb_LinkTarget_use_external_project,$(1),fontconfig)
1315 $(call gb_LinkTarget_set_include,$(1),\
1316 -I$(call gb_UnpackedTarball_get_dir,fontconfig) \
1317 $$(INCLUDE) \
1320 endef
1322 endif # SYSTEM_FONTCONFIG
1324 ifneq ($(SYSTEM_GRAPHITE),)
1326 define gb_LinkTarget__use_graphite
1327 $(call gb_LinkTarget_set_include,$(1),\
1328 $$(INCLUDE) \
1329 $(GRAPHITE_CFLAGS) \
1331 $(call gb_LinkTarget_add_libs,$(1),$(GRAPHITE_LIBS))
1333 endef
1335 else # !SYSTEM_GRAPHITE
1337 define gb_LinkTarget__use_graphite
1338 $(call gb_LinkTarget_use_unpacked,$(1),graphite)
1339 $(call gb_LinkTarget_set_include,$(1),\
1340 -I$(call gb_UnpackedTarball_get_dir,graphite/include) \
1341 $$(INCLUDE) \
1343 $(call gb_LinkTarget_use_static_libraries,$(1),\
1344 graphite \
1347 endef
1349 endif # SYSTEM_GRAPHITE
1351 ifneq ($(SYSTEM_ICU),)
1353 gb_LinkTarget__use_icu_headers:=
1354 gb_ExternalProject__use_icu:=
1356 define gb_LinkTarget__use_icudata
1357 $(call gb_LinkTarget_add_libs,$(1),-licudata)
1359 endef
1360 define gb_LinkTarget__use_icui18n
1361 $(call gb_LinkTarget_add_libs,$(1),-licui18n)
1363 endef
1364 define gb_LinkTarget__use_icuuc
1365 $(call gb_LinkTarget_add_libs,$(1),-licuuc)
1367 endef
1369 else # !SYSTEM_ICU
1371 $(eval $(call gb_Helper_register_packages_for_install,ooo, \
1372 icu \
1375 ifeq ($(OS)$(DISABLE_DYNLOADING),ANDROID)
1376 gb_ICU_suffix:=lo
1377 else
1378 gb_ICU_suffix:=
1379 endif
1381 define gb_LinkTarget__use_icu_headers
1382 $(call gb_LinkTarget_use_unpacked,$(1),icu)
1383 $(call gb_LinkTarget_set_include,$(1),\
1384 -I$(call gb_UnpackedTarball_get_dir,icu)/source \
1385 -I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
1386 -I$(call gb_UnpackedTarball_get_dir,icu)/source/common \
1387 $$(INCLUDE) \
1390 endef
1392 define gb_ExternalProject__use_icu
1393 $(call gb_ExternalProject_use_package,$(1),icu)
1395 endef
1397 # icudata and icui18n is called icudt and icuin when built with MSVC :-/
1398 define gb_LinkTarget__use_icudata
1399 $(call gb_LinkTarget_use_package,$(1),icu)
1401 ifeq ($(OS),WNT)
1402 $(call gb_LinkTarget_add_libs,$(1),\
1403 $(call gb_UnpackedTarball_get_dir,icu)/source/lib/icudt$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
1405 else
1406 $(call gb_LinkTarget_add_libs,$(1),\
1407 -L$(call gb_UnpackedTarball_get_dir,icu)/source/lib -licudata$(gb_ICU_suffix) \
1409 endif
1411 endef
1413 define gb_LinkTarget__use_icui18n
1414 $(call gb_LinkTarget_use_package,$(1),icu)
1416 ifeq ($(OS),WNT)
1417 $(call gb_LinkTarget_add_libs,$(1),\
1418 $(call gb_UnpackedTarball_get_dir,icu)/source/lib/icuin$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
1420 else
1421 $(call gb_LinkTarget_add_libs,$(1),\
1422 -L$(call gb_UnpackedTarball_get_dir,icu)/source/lib -licui18n$(gb_ICU_suffix) \
1424 endif
1426 endef
1428 define gb_LinkTarget__use_icuuc
1429 $(call gb_LinkTarget_use_package,$(1),icu)
1431 ifeq ($(OS),WNT)
1432 $(call gb_LinkTarget_add_libs,$(1),\
1433 $(call gb_UnpackedTarball_get_dir,icu)/source/lib/icuuc$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
1435 else
1436 $(call gb_LinkTarget_add_libs,$(1),\
1437 -L$(call gb_UnpackedTarball_get_dir,icu)/source/lib -licuuc$(gb_ICU_suffix) \
1439 endif
1441 endef
1443 endif # SYSTEM_ICU
1445 ifeq ($(ENABLE_HARFBUZZ),TRUE)
1446 ifneq ($(SYSTEM_HARFBUZZ),)
1448 define gb_LinkTarget__use_harfbuzz
1449 $(call gb_LinkTarget_set_include,$(1),\
1450 $$(INCLUDE) \
1451 $(HARFBUZZ_CFLAGS) \
1453 $(call gb_LinkTarget_add_libs,$(1),$(HARFBUZZ_LIBS))
1455 endef
1457 else # SYSTEM_HARFBUZZ != TRUE
1459 define gb_LinkTarget__use_harfbuzz
1460 $(call gb_LinkTarget_set_include,$(1),\
1461 $(HARFBUZZ_CFLAGS) \
1462 $$(INCLUDE) \
1464 $(call gb_LinkTarget_add_libs,$(1),$(HARFBUZZ_LIBS))
1465 $(call gb_LinkTarget_use_external_project,$(1),harfbuzz)
1467 endef
1469 endif # SYSTEM_HARFBUZZ
1470 else # ENABLE_HARFBUZZ != YES
1472 gb_LinkTarget__use_harfbuzz :=
1474 endif # ENABLE_HARFBUZZ
1476 ifeq ($(DISABLE_OPENSSL),TRUE)
1478 gb_ExternalProject__use_openssl:=
1479 gb_LinkTarget__use_openssl_headers:=
1480 gb_LinkTarget__use_openssl:=
1482 else # !DISABLE_OPENSSL
1484 ifneq ($(SYSTEM_OPENSSL),)
1486 gb_LinkTarget__use_openssl_headers:=
1487 gb_ExternalProject__use_openssl:=
1489 define gb_LinkTarget__use_openssl
1490 $(call gb_LinkTarget_set_include,$(1),\
1491 $$(INCLUDE) \
1492 $(OPENSSL_CFLAGS) \
1494 $(call gb_LinkTarget_add_libs,$(1),$(OPENSSL_LIBS))
1496 endef
1498 else # !SYSTEM_OPENSSL
1500 $(eval $(call gb_Helper_register_packages_for_install,ooo, \
1501 openssl \
1504 define gb_ExternalProject__use_openssl
1505 $(call gb_ExternalProject_use_package,$(1),openssl)
1507 endef
1509 define gb_LinkTarget__use_openssl_headers
1510 $(call gb_LinkTarget_set_include,$(1),\
1511 -I$(call gb_UnpackedTarball_get_dir,openssl)/include \
1512 $$(INCLUDE) \
1515 endef
1517 define gb_LinkTarget__use_openssl
1518 $(call gb_LinkTarget_use_package,$(1),openssl)
1519 ifeq ($(OS),WNT)
1520 $(call gb_LinkTarget_add_libs,$(1),\
1521 $(call gb_UnpackedTarball_get_dir,openssl)/out32dll/ssleay32.lib \
1522 $(call gb_UnpackedTarball_get_dir,openssl)/out32dll/libeay32.lib \
1524 else
1525 $(call gb_LinkTarget_add_libs,$(1),\
1526 $(call gb_UnpackedTarball_get_dir,openssl)/libssl.a \
1527 $(call gb_UnpackedTarball_get_dir,openssl)/libcrypto.a \
1529 $(call gb_LinkTarget_use_external_project,$(1),openssl)
1530 ifeq ($(OS),SOLARIS)
1531 $(call gb_LinkTarget_add_libs,$(1),\
1532 -lnsl \
1533 -lsocket \
1535 endif
1536 endif
1538 endef
1540 endif # SYSTEM_OPENSSL
1541 endif # DISABLE_OPENSSL
1544 ifeq ($(DISABLE_OPENSSL),TRUE)
1546 define gb_LinkTarget__use_gnutls
1547 $(call gb_LinkTarget_set_include,$(1),\
1548 $$(INCLUDE) \
1549 $(GNUTLS_CFLAGS) \
1552 $(call gb_LinkTarget_add_defs,$(1),\
1553 -DDISABLE_OPENSSL \
1556 $(call gb_LinkTarget_add_libs,$(1),$(GNUTLS_LIBS))
1558 endef
1560 define gb_LinkTarget__use_libgcrypt
1561 $(call gb_LinkTarget_set_include,$(1),\
1562 $$(INCLUDE) \
1563 $(LIBGCRYPT_CFLAGS) \
1566 $(call gb_LinkTarget_add_libs,$(1),$(LIBGCRYPT_LIBS))
1568 endef
1570 else # !DISABLE_OPENSSL
1572 gb_LinkTarget__use_gnutls:=
1573 gb_LinkTarget__use_libgcrypt:=
1575 endif # DISABLE_OPENSSL
1578 ifneq ($(SYSTEM_CDR),)
1580 define gb_LinkTarget__use_cdr
1581 $(call gb_LinkTarget_set_include,$(1),\
1582 $$(INCLUDE) \
1583 $(CDR_CFLAGS) \
1585 $(call gb_LinkTarget_add_libs,$(1),$(CDR_LIBS))
1587 endef
1589 else # !SYSTEM_CDR
1591 define gb_LinkTarget__use_cdr
1592 $(call gb_LinkTarget_set_include,$(1),\
1593 -I$(call gb_UnpackedTarball_get_dir,libcdr)/inc \
1594 $$(INCLUDE) \
1596 $(call gb_LinkTarget_add_libs,$(1),\
1597 $(call gb_UnpackedTarball_get_dir,libcdr)/src/lib/.libs/libcdr-0.0$(gb_StaticLibrary_PLAINEXT) \
1599 $(call gb_LinkTarget_use_external_project,$(1),libcdr)
1600 endef
1602 endif # SYSTEM_CDR
1605 ifneq ($(SYSTEM_EBOOK),)
1607 define gb_LinkTarget__use_ebook
1608 $(call gb_LinkTarget_set_include,$(1),\
1609 $$(INCLUDE) \
1610 $(EBOOK_CFLAGS) \
1612 $(call gb_LinkTarget_add_libs,$(1),$(EBOOK_LIBS))
1614 endef
1616 gb_ExternalProject__use_ebook :=
1618 else # !SYSTEM_EBOOK
1620 define gb_LinkTarget__use_ebook
1621 $(call gb_LinkTarget_set_include,$(1),\
1622 $(EBOOK_CFLAGS) \
1623 $$(INCLUDE) \
1625 $(call gb_LinkTarget_add_libs,$(1),\
1626 $(call gb_UnpackedTarball_get_dir,libebook)/src/lib/.libs/libe-book-0.0$(gb_StaticLibrary_PLAINEXT) \
1628 $(call gb_LinkTarget_use_external_project,$(1),libebook)
1630 endef
1632 define gb_ExternalProject__use_ebook
1633 $(call gb_ExternalProject_use_external_project,$(1),libebook)
1635 endef
1637 endif # SYSTEM_EBOOK
1640 ifneq ($(SYSTEM_ETONYEK),)
1642 define gb_LinkTarget__use_etonyek
1643 $(call gb_LinkTarget_set_include,$(1),\
1644 $$(INCLUDE) \
1645 $(ETONYEK_CFLAGS) \
1647 $(call gb_LinkTarget_add_libs,$(1),$(ETONYEK_LIBS))
1649 endef
1651 gb_ExternalProject__use_etonyek :=
1653 else # !SYSTEM_ETONYEK
1655 define gb_LinkTarget__use_etonyek
1656 $(call gb_LinkTarget_set_include,$(1),\
1657 $(ETONYEK_CFLAGS) \
1658 $$(INCLUDE) \
1660 $(call gb_LinkTarget_add_libs,$(1),\
1661 $(call gb_UnpackedTarball_get_dir,libetonyek)/src/lib/.libs/libetonyek-0.0$(gb_StaticLibrary_PLAINEXT) \
1663 $(call gb_LinkTarget_use_external_project,$(1),libetonyek)
1665 endef
1667 define gb_ExternalProject__use_etonyek
1668 $(call gb_ExternalProject_use_external_project,$(1),libetonyek)
1670 endef
1672 endif # SYSTEM_ETONYEK
1675 ifneq ($(SYSTEM_FREEHAND),)
1677 define gb_LinkTarget__use_freehand
1678 $(call gb_LinkTarget_set_include,$(1),\
1679 $$(INCLUDE) \
1680 $(FREEHAND_CFLAGS) \
1682 $(call gb_LinkTarget_add_libs,$(1),$(FREEHAND_LIBS))
1684 endef
1686 gb_ExternalProject__use_freehand :=
1688 else # !SYSTEM_FREEHAND
1690 define gb_LinkTarget__use_freehand
1691 $(call gb_LinkTarget_set_include,$(1),\
1692 $(FREEHAND_CFLAGS) \
1693 $$(INCLUDE) \
1695 $(call gb_LinkTarget_add_libs,$(1),\
1696 $(call gb_UnpackedTarball_get_dir,libfreehand)/src/lib/.libs/libfreehand-0.0$(gb_StaticLibrary_PLAINEXT) \
1698 $(call gb_LinkTarget_use_external_project,$(1),libfreehand)
1700 endef
1702 define gb_ExternalProject__use_freehand
1703 $(call gb_ExternalProject_use_external_project,$(1),libfreehand)
1705 endef
1707 endif # SYSTEM_FREEHAND
1710 ifneq ($(SYSTEM_ODFGEN),)
1712 define gb_LinkTarget__use_odfgen
1713 $(call gb_LinkTarget_set_include,$(1),\
1714 $$(INCLUDE) \
1715 $(ODFGEN_CFLAGS) \
1717 $(call gb_LinkTarget_add_libs,$(1),$(ODFGEN_LIBS))
1719 endef
1721 else # !SYSTEM_ODFGEN
1723 define gb_LinkTarget__use_odfgen
1724 $(call gb_LinkTarget_set_include,$(1),\
1725 -I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \
1726 $$(INCLUDE) \
1728 $(call gb_LinkTarget_add_libs,$(1),\
1729 $(call gb_UnpackedTarball_get_dir,libodfgen)/src/.libs/libodfgen-0.0$(gb_StaticLibrary_PLAINEXT) \
1731 $(call gb_LinkTarget_use_external_project,$(1),libodfgen)
1733 endef
1735 endif # SYSTEM_ODFGEN
1738 ifneq ($(SYSTEM_ABW),)
1740 define gb_LinkTarget__use_abw
1741 $(call gb_LinkTarget_set_include,$(1),\
1742 $$(INCLUDE) \
1743 $(ABW_CFLAGS) \
1745 $(call gb_LinkTarget_add_libs,$(1),$(ABW_LIBS))
1747 endef
1748 gb_ExternalProject__use_abw :=
1750 else # !SYSTEM_ABW
1752 define gb_LinkTarget__use_abw
1753 $(call gb_LinkTarget_set_include,$(1),\
1754 -I$(call gb_UnpackedTarball_get_dir,libabw)/inc \
1755 $$(INCLUDE) \
1757 $(call gb_LinkTarget_add_libs,$(1),\
1758 $(call gb_UnpackedTarball_get_dir,libabw)/src/lib/.libs/libabw-0.0$(gb_StaticLibrary_PLAINEXT) \
1760 $(call gb_LinkTarget_use_external_project,$(1),libabw)
1762 endef
1763 define gb_ExternalProject__use_abw
1764 $(call gb_ExternalProject_use_external_project,$(1),libabw)
1766 endef
1768 endif # SYSTEM_ABW
1771 ifneq ($(SYSTEM_MSPUB),)
1773 define gb_LinkTarget__use_mspub
1774 $(call gb_LinkTarget_set_include,$(1),\
1775 $$(INCLUDE) \
1776 $(MSPUB_CFLAGS) \
1778 $(call gb_LinkTarget_add_libs,$(1),$(MSPUB_LIBS))
1780 endef
1782 else # !SYSTEM_MSPUB
1784 define gb_LinkTarget__use_mspub
1785 $(call gb_LinkTarget_set_include,$(1),\
1786 -I$(call gb_UnpackedTarball_get_dir,libmspub)/inc \
1787 $$(INCLUDE) \
1789 $(call gb_LinkTarget_add_libs,$(1),\
1790 $(call gb_UnpackedTarball_get_dir,libmspub)/src/lib/.libs/libmspub-0.0$(gb_StaticLibrary_PLAINEXT) \
1792 $(call gb_LinkTarget_use_external_project,$(1),libmspub)
1794 endef
1796 endif # SYSTEM_MSPUB
1799 ifneq ($(SYSTEM_VISIO),)
1801 define gb_LinkTarget__use_visio
1802 $(call gb_LinkTarget_set_include,$(1),\
1803 $$(INCLUDE) \
1804 $(VISIO_CFLAGS) \
1806 $(call gb_LinkTarget_add_libs,$(1),$(VISIO_LIBS))
1808 endef
1810 else # !SYSTEM_VISIO
1812 define gb_LinkTarget__use_visio
1813 $(call gb_LinkTarget_set_include,$(1),\
1814 -I$(call gb_UnpackedTarball_get_dir,libvisio)/inc \
1815 $$(INCLUDE) \
1817 $(call gb_LinkTarget_add_libs,$(1),\
1818 $(call gb_UnpackedTarball_get_dir,libvisio)/src/lib/.libs/libvisio-0.0$(gb_StaticLibrary_PLAINEXT) \
1820 $(call gb_LinkTarget_use_external_project,$(1),libvisio)
1822 endef
1824 endif # SYSTEM_VISIO
1827 ifneq ($(SYSTEM_WPD),)
1829 define gb_LinkTarget__use_wpd
1830 $(call gb_LinkTarget_set_include,$(1),\
1831 $$(INCLUDE) \
1832 $(WPD_CFLAGS) \
1834 $(call gb_LinkTarget_add_libs,$(1),$(WPD_LIBS))
1836 endef
1837 gb_ExternalProject__use_wpd :=
1839 else # !SYSTEM_WPD
1841 define gb_LinkTarget__use_wpd
1842 $(call gb_LinkTarget_set_include,$(1),\
1843 $(WPD_CFLAGS) \
1844 $$(INCLUDE) \
1846 $(call gb_LinkTarget_add_libs,$(1),\
1847 $(call gb_UnpackedTarball_get_dir,libwpd)/src/lib/.libs/libwpd-0.9$(gb_StaticLibrary_PLAINEXT) \
1849 $(call gb_LinkTarget_use_external_project,$(1),libwpd)
1851 endef
1852 define gb_ExternalProject__use_wpd
1853 $(call gb_ExternalProject_use_external_project,$(1),libwpd)
1855 endef
1857 endif # SYSTEM_WPD
1860 ifneq ($(SYSTEM_WPG),)
1862 define gb_LinkTarget__use_wpg
1863 $(call gb_LinkTarget_set_include,$(1),\
1864 $$(INCLUDE) \
1865 $(WPG_CFLAGS) \
1867 $(call gb_LinkTarget_add_libs,$(1),$(WPG_LIBS))
1869 endef
1870 gb_ExternalProject__use_wpg :=
1872 else # !SYSTEM_WPG
1874 define gb_LinkTarget__use_wpg
1875 $(call gb_LinkTarget_set_include,$(1),\
1876 -I$(call gb_UnpackedTarball_get_dir,libwpg)/inc \
1877 $$(INCLUDE) \
1879 $(call gb_LinkTarget_add_libs,$(1),\
1880 $(call gb_UnpackedTarball_get_dir,libwpg)/src/lib/.libs/libwpg-0.2$(gb_StaticLibrary_PLAINEXT) \
1882 $(call gb_LinkTarget_use_external_project,$(1),libwpg)
1884 endef
1885 define gb_ExternalProject__use_wpg
1886 $(call gb_ExternalProject_use_external_project,$(1),libwpg)
1888 endef
1890 endif # SYSTEM_WPG
1893 ifneq ($(SYSTEM_WPS),)
1895 define gb_LinkTarget__use_wps
1896 $(call gb_LinkTarget_set_include,$(1),\
1897 $$(INCLUDE) \
1898 $(WPS_CFLAGS) \
1900 $(call gb_LinkTarget_add_libs,$(1),$(WPS_LIBS))
1902 endef
1903 gb_ExternalProject__use_wps :=
1905 else # !SYSTEM_WPS
1907 define gb_LinkTarget__use_wps
1908 $(call gb_LinkTarget_set_include,$(1),\
1909 -I$(call gb_UnpackedTarball_get_dir,libwps)/inc \
1910 $$(INCLUDE) \
1912 $(call gb_LinkTarget_add_libs,$(1),\
1913 $(call gb_UnpackedTarball_get_dir,libwps)/src/lib/.libs/libwps-0.2$(gb_StaticLibrary_PLAINEXT) \
1915 $(call gb_LinkTarget_use_external_project,$(1),libwps)
1917 endef
1918 define gb_ExternalProject__use_wps
1919 $(call gb_ExternalProject_use_external_project,$(1),libwps)
1921 endef
1923 endif # SYSTEM_WPS
1926 ifneq ($(SYSTEM_MWAW),)
1928 define gb_LinkTarget__use_mwaw
1929 $(call gb_LinkTarget_set_include,$(1),\
1930 $$(INCLUDE) \
1931 $(MWAW_CFLAGS) \
1933 $(call gb_LinkTarget_add_libs,$(1),$(MWAW_LIBS))
1935 endef
1937 else # !SYSTEM_MWAW
1939 define gb_LinkTarget__use_mwaw
1940 $(call gb_LinkTarget_set_include,$(1),\
1941 -I$(call gb_UnpackedTarball_get_dir,libmwaw)/inc \
1942 $$(INCLUDE) \
1944 $(call gb_LinkTarget_add_libs,$(1),\
1945 $(call gb_UnpackedTarball_get_dir,libmwaw)/src/lib/.libs/libmwaw-0.2$(gb_StaticLibrary_PLAINEXT) \
1947 $(call gb_LinkTarget_use_external_project,$(1),libmwaw)
1949 endef
1951 endif # SYSTEM_MWAW
1954 ifneq ($(SYSTEM_LCMS2),)
1956 define gb_LinkTarget__use_lcms2
1957 $(call gb_LinkTarget_set_include,$(1),\
1958 $$(INCLUDE) \
1959 $(LCMS2_CFLAGS) \
1961 $(call gb_LinkTarget_add_libs,$(1),$(LCMS2_LIBS))
1963 endef
1965 gb_ExternalProject__use_lcms2 :=
1967 else # !SYSTEM_LCMS2
1969 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
1970 lcms2 \
1973 define gb_ExternalProject__use_lcms2
1974 $(call gb_ExternalProject_use_package,$(1),lcms2)
1976 endef
1978 ifeq ($(OS),ANDROID)
1980 define gb_LinkTarget__use_lcms2
1981 $(call gb_LinkTarget_use_package,$(1),lcms2)
1982 $(call gb_LinkTarget_set_include,$(1),\
1983 -I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
1984 $$(INCLUDE) \
1987 endef
1989 else
1991 define gb_LinkTarget__use_lcms2
1992 $(call gb_LinkTarget_use_package,$(1),lcms2)
1993 $(call gb_LinkTarget_set_include,$(1),\
1994 -I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
1995 $$(INCLUDE) \
1997 $(call gb_LinkTarget_add_libs,$(1),$(LCMS2_LIBS))
1999 endef
2001 endif # ANDROID
2002 endif # SYSTEM_LCMS2
2004 ifneq ($(ENABLE_LPSOLVE),)
2006 ifneq ($(SYSTEM_LPSOLVE),)
2008 define gb_LinkTarget__use_lpsolve
2009 $(call gb_LinkTarget_add_libs,$(1),-llpsolve55)
2010 $(call gb_LinkTarget_add_defs,$(1),\
2011 -DSYSTEM_LPSOLVE \
2014 endef
2016 else # !SYSTEM_LPSOLVE
2018 define gb_LinkTarget__use_lpsolve
2019 $(call gb_LinkTarget_use_unpacked,$(1),lpsolve)
2020 ifeq ($(COM),MSC)
2021 $(call gb_LinkTarget_add_libs,$(1),\
2022 $(call gb_UnpackedTarball_get_dir,lpsolve)/lpsolve55/lpsolve55.lib \
2024 else
2025 $(call gb_LinkTarget_add_libs,$(1),\
2026 -L$(call gb_UnpackedTarball_get_dir,lpsolve)/lpsolve55 -llpsolve55 \
2028 endif
2029 $(call gb_LinkTarget_set_include,$(1),\
2030 -I$(call gb_UnpackedTarball_get_dir,lpsolve) \
2031 $$(INCLUDE) \
2034 endef
2036 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
2037 lpsolve \
2040 endif # SYSTEM_LPSOLVE
2042 else
2044 gb_LinkTarget__use_lpsolve :=
2046 endif # ENABLE_LPSOLVE
2048 ifneq ($(ENABLE_COINMP),)
2050 define gb_LinkTarget__use_coinmp
2051 $(call gb_LinkTarget_use_package,$(1),coinmp)
2052 ifeq ($(COM),MSC)
2053 $(call gb_LinkTarget_add_libs,$(1),\
2054 $(call gb_UnpackedTarball_get_dir,coinmp)/CoinMP/MSVisualStudio/v9/$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)/CoinMP.lib \
2056 else
2057 $(call gb_LinkTarget_add_libs,$(1),\
2058 -L$(call gb_UnpackedTarball_get_dir,coinmp)/Cbc/src/.libs -lCbc -lCbcSolver \
2059 -L$(call gb_UnpackedTarball_get_dir,coinmp)/Cgl/src/.libs -lCgl \
2060 -L$(call gb_UnpackedTarball_get_dir,coinmp)/Clp/src/.libs -lClp \
2061 -L$(call gb_UnpackedTarball_get_dir,coinmp)/Clp/src/OsiClp/.libs -lOsiClp \
2062 -L$(call gb_UnpackedTarball_get_dir,coinmp)/CoinMP/src/.libs -lCoinMP \
2063 -L$(call gb_UnpackedTarball_get_dir,coinmp)/CoinUtils/src/.libs -lCoinUtils \
2064 -L$(call gb_UnpackedTarball_get_dir,coinmp)/Osi/src/Osi/.libs -lOsi \
2066 endif
2067 $(call gb_LinkTarget_set_include,$(1),\
2068 -I$(call gb_UnpackedTarball_get_dir,coinmp)/CoinMP/src \
2069 $$(INCLUDE) \
2072 endef
2074 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
2075 coinmp \
2078 else
2080 gb_LinkTarget__use_coinmp :=
2082 endif # ENABLE_COINMP
2084 ifeq ($(ENABLE_GIO),TRUE)
2086 define gb_LinkTarget__use_gio
2087 $(call gb_LinkTarget_set_include,$(1),\
2088 $$(INCLUDE) \
2089 $(GIO_CFLAGS) \
2092 $(call gb_LinkTarget_add_defs,$(1),\
2093 -DENABLE_GIO \
2096 $(call gb_LinkTarget_add_libs,$(1),$(GIO_LIBS))
2098 endef
2100 else # ENABLE_GIO
2102 define gb_LinkTarget__use_gio
2104 endef
2106 endif # ENABLE_GIO
2108 ifeq ($(ENABLE_AVAHI),TRUE)
2110 define gb_LinkTarget__use_avahi
2111 $(call gb_LinkTarget_set_include,$(1),\
2112 $$(INCLUDE) \
2113 $(AVAHI_CFLAGS) \
2116 $(call gb_LinkTarget_add_defs,$(1),\
2117 -DENABLE_AVAHI \
2120 $(call gb_LinkTarget_add_libs,$(1),$(AVAHI_LIBS))
2122 endef
2124 else # ENABLE_AVAHI
2126 gb_LinkTarget__use_avahi :=
2128 endif # ENABLE_AVAHI
2131 define gb_LinkTarget__use_gtk
2132 $(call gb_LinkTarget_set_include,$(1),\
2133 $$(INCLUDE) \
2134 $(GTK_CFLAGS) \
2137 $(call gb_LinkTarget_add_libs,$(1),$(GTK_LIBS))
2139 ifeq ($(ENABLE_GTK_PRINT),TRUE)
2141 $(call gb_LinkTarget_add_defs,$(1),-DENABLE_GTK_PRINT)
2143 $(call gb_LinkTarget_set_include,$(1),\
2144 $$(INCLUDE) \
2145 $(GTK_PRINT_CFLAGS) \
2148 $(call gb_LinkTarget_add_libs,$(1),$(GTK_PRINT_LIBS))
2150 endif
2152 endef
2154 define gb_LinkTarget__use_gthread
2155 $(call gb_LinkTarget_add_libs,$(1),$(GTHREAD_LIBS))
2156 endef
2158 ifeq ($(ENABLE_CUPS),TRUE)
2160 define gb_LinkTarget__use_cups
2161 $(call gb_LinkTarget_add_defs,$(1),\
2162 -DENABLE_CUPS \
2165 $(call gb_LinkTarget_add_libs,$(1),\
2166 -lcups \
2169 endef
2171 else # ENABLE_CUPS
2173 define gb_LinkTarget__use_cups
2175 endef
2177 endif # ENABLE_DBUS
2179 ifeq ($(ENABLE_DBUS),TRUE)
2181 define gb_LinkTarget__use_dbus
2182 $(call gb_LinkTarget_set_include,$(1),\
2183 $$(INCLUDE) \
2184 $(DBUS_CFLAGS) \
2187 $(call gb_LinkTarget_add_defs,$(1),\
2188 -DENABLE_DBUS \
2191 ifeq ($(ENABLE_PACKAGEKIT),TRUE)
2192 $(call gb_LinkTarget_add_defs,$(1),\
2193 -DENABLE_PACKAGEKIT \
2195 endif # ENABLE_PACKAGEKIT
2197 $(call gb_LinkTarget_add_libs,$(1),\
2198 $(DBUS_LIBS) \
2201 endef
2203 else # ENABLE_DBUS
2205 define gb_LinkTarget__use_dbus
2207 endef
2209 endif # ENABLE_DBUS
2212 define gb_LinkTarget__use_dbusmenugtk
2213 $(call gb_LinkTarget_set_include,$(1),\
2214 $$(INCLUDE) \
2215 $(DBUSMENUGTK_CFLAGS) \
2218 $(call gb_LinkTarget_add_libs,$(1),$(DBUSMENUGTK_LIBS))
2220 endef
2223 ifeq ($(ENABLE_TELEPATHY),TRUE)
2225 define gb_LinkTarget__use_telepathy
2226 $(call gb_LinkTarget_set_include,$(1),\
2227 $$(INCLUDE) \
2228 $(TELEPATHY_CFLAGS) \
2231 $(call gb_LinkTarget_add_libs,$(1),\
2232 $(TELEPATHY_LIBS) \
2235 endef
2237 else # !ENABLE_TELEPATHY
2239 gb_LinkTarget__use_telepathy :=
2241 endif # ENABLE_TELEPATHY
2243 ifneq ($(SYSTEM_LIBPNG),)
2245 define gb_LinkTarget__use_png
2246 $(call gb_LinkTarget_set_include,$(1),\
2247 $$(INCLUDE) \
2248 $(LIBPNG_CFLAGS) \
2251 $(call gb_LinkTarget_add_libs,$(1),\
2252 $(LIBPNG_LIBS) \
2255 endef
2257 else # !SYSTEM_LIBPNG
2259 define gb_LinkTarget__use_png
2260 $(call gb_LinkTarget_set_include,$(1),\
2261 $(LIBPNG_CFLAGS) \
2262 $$(INCLUDE) \
2264 $(call gb_LinkTarget_use_static_libraries,$(1),\
2265 png \
2267 $(call gb_LinkTarget__use_zlib,$(1))
2269 endef
2271 endif # !SYSTEM_LIBPNG
2274 ifneq ($(SYSTEM_CURL),)
2276 define gb_LinkTarget__use_curl
2277 $(call gb_LinkTarget_set_include,$(1),\
2278 $$(INCLUDE) \
2279 $(CURL_CFLAGS) \
2281 $(call gb_LinkTarget_add_libs,$(1),$(CURL_LIBS))
2283 endef
2285 else # !SYSTEM_CURL
2287 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
2288 curl \
2291 define gb_LinkTarget__use_curl
2292 $(call gb_LinkTarget_use_package,$(1),curl)
2293 $(call gb_LinkTarget_set_include,$(1),\
2294 -I$(call gb_UnpackedTarball_get_dir,curl/include) \
2295 $$(INCLUDE) \
2298 ifeq ($(COM),MSC)
2299 $(call gb_LinkTarget_add_libs,$(1),\
2300 $(call gb_UnpackedTarball_get_dir,curl)/lib/libcurl$(if $(MSVC_USE_DEBUG_RUNTIME),d)_imp.lib \
2302 else
2303 $(call gb_LinkTarget_add_libs,$(1),\
2304 -L$(call gb_UnpackedTarball_get_dir,curl)/lib/.libs -lcurl \
2306 endif
2308 endef
2310 endif # SYSTEM_CURL
2312 ifeq ($(ENABLE_VALGRIND),TRUE)
2314 define gb_LinkTarget__use_valgrind
2315 $(call gb_LinkTarget_add_defs,$(1),\
2316 -DHAVE_VALGRIND_HEADERS \
2319 $(call gb_LinkTarget_set_include,$(1),\
2320 $$(INCLUDE) \
2321 $(VALGRIND_CFLAGS) \
2324 endef
2326 else # !ENABLE_VALGRIND
2328 define gb_LinkTarget__use_valgrind
2330 endef
2332 endif # ENABLE_VALGRIND
2334 ifneq ($(SYSTEM_POPPLER),)
2336 define gb_LinkTarget__use_poppler
2337 $(call gb_LinkTarget_set_include,$(1),\
2338 $(POPPLER_CFLAGS) \
2339 $$(INCLUDE) \
2342 $(call gb_LinkTarget_add_libs,$(1),\
2343 $(POPPLER_LIBS) \
2346 endef
2348 else # !SYSTEM_POPPLER
2350 define gb_LinkTarget__use_poppler
2351 $(call gb_LinkTarget_use_external_project,$(1),poppler)
2353 $(call gb_LinkTarget_set_include,$(1),\
2354 -I$(call gb_UnpackedTarball_get_dir,poppler) \
2355 -I$(call gb_UnpackedTarball_get_dir,poppler)/poppler \
2356 -I$(call gb_UnpackedTarball_get_dir,poppler)/goo \
2357 $$(INCLUDE) \
2360 $(call gb_LinkTarget_add_libs,$(1),\
2361 $(call gb_UnpackedTarball_get_dir,poppler)/fofi/.libs/libfofi$(gb_StaticLibrary_PLAINEXT) \
2362 $(call gb_UnpackedTarball_get_dir,poppler)/goo/.libs/libgoo$(gb_StaticLibrary_PLAINEXT) \
2363 $(call gb_UnpackedTarball_get_dir,poppler)/poppler/.libs/libpoppler$(gb_StaticLibrary_PLAINEXT) \
2366 ifeq ($(OS),MACOSX)
2367 $(call gb_LinkTarget_add_libs,$(1),\
2368 -lobjc \
2370 else ifeq ($(OS),WNT)
2371 $(call gb_LinkTarget_use_system_win32_libs,$(1),\
2372 advapi32 \
2373 gdi32 \
2375 endif
2377 endef
2379 endif # SYSTEM_POPPLER
2382 ifneq ($(SYSTEM_CLUCENE),)
2384 define gb_LinkTarget__use_clucene
2385 $(call gb_LinkTarget_add_defs,$(1),\
2386 $(filter-out -I%,$(CLUCENE_CFLAGS)) \
2389 $(call gb_LinkTarget_set_include,$(1),\
2390 $(filter -I%,$(CLUCENE_CFLAGS)) \
2391 $$(INCLUDE) \
2394 $(call gb_LinkTarget_add_libs,$(1),\
2395 $(CLUCENE_LIBS) \
2398 endef
2400 else # !SYSTEM_CLUCENE
2402 define gb_LinkTarget__use_clucene
2403 $(call gb_LinkTarget_set_include,$(1),\
2404 -I$(call gb_UnpackedTarball_get_dir,clucene)/src/core \
2405 -I$(call gb_UnpackedTarball_get_dir,clucene)/src/shared \
2406 -I$(call gb_UnpackedTarball_get_dir,clucene)/src/contribs-lib \
2407 $$(INCLUDE) \
2410 $(call gb_LinkTarget_use_libraries,$(1),\
2411 clucene \
2414 endef
2416 $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
2417 clucene \
2420 endif # SYSTEM_CLUCENE
2422 define gb_LinkTarget__use_gobject
2423 $(call gb_LinkTarget_add_libs,$(1),\
2424 $(GOBJECT_LIBS) \
2427 $(call gb_LinkTarget_set_include,$(1),\
2428 $$(INCLUDE) \
2429 $(GOBJECT_CFLAGS) \
2431 endef
2433 ifneq ($(SYSTEM_HSQLDB),)
2435 define gb_LinkTarget__use_hsqldb
2437 $(call gb_LinkTarget_add_defs,$(1),\
2438 -DSYSTEM_HSQLDB \
2439 -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\" \
2442 endef
2444 else # !SYSTEM_HSQLDB
2446 define gb_LinkTarget__use_hsqldb
2448 endef
2450 endif # SYSTEM_HSQLDB
2453 ifneq ($(SYSTEM_OPENLDAP),)
2455 define gb_LinkTarget__use_openldap
2457 $(call gb_LinkTarget_add_libs,$(1),\
2458 -lldap \
2459 -llber \
2462 endef
2464 gb_ExternalProject__use_openldap :=
2466 else # !SYSTEM_OPENLDAP
2468 define gb_LinkTarget__use_openldap
2469 $(call gb_LinkTarget_use_unpacked,$(1),openldap)
2470 $(call gb_LinkTarget_set_include,$(1),\
2471 -I$(call gb_UnpackedTarball_get_dir,openldap/include) \
2472 $$(INCLUDE) \
2474 $(call gb_LinkTarget_use_external_project,$(1),openldap)
2475 $(call gb_LinkTarget_add_libs,$(1), \
2476 $(call gb_UnpackedTarball_get_dir,openldap)/libraries/libldap/.libs/libldap.a \
2477 $(call gb_UnpackedTarball_get_dir,openldap)/libraries/liblber/.libs/liblber.a \
2480 endef
2482 define gb_ExternalProject__use_openldap
2483 $(call gb_ExternalProject_use_external_project,$(1),openldap)
2485 endef
2487 endif # SYSTEM_OPENLDAP
2490 ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
2492 ifneq ($(SYSTEM_FIREBIRD),)
2494 define gb_LinkTarget__use_libfbembed
2495 $(call gb_LinkTarget_set_include,$(1),\
2496 $(FIREBIRD_CFLAGS) \
2497 $$(INCLUDE) \
2499 $(call gb_LinkTarget_add_libs,$(1),$(FIREBIRD_LIBS))
2501 endef
2503 # gb_LinkTarget__use_atomic_ops :=
2504 # gb_LinkTarget__use_tommath :=
2506 else # !SYSTEM_FIREBIRD
2508 #$(call gb_LinkTarget__use_libatomic_ops,$(1))
2510 define gb_LinkTarget__use_libfbembed
2511 $(call gb_LinkTarget_use_package,$(1),firebird)
2512 $(call gb_LinkTarget_set_include,$(1),\
2513 $$(INCLUDE) \
2514 -I$(call gb_UnpackedTarball_get_dir,firebird)/gen/firebird/include \
2516 ifeq ($(COM),MSC)
2517 $(call gb_LinkTarget_add_libs,$(1),\
2518 $(call gb_UnpackedTarball_get_dir,firebird)/gen/firebird/bin/ifbembed.lib \
2520 else
2521 $(call gb_LinkTarget_add_libs,$(1),\
2522 -L$(call gb_UnpackedTarball_get_dir,firebird)/gen/firebird/lib -lfbembed \
2524 endif
2526 endef
2528 # define gb_LinkTarget__use_tommath
2529 # $(call gb_LinkTarget_set_include,$(1),\
2530 # $(TOMMATH_CFLAGS) \
2531 # $$(INCLUDE) \
2534 # $(call gb_LinkTarget_add_libs,$(1),$(TOMMATH_LIBS))
2536 # endef
2538 endif # SYSTEM_FIREBIRD
2540 else # !ENABLE_FIREBIRD_SDBC
2542 gb_LinkTarget__use_firebird :=
2543 # gb_LinkTarget__use_atomic_ops :=
2544 # gb_LinkTarget__use_tommath :=
2546 endif # ENABLE_FIREBIRD_SDBC
2549 ifneq ($(SYSTEM_POSTGRESQL),)
2551 define gb_LinkTarget__use_postgresql
2553 $(call gb_LinkTarget_set_include,$(1),\
2554 $(POSTGRESQL_INC) \
2555 $$(INCLUDE) \
2558 $(call gb_LinkTarget_add_libs,$(1),\
2559 -lpq \
2562 $(call gb_LinkTarget_add_ldflags,$(1),\
2563 $(POSTGRESQL_LIB) \
2566 endef
2568 else # !SYSTEM_POSTGRESQL
2570 define gb_LinkTarget__use_postgresql
2572 $(call gb_LinkTarget_use_external_project,$(1),postgresql)
2574 $(call gb_LinkTarget_set_include,$(1),\
2575 -I$(call gb_UnpackedTarball_get_dir,postgresql)/src/include \
2576 -I$(call gb_UnpackedTarball_get_dir,postgresql)/src/interfaces/libpq \
2577 $$(INCLUDE) \
2580 $(call gb_LinkTarget_add_libs,$(1),\
2581 $(call gb_UnpackedTarball_get_dir,postgresql)/src/interfaces/libpq/libpq$(gb_StaticLibrary_PLAINEXT) \
2584 ifeq ($(OS)$(COM),WNTMSC)
2585 $(call gb_LinkTarget_use_external,$(1),openssl)
2587 $(call gb_LinkTarget_use_system_win32_libs,$(1),\
2588 secur32 \
2589 ws2_32 \
2592 endif
2594 endef
2596 endif # SYSTEM_POSTGRESQL
2598 ifneq ($(WITH_MOZAB4WIN),)
2600 $(eval $(call gb_Helper_register_packages_for_install,ooo,\
2601 moz_runtime \
2604 define gb_LinkTarget__use_mozilla
2606 $(call gb_LinkTarget_use_unpacked,$(1),moz_lib)
2607 $(call gb_LinkTarget_use_unpacked,$(1),moz_inc)
2609 $(call gb_LinkTarget_add_defs,$(1),\
2610 -DMOZILLA_INTERNAL_API \
2613 $(call gb_LinkTarget_set_include,$(1),\
2614 -I$(call gb_UnpackedTarball_get_dir,moz_inc) \
2615 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/addrbook \
2616 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/content \
2617 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/embed_base \
2618 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/intl \
2619 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/mime \
2620 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/mozldap \
2621 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/msgbase \
2622 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/necko \
2623 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/pref \
2624 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/profile \
2625 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/rdf \
2626 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/string \
2627 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/uconv \
2628 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/xpcom \
2629 -I$(call gb_UnpackedTarball_get_dir,moz_inc)/xpcom_obsolete \
2630 $$(INCLUDE) \
2633 $(call gb_LinkTarget_add_libs,$(1),\
2634 $(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/nspr4.lib \
2635 $(call gb_UnpackedTarball_get_dir,moz_lib)/xpcom.lib \
2636 $(call gb_UnpackedTarball_get_dir,moz_lib)/xpcom_core.lib \
2639 $(call gb_LinkTarget_add_defs,$(1),\
2640 -DMOZILLA_CLIENT \
2641 -DMOZ_REFLOW_PERF \
2642 -DMOZ_REFLOW_PERF_DSP \
2643 -DMOZ_XUL \
2644 -DOJI \
2645 -DWIN32 \
2646 -DXP_PC \
2647 -DXP_WIN \
2648 -DXP_WIN32 \
2649 -D_WINDOWS \
2652 ifeq ($(COM),GCC)
2654 $(call gb_LinkTarget_add_cxxflags,$(1),\
2655 -Wall \
2656 -Wcast-align \
2657 -Wconversion \
2658 -Wno-long-long \
2659 -Woverloaded-virtual \
2660 -Wpointer-arith \
2661 -Wsynth \
2662 -fno-rtti \
2665 else
2667 ifneq ($(DBG_LEVEL),0)
2668 $(call gb_LinkTarget_add_defs,$(1),\
2669 -D_STL_NOFORCE_MANIFEST \
2671 endif
2673 $(call gb_LinkTarget_add_libs,$(1),\
2674 $(call gb_UnpackedTarball_get_dir,moz_lib)/embed_base_s.lib \
2675 $(call gb_UnpackedTarball_get_dir,moz_lib)/mozreg_s.lib \
2678 endif # !GCC
2680 endef
2682 endif # WITH_MOZAB4WIN
2684 ifeq ($(ENABLE_KDE),TRUE)
2686 define gb_LinkTarget__use_kde
2687 $(call gb_LinkTarget_set_include,$(1),\
2688 $(filter -I%,$(KDE_CFLAGS)) \
2689 $$(INCLUDE) \
2692 $(call gb_LinkTarget_add_defs,$(1),\
2693 $(filter-out -I%,$(KDE_CFLAGS)) \
2696 $(call gb_LinkTarget_add_libs,$(1),\
2697 $(KDE_LIBS) \
2700 ifeq ($(COM),GCC)
2701 $(call gb_LinkTarget_add_cxxflags,$(1),\
2702 -Wno-shadow \
2704 endif
2706 endef
2708 else # !ENABLE_KDE
2710 define gb_LinkTarget__use_kde
2712 endef
2714 endif # ENABLE_KDE
2717 ifeq ($(ENABLE_KDE4),TRUE)
2719 define gb_LinkTarget__use_kde4
2720 $(call gb_LinkTarget_set_include,$(1),\
2721 $(filter -I%,$(KDE4_CFLAGS)) \
2722 $$(INCLUDE) \
2725 $(call gb_LinkTarget_add_defs,$(1),\
2726 $(filter-out -I%,$(KDE4_CFLAGS)) \
2729 $(call gb_LinkTarget_add_libs,$(1),\
2730 $(KDE4_LIBS) \
2733 ifeq ($(COM),GCC)
2734 $(call gb_LinkTarget_add_cxxflags,$(1),\
2735 -Wno-shadow \
2737 endif
2739 endef
2741 else # !ENABLE_KDE4
2743 define gb_LinkTarget__use_kde4
2745 endef
2747 endif # ENABLE_KDE4
2750 ifeq ($(ENABLE_TDE),TRUE)
2752 define gb_LinkTarget__use_tde
2753 $(call gb_LinkTarget_add_libs,$(1),\
2754 $(TDE_LIBS) \
2757 $(call gb_LinkTarget_set_include,$(1),\
2758 $$(INCLUDE) \
2759 $(TDE_CFLAGS) \
2761 endef
2763 else # ! ENABLE_TDE
2765 define gb_LinkTarget__use_tde
2767 endef
2769 endif # ENABLE_TDE
2772 ifeq ($(ENABLE_GCONF),TRUE)
2774 define gb_LinkTarget__use_gconf
2775 $(call gb_LinkTarget_set_include,$(1),\
2776 $(filter -I%,$(GCONF_CFLAGS)) \
2777 $$(INCLUDE) \
2780 $(call gb_LinkTarget_add_defs,$(1),\
2781 $(filter-out -I%,$(GCONF_CFLAGS)) \
2784 $(call gb_LinkTarget_add_libs,$(1),\
2785 $(GCONF_LIBS) \
2788 endef
2790 else # !ENABLE_GCONF
2792 define gb_LinkTarget__use_gconf
2794 endef
2796 endif # ENABLE_GCONF
2799 # PYTHON
2800 # extra python_headers external because pyuno wrapper must not link python
2801 ifneq ($(SYSTEM_PYTHON),)
2803 define gb_LinkTarget__use_python_headers
2804 $(call gb_LinkTarget_add_defs,$(1),\
2805 $(filter-out -I%,$(PYTHON_CFLAGS)) \
2808 $(call gb_LinkTarget_set_include,$(1),\
2809 $(filter -I%,$(PYTHON_CFLAGS)) \
2810 $$(INCLUDE) \
2813 endef
2815 define gb_LinkTarget__use_python
2816 $(call gb_LinkTarget__use_python_headers,$(1))
2818 $(call gb_LinkTarget_add_libs,$(1),\
2819 $(PYTHON_LIBS) \
2822 endef
2824 else # !SYSTEM_PYTHON
2826 $(eval $(call gb_Helper_register_packages_for_install,python,\
2827 python3 \
2830 # depend on external project because on MACOSX the Package is disabled...
2831 define gb_LinkTarget__use_python_headers
2832 $(call gb_LinkTarget_use_external_project,$(1),python3)
2833 $(call gb_LinkTarget_set_include,$(1),\
2834 -I$(call gb_UnpackedTarball_get_dir,python3) \
2835 -I$(call gb_UnpackedTarball_get_dir,python3)/PC \
2836 -I$(call gb_UnpackedTarball_get_dir,python3)/Include \
2837 $$(INCLUDE) \
2840 endef
2842 define gb_LinkTarget__use_python
2843 $(call gb_LinkTarget__use_python_headers,$(1))
2845 ifeq ($(OS),WNT)
2846 $(call gb_LinkTarget_add_libs,$(1),\
2847 $(call gb_UnpackedTarball_get_dir,python3)/PCbuild$(if $(filter X86_64,$(CPUNAME)),/amd64)/python$(PYTHON_VERSION_MAJOR)$(PYTHON_VERSION_MINOR)$(if $(MSVC_USE_DEBUG_RUNTIME),_d).lib \
2849 else ifeq ($(OS),MACOSX)
2850 $(call gb_LinkTarget_add_libs,$(1),\
2851 -F$(call gb_UnpackedTarball_get_dir,python3)/python-inst/@__________________________________________________OOO -framework LibreOfficePython \
2853 else
2854 $(call gb_LinkTarget_add_libs,$(1),\
2855 -L$(call gb_UnpackedTarball_get_dir,python3) \
2856 -lpython$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)m \
2858 endif
2860 endef
2862 endif # SYSTEM_PYTHON
2864 # ORCUS
2865 ifeq ($(ENABLE_ORCUS),TRUE)
2867 ifneq ($(SYSTEM_LIBORCUS),)
2869 define gb_LinkTarget__use_orcus
2870 $(call gb_LinkTarget_set_include,$(1),\
2871 $$(INCLUDE) \
2872 $(ORCUS_CFLAGS) \
2874 $(call gb_LinkTarget_add_libs,$(1),$(ORCUS_LIBS))
2875 endef
2877 define gb_LinkTarget__use_orcus-parser
2879 endef
2881 else # !SYSTEM_LIBORCUS
2883 define gb_LinkTarget__use_orcus
2884 $(call gb_LinkTarget_use_external_project,$(1),liborcus)
2885 $(call gb_LinkTarget_set_include,$(1),\
2886 -I$(call gb_UnpackedTarball_get_dir,liborcus/include) \
2887 $$(INCLUDE) \
2889 $(call gb_LinkTarget_add_libs,$(1),\
2890 $(call gb_UnpackedTarball_get_dir,liborcus)/src/liborcus/.libs/liborcus-0.8$(gb_StaticLibrary_PLAINEXT) \
2893 $(if $(SYSTEM_BOOST), \
2894 $(call gb_LinkTarget_add_ldflags,$(1),$(BOOST_LDFLAGS)) \
2895 $(call gb_LinkTarget_add_libs,$(1),$(BOOST_SYSTEM_LIB)) \
2898 endef
2900 define gb_LinkTarget__use_orcus-parser
2901 $(call gb_LinkTarget_use_external_project,$(1),liborcus)
2902 $(call gb_LinkTarget_set_include,$(1),\
2903 -I$(call gb_UnpackedTarball_get_dir,liborcus/include) \
2904 $$(INCLUDE) \
2906 $(call gb_LinkTarget_add_libs,$(1),\
2907 $(call gb_UnpackedTarball_get_dir,liborcus)/src/parser/.libs/liborcus-parser-0.8$(gb_StaticLibrary_PLAINEXT) \
2910 endef
2912 endif # SYSTEM_LIBORCUS
2914 else # ENABLE_ORCUS != TRUE
2916 gb_LinkTarget__use_orcus :=
2917 gb_LinkTarget__use_orcus-parser :=
2919 endif
2921 ifeq ($(ENABLE_EOT),TRUE)
2923 ifneq ($(SYSTEM_LIBEOT),)
2925 define gb_LinkTarget__use_libeot
2926 $(call gb_LinkTarget_set_include,$(1),\
2927 $$(INCLUDE) \
2928 $(LIBEOT_CFLAGS) \
2930 $(call gb_LinkTarget_add_libs,$(1),$(LIBEOT_LIBS))
2932 endef
2934 gb_ExternalProject__use_libeot :=
2936 else # !SYSTEM_LIBEOT
2938 define gb_LinkTarget__use_libeot
2939 $(call gb_LinkTarget_set_include,$(1),\
2940 -I$(call gb_UnpackedTarball_get_dir,libeot)/inc \
2941 $$(INCLUDE) \
2943 $(call gb_LinkTarget_add_libs,$(1),\
2944 $(call gb_UnpackedTarball_get_dir,libeot)/.libs/libeot$(gb_StaticLibrary_PLAINEXT) \
2946 $(call gb_LinkTarget_use_external_project,$(1),libeot)
2948 endef
2950 define gb_ExternalProject__use_libeot
2951 $(call gb_ExternalProject_use_external_project,$(1),libeot)
2953 endef
2955 endif # SYSTEM_LIBEOT
2957 else # !ENABLE_EOT
2959 gb_LinkTarget__use_libeot :=
2960 gb_ExternalProject__use_libeot :=
2962 endif # ENABLE_EOT
2964 ### X11 stuff ###
2966 ifeq ($(GUIBASE),unx)
2968 ifeq ($(XRANDR_DLOPEN),FALSE)
2970 define gb_LinkTarget__use_Xrandr
2971 $(call gb_LinkTarget_set_include,$(1),\
2972 $$(INCLUDE) \
2973 $(XRANDR_CFLAGS) \
2976 $(call gb_LinkTarget_add_libs,$(1),\
2977 $(XRANDR_LIBS) \
2979 endef
2981 else # XRANDR_DLOPEN
2983 define gb_LinkTarget__use_Xrandr
2984 $(call gb_LinkTarget_add_defs,$(1),\
2985 -DXRANDR_DLOPEN \
2987 endef
2989 endif # XRANDR_DLOPEN
2991 define gb_LinkTarget__use_Xrender
2992 $(call gb_LinkTarget_set_include,$(1),\
2993 $$(INCLUDE) \
2994 $(XRENDER_CFLAGS) \
2997 $(call gb_LinkTarget_add_libs,$(1),\
2998 $(XRENDER_LIBS) \
3000 endef
3002 endif # GUIBASE=unx
3005 gb_ExternalProject__use_nss3:=
3007 ifeq (,$(filter DESKTOP,$(BUILD_TYPE)))
3009 gb_LinkTarget__use_nss3:=
3011 else
3013 ifneq ($(SYSTEM_NSS),)
3015 define gb_LinkTarget__use_nss3
3016 $(call gb_LinkTarget_add_defs,$(1),\
3017 -DSYSTEM_NSS \
3020 $(call gb_LinkTarget_set_include,$(1),\
3021 $$(INCLUDE) \
3022 $(NSS_CFLAGS) \
3025 $(call gb_LinkTarget_add_libs,$(1),\
3026 $(NSS_LIBS) \
3029 endef
3031 define gb_LinkTarget__use_plc4
3032 $(call gb_LinkTarget__use_nss3,$(1))
3034 endef
3036 define gb_LinkTarget__use_ssl3
3037 $(call gb_LinkTarget__use_nss3,$(1))
3039 endef
3041 else # !SYSTEM_NSS
3043 $(eval $(call gb_Helper_register_packages_for_install,ooo, \
3044 nss \
3047 define gb_LinkTarget__use_nss3
3048 $(call gb_LinkTarget_use_package,$(1),nss)
3049 $(call gb_LinkTarget_set_include,$(1),\
3050 $$(INCLUDE) \
3051 -I$(call gb_UnpackedTarball_get_dir,nss)/dist/public/nss \
3052 -I$(call gb_UnpackedTarball_get_dir,nss)/dist/out/include \
3055 ifeq ($(COM),MSC)
3056 $(call gb_LinkTarget_add_libs,$(1),\
3057 $(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/nspr4.lib \
3058 $(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/nss3.lib \
3059 $(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/smime3.lib \
3061 else
3062 $(call gb_LinkTarget_add_libs,$(1),\
3063 -L$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib \
3064 -lnspr4 \
3065 -lnss3 \
3066 -lsmime3 \
3068 endif
3070 endef
3072 define gb_LinkTarget__use_plc4
3073 $(call gb_LinkTarget_use_package,$(1),nss)
3074 ifeq ($(COM),MSC)
3075 $(call gb_LinkTarget_add_libs,$(1),\
3076 $(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/plc4.lib \
3078 else
3079 $(call gb_LinkTarget_add_libs,$(1),\
3080 -L$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib -lplc4 \
3082 endif
3084 endef
3086 define gb_LinkTarget__use_ssl3
3087 $(call gb_LinkTarget_use_package,$(1),nss)
3088 ifeq ($(COM),MSC)
3089 $(call gb_LinkTarget_add_libs,$(1),\
3090 $(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/ssl3.lib \
3092 else
3093 $(call gb_LinkTarget_add_libs,$(1),\
3094 -L$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib -lssl3 \
3096 endif
3098 endef
3100 define gb_ExternalProject__use_nss3
3101 $(call gb_ExternalProject_use_package,$(1),nss)
3103 endef
3105 endif # SYSTEM_NSS
3107 endif # DESKTOP
3110 ifeq ($(ENABLE_GLTF),TRUE)
3112 define gb_LinkTarget__use_libgltf
3113 $(call gb_LinkTarget_set_include,$(1),\
3114 -I$(call gb_UnpackedTarball_get_dir,libgltf)/inc \
3115 $$(INCLUDE) \
3118 $(call gb_LinkTarget_use_static_libraries,$(1),\
3119 libgltf \
3121 endef
3123 define gb_LinkTarget__use_opencollada_parser
3124 $(call gb_LinkTarget_set_include,$(1),\
3125 -I$(call gb_UnpackedTarball_get_dir,opencollada)/COLLADABaseUtils/include \
3126 -I$(call gb_UnpackedTarball_get_dir,opencollada)/COLLADAFramework/include \
3127 -I$(call gb_UnpackedTarball_get_dir,opencollada)/COLLADASaxFrameworkLoader/include \
3128 -I$(call gb_UnpackedTarball_get_dir,opencollada)/GeneratedSaxParser/include \
3129 $$(INCLUDE) \
3132 $(call gb_LinkTarget_use_static_libraries,$(1),\
3133 opencollada_parser \
3135 endef
3137 define gb_LinkTarget__use_collada2gltf
3138 $(call gb_LinkTarget_set_include,$(1),\
3139 -I$(call gb_UnpackedTarball_get_dir,collada2gltf) \
3140 -I$(call gb_UnpackedTarball_get_dir,collada2gltf)/assetModifiers \
3141 -I$(call gb_UnpackedTarball_get_dir,collada2gltf)/GLTF \
3142 -I$(call gb_UnpackedTarball_get_dir,collada2gltf)/helpers \
3143 -I$(call gb_UnpackedTarball_get_dir,collada2gltf)/JSON \
3144 -I$(call gb_UnpackedTarball_get_dir,collada2gltf)/dependencies/json/include/rapidjson/ \
3145 $$(INCLUDE) \
3148 $(call gb_LinkTarget_use_static_libraries,$(1),\
3149 collada2gltf \
3151 endef
3153 endif
3155 ### Jars ############################################################
3157 ifneq ($(SYSTEM_HSQLDB),)
3159 define gb_Jar__use_hsqldb
3160 $(call gb_Jar_use_system_jar,$(1),$(HSQLDB_JAR))
3161 endef
3162 define gb_JunitTest__use_hsqldb
3163 $(call gb_JunitTest_use_system_jar,$(1),$(HSQLDB_JAR))
3164 endef
3166 else # !SYSTEM_HSQLDB
3168 ifeq ($(ENABLE_JAVA),TRUE)
3169 $(eval $(call gb_Helper_register_jars_for_install,OOO,ooo, \
3170 hsqldb \
3172 endif
3174 define gb_Jar__use_hsqldb
3175 $(call gb_Jar_use_jar,$(1),hsqldb)
3176 endef
3177 define gb_JunitTest__use_hsqldb
3178 $(call gb_JunitTest_use_jar,$(1),hsqldb)
3179 endef
3181 endif # SYSTEM_HSQLDB
3184 ifneq ($(SYSTEM_BSH),)
3186 define gb_Jar__use_bsh
3187 $(call gb_Jar_use_system_jar,$(1),$(BSH_JAR))
3188 endef
3190 else # !SYSTEM_BSH
3192 ifeq ($(ENABLE_JAVA),TRUE)
3193 $(eval $(call gb_Helper_register_jars_for_install,OOO,extensions_bsh, \
3194 bsh \
3196 endif
3198 define gb_Jar__use_bsh
3199 $(call gb_Jar_use_jar,$(1),bsh)
3200 endef
3202 endif # SYSTEM_BSH
3205 ifneq ($(SYSTEM_RHINO),)
3207 define gb_Jar__use_rhino
3208 $(call gb_Jar_use_system_jar,$(1),$(RHINO_JAR))
3209 endef
3211 else # !SYSTEM_RHINO
3213 ifeq ($(ENABLE_JAVA),TRUE)
3214 $(eval $(call gb_Helper_register_jars_for_install,OOO,extensions_rhino, \
3215 js \
3217 endif
3219 define gb_Jar__use_rhino
3220 $(call gb_Jar_use_jar,$(1),js)
3221 endef
3223 endif # SYSTEM_RHINO
3225 ifneq ($(SYSTEM_APACHE_COMMONS),)
3227 define gb_Jar__use_commons-codec
3228 $(call gb_Jar_use_system_jar,$(1),$(COMMONS_CODEC_JAR))
3229 endef
3230 gb_ExternalProject__use_commons-codec :=
3232 define gb_Jar__use_commons-httpclient
3233 $(call gb_Jar_use_system_jar,$(1),$(COMMONS_HTTPCLIENT_JAR))
3234 endef
3235 gb_ExternalProject__use_commons-httpclient :=
3237 define gb_Jar__use_commons-lang
3238 $(call gb_Jar_usadd_linked_libse_system_jar,$(1),$(COMMONS_LANG_JAR))
3239 endef
3240 gb_ExternalProject__use_commons-lang :=
3242 define gb_Jar__use_commons-logging
3243 $(call gb_Jar_use_system_jar,$(1),$(COMMONS_LOGGING_JAR))
3244 endef
3245 gb_ExternalProject__use_commons-logging :=
3247 else # !SYSTEM_APACHE_COMMONS
3249 ifeq ($(ENABLE_JAVA),TRUE)
3250 $(eval $(call gb_Helper_register_jars_for_install,OOO,reportbuilder,\
3251 commons-logging-1.1.3 \
3253 endif
3254 $(eval $(call gb_Helper_register_jars,OXT,\
3255 $(if $(filter TRUE,$(HAVE_JAVA6)),commons-codec-1.9,commons-codec-1.6) \
3256 commons-httpclient-3.1 \
3257 $(if $(filter TRUE,$(HAVE_JAVA6)),commons-lang3-3.3.1.jar,commons-lang-2.4) \
3260 define gb_Jar__use_commons-codec
3261 $(call gb_Jar_use_external_project,$(1),apache_commons_codec)
3262 $(call gb_Jar_use_external_jar,$(1),$(call gb_UnpackedTarball_get_dir,apache_commons_codec)\
3263 $(if $(filter TRUE,$(HAVE_JAVA6)),/dist/commons-codec-1.9.jar,/dist/commons-codec-1.6.jar),\
3264 $(if $(filter TRUE,$(HAVE_JAVA6)),commons-codec-1.9.jar,commons-codec-1.6.jar)\
3266 endef
3267 define gb_ExternalProject__use_commons-codec
3268 $(call gb_ExternalProject_use_external_project,$(1),apache_commons_codec)
3269 endef
3271 define gb_Jar__use_commons-httpclient
3272 $(call gb_Jar_use_external_project,$(1),apache_commons_httpclient)
3273 $(call gb_Jar_use_external_jar,$(1),$(call gb_UnpackedTarball_get_dir,apache_commons_httpclient)/dist/commons-httpclient.jar,commons-httpclient-3.1.jar)
3274 endef
3275 define gb_ExternalProject__use_commons-httpclient
3276 $(call gb_ExternalProject_use_external_project,$(1),apache_commons_httpclient)
3277 endef
3279 define gb_Jar__use_commons-lang
3280 $(call gb_Jar_use_external_project,$(1),apache_commons_lang)
3281 $(call gb_Jar_use_external_jar,$(1),$(call gb_UnpackedTarball_get_dir,apache_commons_lang)\
3282 $(if $(filter TRUE,$(HAVE_JAVA6)),/target/commons-lang3-3.3.1.jar,/dist/commons-lang-2.4.jar),\
3283 $(if $(filter TRUE,$(HAVE_JAVA6)),commons-lang3-3.3.1.jar,commons-lang-2.4.jar)\
3285 endef
3286 define gb_ExternalProject__use_commons-lang
3287 $(call gb_ExternalProject_use_external_project,$(1),apache_commons_lang)
3288 endef
3290 define gb_Jar__use_commons-logging
3291 $(call gb_Jar_use_external_project,$(1),apache_commons_logging)
3292 $(call gb_Jar_use_jar,$(1),commons-logging-1.1.3)
3293 endef
3294 define gb_ExternalProject__use_commons-logging
3295 $(call gb_ExternalProject_use_external_project,$(1),apache_commons_logging)
3296 endef
3298 endif # SYSTEM_APACHE_COMMONS
3301 ifneq ($(SYSTEM_JFREEREPORT),)
3303 define gb_Jar__use_flow-engine
3304 $(call gb_Jar_use_system_jar,$(1),$(JFREEREPORT_JAR))
3305 endef
3307 define gb_Jar__use_flute
3308 $(call gb_Jar_use_system_jar,$(1),$(FLUTE_JAR))
3309 endef
3311 define gb_Jar__use_libbase
3312 $(call gb_Jar_use_system_jar,$(1),$(LIBBASE_JAR))
3313 endef
3315 define gb_Jar__use_libfonts
3316 $(call gb_Jar_use_system_jar,$(1),$(LIBFONTS_JAR))
3317 endef
3319 define gb_Jar__use_libformula
3320 $(call gb_Jar_use_system_jar,$(1),$(LIBFORMULA_JAR))
3321 endef
3323 define gb_Jar__use_liblayout
3324 $(call gb_Jar_use_system_jar,$(1),$(LIBLAYOUT_JAR))
3325 endef
3327 define gb_Jar__use_libloader
3328 $(call gb_Jar_use_system_jar,$(1),$(LIBLOADER_JAR))
3329 endef
3331 define gb_Jar__use_librepository
3332 $(call gb_Jar_use_system_jar,$(1),$(LIBREPOSITORY_JAR))
3333 endef
3335 define gb_Jar__use_libserializer
3336 $(call gb_Jar_use_system_jar,$(1),$(LIBSERIALIZER_JAR))
3337 endef
3339 define gb_Jar__use_libxml
3340 $(call gb_Jar_use_system_jar,$(1),$(LIBXML_JAR))
3341 endef
3343 define gb_Jar__use_sac
3344 $(call gb_Jar_use_system_jar,$(1),$(SAC_JAR))
3345 endef
3347 else # !SYSTEM_JFREEREPORT
3349 ifeq ($(ENABLE_JAVA),TRUE)
3350 $(eval $(call gb_Helper_register_jars_for_install,OOO,reportbuilder,\
3351 flow-engine \
3352 flute-1.1.6 \
3353 libbase-1.1.6 \
3354 libfonts-1.1.6 \
3355 libformula-1.1.7 \
3356 liblayout \
3357 libloader-1.1.6 \
3358 librepository-1.1.6 \
3359 libserializer-1.1.6 \
3360 libxml-1.1.7 \
3361 sac \
3363 endif
3365 define gb_Jar__use_flow-engine
3366 $(call gb_Jar_use_jar,$(1),flow-engine)
3367 endef
3369 define gb_Jar__use_flute
3370 $(call gb_Jar_use_jar,$(1),flute-1.1.6)
3371 endef
3373 define gb_Jar__use_libbase
3374 $(call gb_Jar_use_jar,$(1),libbase-1.1.6)
3375 endef
3377 define gb_Jar__use_libfonts
3378 $(call gb_Jar_use_jar,$(1),libfonts-1.1.6)
3379 endef
3381 define gb_Jar__use_libformula
3382 $(call gb_Jar_use_jar,$(1),libformula-1.1.7)
3383 endef
3385 define gb_Jar__use_liblayout
3386 $(call gb_Jar_use_jar,$(1),liblayout)
3387 endef
3389 define gb_Jar__use_libloader
3390 $(call gb_Jar_use_jar,$(1),libloader-1.1.6)
3391 endef
3393 define gb_Jar__use_librepository
3394 $(call gb_Jar_use_jar,$(1),librepository-1.1.6)
3395 endef
3397 define gb_Jar__use_libserializer
3398 $(call gb_Jar_use_jar,$(1),libserializer-1.1.6)
3399 endef
3401 define gb_Jar__use_libxml
3402 $(call gb_Jar_use_jar,$(1),libxml-1.1.7)
3403 endef
3405 define gb_Jar__use_sac
3406 $(call gb_Jar_use_jar,$(1),sac)
3407 endef
3409 endif # SYSTEM_JFREEREPORT
3412 # Executables
3414 # FIXME: the library target should be for build too
3415 define gb_Executable__register_bestreversemap
3416 $(call gb_Executable_add_runtime_dependencies,bestreversemap,\
3417 $(if $(filter-out ANDROID,$(OS)),$(call gb_Library_get_target,sal_textenc)) \
3419 endef
3421 # TODO depending on the whole URE might be overkill, but I do not have a
3422 # Windows machine to debug it...
3423 # FIXME: the library target should be for build too
3424 define gb_Executable__register_climaker
3425 $(call gb_Executable_add_runtime_dependencies,climaker,\
3426 $(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
3427 $(call gb_Rdb_get_target_for_build,ure/services) \
3428 $(INSTROOT)/$(LIBO_URE_SHARE_FOLDER)/misc/services.rdb \
3429 $(call gb_UnoApi_get_target,udkapi) \
3431 endef
3433 define gb_Executable__register_cppumaker
3434 $(call gb_Executable_add_runtime_dependencies,cppumaker,\
3435 $(if $(filter-out ANDROID,$(OS)),$(call gb_Library_get_target,sal_textenc)) \
3437 endef
3439 gb_Gallery__UNO_COMPONENTS := \
3440 comphelper/util/comphelp \
3441 configmgr/source/configmgr \
3442 drawinglayer/drawinglayer \
3443 framework/util/fwk \
3444 i18npool/util/i18npool \
3445 package/source/xstor/xstor \
3446 package/util/package2 \
3447 sax/source/expatwrap/expwrap \
3448 sfx2/util/sfx \
3449 svgio/svgio \
3450 svx/util/svx \
3451 svx/util/svxcore \
3452 ucb/source/core/ucb1 \
3453 ucb/source/ucp/file/ucpfile1 \
3454 unoxml/source/service/unoxml
3456 # This is used to determine what we need for 'build' platform.
3457 define gb_Executable__register_gengal
3458 $(call gb_Executable_add_runtime_dependencies,gengal,\
3459 $(foreach component,$(gb_Gallery__UNO_COMPONENTS) \
3460 ,$(call gb_ComponentTarget_get_target_for_build,$(component))) \
3461 $(call gb_AllLangResTarget_get_target,ofa) \
3462 $(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
3463 $(if $(filter-out MACOSX WNT,$(OS_FOR_BUILD)),$(if $(ENABLE_HEADLESS),, \
3464 $(call gb_Library_get_target,vclplug_svp) \
3465 )) \
3466 $(call gb_Package_get_target_for_build,postprocess_registry) \
3467 $(call gb_Rdb_get_target_for_build,ure/services) \
3468 $(INSTROOT)/$(LIBO_URE_SHARE_FOLDER)/misc/services.rdb \
3469 $(call gb_UnoApi_get_target,offapi) \
3470 $(call gb_UnoApi_get_target,udkapi) \
3472 endef
3474 ifeq ($(SYSTEM_ICU),)
3476 define gb_Executable__register_gendict
3477 $(call gb_Executable_add_runtime_dependencies,gendict,\
3478 $(call gb_Package_get_target_for_build,icu) \
3480 endef
3482 endif
3484 define gb_Executable__register_idlc
3485 $(call gb_Executable_add_runtime_dependencies,idlc,\
3486 $(call gb_ExternalExecutable_get_dependencies,ucpp) \
3488 endef
3490 define gb_Executable__register_localize
3491 $(call gb_Executable_add_runtime_dependencies,localize,\
3492 $(foreach exec,cfgex helpex propex transex3 treex uiex ulfex xrmex,\
3493 $(call gb_Executable_get_runtime_dependencies,$(exec)) \
3496 endef
3498 # FIXME ure/services.rdb needs cleanup
3499 # The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
3500 # due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
3501 # FIXME: the library target should be for build too
3502 define gb_Executable__register_saxparser
3503 $(call gb_Executable_add_runtime_dependencies,saxparser,\
3504 $(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
3505 $(call gb_Rdb_get_target_for_build,saxparser) \
3506 $(call gb_Rdb_get_target_for_build,ure/services) \
3507 $(INSTROOT)/$(LIBO_URE_SHARE_FOLDER)/misc/services.rdb \
3508 $(call gb_UnoApi_get_target,udkapi) \
3510 endef
3512 # NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
3513 # required due to the settings for URE_SERVICES and URE_TYPES in
3514 # cppuhelper/source/unorc
3515 # FIXME: the library target should be for build too
3516 define gb_Executable__register_uno
3517 $(call gb_Executable_add_runtime_dependencies,uno,\
3518 $(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
3519 $(call gb_Rdb_get_target_for_build,ure/services) \
3520 $(INSTROOT)/$(LIBO_URE_SHARE_FOLDER)/misc/services.rdb \
3521 $(call gb_UnoApi_get_target,udkapi) \
3523 endef
3526 # External executables
3528 ifneq ($(SYSTEM_LIBXML_FOR_BUILD),)
3530 gb_ExternalExecutable__register_xmllint :=
3532 else # ! SYSTEM_LIBXML_FOR_BUILD
3534 define gb_ExternalExecutable__register_xmllint
3535 $(call gb_ExternalExecutable_set_internal,xmllint,$(WORKDIR_FOR_BUILD)/UnpackedTarball/xml2/$(if $(filter MSC,$(COM)),win32/bin.msvc)/xmllint$(gb_Executable_EXT_for_build),xml2)
3536 $(call gb_ExternalExecutable_add_dependencies,xmllint,$(call gb_Package_get_target,xml2))
3538 endef
3540 endif # SYSTEM_LIBXML_FOR_BUILD
3542 ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD),)
3544 gb_ExternalExecutable__register_xsltproc :=
3546 else # ! SYSTEM_LIBXSLT_FOR_BUILD
3548 define gb_ExternalExecutable__register_xsltproc
3549 $(call gb_ExternalExecutable_set_internal,xsltproc,$(WORKDIR_FOR_BUILD)/UnpackedTarball/xslt/$(if $(filter MSC,$(COM)),win32/bin.msvc,xsltproc)/xsltproc$(gb_Executable_EXT_for_build),xslt)
3550 $(call gb_ExternalExecutable_add_dependencies,xsltproc,$(call gb_Package_get_target,xslt))
3552 endef
3554 endif # SYSTEM_LIBXSLT_FOR_BUILD
3556 ifneq (,$(SYSTEM_UCPP))
3558 gb_ExternalExecutable__register_ucpp :=
3560 else # ! SYSTEM_UCPP
3562 define gb_ExternalExecutable__register_ucpp
3563 $(call gb_ExternalExecutable_set_internal,ucpp,$(INSTDIR_FOR_BUILD)/$(SDKDIRNAME)/bin/ucpp$(gb_Executable_EXT_for_build))
3565 endef
3567 endif # SYSTEM_UCPP
3569 ifeq (,$(PYTHON_FOR_BUILD))
3571 define gb_ExternalExecutable__register_python
3572 ifeq ($(OS),MACOSX)
3574 # use set_external, to avoid having the command added as prerequisite for the
3575 # targets that make use of it. (Otherwise make will choke as it doesn't have a
3576 # matching rule to build that specific file)
3577 $(call gb_ExternalExecutable_set_external,python,$(call gb_UnpackedTarball_get_dir,python3)/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)/bin/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR))
3578 # the Zip ensures that internal python has been built (cannot use the Package
3579 # target, as that is not used on Mac)
3580 $(call gb_ExternalExecutable_add_dependencies,python,$(call gb_GeneratedPackage_get_target_for_build,python3))
3582 else
3584 $(call gb_ExternalExecutable_set_internal,python,$(INSTROOT)/$(LIBO_BIN_FOLDER)/$(if $(filter WNT,$(OS)),python-core-$(PYTHON_VERSION)/bin/python.exe,python.bin))
3585 $(call gb_ExternalExecutable_set_precommand,python,$(subst $$,$$$$,$(gb_Python_PRECOMMAND)))
3586 $(call gb_ExternalExecutable_add_dependencies,python,$(call gb_Package_get_target_for_build,python3))
3588 endif
3590 endef
3592 else
3594 define gb_ExternalExecutable__register_python
3595 $(call gb_ExternalExecutable_set_external,python,$(PYTHON_FOR_BUILD))
3597 endef
3599 endif # PYTHON_FOR_BUILD
3601 ifneq ($(SYSTEM_GENBRK),)
3603 define gb_ExternalExecutable__register_genbrk
3604 $(call gb_ExternalExecutable_set_external,genbrk,$(SYSTEM_GENBRK))
3606 endef
3608 else # ! SYSTEM_GENBRK
3610 define gb_ExternalExecutable__register_genbrk
3611 $(call gb_ExternalExecutable_set_internal,genbrk,$(WORKDIR_FOR_BUILD)/UnpackedTarball/icu/source/bin/genbrk$(gb_Executable_EXT_for_build),icu)
3612 $(call gb_ExternalExecutable_set_precommand,genbrk,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND)))
3613 $(call gb_ExternalExecutable_add_dependencies,genbrk,\
3614 $(call gb_Package_get_target_for_build,icu) \
3617 endef
3619 endif
3621 ifneq ($(SYSTEM_GENCCODE),)
3623 define gb_ExternalExecutable__register_genccode
3624 $(call gb_ExternalExecutable_set_external,genccode,$(SYSTEM_GENCCODE))
3626 endef
3628 else # ! SYSTEM_GENCCODE
3630 define gb_ExternalExecutable__register_genccode
3631 $(call gb_ExternalExecutable_set_internal,genccode,$(WORKDIR_FOR_BUILD)/UnpackedTarball/icu/source/bin/genccode$(gb_Executable_EXT_for_build),icu)
3632 $(call gb_ExternalExecutable_set_precommand,genccode,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND)))
3633 $(call gb_ExternalExecutable_add_dependencies,genccode,\
3634 $(call gb_Package_get_target_for_build,icu) \
3637 endef
3639 endif
3641 ifneq ($(SYSTEM_GENCMN),)
3643 define gb_ExternalExecutable__register_gencmn
3644 $(call gb_ExternalExecutable_set_external,gencmn,$(SYSTEM_GENCMN))
3646 endef
3648 else # ! SYSTEM_GENCMN
3650 define gb_ExternalExecutable__register_gencmn
3651 $(call gb_ExternalExecutable_set_internal,gencmn,$(WORKDIR_FOR_BUILD)/UnpackedTarball/icu/source/bin/gencmn$(gb_Executable_EXT_for_build),icu)
3652 $(call gb_ExternalExecutable_set_precommand,gencmn,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND)))
3653 $(call gb_ExternalExecutable_add_dependencies,gencmn,\
3654 $(call gb_Package_get_target_for_build,icu) \
3657 endef
3659 endif
3661 # vim: set noet sw=4 ts=4: