2011-08-10 02:12:48 +09:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-04-01 20:49:35 +00:00
|
|
|
#
|
2013-05-16 21:56:04 +01:00
|
|
|
# This file is part of the LibreOffice project.
|
2012-07-27 22:14:39 -04:00
|
|
|
#
|
2013-05-16 21:56:04 +01:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-04-01 20:49:35 +00:00
|
|
|
#
|
2013-05-16 21:56:04 +01:00
|
|
|
# This file incorporates work covered by the following license notice:
|
2011-04-01 20:49:35 +00:00
|
|
|
#
|
2013-05-16 21:56:04 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed
|
|
|
|
# with this work for additional information regarding copyright
|
|
|
|
# ownership. The ASF licenses this file to you under the Apache
|
|
|
|
# License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
2011-04-01 20:49:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# this file describes all the external libraries
|
|
|
|
# depending on the configure options these may be taken from the system,
|
|
|
|
# or the internal/bundled copy may be built.
|
|
|
|
|
2014-04-18 12:55:56 +02:00
|
|
|
# for every external, a function gb_LinkTarget__use_FOO is defined,
|
2011-04-01 20:49:35 +00:00
|
|
|
# once for the system case, once for the internal case.
|
|
|
|
|
|
|
|
# in the system case, no libraries should be registered, but the target-local
|
|
|
|
# variable LIBS should be set to FOO_LIBS, and INCLUDES to FOO_CFLAGS.
|
|
|
|
|
2014-11-30 18:26:01 +01:00
|
|
|
|
|
|
|
ifeq ($(CPUNAME),X86_64)
|
|
|
|
wnt_arch_subdir_optional=x64/
|
|
|
|
wnt_arch_subdir_mandatory=x64
|
|
|
|
else ifeq ($(CPUNAME),INTEL)
|
|
|
|
wnt_arch_subdir_mandatory=Win32
|
|
|
|
endif
|
|
|
|
|
2012-04-07 13:59:33 +02:00
|
|
|
# External headers
|
|
|
|
|
2014-02-11 19:11:47 +01:00
|
|
|
ifneq ($(SYSTEM_ODBC_HEADERS),)
|
2012-04-07 13:46:59 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_odbc_headers
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DSYSTEM_ODBC_HEADERS \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-11 19:11:47 +01:00
|
|
|
else # !SYSTEM_ODBC_HEADERS
|
2012-04-07 13:46:59 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_odbc_headers
|
2013-05-06 20:09:47 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-11-04 18:40:17 +02:00
|
|
|
-I$(SRCDIR)/external/unixODBC/inc \
|
2013-05-06 20:09:47 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-04-07 13:46:59 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-11 19:11:47 +01:00
|
|
|
endif # SYSTEM_ODBC_HEADERS
|
2012-04-07 13:46:59 +02:00
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_MDDS),)
|
2012-08-29 12:27:17 +02:00
|
|
|
|
2014-03-03 15:29:27 +01:00
|
|
|
gb_ExternalProject__use_mdds_headers :=
|
|
|
|
|
2014-03-03 16:23:27 +01:00
|
|
|
define gb_LinkTarget__use_mdds_headers
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(MDDS_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
2012-08-29 12:27:17 +02:00
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
else # !SYSTEM_MDDS
|
2012-08-29 12:27:17 +02:00
|
|
|
|
2014-03-03 15:29:27 +01:00
|
|
|
define gb_ExternalProject__use_mdds_headers
|
2015-06-24 15:08:48 +02:00
|
|
|
$(call gb_ExternalProject_use_unpacked,$(1),mdds)
|
2014-03-03 15:29:27 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-08-29 12:27:17 +02:00
|
|
|
define gb_LinkTarget__use_mdds_headers
|
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),mdds)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-03-03 16:23:27 +01:00
|
|
|
$(MDDS_CFLAGS) \
|
2012-08-29 12:27:17 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
endif # SYSTEM_MDDS
|
2012-08-29 12:27:17 +02:00
|
|
|
|
2014-02-11 19:08:10 +01:00
|
|
|
ifneq ($(SYSTEM_GLM),)
|
2013-12-23 17:31:55 +00:00
|
|
|
|
|
|
|
gb_LinkTarget__use_glm_headers :=
|
2014-06-25 15:19:41 +02:00
|
|
|
gb_ExternalProject__use_glm_headers :=
|
2013-12-23 17:31:55 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_glm_headers
|
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),glm)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2015-05-19 16:59:26 +02:00
|
|
|
$(GLM_CFLAGS) \
|
2013-12-23 17:31:55 +00:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-06-25 15:19:41 +02:00
|
|
|
define gb_ExternalProject__use_glm_headers
|
2015-06-24 15:11:40 +02:00
|
|
|
$(call gb_ExternalProject_use_unpacked,$(1),glm)
|
2014-06-25 15:19:41 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-12-23 17:31:55 +00:00
|
|
|
endif
|
|
|
|
|
2013-05-06 20:23:49 +02:00
|
|
|
ifeq (SANE,$(filter SANE,$(BUILD_TYPE)))
|
2012-12-21 14:08:27 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_sane_headers
|
2013-05-06 20:14:35 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2017-12-22 20:46:12 +03:00
|
|
|
$(if $(filter WNT,$(OS)), \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,twain_dsm/pub/include), \
|
|
|
|
-I$(SRCDIR)/external/sane/inc) \
|
|
|
|
$$(INCLUDE) \
|
2012-12-21 14:08:27 +01:00
|
|
|
)
|
|
|
|
|
2017-12-22 20:46:12 +03:00
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),twain_dsm)
|
|
|
|
endif
|
|
|
|
|
2012-12-21 14:08:27 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
gb_LinkTarget__use_sane_headers :=
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-02-11 19:28:33 +01:00
|
|
|
ifneq ($(SYSTEM_BLUEZ),)
|
2013-11-05 06:53:49 +01:00
|
|
|
|
|
|
|
gb_LinkTarget__use_bluez_bluetooth_headers :=
|
|
|
|
|
|
|
|
else # !SYSTEM_BLUEZ
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_bluez_bluetooth_headers
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(SRCDIR)/external/bluez_bluetooth/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_BLUEZ
|
|
|
|
|
2012-04-07 13:59:33 +02:00
|
|
|
# External libraries
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_CPPUNIT),)
|
2011-07-25 10:34:22 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_cppunit
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(CPPUNIT_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(CPPUNIT_LIBS) \
|
|
|
|
)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-07-25 10:34:22 +02:00
|
|
|
endef
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
else # !SYSTEM_CPPUNIT
|
2011-07-25 10:34:22 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_cppunit
|
2016-02-23 11:28:31 +01:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),cppunit, full)
|
2012-11-25 16:37:40 -05:00
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,cppunit/include)\
|
2012-11-25 16:37:40 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2013-10-23 23:35:16 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,cppunit)/src/cppunit/$(if $(MSVC_USE_DEBUG_RUNTIME),DebugDll/cppunitd_dll.lib,ReleaseDll/cppunit_dll.lib) \
|
|
|
|
)
|
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,cppunit)/src/cppunit/.libs -lcppunit \
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
2011-07-25 10:34:22 +02:00
|
|
|
endef
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
endif # SYSTEM_CPPUNIT
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
ifneq ($(SYSTEM_EPOXY),)
|
2014-02-09 21:19:07 +01:00
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
define gb_LinkTarget__use_epoxy
|
2014-02-09 21:19:07 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2016-11-25 20:25:27 +00:00
|
|
|
$(EPOXY_CFLAGS) \
|
2014-02-09 21:19:07 +01:00
|
|
|
)
|
2016-11-25 20:25:27 +00:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(EPOXY_LIBS))
|
2014-02-09 21:19:07 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
gb_ExternalProject__use_epoxy :=
|
2014-06-25 15:19:41 +02:00
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
else # !SYSTEM_EPOXY
|
2014-02-09 21:19:07 +01:00
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
define gb_LinkTarget__use_epoxy
|
2014-02-09 21:19:07 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2016-11-25 20:25:27 +00:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,epoxy/include) \
|
|
|
|
$$(INCLUDE) \
|
2014-02-09 21:19:07 +01:00
|
|
|
)
|
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
epoxy \
|
2014-02-09 21:19:07 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
epoxy \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_epoxy
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),epoxy)
|
2014-06-25 15:19:41 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-11-25 20:25:27 +00:00
|
|
|
endif # SYSTEM_EPOXY
|
2014-02-09 21:19:07 +01:00
|
|
|
|
2013-01-03 12:48:14 +02:00
|
|
|
define gb_LinkTarget__use_iconv
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),-liconv)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-14 13:30:05 +02:00
|
|
|
ifneq ($(SYSTEM_MARIADB_CONNECTOR_C),)
|
2013-11-05 06:49:33 +01:00
|
|
|
|
2017-09-14 13:30:05 +02:00
|
|
|
define gb_LinkTarget__use_mariadb-connector-c
|
2013-11-05 06:49:33 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(MARIADB_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(MARIADB_LIBS))
|
|
|
|
|
|
|
|
endef
|
2017-09-14 13:30:05 +02:00
|
|
|
gb_ExternalProject__use_mariadb-connector-c :=
|
2013-11-05 06:49:33 +01:00
|
|
|
|
2017-09-14 13:30:05 +02:00
|
|
|
else # !SYSTEM_MARIADB_CONNECTOR_C
|
2013-11-05 06:49:33 +01:00
|
|
|
|
2017-09-14 13:30:05 +02:00
|
|
|
define gb_LinkTarget__use_mariadb-connector-c
|
2013-11-05 06:49:33 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(MARIADB_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2017-09-14 13:30:05 +02:00
|
|
|
mariadb-connector-c \
|
2013-11-05 06:49:33 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
2017-09-14 13:30:05 +02:00
|
|
|
define gb_ExternalProject__use_mariadb-connector-c
|
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),mariadb-connector-c)
|
2013-11-05 06:49:33 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-14 13:30:05 +02:00
|
|
|
endif # SYSTEM_MARIADB_CONNECTOR_C
|
2013-11-05 06:49:33 +01:00
|
|
|
|
|
|
|
|
2017-09-14 13:30:05 +02:00
|
|
|
ifneq ($(SYSTEM_MARIADB_CONNECTOR_C),)
|
2013-01-23 16:29:08 -05:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_mysql
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2013-03-06 11:45:50 +01:00
|
|
|
-DSYSTEM_MARIADB \
|
2013-01-23 16:29:08 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-03-06 16:33:07 +01:00
|
|
|
$(MARIADB_LIBS) \
|
2013-01-23 16:29:08 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-03-06 16:33:07 +01:00
|
|
|
$(MARIADB_CFLAGS) \
|
2013-01-23 16:29:08 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_mysql
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2017-09-14 16:12:55 +02:00
|
|
|
ifneq ($(SYSTEM_MYSQL_CONNECTOR_CPP),)
|
2013-01-23 16:29:08 -05:00
|
|
|
|
2017-09-14 16:12:55 +02:00
|
|
|
define gb_LinkTarget__use_mysql-connector-cpp
|
2013-01-23 16:29:08 -05:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-lmysqlcppconn \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2013-01-24 15:43:52 -05:00
|
|
|
-DSYSTEM_MYSQL_CPPCONN \
|
2013-01-23 16:29:08 -05:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2015-06-12 16:26:25 +02:00
|
|
|
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OXT,\
|
2013-01-23 16:29:08 -05:00
|
|
|
mysqlcppconn \
|
|
|
|
))
|
|
|
|
|
2013-01-28 23:53:30 +01:00
|
|
|
# note: this does not link mysqlcppconn, it is loaded via osl_loadModuleRelative
|
2017-09-14 16:12:55 +02:00
|
|
|
define gb_LinkTarget__use_mysql-connector-cpp
|
2013-01-23 16:29:08 -05:00
|
|
|
|
2017-09-14 16:12:55 +02:00
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),mysql-connector-cpp)
|
2013-01-28 23:53:30 +01:00
|
|
|
|
2013-01-24 15:43:52 -05:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DCPPCONN_LIB_BUILD \
|
|
|
|
)
|
|
|
|
|
2013-01-23 16:29:08 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2017-09-14 16:12:55 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,mysql-connector-cpp) \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,mysql-connector-cpp)/cppconn \
|
2013-01-23 16:29:08 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-02-11 16:21:04 +01:00
|
|
|
ifneq ($(SYSTEM_ZLIB),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_zlib
|
2011-04-13 16:11:41 +00:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2011-04-01 20:49:35 +00:00
|
|
|
-DSYSTEM_ZLIB \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),-lz)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-10-26 15:33:26 +02:00
|
|
|
# nothing on system
|
|
|
|
define gb_LinkTarget__use_zlib_x64
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-03-14 12:45:24 +01:00
|
|
|
gb_ExternalProject__use_zlib :=
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
else # !SYSTEM_ZLIB
|
|
|
|
|
2012-10-26 15:33:26 +02:00
|
|
|
define gb_LinkTarget__use_zlib_multiarch
|
|
|
|
$(if $(2),,$(call gb_Output_error,gb_LinkTarget__use_zlib_multiarch needs two arguments))
|
|
|
|
|
2012-09-08 16:29:05 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-05-08 15:47:24 +02:00
|
|
|
$(ZLIB_CFLAGS) \
|
2012-09-08 16:29:05 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-10-26 15:33:26 +02:00
|
|
|
|
2012-04-07 23:22:08 +02:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2012-10-26 15:33:26 +02:00
|
|
|
$(2) \
|
2011-04-01 20:49:35 +00:00
|
|
|
)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-10-26 15:33:26 +02:00
|
|
|
define gb_LinkTarget__use_zlib
|
|
|
|
$(call gb_LinkTarget__use_zlib_multiarch,$(1),zlib)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_zlib_x64
|
|
|
|
$(call gb_LinkTarget__use_zlib_multiarch,$(1),zlib_x64)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-03-14 12:45:24 +01:00
|
|
|
define gb_ExternalProject__use_zlib
|
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),zlib)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endif # SYSTEM_ZLIB
|
|
|
|
|
|
|
|
|
2017-09-13 22:50:14 +02:00
|
|
|
ifneq ($(SYSTEM_LIBJPEG),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2017-09-13 22:50:14 +02:00
|
|
|
define gb_LinkTarget__use_libjpeg
|
2016-11-02 14:13:54 +01:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBJPEG_LIBS))
|
2011-04-01 20:49:35 +00:00
|
|
|
$(call gb_LinkTarget_set_ldflags,$(1),\
|
2011-04-13 16:11:39 +00:00
|
|
|
$$(filter-out -L/usr/lib/jvm%,$$(T_LDFLAGS)) \
|
2011-04-01 20:49:35 +00:00
|
|
|
)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2017-09-13 22:50:14 +02:00
|
|
|
gb_ExternalProject__use_libjpeg :=
|
2016-11-02 14:13:54 +01:00
|
|
|
|
2017-03-14 14:20:36 +00:00
|
|
|
else
|
2014-11-17 09:16:34 +01:00
|
|
|
|
2017-09-13 22:50:14 +02:00
|
|
|
define gb_LinkTarget__use_libjpeg
|
2014-11-17 09:16:34 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2016-11-02 14:13:54 +01:00
|
|
|
$(LIBJPEG_CFLAGS) \
|
2014-11-17 09:16:34 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2016-11-02 14:13:54 +01:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBJPEG_LIBS))
|
2017-09-13 22:50:14 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libjpeg-turbo,full)
|
2014-11-17 09:16:34 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-13 22:50:14 +02:00
|
|
|
define gb_ExternalProject__use_libjpeg
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libjpeg-turbo)
|
2016-11-02 14:13:54 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-13 22:50:14 +02:00
|
|
|
endif # SYSTEM_LIBJPEG
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2014-02-11 19:25:30 +01:00
|
|
|
ifneq ($(SYSTEM_MYTHES),)
|
2012-10-28 12:00:06 -04:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_mythes
|
2012-10-28 23:00:03 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(MYTHES_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(MYTHES_LIBS))
|
|
|
|
|
2012-10-28 12:00:06 -04:00
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_MYTHES
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_mythes
|
2013-05-07 23:59:00 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,mythes) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
2012-10-28 22:40:30 +01:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
|
|
|
mythes \
|
2012-10-28 12:00:06 -04:00
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(MYTHES_LIBS))
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),mythes)
|
|
|
|
endif
|
2012-10-28 22:40:30 +01:00
|
|
|
|
2012-10-28 12:00:06 -04:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_MYTHES
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2014-02-11 16:33:18 +01:00
|
|
|
ifneq ($(SYSTEM_EXPAT),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2013-04-09 09:22:20 +02:00
|
|
|
define gb_LinkTarget__use_expat_impl
|
|
|
|
$(if $(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter))
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2011-04-13 16:11:41 +00:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2011-04-01 20:49:35 +00:00
|
|
|
-DSYSTEM_EXPAT \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),-lexpat)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-11-17 00:36:29 +01:00
|
|
|
gb_ExternalProject__use_expat :=
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
else # !SYSTEM_EXPAT
|
|
|
|
|
2013-04-09 09:22:20 +02:00
|
|
|
define gb_LinkTarget__use_expat_impl
|
|
|
|
$(if $(2),,$(error gb_LinkTarget__use_expat_impl needs additional parameter))
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2012-10-12 12:28:11 -07:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-05-07 21:47:18 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,expat)/lib \
|
2012-10-12 12:28:11 -07:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
2012-04-07 23:22:08 +02:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2011-04-01 20:49:35 +00:00
|
|
|
$(2) \
|
|
|
|
)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-11-17 00:36:29 +01:00
|
|
|
define gb_ExternalProject__use_expat
|
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),expat)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endif # SYSTEM_EXPAT
|
|
|
|
|
2013-04-09 09:22:20 +02:00
|
|
|
define gb_LinkTarget__use_expat
|
|
|
|
$(call gb_LinkTarget__use_expat_impl,$(1),expat)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2013-04-09 09:22:20 +02:00
|
|
|
define gb_LinkTarget__use_expat_x64
|
|
|
|
$(call gb_LinkTarget__use_expat_impl,$(1),expat_x64)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2014-02-11 19:21:36 +01:00
|
|
|
ifneq ($(SYSTEM_HYPH),)
|
2012-11-03 13:54:46 -04:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_hyphen
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(HYPHEN_LIB))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_HYPH
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_hyphen
|
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),hyphen)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,hyphen)\
|
2012-11-03 13:54:46 -04:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
2012-11-03 13:54:46 -04:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
|
|
|
hyphen \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(HYPHEN_LIB))
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),hyphen)
|
|
|
|
endif
|
2012-11-03 13:54:46 -04:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_HYPH
|
|
|
|
|
2014-02-11 19:21:36 +01:00
|
|
|
ifneq ($(SYSTEM_HUNSPELL),)
|
2011-12-03 14:44:12 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_hunspell
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(HUNSPELL_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(HUNSPELL_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
gb_ExternalProject__use_hunspell :=
|
|
|
|
|
2011-12-03 14:44:12 +01:00
|
|
|
else # !SYSTEM_HUNSPELL
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_hunspell
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DHUNSPELL_STATIC \
|
|
|
|
)
|
2012-10-29 23:29:37 +01:00
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),hunspell)
|
2011-12-03 14:44:12 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,hunspell/src/hunspell)\
|
2012-10-29 23:29:37 +01:00
|
|
|
$$(INCLUDE) \
|
2011-12-03 14:44:12 +01:00
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
2012-04-07 23:22:08 +02:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2012-10-28 22:40:30 +01:00
|
|
|
hunspell \
|
2011-12-03 14:44:12 +01:00
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(HUNSPELL_LIBS))
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),hunspell)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_hunspell
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),hunspell)
|
2011-12-03 14:44:12 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_HUNSPELL
|
|
|
|
|
|
|
|
|
2014-02-11 18:40:09 +01:00
|
|
|
ifneq ($(SYSTEM_BOOST),)
|
2012-05-10 08:55:12 +02:00
|
|
|
|
2016-03-08 06:06:36 +01:00
|
|
|
define gb_LinkTarget__use_boost_lib
|
2012-06-06 17:04:01 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(BOOST_CPPFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_ldflags,$(1),\
|
|
|
|
$(BOOST_LDFLAGS) \
|
|
|
|
)
|
|
|
|
|
2016-03-08 06:06:36 +01:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(2))
|
2012-06-06 17:04:01 +02:00
|
|
|
|
2012-05-10 08:55:12 +02:00
|
|
|
endef
|
|
|
|
|
2017-04-19 12:02:25 +01:00
|
|
|
define gb_LinkTarget__use_boost_locale
|
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_LOCALE_LIB))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-03-08 08:35:59 +01:00
|
|
|
define gb_LinkTarget__use_boost_date_time
|
2016-03-08 06:06:36 +01:00
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_DATE_TIME_LIB))
|
2014-01-08 13:17:28 +01:00
|
|
|
|
2016-03-08 06:06:36 +01:00
|
|
|
endef
|
2014-01-08 13:17:28 +01:00
|
|
|
|
2016-03-08 06:08:36 +01:00
|
|
|
define gb_LinkTarget__use_boost_filesystem
|
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_FILESYSTEM_LIB))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
gb_ExternalProject__use_boost_filesystem :=
|
|
|
|
|
2016-03-08 06:06:36 +01:00
|
|
|
define gb_LinkTarget__use_boost_iostreams
|
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_IOSTREAMS_LIB))
|
2014-01-08 13:17:28 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-03-03 20:39:13 +01:00
|
|
|
gb_ExternalProject__use_boost_iostreams :=
|
|
|
|
|
2014-01-08 13:17:28 +01:00
|
|
|
define gb_LinkTarget__use_boost_system
|
2016-03-08 06:06:36 +01:00
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_SYSTEM_LIB))
|
2013-05-22 19:50:22 +03:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-01-08 13:17:28 +01:00
|
|
|
gb_ExternalProject__use_boost_system :=
|
2013-05-22 19:50:22 +03:00
|
|
|
|
2013-02-16 22:56:19 +01:00
|
|
|
define gb_LinkTarget__use_boost_headers
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(BOOST_CPPFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-11-10 08:56:12 -05:00
|
|
|
gb_ExternalProject__use_boost_headers:=
|
|
|
|
|
2012-05-10 08:55:12 +02:00
|
|
|
else # !SYSTEM_BOOST
|
|
|
|
|
2016-03-08 06:06:36 +01:00
|
|
|
define gb_LinkTarget__use_boost_lib
|
2012-09-06 20:22:11 +02:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DBOOST_ALL_NO_LIB \
|
|
|
|
)
|
|
|
|
|
2016-03-08 06:06:36 +01:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),$(2))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-04-19 12:02:25 +01:00
|
|
|
define gb_LinkTarget__use_boost_locale
|
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),boost_locale)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(if $(filter $(OS),MACOSX),-liconv) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-03-08 08:35:59 +01:00
|
|
|
define gb_LinkTarget__use_boost_date_time
|
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),boost_date_time)
|
2012-05-10 08:55:12 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-03-08 05:57:40 +01:00
|
|
|
define gb_LinkTarget__use_boost_filesystem
|
2016-03-08 06:06:36 +01:00
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),boost_filesystem)
|
2016-03-08 05:57:40 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_boost_filesystem
|
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),boost_filesystem)
|
|
|
|
endef
|
|
|
|
|
2014-01-08 13:17:28 +01:00
|
|
|
define gb_LinkTarget__use_boost_iostreams
|
2016-03-08 06:06:36 +01:00
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),boost_iostreams)
|
2014-01-08 13:17:28 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_boost_iostreams
|
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),boost_iostreams)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_boost_system
|
2016-03-08 06:06:36 +01:00
|
|
|
$(call gb_LinkTarget__use_boost_lib,$(1),boost_system)
|
2013-05-22 19:50:22 +03:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-01-08 13:17:28 +01:00
|
|
|
define gb_ExternalProject__use_boost_system
|
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),boost_system)
|
2013-05-22 19:50:22 +03:00
|
|
|
endef
|
|
|
|
|
2012-11-12 18:37:10 -05:00
|
|
|
define gb_LinkTarget__use_boost_headers
|
2012-11-14 18:11:30 +01:00
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),boost)
|
2013-01-26 21:19:13 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2016-05-31 13:32:15 +02:00
|
|
|
$(BOOST_CPPFLAGS) \
|
2013-01-26 21:19:13 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-11-12 18:37:10 -05:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-11-10 08:56:12 -05:00
|
|
|
define gb_ExternalProject__use_boost_headers
|
2015-06-24 15:11:40 +02:00
|
|
|
$(call gb_ExternalProject_use_unpacked,$(1),boost)
|
2012-11-10 08:56:12 -05:00
|
|
|
|
|
|
|
endef
|
2016-03-08 05:57:40 +01:00
|
|
|
|
2012-05-10 08:55:12 +02:00
|
|
|
endif # SYSTEM_BOOST
|
|
|
|
|
|
|
|
|
2017-09-13 23:44:32 +02:00
|
|
|
ifneq ($(SYSTEM_LIBCMIS),)
|
2012-01-15 02:12:49 +01:00
|
|
|
|
2017-09-13 23:44:32 +02:00
|
|
|
define gb_LinkTarget__use_libcmis
|
2012-01-15 02:12:49 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2017-09-13 23:44:32 +02:00
|
|
|
$(LIBCMIS_CFLAGS) \
|
2012-01-15 02:12:49 +01:00
|
|
|
)
|
2017-09-13 23:44:32 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBCMIS_LIBS))
|
2012-01-15 02:12:49 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-13 23:44:32 +02:00
|
|
|
else # !SYSTEM_LIBCMIS
|
2012-01-15 02:12:49 +01:00
|
|
|
|
2017-09-13 23:44:32 +02:00
|
|
|
define gb_LinkTarget__use_libcmis
|
2013-05-08 00:55:21 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2017-09-13 23:44:32 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libcmis)/src \
|
2013-05-08 00:55:21 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-04-07 23:22:08 +02:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2017-09-13 23:44:32 +02:00
|
|
|
libcmis \
|
2012-01-15 02:12:49 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-13 23:44:32 +02:00
|
|
|
endif # SYSTEM_LIBCMIS
|
2012-01-15 02:12:49 +01:00
|
|
|
|
2014-04-26 19:46:40 +02:00
|
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
2014-04-26 16:08:07 +02:00
|
|
|
|
2012-12-25 11:23:58 -05:00
|
|
|
define gb_LinkTarget__use_jawt
|
2014-04-26 15:50:10 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-04-26 16:08:07 +02:00
|
|
|
$(JAWTLIB) \
|
2012-12-25 11:23:58 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-04-26 16:08:07 +02:00
|
|
|
else # !ENABLE_JAVA
|
|
|
|
|
|
|
|
gb_LinkTarget__use_jawt :=
|
|
|
|
|
|
|
|
endif # ENABLE_JAVA
|
2012-01-15 02:12:49 +01:00
|
|
|
|
2014-02-11 19:04:20 +01:00
|
|
|
ifneq ($(SYSTEM_LIBATOMIC_OPS),)
|
2013-06-14 14:55:22 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_libatomic_ops
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBATOMIC_OPS_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1), $(LIBATOMIC_OPS_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
gb_ExternalProject__use_libatomic_ops :=
|
|
|
|
|
|
|
|
else # !SYSTEM_LIBATOMIC_OPS
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_libatomic_ops
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(LIBATOMIC_OPS_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBATOMIC_OPS_CFLAGS) \
|
|
|
|
)
|
2013-10-24 12:22:58 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),\
|
2013-06-14 14:55:22 +01:00
|
|
|
libatomic_ops \
|
|
|
|
)
|
2013-09-05 16:27:50 +01:00
|
|
|
|
2013-10-24 12:22:58 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-09-05 16:27:50 +01:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libatomic_ops)/src/lib -latomic_ops \
|
2013-10-24 12:22:58 +02:00
|
|
|
)
|
2013-06-14 14:55:22 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_libatomic_ops
|
2013-10-24 12:22:58 +02:00
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libatomic_ops)
|
2013-06-14 14:55:22 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_LIBATOMIC_OPS
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_LIBEXTTEXTCAT),)
|
2011-12-03 15:06:52 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_libexttextcat
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBEXTTEXTCAT_CFLAGS) \
|
|
|
|
)
|
2012-11-09 17:25:56 -05:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DSYSTEM_LIBEXTTEXTCAT \
|
|
|
|
)
|
2011-12-03 15:06:52 +01:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBEXTTEXTCAT_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_LIBEXTTEXTCAT
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_libexttextcat
|
2012-11-09 17:25:56 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2017-09-13 23:57:54 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libexttextcat/src) \
|
2012-11-09 17:25:56 -05:00
|
|
|
$$(INCLUDE) \
|
2011-12-03 15:06:52 +01:00
|
|
|
)
|
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2017-09-13 23:57:54 +02:00
|
|
|
libexttextcat \
|
2013-09-19 19:28:36 +02:00
|
|
|
)
|
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-09-13 23:57:54 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libexttextcat)/src/.libs/libexttextcat-2.0.a\
|
2013-09-19 19:28:36 +02:00
|
|
|
)
|
2017-09-13 23:57:54 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libexttextcat)
|
2013-09-19 19:28:36 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2011-12-03 15:06:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_LIBEXTTEXTCAT
|
|
|
|
|
|
|
|
|
2014-02-11 16:49:19 +01:00
|
|
|
ifneq ($(SYSTEM_LIBXML),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_libxml2
|
2011-04-13 16:11:41 +00:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2011-04-01 20:49:35 +00:00
|
|
|
-DSYSTEM_LIBXML \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBXML_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBXML_LIBS))
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
2013-02-05 17:19:11 -05:00
|
|
|
gb_ExternalProject__use_libxml2:=
|
2011-04-01 20:49:35 +00:00
|
|
|
|
|
|
|
else # !SYSTEM_LIBXML
|
|
|
|
|
2014-03-14 11:48:24 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ure,\
|
2017-09-14 14:54:07 +02:00
|
|
|
libxml2 \
|
2014-03-14 11:48:24 +01:00
|
|
|
))
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
define gb_LinkTarget__use_libxml2
|
2017-09-14 14:54:07 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),libxml2)
|
2013-02-05 17:19:11 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2014-07-17 17:27:05 +02:00
|
|
|
$(LIBXML_CFLAGS) \
|
2013-02-05 17:19:11 -05:00
|
|
|
)
|
|
|
|
|
2013-10-22 18:02:28 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-07-17 17:27:05 +02:00
|
|
|
$(LIBXML_LIBS) \
|
2013-10-22 18:02:28 +02:00
|
|
|
)
|
2014-07-17 17:27:05 +02:00
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_use_external,$(1),icu_headers)
|
2013-10-22 18:02:28 +02:00
|
|
|
endif
|
|
|
|
|
2013-02-05 17:19:11 -05:00
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_libxml2
|
2017-09-14 14:54:07 +02:00
|
|
|
$(call gb_ExternalProject_use_package,$(1),libxml2)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2014-07-17 17:27:05 +02:00
|
|
|
ifeq ($(COM),MSC)
|
2018-01-19 14:13:34 +01:00
|
|
|
$(call gb_ExternalProject_use_packages,$(1),icu icu_ure)
|
2014-07-17 17:27:05 +02:00
|
|
|
endif
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_LIBXML
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_LIBXSLT),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_libxslt
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBXSLT_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBXSLT_LIBS))
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-08-15 07:20:13 +02:00
|
|
|
define gb_LinkTarget__use_libexslt
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBEXSLT_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBEXSLT_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
else # !SYSTEM_LIBXSLT
|
|
|
|
|
2014-02-17 11:23:19 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
2017-09-14 15:26:10 +02:00
|
|
|
libxslt \
|
2014-02-17 11:23:19 +01:00
|
|
|
))
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
define gb_LinkTarget__use_libxslt
|
2017-09-14 15:26:10 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),libxslt)
|
2013-02-02 15:44:30 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2017-09-14 15:26:10 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libxslt) \
|
2013-02-02 15:44:30 -05:00
|
|
|
)
|
2013-10-22 18:02:28 +02:00
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-09-14 15:26:10 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libxslt)/win32/bin.msvc/libxslt.lib \
|
2011-04-01 20:49:35 +00:00
|
|
|
)
|
2013-10-22 18:02:28 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-09-14 15:26:10 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libxslt)/libxslt/.libs -lxslt \
|
2013-10-22 18:02:28 +02:00
|
|
|
)
|
|
|
|
endif
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-08-15 07:20:13 +02:00
|
|
|
define gb_LinkTarget__use_libexslt
|
2017-09-14 15:26:10 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),libxslt)
|
2013-02-02 15:44:30 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2017-09-14 15:26:10 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libxslt) \
|
2013-02-02 15:44:30 -05:00
|
|
|
)
|
|
|
|
|
2013-10-22 18:02:28 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-09-14 15:26:10 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libxslt)/win32/bin.msvc/libexslt.lib \
|
2012-08-15 07:20:13 +02:00
|
|
|
)
|
2013-10-22 18:02:28 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-09-14 15:26:10 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libxslt)/libexslt/.libs -lexslt \
|
2013-10-22 18:02:28 +02:00
|
|
|
)
|
|
|
|
endif
|
2012-08-15 07:20:13 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endif # SYSTEM_LIBXSLT
|
|
|
|
|
2012-08-10 10:27:54 +02:00
|
|
|
|
2017-06-21 21:59:11 +02:00
|
|
|
ifneq ($(SYSTEM_XMLSEC),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_xmlsec
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DSYSTEM_XMLSEC \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(XMLSEC_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(XMLSEC_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
gb_ExternalProject__use_xmlsec:=
|
|
|
|
|
|
|
|
else # !SYSTEM_XMLSEC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
xmlsec \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_xmlsec
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_XMLSEC
|
|
|
|
|
2014-02-11 19:42:28 +01:00
|
|
|
ifneq ($(SYSTEM_LIBLANGTAG),)
|
2012-08-06 19:22:43 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_liblangtag
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBLANGTAG_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBLANGTAG_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-01-13 14:24:31 +01:00
|
|
|
gb_ExternalProject__use_liblangtag :=
|
|
|
|
|
2012-08-06 19:22:43 +02:00
|
|
|
else # !SYSTEM_LIBLANGTAG
|
|
|
|
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ure,\
|
2014-03-18 17:38:06 +01:00
|
|
|
liblangtag_data \
|
|
|
|
))
|
|
|
|
|
2016-01-13 15:45:17 +01:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
2012-08-06 19:22:43 +02:00
|
|
|
define gb_LinkTarget__use_liblangtag
|
2012-11-11 16:02:36 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2016-01-13 14:21:10 +01:00
|
|
|
$(LIBLANGTAG_CFLAGS) \
|
2012-11-11 16:02:36 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBLANGTAG_LIBS))
|
2017-09-14 12:20:31 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),liblangtag)
|
2012-08-06 19:22:43 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-01-13 15:45:17 +01:00
|
|
|
else
|
|
|
|
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ure,\
|
2016-01-13 15:45:17 +01:00
|
|
|
liblangtag \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_liblangtag
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(LIBLANGTAG_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBLANGTAG_LIBS))
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),liblangtag)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # MSC
|
|
|
|
|
2016-01-13 14:24:31 +01:00
|
|
|
define gb_ExternalProject__use_liblangtag
|
2017-09-14 12:20:31 +02:00
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),liblangtag)
|
2016-01-13 14:24:31 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-08-06 19:22:43 +02:00
|
|
|
endif # SYSTEM_LIBLANGTAG
|
|
|
|
|
2012-08-10 10:27:54 +02:00
|
|
|
|
2014-02-25 21:47:33 +01:00
|
|
|
gb_ExternalProject__use_apr :=
|
|
|
|
|
|
|
|
ifeq ($(WITH_WEBDAV),serf)
|
2014-02-06 12:28:36 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_apr
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(APR_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(APR_LIBS) \
|
2014-06-05 13:35:14 +02:00
|
|
|
$(if $(filter $(OS),LINUX),-lpthread) \
|
|
|
|
$(if $(filter $(OS),MACOSX),-liconv) \
|
2014-02-06 12:28:36 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
ifeq ($(SYSTEM_APR),)
|
|
|
|
$(call gb_LinkTarget_use_system_win32_libs,$(1),\
|
|
|
|
mswsock \
|
|
|
|
rpcrt4 \
|
|
|
|
shell32 \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DAPR_DECLARE_STATIC \
|
|
|
|
-DAPU_DECLARE_STATIC \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),apr_util)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_apr
|
|
|
|
ifeq ($(SYSTEM_APR),)
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),apr_util)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_serf
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(SERF_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(SERF_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
ifeq ($(SYSTEM_SERF),)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),serf)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-25 21:47:33 +01:00
|
|
|
else ifeq ($(WITH_WEBDAV),neon)
|
2012-08-06 19:22:43 +02:00
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_NEON),)
|
2012-01-15 02:12:49 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_neon
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DNEON_VERSION=0x$(NEON_VERSION) \
|
2013-08-12 09:39:59 +02:00
|
|
|
-DSYSTEM_NEON \
|
2012-01-15 02:12:49 +01:00
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2012-01-16 08:57:38 +00:00
|
|
|
$(NEON_CFLAGS) \
|
2012-01-15 02:12:49 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(NEON_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_NEON
|
|
|
|
|
2014-02-12 06:53:02 -02:00
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
2012-01-15 02:12:49 +01:00
|
|
|
neon \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_neon
|
2012-10-29 23:29:37 +01:00
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),neon)
|
2012-01-15 02:12:49 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,neon/src) \
|
2012-01-15 02:12:49 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-04-07 23:22:08 +02:00
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
2012-01-15 02:12:49 +01:00
|
|
|
neon \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_NEON
|
|
|
|
|
2014-02-25 21:47:33 +01:00
|
|
|
endif # WITH_WEBDAV
|
2012-01-15 02:12:49 +01:00
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_REDLAND),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_librdf
|
2011-04-13 16:11:41 +00:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2011-04-01 20:49:35 +00:00
|
|
|
-DSYSTEM_REDLAND \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(REDLAND_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(REDLAND_LIBS))
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-27 18:04:21 -05:00
|
|
|
gb_LinkTarget__use_redland_headers:=
|
|
|
|
|
|
|
|
gb_LinkTarget__use_raptor_headers:=
|
|
|
|
|
|
|
|
gb_LinkTarget__use_rasqal_headers:=
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
else # !SYSTEM_REDLAND
|
|
|
|
|
2012-12-27 18:04:21 -05:00
|
|
|
define gb_LinkTarget__use_redland_headers
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
Easter Bunny brings new redland tarballs
upgrade raptor to 2.0.9, rasqal to 0.9.30, redland to 1.0.16:
- new raptor depends on libxml2 version 2.6.27 and thus will _not_
build against system libxml2 on Mac OS X 10.4/10.5
- stop delivering raptor-config/rasqal-config, set env vars instead
(which unfortunately requires patching configures, TODO: upstream that)
- remove redundant configure flags
- stop passing -Wl,no-inhibit-exec (causes HP-UX code to be built on Linux)
- disable new rasqal build deps:
--with-uuid-library=internal --with-digest-library=internal
- disable redland "libltdl" nonsense via --disable-modular
- fortunately openssl digest support has been removed too
- drop raptor-1.4.18.ooo_build.patch, set RAPTOR2_CFLAGS/LIBS instead
- drop raptor-1.4.18.autotools.patch:
+ FreeBSD parts moved to raptor-freebsd.patch.1
+ Android parts obsolete
+ don't know about the MinGW part (TODO)
- from drop raptor-1.4.18.mingw.patch dropped the part defining parsers
to be built, done via --enable-parsers
- drop redland/raptor/raptor-1.4.18.cross.patch:
the vsnprintf check is now done at runtime, and expat has been removed
- drop raptor-1.4.18.aix.patch,redland-1.0.8.aix.patch:
presumably don't need special check for V7BETA since it's released now
- drop raptor-1.4.18.rindex.patch, index/rindex no longer used
- drop raptor-1.4.18.entities.patch, fixed upstream in 2.0.7
- drop raptor-1.4.18.fixes.patch, fixed upstream in 2.0.9
- drop raptor-1.4.18.{libxml,libxslt}.patch: TODO
- drop {raptor-1.4.18,rasqal-0.9.16,redland-1.0.8}.legal.patch:
we don't care any more about Sun legal dept.
- drop rasqal-0.9.16.ooo_build.patch, set RASQAL_CFLAGS/LIBS instead
- drop rasqal-0.9.16.autotools.patch:
+ FreeBSD parts moved to rasqal-freebsd.patch.1
+ Android parts obsolete
+ MinGW part only for cygwin build
- drop redland-1.0.8.autotools.patch:
+ FreeBSD parts moved to redland-freebsd.patch.1
+ Android parts obsolete
+ don't know about the MinGW part (TODO)
- drop redland-1.0.8.ooo_build.patch,
hopefully not necessary to disable utils build
Change-Id: I9cc44928ba87392d69e809abe2236cec0e4a508a
Reviewed-on: https://gerrit.libreoffice.org/3154
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-04-01 12:41:18 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,redland)/src \
|
2012-12-27 18:04:21 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_raptor_headers
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,raptor)/src \
|
2012-12-27 18:04:21 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_rasqal_headers
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,rasqal)/src \
|
2012-12-27 18:04:21 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-04-19 21:45:14 +03:00
|
|
|
ifneq ($(OS),ANDROID)
|
|
|
|
|
2013-11-01 15:43:47 +01:00
|
|
|
ifeq ($(COM),MSC)
|
2014-01-10 12:07:31 +01:00
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo, \
|
2013-05-01 11:23:50 +02:00
|
|
|
raptor2 \
|
|
|
|
rasqal \
|
2011-04-01 20:49:35 +00:00
|
|
|
rdf \
|
|
|
|
))
|
2014-03-13 19:32:13 +01:00
|
|
|
else
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
raptor \
|
|
|
|
rasqal \
|
|
|
|
redland \
|
|
|
|
))
|
2013-11-01 15:43:47 +01:00
|
|
|
endif
|
2011-04-01 20:49:35 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_librdf
|
2013-10-24 01:09:35 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
raptor2 \
|
|
|
|
rdf \
|
|
|
|
)
|
|
|
|
else
|
2016-12-19 21:17:48 +00:00
|
|
|
$(call gb_LinkTarget_use_packages,$(1),redland raptor rasqal)
|
2013-12-14 11:17:30 +01:00
|
|
|
|
2013-10-23 21:18:24 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,redland)/src/.libs -lrdf \
|
2016-12-19 21:17:48 +00:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -lraptor2 \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,rasqal)/src/.libs -lrasqal \
|
2011-04-01 20:49:35 +00:00
|
|
|
)
|
2013-10-24 01:09:35 +02:00
|
|
|
endif
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2012-04-19 21:45:14 +03:00
|
|
|
else # ANDROID
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_librdf
|
2016-12-19 21:17:48 +00:00
|
|
|
$(call gb_LinkTarget_use_packages,$(1),redland raptor rasqal)
|
2012-04-19 21:45:14 +03:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # ANDROID
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endif # SYSTEM_REDLAND
|
|
|
|
|
|
|
|
|
2016-02-29 21:15:09 +01:00
|
|
|
ifneq ($(USING_X11)$(ENABLE_CAIRO_CANVAS)$(ENABLE_HEADLESS),) # or
|
2014-02-17 11:23:19 +01:00
|
|
|
|
2014-02-11 17:03:53 +01:00
|
|
|
ifneq ($(SYSTEM_CAIRO),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_cairo
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
)
|
2013-05-24 14:35:18 +02:00
|
|
|
$(call gb_LinkTarget_use_external,$(1),freetype_headers)
|
2011-04-01 20:49:35 +00:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(CAIRO_LIBS))
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
2014-02-11 17:03:53 +01:00
|
|
|
else # !SYSTEM_CAIRO
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2014-02-17 11:23:19 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
cairo \
|
|
|
|
$(if $(filter $(OS),WNT),,pixman) \
|
|
|
|
))
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
define gb_LinkTarget__use_cairo
|
2012-11-20 22:05:36 +01:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),cairo)
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),pixman)
|
2013-05-24 14:35:18 +02:00
|
|
|
$(call gb_LinkTarget_use_external,$(1),freetype_headers)
|
2011-04-01 20:49:35 +00:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,cairo) \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,cairo)/src \
|
2012-11-10 22:14:42 +01:00
|
|
|
$$(INCLUDE) \
|
2011-04-01 20:49:35 +00:00
|
|
|
)
|
2013-10-23 21:27:05 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,cairo)/src/.libs -lcairo \
|
2012-11-10 22:14:42 +01:00
|
|
|
$(if $(filter-out MACOSX WNT,$(OS)), \
|
2013-10-23 21:27:05 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,pixman)/pixman/.libs -lpixman-1 \
|
2012-11-10 22:14:42 +01:00
|
|
|
) \
|
2011-04-01 20:49:35 +00:00
|
|
|
)
|
2011-07-25 21:50:34 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_CAIRO
|
|
|
|
|
2015-11-16 13:40:22 +00:00
|
|
|
else ifeq ($(OS),ANDROID)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_cairo
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),cairo)
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),pixman)
|
|
|
|
$(call gb_LinkTarget_use_external,$(1),freetype_headers)
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,cairo) \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,cairo)/src \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,cairo)/src/.libs -lcairo \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,pixman)/pixman/.libs -lpixman-1 \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-17 11:23:19 +01:00
|
|
|
endif # CAIRO
|
|
|
|
|
2014-02-11 16:49:19 +01:00
|
|
|
ifneq ($(SYSTEM_FREETYPE),)
|
2013-05-24 14:35:18 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_freetype_headers
|
2011-07-25 22:24:27 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(FREETYPE_CFLAGS) \
|
|
|
|
)
|
2012-04-19 21:10:00 +03:00
|
|
|
|
2013-05-24 14:35:18 +02:00
|
|
|
endef
|
|
|
|
|
2013-09-30 14:10:22 +02:00
|
|
|
gb_ExternalProject__use_freetype :=
|
|
|
|
|
2016-12-19 08:59:02 +00:00
|
|
|
else
|
2013-05-24 14:35:18 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_freetype_headers
|
2013-10-24 12:08:50 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),freetype)
|
2013-05-24 14:35:18 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2017-02-02 13:31:13 +01:00
|
|
|
$(FREETYPE_CFLAGS) \
|
2013-05-24 14:35:18 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
2013-05-24 17:15:20 +02:00
|
|
|
endef
|
|
|
|
|
2013-09-30 14:10:22 +02:00
|
|
|
define gb_ExternalProject__use_freetype
|
2013-10-24 12:08:50 +02:00
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),freetype)
|
2013-09-30 14:10:22 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-05-24 14:35:18 +02:00
|
|
|
endif # SYSTEM_FREETYPE
|
|
|
|
|
2017-02-02 13:31:13 +01:00
|
|
|
define gb_LinkTarget__use_freetype
|
|
|
|
$(call gb_LinkTarget_use_external,$(1),freetype_headers)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(FREETYPE_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-11 16:21:04 +01:00
|
|
|
ifneq ($(SYSTEM_FONTCONFIG),)
|
2013-05-24 14:16:03 +02:00
|
|
|
|
2011-07-25 22:24:27 +01:00
|
|
|
define gb_LinkTarget__use_fontconfig
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(FONTCONFIG_CFLAGS) \
|
|
|
|
)
|
2012-04-19 21:10:00 +03:00
|
|
|
|
2011-07-25 22:24:27 +01:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(FONTCONFIG_LIBS))
|
2013-05-24 14:16:03 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2016-12-19 08:59:02 +00:00
|
|
|
else
|
2013-05-24 14:16:03 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_fontconfig
|
2013-10-24 11:01:41 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),fontconfig)
|
2013-05-24 14:16:03 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,fontconfig) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
2016-12-20 11:37:13 +00:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,fontconfig)/src/.libs -lfontconfig \
|
|
|
|
)
|
2016-12-19 08:59:02 +00:00
|
|
|
|
2011-07-25 22:24:27 +01:00
|
|
|
endef
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2013-05-24 14:16:03 +02:00
|
|
|
endif # SYSTEM_FONTCONFIG
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_GRAPHITE),)
|
2011-04-13 16:11:39 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_graphite
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(GRAPHITE_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(GRAPHITE_LIBS))
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-13 16:11:39 +00:00
|
|
|
endef
|
|
|
|
|
2016-09-23 18:34:09 +02:00
|
|
|
gb_ExternalProject__use_graphite:=
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
else # !SYSTEM_GRAPHITE
|
2011-04-13 16:11:39 +00:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_graphite
|
2012-10-29 23:29:37 +01:00
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),graphite)
|
2012-10-25 09:55:13 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,graphite/include) \
|
2012-10-25 09:55:13 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-04-07 23:22:08 +02:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2012-10-25 09:55:13 +02:00
|
|
|
graphite \
|
2011-04-13 16:11:39 +00:00
|
|
|
)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-13 16:11:39 +00:00
|
|
|
endef
|
|
|
|
|
2016-09-23 18:34:09 +02:00
|
|
|
define gb_ExternalProject__use_graphite
|
2016-11-03 17:23:56 +01:00
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),\
|
|
|
|
graphite \
|
|
|
|
)
|
2016-09-23 18:34:09 +02:00
|
|
|
|
|
|
|
endef
|
2011-04-13 16:11:39 +00:00
|
|
|
endif # SYSTEM_GRAPHITE
|
|
|
|
|
2014-02-11 19:17:42 +01:00
|
|
|
ifneq ($(SYSTEM_ICU),)
|
2011-04-01 20:49:35 +00:00
|
|
|
|
2012-12-25 17:39:43 -05:00
|
|
|
gb_LinkTarget__use_icu_headers:=
|
2013-01-25 10:55:04 +01:00
|
|
|
gb_ExternalProject__use_icu:=
|
2012-12-25 17:39:43 -05:00
|
|
|
|
2011-08-11 12:42:39 +02:00
|
|
|
define gb_LinkTarget__use_icudata
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),-licudata)
|
|
|
|
|
|
|
|
endef
|
2011-07-26 09:58:54 +02:00
|
|
|
define gb_LinkTarget__use_icui18n
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),-licui18n)
|
2011-08-11 12:42:39 +02:00
|
|
|
|
2011-04-13 16:11:40 +00:00
|
|
|
endef
|
2011-04-01 20:49:35 +00:00
|
|
|
define gb_LinkTarget__use_icuuc
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),-licuuc)
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_ICU
|
|
|
|
|
2014-07-24 00:22:51 +02:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ure, \
|
|
|
|
icu_ure \
|
|
|
|
))
|
|
|
|
|
2014-03-14 11:23:52 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
icu \
|
|
|
|
))
|
|
|
|
|
2012-09-24 10:37:25 +03:00
|
|
|
ifeq ($(OS)$(DISABLE_DYNLOADING),ANDROID)
|
2011-11-21 14:25:37 +02:00
|
|
|
gb_ICU_suffix:=lo
|
|
|
|
else
|
|
|
|
gb_ICU_suffix:=
|
|
|
|
endif
|
|
|
|
|
2012-12-25 17:39:43 -05:00
|
|
|
define gb_LinkTarget__use_icu_headers
|
2013-03-23 12:32:31 -04:00
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),icu)
|
2012-12-25 17:39:43 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,icu)/source \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,icu)/source/common \
|
2012-12-25 17:39:43 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-01-25 10:55:04 +01:00
|
|
|
define gb_ExternalProject__use_icu
|
|
|
|
$(call gb_ExternalProject_use_package,$(1),icu)
|
2013-01-25 10:29:59 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-11-04 08:46:44 -05:00
|
|
|
# icudata and icui18n is called icudt and icuin when built with MSVC :-/
|
2011-08-11 12:42:39 +02:00
|
|
|
define gb_LinkTarget__use_icudata
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),icu_ure)
|
2013-10-23 15:00:29 +02:00
|
|
|
|
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,icu)/source/lib/icudt$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
|
|
|
|
)
|
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,icu)/source/lib -licudata$(gb_ICU_suffix) \
|
2011-08-11 12:42:39 +02:00
|
|
|
)
|
2013-10-23 15:00:29 +02:00
|
|
|
endif
|
2011-08-11 12:42:39 +02:00
|
|
|
|
|
|
|
endef
|
2013-10-23 15:00:29 +02:00
|
|
|
|
2011-07-26 09:58:54 +02:00
|
|
|
define gb_LinkTarget__use_icui18n
|
2012-12-31 15:12:11 -05:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),icu)
|
2011-08-11 12:42:39 +02:00
|
|
|
|
2013-10-23 15:00:29 +02:00
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,icu)/source/lib/icuin$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
|
|
|
|
)
|
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,icu)/source/lib -licui18n$(gb_ICU_suffix) \
|
|
|
|
)
|
2011-08-19 09:32:18 +02:00
|
|
|
endif
|
|
|
|
|
2013-10-23 15:00:29 +02:00
|
|
|
endef
|
2012-12-02 18:56:17 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
define gb_LinkTarget__use_icuuc
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),icu_ure)
|
2013-10-23 15:00:29 +02:00
|
|
|
|
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,icu)/source/lib/icuuc$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
|
2011-04-01 20:49:35 +00:00
|
|
|
)
|
2013-10-23 15:00:29 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,icu)/source/lib -licuuc$(gb_ICU_suffix) \
|
|
|
|
)
|
|
|
|
endif
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_ICU
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_HARFBUZZ),)
|
2013-04-20 13:00:56 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_harfbuzz
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(HARFBUZZ_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(HARFBUZZ_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-02-01 12:32:35 +01:00
|
|
|
gb_ExternalProject__use_harfbuzz :=
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
else # SYSTEM_HARFBUZZ != TRUE
|
2013-04-20 13:00:56 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_harfbuzz
|
2013-05-07 23:28:45 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-09-19 19:28:36 +02:00
|
|
|
$(HARFBUZZ_CFLAGS) \
|
2013-05-07 23:28:45 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(HARFBUZZ_LIBS))
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),harfbuzz)
|
2013-04-20 13:00:56 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-02-01 12:32:35 +01:00
|
|
|
define gb_ExternalProject__use_harfbuzz
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),harfbuzz)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-04-20 13:00:56 +02:00
|
|
|
endif # SYSTEM_HARFBUZZ
|
2011-04-18 11:13:57 +00:00
|
|
|
|
2013-08-31 18:55:53 -05:00
|
|
|
ifeq ($(DISABLE_OPENSSL),TRUE)
|
2013-04-11 10:24:25 +03:00
|
|
|
|
|
|
|
gb_ExternalProject__use_openssl:=
|
|
|
|
gb_LinkTarget__use_openssl_headers:=
|
|
|
|
gb_LinkTarget__use_openssl:=
|
|
|
|
|
|
|
|
else # !DISABLE_OPENSSL
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_OPENSSL),)
|
2011-04-18 11:13:57 +00:00
|
|
|
|
2012-12-28 11:19:06 -05:00
|
|
|
gb_LinkTarget__use_openssl_headers:=
|
|
|
|
gb_ExternalProject__use_openssl:=
|
|
|
|
|
2011-04-18 11:13:57 +00:00
|
|
|
define gb_LinkTarget__use_openssl
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(OPENSSL_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(OPENSSL_LIBS))
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-18 11:13:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_OPENSSL
|
|
|
|
|
2014-03-13 19:36:48 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
openssl \
|
|
|
|
))
|
|
|
|
|
2012-12-28 11:19:06 -05:00
|
|
|
define gb_ExternalProject__use_openssl
|
|
|
|
$(call gb_ExternalProject_use_package,$(1),openssl)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_openssl_headers
|
2016-03-07 21:18:23 +01:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),openssl)
|
2012-12-28 11:19:06 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,openssl)/include \
|
2012-12-28 11:19:06 -05:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2011-04-18 11:13:57 +00:00
|
|
|
define gb_LinkTarget__use_openssl
|
2012-12-28 11:19:06 -05:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),openssl)
|
2011-04-18 11:13:57 +00:00
|
|
|
ifeq ($(OS),WNT)
|
2013-10-24 00:22:20 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,openssl)/out32dll/ssleay32.lib \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,openssl)/out32dll/libeay32.lib \
|
2011-04-18 11:13:57 +00:00
|
|
|
)
|
|
|
|
else
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,openssl)/libssl.a \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,openssl)/libcrypto.a \
|
2011-04-18 11:13:57 +00:00
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),openssl)
|
2011-04-18 11:13:57 +00:00
|
|
|
ifeq ($(OS),SOLARIS)
|
2012-09-28 12:25:50 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-lnsl \
|
|
|
|
-lsocket \
|
2011-04-18 11:13:57 +00:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
endif
|
2011-07-25 22:10:33 +01:00
|
|
|
|
2011-04-18 11:13:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_OPENSSL
|
2013-04-11 10:24:25 +03:00
|
|
|
endif # DISABLE_OPENSSL
|
2011-04-18 11:13:57 +00:00
|
|
|
|
2011-07-28 01:03:23 +02:00
|
|
|
|
2013-08-31 18:55:53 -05:00
|
|
|
ifeq ($(DISABLE_OPENSSL),TRUE)
|
2013-04-11 10:32:54 +03:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_gnutls
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(GNUTLS_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DDISABLE_OPENSSL \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(GNUTLS_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_libgcrypt
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBGCRYPT_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBGCRYPT_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !DISABLE_OPENSSL
|
|
|
|
|
|
|
|
gb_LinkTarget__use_gnutls:=
|
|
|
|
gb_LinkTarget__use_libgcrypt:=
|
|
|
|
|
|
|
|
endif # DISABLE_OPENSSL
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_CDR),)
|
2011-11-28 15:06:59 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_cdr
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(CDR_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(CDR_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-02-19 11:22:02 +01:00
|
|
|
else # !SYSTEM_CDR
|
2011-11-28 15:06:59 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_cdr
|
2013-05-24 13:48:03 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libcdr)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libcdr)/src/lib/.libs/libcdr-0.1$(gb_StaticLibrary_PLAINEXT) \
|
2011-11-28 15:06:59 +01:00
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libcdr)
|
2011-11-28 15:06:59 +01:00
|
|
|
endef
|
|
|
|
|
2013-02-19 11:22:02 +01:00
|
|
|
endif # SYSTEM_CDR
|
2011-11-28 15:06:59 +01:00
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_EBOOK),)
|
2013-11-09 15:52:36 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_ebook
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(EBOOK_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(EBOOK_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
gb_ExternalProject__use_ebook :=
|
|
|
|
|
|
|
|
else # !SYSTEM_EBOOK
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_ebook
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
-I${WORKDIR}/UnpackedTarball/libebook/inc \
|
2013-11-09 15:52:36 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libebook)/src/lib/.libs/libe-book-0.1$(gb_StaticLibrary_PLAINEXT) \
|
2013-11-09 15:52:36 +01:00
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libebook)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_ebook
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libebook)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_EBOOK
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_ETONYEK),)
|
2013-10-24 16:46:49 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_etonyek
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(ETONYEK_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(ETONYEK_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
gb_ExternalProject__use_etonyek :=
|
|
|
|
|
|
|
|
else # !SYSTEM_ETONYEK
|
|
|
|
|
2015-05-19 16:12:08 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
etonyek \
|
|
|
|
))
|
|
|
|
|
2013-10-24 16:46:49 +02:00
|
|
|
define gb_LinkTarget__use_etonyek
|
2015-05-19 16:12:08 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libetonyek)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
etonyek \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
libetonyek \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_etonyek
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),libetonyek)
|
|
|
|
|
2013-10-24 16:46:49 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
-I${WORKDIR}/UnpackedTarball/libetonyek/inc \
|
2015-05-19 16:12:08 +02:00
|
|
|
-DLIBETONYEK_VISIBILITY \
|
2013-10-24 16:46:49 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2015-05-19 16:12:08 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libetonyek)/src/lib/.libs -letonyek-0.1 \
|
2013-10-24 16:46:49 +02:00
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libetonyek)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_etonyek
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libetonyek)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2015-05-19 16:12:08 +02:00
|
|
|
endif
|
|
|
|
|
2013-10-24 16:46:49 +02:00
|
|
|
endif # SYSTEM_ETONYEK
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_FREEHAND),)
|
2013-10-31 12:42:50 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_freehand
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(FREEHAND_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(FREEHAND_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
gb_ExternalProject__use_freehand :=
|
|
|
|
|
|
|
|
else # !SYSTEM_FREEHAND
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_freehand
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
-I${WORKDIR}/UnpackedTarball/libfreehand/inc \
|
2013-10-31 12:42:50 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libfreehand)/src/lib/.libs/libfreehand-0.1$(gb_StaticLibrary_PLAINEXT) \
|
2013-10-31 12:42:50 +01:00
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libfreehand)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_freehand
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libfreehand)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_FREEHAND
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_ODFGEN),)
|
2013-05-02 20:25:51 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_odfgen
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(ODFGEN_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(ODFGEN_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_ODFGEN
|
|
|
|
|
2014-05-24 09:13:33 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
odfgen \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_odfgen
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
odfgen \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
libodfgen \
|
|
|
|
))
|
|
|
|
|
2013-05-02 20:25:51 +02:00
|
|
|
define gb_LinkTarget__use_odfgen
|
2014-05-24 09:13:33 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),libodfgen)
|
|
|
|
|
2013-05-24 13:49:11 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libodfgen)/inc \
|
2015-01-26 15:09:13 +01:00
|
|
|
-DLIBODFGEN_VISIBILITY \
|
2013-05-24 13:49:11 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libodfgen)/src/.libs -lodfgen-0.1 \
|
2013-05-02 20:25:51 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-24 09:13:33 +02:00
|
|
|
endif
|
|
|
|
|
2013-05-02 20:25:51 +02:00
|
|
|
endif # SYSTEM_ODFGEN
|
|
|
|
|
2017-08-02 16:29:48 +02:00
|
|
|
ifneq ($(SYSTEM_EPUBGEN),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_epubgen
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(EPUBGEN_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(EPUBGEN_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
gb_ExternalProject__use_epubgen :=
|
|
|
|
|
|
|
|
else # !SYSTEM_EPUBGEN
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_epubgen
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libepubgen)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-12-13 10:54:27 +01:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libepubgen)/src/lib/.libs/libepubgen-0.1$(gb_StaticLibrary_PLAINEXT) \
|
2017-08-02 16:29:48 +02:00
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libepubgen)
|
|
|
|
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_epubgen
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libepubgen)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_EPUBGEN
|
2013-05-02 20:25:51 +02:00
|
|
|
|
2014-05-24 08:39:54 +02:00
|
|
|
ifneq ($(SYSTEM_REVENGE),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_revenge
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(REVENGE_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(REVENGE_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-25 13:06:57 +02:00
|
|
|
gb_ExternalProject__use_revenge :=
|
|
|
|
|
2014-05-24 08:39:54 +02:00
|
|
|
else # !SYSTEM_REVENGE
|
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
revenge \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_revenge
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-05-25 13:19:31 +02:00
|
|
|
$(REVENGE_CFLAGS) \
|
2014-05-24 08:39:54 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
revenge \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-25 13:06:57 +02:00
|
|
|
define gb_ExternalProject__use_revenge
|
|
|
|
$(call gb_ExternalProject_get_preparation_target,$(1)) : $(call gb_Library_get_target,revenge)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-24 08:39:54 +02:00
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
librevenge \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_revenge
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),librevenge)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-05-25 13:19:31 +02:00
|
|
|
$(REVENGE_CFLAGS) \
|
2015-01-26 15:09:13 +01:00
|
|
|
-DLIBREVENGE_VISIBILITY \
|
2014-05-24 08:39:54 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-25 13:19:31 +02:00
|
|
|
$(REVENGE_LIBS) \
|
2014-05-24 08:39:54 +02:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2014-05-25 13:06:57 +02:00
|
|
|
define gb_ExternalProject__use_revenge
|
|
|
|
$(call gb_ExternalProject_use_package,$(1),librevenge)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-24 08:39:54 +02:00
|
|
|
endif # MSC
|
|
|
|
|
|
|
|
endif # SYSTEM_REVENGE
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_ABW),)
|
2014-01-13 17:01:32 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_abw
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(ABW_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(ABW_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
gb_ExternalProject__use_abw :=
|
|
|
|
|
|
|
|
else # !SYSTEM_ABW
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_abw
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libabw)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libabw)/src/lib/.libs/libabw-0.1$(gb_StaticLibrary_PLAINEXT) \
|
2014-01-13 17:01:32 +01:00
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libabw)
|
|
|
|
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_abw
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libabw)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_ABW
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_MSPUB),)
|
2012-05-24 11:59:16 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_mspub
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(MSPUB_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(MSPUB_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-02-19 11:22:51 +01:00
|
|
|
else # !SYSTEM_MSPUB
|
2012-05-24 11:59:16 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_mspub
|
2013-05-16 13:09:11 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libmspub)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libmspub)/src/lib/.libs/libmspub-0.1$(gb_StaticLibrary_PLAINEXT) \
|
2012-05-24 11:59:16 +02:00
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libmspub)
|
2012-05-24 11:59:16 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-02-19 11:22:51 +01:00
|
|
|
endif # SYSTEM_MSPUB
|
2012-05-24 11:59:16 +02:00
|
|
|
|
|
|
|
|
2014-06-26 21:26:11 +02:00
|
|
|
ifneq ($(SYSTEM_PAGEMAKER),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_pagemaker
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(PAGEMAKER_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(PAGEMAKER_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
gb_ExternalProject__use_pagemaker :=
|
|
|
|
|
|
|
|
else # !SYSTEM_PAGEMAKER
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_pagemaker
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libpagemaker)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,libpagemaker)/src/lib/.libs/libpagemaker-0.0$(gb_StaticLibrary_PLAINEXT) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libpagemaker)
|
|
|
|
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_pagemaker
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libpagemaker)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_PAGEMAKER
|
|
|
|
|
|
|
|
|
2017-08-27 22:10:14 +03:00
|
|
|
ifneq ($(SYSTEM_QXP),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_qxp
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(QXP_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(QXP_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
gb_ExternalProject__use_qxp :=
|
|
|
|
|
|
|
|
else # !SYSTEM_QXP
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_qxp
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libqxp)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,libqxp)/src/lib/.libs/libqxp-0.0$(gb_StaticLibrary_PLAINEXT) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libqxp)
|
|
|
|
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_qxp
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libqxp)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_QXP
|
|
|
|
|
|
|
|
|
2016-06-22 19:02:29 +03:00
|
|
|
ifneq ($(SYSTEM_ZMF),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_zmf
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(ZMF_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(ZMF_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
gb_ExternalProject__use_zmf :=
|
|
|
|
|
|
|
|
else # !SYSTEM_ZMF
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_zmf
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libzmf)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,libzmf)/src/lib/.libs/libzmf-0.0$(gb_StaticLibrary_PLAINEXT) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libzmf)
|
|
|
|
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_zmf
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libzmf)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_ZMF
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_VISIO),)
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_visio
|
2011-08-02 07:10:30 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2011-10-05 10:21:08 +02:00
|
|
|
$(VISIO_CFLAGS) \
|
2011-08-02 07:10:30 +02:00
|
|
|
)
|
2011-10-05 10:21:08 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(VISIO_LIBS))
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-02-19 11:14:46 +01:00
|
|
|
else # !SYSTEM_VISIO
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_visio
|
2013-05-16 13:14:37 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libvisio)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-24 14:21:21 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,libvisio)/src/lib/.libs/libvisio-0.1$(gb_StaticLibrary_PLAINEXT) \
|
2011-07-28 17:29:44 +02:00
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libvisio)
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-02-19 11:14:46 +01:00
|
|
|
endif # SYSTEM_VISIO
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_WPD),)
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_wpd
|
2011-08-02 07:10:30 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2011-10-05 10:04:04 +02:00
|
|
|
$(WPD_CFLAGS) \
|
2011-08-02 07:10:30 +02:00
|
|
|
)
|
2011-10-05 10:04:04 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(WPD_LIBS))
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
endef
|
2012-10-05 21:17:25 +02:00
|
|
|
gb_ExternalProject__use_wpd :=
|
2011-07-28 17:29:44 +02:00
|
|
|
|
2013-02-19 11:20:31 +01:00
|
|
|
else # !SYSTEM_WPD
|
2011-07-28 17:29:44 +02:00
|
|
|
|
2014-12-23 18:37:54 +01:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
wpd \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_wpd
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(WPD_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
wpd \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_wpd
|
|
|
|
$(call gb_ExternalProject_get_preparation_target,$(1)) : $(call gb_Library_get_target,wpd)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
libwpd \
|
|
|
|
))
|
|
|
|
|
2012-09-24 13:17:45 +02:00
|
|
|
define gb_LinkTarget__use_wpd
|
2014-12-23 18:37:54 +01:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),libwpd)
|
|
|
|
|
2013-05-16 13:28:14 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(WPD_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-12-23 18:37:54 +01:00
|
|
|
$(WPD_LIBS) \
|
2012-09-24 13:17:45 +02:00
|
|
|
)
|
|
|
|
|
2012-10-05 21:17:25 +02:00
|
|
|
endef
|
2014-12-23 18:37:54 +01:00
|
|
|
|
2012-10-05 21:17:25 +02:00
|
|
|
define gb_ExternalProject__use_wpd
|
2014-12-23 18:37:54 +01:00
|
|
|
$(call gb_ExternalProject_use_package,$(1),libwpd)
|
2012-10-05 21:17:25 +02:00
|
|
|
|
2012-09-24 13:17:45 +02:00
|
|
|
endef
|
|
|
|
|
2014-12-23 18:37:54 +01:00
|
|
|
endif # MSC
|
|
|
|
|
2013-02-19 11:20:31 +01:00
|
|
|
endif # SYSTEM_WPD
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_WPG),)
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_wpg
|
2011-08-02 07:10:30 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2011-10-05 10:15:40 +02:00
|
|
|
$(WPG_CFLAGS) \
|
2011-08-02 07:10:30 +02:00
|
|
|
)
|
2011-10-05 10:15:40 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(WPG_LIBS))
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
endef
|
2012-10-05 21:17:25 +02:00
|
|
|
gb_ExternalProject__use_wpg :=
|
2011-07-28 17:29:44 +02:00
|
|
|
|
2013-02-19 11:26:46 +01:00
|
|
|
else # !SYSTEM_WPG
|
2011-07-28 17:29:44 +02:00
|
|
|
|
2014-12-23 18:37:54 +01:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
wpg \
|
|
|
|
))
|
|
|
|
|
2011-07-28 17:29:44 +02:00
|
|
|
define gb_LinkTarget__use_wpg
|
2013-05-24 14:53:37 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libwpg)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2014-12-23 18:37:54 +01:00
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
wpg \
|
2011-07-28 17:29:44 +02:00
|
|
|
)
|
|
|
|
|
2012-10-05 21:17:25 +02:00
|
|
|
endef
|
2014-12-23 18:37:54 +01:00
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
libwpg \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_wpg
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),libwpg)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libwpg)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libwpg)/src/lib/.libs -lwpg-0.3 \
|
|
|
|
)
|
2012-10-05 21:17:25 +02:00
|
|
|
|
2011-07-28 17:29:44 +02:00
|
|
|
endef
|
|
|
|
|
2014-12-23 18:37:54 +01:00
|
|
|
endif # MSC
|
|
|
|
|
2013-02-19 11:26:46 +01:00
|
|
|
endif # SYSTEM_WPG
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_WPS),)
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_wps
|
2011-08-02 07:10:30 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2011-10-05 10:18:53 +02:00
|
|
|
$(WPS_CFLAGS) \
|
2011-08-02 07:10:30 +02:00
|
|
|
)
|
2011-10-05 10:18:53 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(WPS_LIBS))
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
endef
|
2012-10-05 21:17:25 +02:00
|
|
|
gb_ExternalProject__use_wps :=
|
2011-07-28 17:29:44 +02:00
|
|
|
|
2013-02-19 11:26:46 +01:00
|
|
|
else # !SYSTEM_WPS
|
2011-07-28 17:29:44 +02:00
|
|
|
|
2014-05-30 15:35:48 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
wps \
|
|
|
|
))
|
|
|
|
|
2011-07-28 17:29:44 +02:00
|
|
|
define gb_LinkTarget__use_wps
|
2013-05-24 14:58:31 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libwps)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2014-05-30 15:35:48 +02:00
|
|
|
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
wps \
|
2011-07-28 17:29:44 +02:00
|
|
|
)
|
|
|
|
|
2012-10-05 21:17:25 +02:00
|
|
|
endef
|
2014-05-30 15:35:48 +02:00
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
libwps \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_wps
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),libwps)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libwps)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2015-05-18 10:21:10 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libwps)/src/lib/.libs -lwps-0.4 \
|
2014-05-30 15:35:48 +02:00
|
|
|
)
|
2012-10-05 21:17:25 +02:00
|
|
|
|
2011-07-28 17:29:44 +02:00
|
|
|
endef
|
|
|
|
|
2014-05-30 15:35:48 +02:00
|
|
|
endif # MSC
|
|
|
|
|
2013-02-19 11:26:46 +01:00
|
|
|
endif # SYSTEM_WPS
|
2011-07-28 17:29:44 +02:00
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_MWAW),)
|
2013-03-11 12:38:12 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_mwaw
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(MWAW_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(MWAW_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_MWAW
|
|
|
|
|
2014-05-30 13:55:20 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
mwaw \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_mwaw
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libmwaw)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
mwaw \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
libmwaw \
|
|
|
|
))
|
|
|
|
|
2013-03-11 12:38:12 +01:00
|
|
|
define gb_LinkTarget__use_mwaw
|
2014-05-30 13:55:20 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),libmwaw)
|
|
|
|
|
2013-05-16 13:11:36 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libmwaw)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-05-30 13:55:20 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libmwaw)/src/lib/.libs -lmwaw-0.3 \
|
2013-03-11 12:38:12 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-30 13:55:20 +02:00
|
|
|
endif # MSC
|
|
|
|
|
2013-03-11 12:38:12 +01:00
|
|
|
endif # SYSTEM_MWAW
|
|
|
|
|
2016-08-10 12:43:56 +02:00
|
|
|
ifneq ($(SYSTEM_STAROFFICE),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_staroffice
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(STAROFFICE_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(STAROFFICE_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_STAROFFICE
|
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
staroffice \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_staroffice
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libstaroffice)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
staroffice \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
libstaroffice \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_staroffice
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),libstaroffice)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libstaroffice)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,libstaroffice)/src/lib/.libs -lstaroffice-0.0 \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # MSC
|
|
|
|
|
|
|
|
endif # SYSTEM_STAROFFICE
|
|
|
|
|
2013-03-11 12:38:12 +01:00
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_LCMS2),)
|
2012-03-02 10:15:42 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_lcms2
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2012-11-04 08:46:44 -05:00
|
|
|
$(LCMS2_CFLAGS) \
|
2012-03-02 10:15:42 +01:00
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LCMS2_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-11-08 21:00:30 -05:00
|
|
|
gb_ExternalProject__use_lcms2 :=
|
|
|
|
|
2012-03-02 10:15:42 +01:00
|
|
|
else # !SYSTEM_LCMS2
|
|
|
|
|
2014-02-17 11:23:19 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
lcms2 \
|
|
|
|
))
|
|
|
|
|
2012-11-08 21:00:30 -05:00
|
|
|
define gb_ExternalProject__use_lcms2
|
|
|
|
$(call gb_ExternalProject_use_package,$(1),lcms2)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-06-06 22:57:56 +03:00
|
|
|
ifeq ($(OS),ANDROID)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_lcms2
|
2012-11-13 19:44:44 +01:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),lcms2)
|
2012-09-04 22:00:15 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
|
2012-09-04 22:00:15 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-06-06 22:57:56 +03:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2012-03-02 10:15:42 +01:00
|
|
|
define gb_LinkTarget__use_lcms2
|
2012-11-13 19:44:44 +01:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),lcms2)
|
2012-09-04 22:00:15 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
|
2012-09-04 22:00:15 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-10-23 22:04:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LCMS2_LIBS))
|
2012-03-02 10:15:42 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-06-06 22:57:56 +03:00
|
|
|
endif # ANDROID
|
2012-03-02 10:15:42 +01:00
|
|
|
endif # SYSTEM_LCMS2
|
|
|
|
|
2014-03-31 19:36:41 +02:00
|
|
|
ifneq ($(ENABLE_LPSOLVE),)
|
2012-03-02 10:15:42 +01:00
|
|
|
|
2014-02-11 19:25:30 +01:00
|
|
|
ifneq ($(SYSTEM_LPSOLVE),)
|
2011-07-28 01:03:23 +02:00
|
|
|
|
2012-11-03 19:19:30 -04:00
|
|
|
define gb_LinkTarget__use_lpsolve
|
2011-07-28 01:03:23 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),-llpsolve55)
|
2012-11-03 19:19:30 -04:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DSYSTEM_LPSOLVE \
|
2012-11-07 18:18:08 -05:00
|
|
|
)
|
2011-07-28 01:03:23 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_LPSOLVE
|
|
|
|
|
2012-11-03 19:19:30 -04:00
|
|
|
define gb_LinkTarget__use_lpsolve
|
2016-12-09 17:23:11 +01:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),lpsolve)
|
2013-10-24 01:25:59 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,lpsolve)/lpsolve55/lpsolve55.lib \
|
|
|
|
)
|
|
|
|
else
|
2013-10-23 21:33:51 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,lpsolve)/lpsolve55 -llpsolve55 \
|
2011-07-28 01:03:23 +02:00
|
|
|
)
|
2013-10-24 01:25:59 +02:00
|
|
|
endif
|
2012-11-03 19:19:30 -04:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,lpsolve) \
|
2012-11-03 19:19:30 -04:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2011-07-28 01:03:23 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-27 17:08:09 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
lpsolve \
|
|
|
|
))
|
|
|
|
|
2011-07-28 01:03:23 +02:00
|
|
|
endif # SYSTEM_LPSOLVE
|
2014-02-28 10:39:19 +01:00
|
|
|
|
2014-03-27 14:51:46 +01:00
|
|
|
else
|
|
|
|
|
|
|
|
gb_LinkTarget__use_lpsolve :=
|
|
|
|
|
2014-03-31 19:36:41 +02:00
|
|
|
endif # ENABLE_LPSOLVE
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_COINMP),)
|
2014-02-28 10:39:19 +01:00
|
|
|
|
2014-08-06 00:03:21 +02:00
|
|
|
ifneq ($(SYSTEM_COINMP),TRUE)
|
|
|
|
|
2014-02-28 10:39:19 +01:00
|
|
|
define gb_LinkTarget__use_coinmp
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),coinmp)
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2014-11-30 18:26:01 +01:00
|
|
|
$(call gb_UnpackedTarball_get_dir,coinmp)/CoinMP/MSVisualStudio/v9/$(wnt_arch_subdir_optional)$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)/CoinMP.lib \
|
2014-02-28 10:39:19 +01:00
|
|
|
)
|
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,coinmp)/Cbc/src/.libs -lCbc -lCbcSolver \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,coinmp)/Cgl/src/.libs -lCgl \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,coinmp)/Clp/src/.libs -lClp \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,coinmp)/Clp/src/OsiClp/.libs -lOsiClp \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,coinmp)/CoinMP/src/.libs -lCoinMP \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,coinmp)/CoinUtils/src/.libs -lCoinUtils \
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,coinmp)/Osi/src/Osi/.libs -lOsi \
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,coinmp)/CoinMP/src \
|
2014-06-06 14:32:09 +01:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,coinmp)/CoinUtils/src \
|
2014-02-28 10:39:19 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
coinmp \
|
|
|
|
))
|
|
|
|
|
2014-08-06 00:03:21 +02:00
|
|
|
else # SYSTEM_COINMP
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_coinmp
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(COINMP_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(COINMP_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-03-27 14:51:46 +01:00
|
|
|
else
|
|
|
|
|
|
|
|
gb_LinkTarget__use_coinmp :=
|
|
|
|
|
2014-03-31 19:36:41 +02:00
|
|
|
endif # ENABLE_COINMP
|
2011-07-28 01:03:23 +02:00
|
|
|
|
2015-11-27 23:54:40 +01:00
|
|
|
ifneq (,$(filter MDNSRESPONDER,$(BUILD_TYPE)))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_mDNSResponder
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,mDNSResponder)/mDNSShared \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),mDNSResponder)
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # MDNSRESPONDER
|
|
|
|
|
2012-08-30 13:58:15 +01:00
|
|
|
ifeq ($(ENABLE_GIO),TRUE)
|
2011-07-28 01:03:23 +02:00
|
|
|
|
2012-01-15 02:12:49 +01:00
|
|
|
define gb_LinkTarget__use_gio
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2012-01-16 08:57:38 +00:00
|
|
|
$(GIO_CFLAGS) \
|
2012-01-15 02:12:49 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(GIO_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-08-30 13:58:15 +01:00
|
|
|
else # ENABLE_GIO
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_gio
|
2012-11-06 20:09:57 +00:00
|
|
|
|
2012-08-30 13:58:15 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # ENABLE_GIO
|
|
|
|
|
2013-07-24 11:16:31 +02:00
|
|
|
ifeq ($(ENABLE_AVAHI),TRUE)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_avahi
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(AVAHI_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DENABLE_AVAHI \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(AVAHI_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # ENABLE_AVAHI
|
|
|
|
|
2013-11-05 07:03:08 +01:00
|
|
|
gb_LinkTarget__use_avahi :=
|
2013-07-24 11:16:31 +02:00
|
|
|
|
|
|
|
endif # ENABLE_AVAHI
|
|
|
|
|
|
|
|
|
2011-07-26 14:51:35 +02:00
|
|
|
define gb_LinkTarget__use_gtk
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(GTK_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(GTK_LIBS))
|
|
|
|
|
2011-12-01 13:39:09 +01:00
|
|
|
ifeq ($(ENABLE_GTK_PRINT),TRUE)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),-DENABLE_GTK_PRINT)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(GTK_PRINT_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(GTK_PRINT_LIBS))
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2011-07-26 14:51:35 +02:00
|
|
|
endef
|
2011-04-18 11:13:57 +00:00
|
|
|
|
2011-07-26 15:15:41 +02:00
|
|
|
define gb_LinkTarget__use_gthread
|
2012-11-06 20:38:47 +01:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(GTHREAD_LIBS))
|
2012-10-10 21:43:21 -04:00
|
|
|
endef
|
|
|
|
|
2012-09-14 11:31:50 +01:00
|
|
|
ifeq ($(ENABLE_CUPS),TRUE)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_cups
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DENABLE_CUPS \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-lcups \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # ENABLE_CUPS
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_cups
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # ENABLE_DBUS
|
2011-11-02 13:00:48 +01:00
|
|
|
|
2012-08-30 13:44:53 +01:00
|
|
|
ifeq ($(ENABLE_DBUS),TRUE)
|
2011-11-02 13:00:48 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_dbus
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(DBUS_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # ENABLE_DBUS
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_dbus
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # ENABLE_DBUS
|
|
|
|
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_LIBPNG),)
|
2011-09-15 14:44:34 +02:00
|
|
|
|
2017-09-14 14:12:40 +02:00
|
|
|
define gb_LinkTarget__use_libpng
|
2011-09-15 14:44:34 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBPNG_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(LIBPNG_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-14 14:12:40 +02:00
|
|
|
gb_ExternalProject__use_libpng :=
|
2016-11-03 13:58:29 +01:00
|
|
|
|
2011-09-15 14:44:34 +02:00
|
|
|
else # !SYSTEM_LIBPNG
|
|
|
|
|
2017-09-14 14:12:40 +02:00
|
|
|
define gb_LinkTarget__use_libpng
|
2013-05-08 17:22:22 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(LIBPNG_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2012-09-08 18:13:20 +02:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
2017-09-14 14:12:40 +02:00
|
|
|
libpng \
|
2011-09-15 14:44:34 +02:00
|
|
|
)
|
2012-09-28 21:47:29 +02:00
|
|
|
$(call gb_LinkTarget__use_zlib,$(1))
|
2011-09-15 14:44:34 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-09-14 14:12:40 +02:00
|
|
|
define gb_ExternalProject__use_libpng
|
2016-11-03 13:58:29 +01:00
|
|
|
$(call gb_ExternalProject_use_static_libraries,$(1),\
|
2017-09-14 14:12:40 +02:00
|
|
|
libpng \
|
2016-11-03 13:58:29 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2011-09-15 14:44:34 +02:00
|
|
|
endif # !SYSTEM_LIBPNG
|
|
|
|
|
2011-12-06 19:17:52 +01:00
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_CURL),)
|
2011-12-06 19:17:52 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_curl
|
2014-07-16 17:02:01 +02:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DSYSTEM_CURL \
|
|
|
|
)
|
2011-12-06 19:17:52 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(CURL_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(CURL_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_CURL
|
|
|
|
|
2014-02-17 11:23:19 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
curl \
|
|
|
|
))
|
|
|
|
|
2011-12-06 19:17:52 +01:00
|
|
|
define gb_LinkTarget__use_curl
|
2012-11-13 19:44:44 +01:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),curl)
|
2012-10-29 22:57:34 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,curl/include) \
|
2012-10-29 22:57:34 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-10-23 22:37:11 +02:00
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
2013-10-24 00:32:04 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-10-23 17:43:21 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,curl)/builds/libcurl-vc12-$(if $(filter X86_64,$(CPUNAME)),x64,x86)-$(if $(MSVC_USE_DEBUG_RUNTIME),debug,release)-dll-ipv6-sspi-winssl/lib/libcurl$(if $(MSVC_USE_DEBUG_RUNTIME),_debug).lib \
|
2011-12-06 19:17:52 +01:00
|
|
|
)
|
2013-10-23 22:37:11 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,curl)/lib/.libs -lcurl \
|
|
|
|
)
|
|
|
|
endif
|
2011-12-06 19:17:52 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_CURL
|
|
|
|
|
2012-11-27 15:35:02 +01:00
|
|
|
ifeq ($(ENABLE_VALGRIND),TRUE)
|
2011-12-23 12:21:19 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_valgrind
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2012-11-27 15:35:02 +01:00
|
|
|
-DHAVE_VALGRIND_HEADERS \
|
2011-12-23 12:21:19 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(VALGRIND_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-11-27 15:35:02 +01:00
|
|
|
else # !ENABLE_VALGRIND
|
2011-12-23 12:21:19 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_valgrind
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-11-27 15:35:02 +01:00
|
|
|
endif # ENABLE_VALGRIND
|
2011-12-23 12:21:19 +01:00
|
|
|
|
2014-02-11 19:35:22 +01:00
|
|
|
ifneq ($(SYSTEM_POPPLER),)
|
2012-02-18 18:54:35 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_poppler
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(POPPLER_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(POPPLER_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_POPPLER
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_poppler
|
2015-09-29 18:09:16 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),poppler,full)
|
2013-02-17 09:26:01 -05:00
|
|
|
|
2012-02-21 06:58:02 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-07-08 14:01:17 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,poppler) \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,poppler)/poppler \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,poppler)/goo \
|
2012-02-21 06:58:02 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,poppler)/fofi/.libs/libfofi$(gb_StaticLibrary_PLAINEXT) \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,poppler)/goo/.libs/libgoo$(gb_StaticLibrary_PLAINEXT) \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,poppler)/poppler/.libs/libpoppler$(gb_StaticLibrary_PLAINEXT) \
|
2012-02-21 06:58:02 +01:00
|
|
|
)
|
|
|
|
|
2017-09-13 22:50:14 +02:00
|
|
|
$(call gb_LinkTarget_use_external,$(1),libjpeg)
|
2016-11-03 15:58:08 +01:00
|
|
|
|
2012-02-21 06:58:02 +01:00
|
|
|
ifeq ($(OS),MACOSX)
|
2012-09-28 00:54:49 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-lobjc \
|
2012-02-18 18:54:35 +01:00
|
|
|
)
|
2014-08-30 15:12:53 +01:00
|
|
|
else ifeq ($(OS),LINUX)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-pthread \
|
|
|
|
)
|
2012-02-21 06:58:02 +01:00
|
|
|
else ifeq ($(OS),WNT)
|
2012-09-28 15:31:46 +02:00
|
|
|
$(call gb_LinkTarget_use_system_win32_libs,$(1),\
|
2012-02-21 06:58:02 +01:00
|
|
|
advapi32 \
|
|
|
|
gdi32 \
|
|
|
|
)
|
|
|
|
endif
|
2012-02-18 18:54:35 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_POPPLER
|
|
|
|
|
2011-12-23 12:21:19 +01:00
|
|
|
|
2014-02-11 16:33:18 +01:00
|
|
|
ifneq ($(SYSTEM_CLUCENE),)
|
2012-04-07 15:50:47 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_clucene
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2014-08-07 19:40:33 +02:00
|
|
|
$(filter-out -I% -isystem%,$(subst -isystem /,-isystem/,$(CLUCENE_CFLAGS))) \
|
2012-04-07 15:50:47 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-08-07 19:40:33 +02:00
|
|
|
$(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(CLUCENE_CFLAGS)))) \
|
2012-04-07 15:50:47 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(CLUCENE_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_CLUCENE
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_clucene
|
2013-05-07 23:47:27 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,clucene)/src/core \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,clucene)/src/shared \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,clucene)/src/contribs-lib \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
2012-04-07 23:22:08 +02:00
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
2012-04-07 15:50:47 +02:00
|
|
|
clucene \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-12 06:53:02 -02:00
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
2012-04-07 15:50:47 +02:00
|
|
|
clucene \
|
|
|
|
))
|
|
|
|
|
|
|
|
endif # SYSTEM_CLUCENE
|
|
|
|
|
2011-12-22 16:34:35 -05:00
|
|
|
define gb_LinkTarget__use_gobject
|
2012-11-06 20:38:47 +01:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(GOBJECT_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(GOBJECT_CFLAGS) \
|
|
|
|
)
|
2011-12-22 16:34:35 -05:00
|
|
|
endef
|
|
|
|
|
2018-04-11 15:39:57 +01:00
|
|
|
ifneq ($(SYSTEM_HSQLDB),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_hsqldb
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
-DSYSTEM_HSQLDB \
|
|
|
|
-DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\" \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_HSQLDB
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_hsqldb
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_HSQLDB
|
|
|
|
|
|
|
|
|
2014-02-11 19:11:47 +01:00
|
|
|
ifneq ($(SYSTEM_OPENLDAP),)
|
2012-07-16 19:00:07 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_openldap
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-lldap \
|
|
|
|
-llber \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
gb_ExternalProject__use_openldap :=
|
|
|
|
|
2014-02-11 19:11:47 +01:00
|
|
|
else # !SYSTEM_OPENLDAP
|
2012-07-16 19:00:07 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_openldap
|
2012-10-29 23:29:37 +01:00
|
|
|
$(call gb_LinkTarget_use_unpacked,$(1),openldap)
|
2012-07-16 19:00:07 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,openldap/include) \
|
2012-07-16 19:00:07 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2015-10-09 09:21:48 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),openldap,full)
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1), \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,openldap)/libraries/libldap/.libs/libldap.a \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,openldap)/libraries/liblber/.libs/liblber.a \
|
2012-07-16 19:00:07 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
define gb_ExternalProject__use_openldap
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),openldap)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-07-16 19:00:07 +02:00
|
|
|
endif # SYSTEM_OPENLDAP
|
|
|
|
|
2016-07-28 17:16:19 +02:00
|
|
|
ifneq ($(SYSTEM_LIBTOMMATH),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_libtommath
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(LIBTOMMATH_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBTOMMATH_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_LIBTOMMATH
|
|
|
|
define gb_LinkTarget__use_libtommath
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I${WORKDIR}/UnpackedTarball/libtommath \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,libtommath)/libtommath$(gb_StaticLibrary_PLAINEXT) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libtommath)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_LIBTOMMATH
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_libtommath
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libtommath)
|
|
|
|
|
|
|
|
endef
|
2012-07-16 19:00:07 +02:00
|
|
|
|
2013-05-10 18:21:30 +00:00
|
|
|
ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
|
|
|
|
|
2014-02-11 19:04:20 +01:00
|
|
|
ifneq ($(SYSTEM_FIREBIRD),)
|
2013-06-14 14:55:22 +01:00
|
|
|
|
2013-07-16 21:50:14 +02:00
|
|
|
define gb_LinkTarget__use_libfbembed
|
2013-05-10 18:21:30 +00:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(FIREBIRD_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(FIREBIRD_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_FIREBIRD
|
|
|
|
|
2017-01-09 14:45:11 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,firebirdsdbc,\
|
|
|
|
firebird \
|
|
|
|
))
|
|
|
|
|
2013-06-14 14:55:22 +01:00
|
|
|
#$(call gb_LinkTarget__use_libatomic_ops,$(1))
|
2016-07-28 17:16:19 +02:00
|
|
|
#$(call gb_LinkTarget__use_libtommath,$(1))
|
2013-06-14 14:55:22 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_libfbembed
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),firebird)
|
2013-05-10 18:21:30 +00:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2016-10-17 08:39:09 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,firebird)/gen/$(if $(ENABLE_DEBUG),Debug,Release)/firebird/include \
|
2013-05-10 18:21:30 +00:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2013-10-22 22:22:49 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2016-10-17 08:39:09 +02:00
|
|
|
$(call gb_UnpackedTarball_get_dir,firebird)/gen/$(if $(ENABLE_DEBUG),Debug,Release)/firebird/bin/ifbclient.lib \
|
2013-05-10 18:21:30 +00:00
|
|
|
)
|
2013-10-22 22:22:49 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2016-10-17 08:39:09 +02:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,firebird)/gen/$(if $(ENABLE_DEBUG),Debug,Release)/firebird/lib -lfbclient \
|
2013-10-22 22:22:49 +02:00
|
|
|
)
|
|
|
|
endif
|
2013-05-10 18:21:30 +00:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
# endef
|
|
|
|
|
|
|
|
endif # SYSTEM_FIREBIRD
|
|
|
|
|
|
|
|
else # !ENABLE_FIREBIRD_SDBC
|
2014-02-12 17:01:35 +01:00
|
|
|
|
2013-05-10 18:21:30 +00:00
|
|
|
gb_LinkTarget__use_firebird :=
|
|
|
|
# gb_LinkTarget__use_atomic_ops :=
|
2016-07-28 17:16:19 +02:00
|
|
|
# gb_LinkTarget__use_libtommath :=
|
2013-05-10 18:21:30 +00:00
|
|
|
|
|
|
|
endif # ENABLE_FIREBIRD_SDBC
|
|
|
|
|
|
|
|
|
2014-02-11 18:56:33 +01:00
|
|
|
ifneq ($(SYSTEM_POSTGRESQL),)
|
2012-04-05 10:53:08 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_postgresql
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(POSTGRESQL_INC) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-lpq \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_ldflags,$(1),\
|
|
|
|
$(POSTGRESQL_LIB) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_POSTGRESQL
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_postgresql
|
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),postgresql)
|
2012-10-22 06:33:00 +02:00
|
|
|
|
2012-04-05 10:53:08 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-05-08 00:19:40 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,postgresql)/src/include \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,postgresql)/src/interfaces/libpq \
|
2012-04-05 10:53:08 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,postgresql)/src/interfaces/libpq/libpq$(gb_StaticLibrary_PLAINEXT) \
|
2012-04-05 10:53:08 +02:00
|
|
|
)
|
|
|
|
|
Remove MinGW support
In OOo times, there'd originally been efforts to allow building on Windows with
MinGW. Later, in LO times, this has been shifted to an attempt of cross-
compiling for Windows on Linux. That attempt can be considered abandoned, and
the relevant code rotting.
Due to this heritage, there are now three kinds of MinGW-specific code in LO:
* Code from the original OOo native Windows effort that is no longer relevant
for the LO cross-compilation effort, but has never been removed properly.
* Code from the original OOo native Windows effort that is re-purposed for the
LO cross-compilation effort.
* Code that has been added specifially for the LO cross-compilation effort.
All three kinds of code are removed.
(An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing
--with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.)
Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568
Reviewed-on: https://gerrit.libreoffice.org/34127
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-10 14:05:21 +01:00
|
|
|
ifeq ($(OS),WNT)
|
2012-05-27 00:21:12 +02:00
|
|
|
$(call gb_LinkTarget_use_external,$(1),openssl)
|
|
|
|
|
2012-09-28 15:31:46 +02:00
|
|
|
$(call gb_LinkTarget_use_system_win32_libs,$(1),\
|
2012-04-05 10:53:08 +02:00
|
|
|
secur32 \
|
|
|
|
ws2_32 \
|
|
|
|
)
|
2012-05-30 12:06:42 +02:00
|
|
|
|
2012-04-05 10:53:08 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_POSTGRESQL
|
|
|
|
|
2012-04-28 20:48:14 +02:00
|
|
|
ifeq ($(ENABLE_KDE4),TRUE)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_kde4
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-08-07 19:40:33 +02:00
|
|
|
$(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(KDE4_CFLAGS)))) \
|
2012-04-28 20:48:14 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2014-08-07 19:40:33 +02:00
|
|
|
$(filter-out -I% -isystem%,$(subst -isystem /,-isystem/,$(KDE4_CFLAGS))) \
|
2012-04-28 20:48:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(KDE4_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !ENABLE_KDE4
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_kde4
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # ENABLE_KDE4
|
|
|
|
|
2018-01-10 16:26:10 +01:00
|
|
|
|
|
|
|
ifeq ($(ENABLE_KDE5),TRUE)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_kde5
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(KF5_CFLAGS)))) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
|
|
|
$(filter-out -I% -isystem%,$(subst -isystem /,-isystem/,$(KF5_CFLAGS))) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(KF5_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
ifeq ($(COM),GCC)
|
|
|
|
$(call gb_LinkTarget_add_cxxflags,$(1),\
|
|
|
|
-Wno-shadow \
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !ENABLE_KDE5
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_kde5
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # ENABLE_KDE5
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-30 18:45:46 +01:00
|
|
|
ifeq ($(ENABLE_QT5),TRUE)
|
2017-10-21 13:50:30 +00:00
|
|
|
|
2017-10-30 18:45:46 +01:00
|
|
|
define gb_LinkTarget__use_qt5
|
2017-10-21 13:50:30 +00:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2017-10-30 18:45:46 +01:00
|
|
|
$(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(QT5_CFLAGS)))) \
|
|
|
|
$$(INCLUDE) \
|
2017-10-21 13:50:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2017-10-30 18:45:46 +01:00
|
|
|
$(filter-out -I% -isystem%,$(subst -isystem /,-isystem/,$(QT5_CFLAGS))) \
|
2017-10-21 13:50:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-10-30 18:45:46 +01:00
|
|
|
$(QT5_LIBS) \
|
2017-10-21 13:50:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
ifeq ($(COM),GCC)
|
|
|
|
$(call gb_LinkTarget_add_cxxflags,$(1),\
|
|
|
|
-Wno-shadow \
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-10-30 18:45:46 +01:00
|
|
|
else # !ENABLE_QT5
|
2017-10-21 13:50:30 +00:00
|
|
|
|
2017-10-30 18:45:46 +01:00
|
|
|
define gb_LinkTarget__use_qt5
|
2017-10-21 13:50:30 +00:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-10-30 18:45:46 +01:00
|
|
|
endif # ENABLE_QT5
|
2012-04-28 20:48:14 +02:00
|
|
|
|
2012-05-27 22:50:41 +02:00
|
|
|
# PYTHON
|
2012-11-27 15:50:53 +01:00
|
|
|
# extra python_headers external because pyuno wrapper must not link python
|
2014-02-11 16:57:35 +01:00
|
|
|
ifneq ($(SYSTEM_PYTHON),)
|
2012-05-27 22:50:41 +02:00
|
|
|
|
2012-11-27 15:50:53 +01:00
|
|
|
define gb_LinkTarget__use_python_headers
|
2012-05-27 22:50:41 +02:00
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2014-08-07 19:40:33 +02:00
|
|
|
$(filter-out -I% -isystem%,$(subst -isystem /,-isystem/,$(PYHTON_CFLAGS)))) \
|
2012-05-27 22:50:41 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2014-08-07 19:40:33 +02:00
|
|
|
$(subst -isystem/,-isystem /,$(filter -I% -isystem%,$(subst -isystem /,-isystem/,$(PYTHON_CFLAGS)))) \
|
2012-05-27 22:50:41 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
2012-11-27 15:50:53 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_python
|
|
|
|
$(call gb_LinkTarget__use_python_headers,$(1))
|
|
|
|
|
2012-05-27 22:50:41 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(PYTHON_LIBS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_PYTHON
|
|
|
|
|
2014-03-18 18:24:15 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,python,\
|
|
|
|
python3 \
|
|
|
|
))
|
|
|
|
|
2012-11-27 15:50:53 +01:00
|
|
|
define gb_LinkTarget__use_python_headers
|
2015-09-29 18:09:16 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),python3,full)
|
2012-11-27 15:50:53 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-04-01 12:47:16 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,python3) \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,python3)/PC \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,python3)/Include \
|
2012-11-27 15:50:53 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-05-27 22:50:41 +02:00
|
|
|
define gb_LinkTarget__use_python
|
2012-11-27 15:50:53 +01:00
|
|
|
$(call gb_LinkTarget__use_python_headers,$(1))
|
2015-07-29 12:17:03 +02:00
|
|
|
ifeq ($(OS),MACOSX)
|
|
|
|
$(call gb_LinkTarget_use_generated_package,$(1),python3)
|
|
|
|
else
|
2015-07-29 10:56:57 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),python3)
|
2015-07-29 12:17:03 +02:00
|
|
|
endif
|
2012-05-27 22:50:41 +02:00
|
|
|
|
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-03-04 14:36:08 +01:00
|
|
|
$(call gb_UnpackedTarball_get_dir,python3)/PCbuild/$(if $(filter X86_64,$(CPUNAME)),amd64,win32)/python$(PYTHON_VERSION_MAJOR)$(PYTHON_VERSION_MINOR)$(if $(MSVC_USE_DEBUG_RUNTIME),_d).lib \
|
2012-05-27 22:50:41 +02:00
|
|
|
)
|
|
|
|
else ifeq ($(OS),MACOSX)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2012-11-27 15:32:36 +01:00
|
|
|
-F$(call gb_UnpackedTarball_get_dir,python3)/python-inst/@__________________________________________________OOO -framework LibreOfficePython \
|
2012-05-27 22:50:41 +02:00
|
|
|
)
|
|
|
|
else
|
2013-04-21 14:34:50 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,python3) \
|
|
|
|
-lpython$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)m \
|
2012-05-27 22:50:41 +02:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_PYTHON
|
|
|
|
|
2012-09-04 15:05:35 -04:00
|
|
|
# ORCUS
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_LIBORCUS),)
|
2012-07-27 22:14:39 -04:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_orcus
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2012-09-09 16:29:10 +02:00
|
|
|
$(ORCUS_CFLAGS) \
|
2012-07-27 22:14:39 -04:00
|
|
|
)
|
2013-04-13 19:29:33 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(ORCUS_LIBS))
|
2013-04-13 16:17:29 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_orcus-parser
|
2012-07-27 22:14:39 -04:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-08-30 23:26:59 -04:00
|
|
|
else # !SYSTEM_LIBORCUS
|
2012-07-27 22:14:39 -04:00
|
|
|
|
2015-06-04 16:09:48 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
orcus \
|
|
|
|
orcus-parser \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_orcus
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,liborcus/include) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
orcus \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_orcus-parser
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,liborcus/include) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
orcus-parser \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !MSC
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
liborcus \
|
|
|
|
))
|
|
|
|
|
2012-08-31 10:11:32 -04:00
|
|
|
define gb_LinkTarget__use_orcus
|
2015-06-04 16:09:48 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),liborcus)
|
|
|
|
|
2012-09-09 15:29:43 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2013-05-06 23:35:13 +02:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,liborcus/include) \
|
2012-09-09 15:29:43 +02:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2015-06-04 16:09:48 +02:00
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-11-15 20:42:23 -05:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,liborcus)/src/liborcus/.libs -lorcus-0.13 \
|
2013-09-19 19:28:36 +02:00
|
|
|
)
|
2012-11-23 06:49:21 +01:00
|
|
|
|
2014-02-11 18:40:09 +01:00
|
|
|
$(if $(SYSTEM_BOOST), \
|
2015-06-04 16:09:48 +02:00
|
|
|
$(call gb_LinkTarget_add_ldflags,$(1),$(BOOST_LDFLAGS)) \
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(BOOST_SYSTEM_LIB)) \
|
2013-02-17 22:58:21 +01:00
|
|
|
)
|
2012-11-23 06:49:21 +01:00
|
|
|
|
2012-07-27 22:14:39 -04:00
|
|
|
endef
|
|
|
|
|
2013-04-11 23:11:21 -04:00
|
|
|
define gb_LinkTarget__use_orcus-parser
|
2015-06-04 16:09:48 +02:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),liborcus)
|
|
|
|
|
2013-12-17 21:18:46 -05:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,liborcus/include) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2015-06-04 16:09:48 +02:00
|
|
|
|
2013-09-19 19:28:36 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-11-15 20:42:23 -05:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,liborcus)/src/parser/.libs -lorcus-parser-0.13 \
|
2013-04-11 23:11:21 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2015-06-04 16:09:48 +02:00
|
|
|
endif # MSC
|
|
|
|
|
2012-08-30 23:26:59 -04:00
|
|
|
endif # SYSTEM_LIBORCUS
|
2012-05-27 22:50:41 +02:00
|
|
|
|
2013-11-12 16:44:40 +01:00
|
|
|
ifeq ($(ENABLE_EOT),TRUE)
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_LIBEOT),)
|
2013-11-12 16:44:40 +01:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_libeot
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(LIBEOT_CFLAGS) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(LIBEOT_LIBS))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
gb_ExternalProject__use_libeot :=
|
|
|
|
|
|
|
|
else # !SYSTEM_LIBEOT
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_libeot
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,libeot)/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,libeot)/.libs/libeot$(gb_StaticLibrary_PLAINEXT) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),libeot)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_libeot
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libeot)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_LIBEOT
|
|
|
|
|
|
|
|
else # !ENABLE_EOT
|
|
|
|
|
|
|
|
gb_LinkTarget__use_libeot :=
|
|
|
|
gb_ExternalProject__use_libeot :=
|
|
|
|
|
|
|
|
endif # ENABLE_EOT
|
|
|
|
|
2012-09-27 21:45:47 +02:00
|
|
|
### X11 stuff ###
|
|
|
|
|
2015-09-18 14:12:08 +02:00
|
|
|
ifeq ($(USING_X11), TRUE)
|
2012-09-27 21:45:47 +02:00
|
|
|
|
|
|
|
define gb_LinkTarget__use_Xrandr
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(XRANDR_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(XRANDR_LIBS) \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_Xrender
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
$(XRENDER_CFLAGS) \
|
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(XRENDER_LIBS) \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2015-09-18 14:12:08 +02:00
|
|
|
endif # USING_X11
|
2012-09-27 21:45:47 +02:00
|
|
|
|
2011-08-02 21:22:35 +03:00
|
|
|
|
2013-02-28 12:05:07 +00:00
|
|
|
gb_ExternalProject__use_nss3:=
|
|
|
|
|
2012-08-13 09:19:35 +03:00
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_NSS),)
|
2011-08-11 13:10:14 +02:00
|
|
|
|
2012-08-13 06:57:51 +02:00
|
|
|
define gb_LinkTarget__use_nss3
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),\
|
2012-11-19 16:40:33 +01:00
|
|
|
-DSYSTEM_NSS \
|
2012-08-13 06:57:51 +02:00
|
|
|
)
|
|
|
|
|
2011-08-11 13:10:14 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2011-11-02 21:16:53 +01:00
|
|
|
$(NSS_CFLAGS) \
|
2011-08-11 13:10:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2011-11-02 21:16:53 +01:00
|
|
|
$(NSS_LIBS) \
|
2011-08-11 13:10:14 +02:00
|
|
|
)
|
2011-08-11 12:47:00 +01:00
|
|
|
|
2011-08-11 13:10:14 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-13 06:57:51 +02:00
|
|
|
define gb_LinkTarget__use_plc4
|
|
|
|
$(call gb_LinkTarget__use_nss3,$(1))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-02-04 10:04:07 +01:00
|
|
|
define gb_LinkTarget__use_ssl3
|
|
|
|
$(call gb_LinkTarget__use_nss3,$(1))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
else # !SYSTEM_NSS
|
2011-08-11 13:10:14 +02:00
|
|
|
|
2014-03-13 19:51:19 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
|
|
|
|
nss \
|
|
|
|
))
|
|
|
|
|
2012-08-13 06:57:51 +02:00
|
|
|
define gb_LinkTarget__use_nss3
|
2013-01-01 09:39:36 -05:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),nss)
|
2012-08-13 06:57:51 +02:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2013-11-13 17:08:03 +01:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,nss)/dist/public/nss \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,nss)/dist/out/include \
|
2012-08-13 06:57:51 +02:00
|
|
|
)
|
|
|
|
|
2013-10-23 00:14:01 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-11-13 17:08:03 +01:00
|
|
|
$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/nspr4.lib \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/nss3.lib \
|
|
|
|
$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/smime3.lib \
|
2013-10-23 00:14:01 +02:00
|
|
|
)
|
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-11-13 17:08:03 +01:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib \
|
2013-10-23 00:14:01 +02:00
|
|
|
-lnspr4 \
|
|
|
|
-lnss3 \
|
|
|
|
-lsmime3 \
|
2012-08-13 06:57:51 +02:00
|
|
|
)
|
2013-10-23 00:14:01 +02:00
|
|
|
endif
|
2012-08-13 06:57:51 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2011-08-11 12:47:00 +01:00
|
|
|
define gb_LinkTarget__use_plc4
|
2013-01-01 09:39:36 -05:00
|
|
|
$(call gb_LinkTarget_use_package,$(1),nss)
|
2013-10-23 00:14:01 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-11-13 17:08:03 +01:00
|
|
|
$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/plc4.lib \
|
2011-08-11 13:10:14 +02:00
|
|
|
)
|
2013-10-23 00:14:01 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-11-13 17:08:03 +01:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib -lplc4 \
|
2013-10-23 00:14:01 +02:00
|
|
|
)
|
|
|
|
endif
|
2011-08-11 12:47:00 +01:00
|
|
|
|
2011-08-11 13:10:14 +02:00
|
|
|
endef
|
|
|
|
|
2013-02-04 10:04:07 +01:00
|
|
|
define gb_LinkTarget__use_ssl3
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),nss)
|
2013-10-23 00:14:01 +02:00
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-11-13 17:08:03 +01:00
|
|
|
$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib/ssl3.lib \
|
2013-02-04 10:04:07 +01:00
|
|
|
)
|
2013-10-23 00:14:01 +02:00
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2013-11-13 17:08:03 +01:00
|
|
|
-L$(call gb_UnpackedTarball_get_dir,nss)/dist/out/lib -lssl3 \
|
2013-10-23 00:14:01 +02:00
|
|
|
)
|
|
|
|
endif
|
2013-02-04 10:04:07 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-02-28 12:05:07 +00:00
|
|
|
define gb_ExternalProject__use_nss3
|
|
|
|
$(call gb_ExternalProject_use_package,$(1),nss)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
endif # SYSTEM_NSS
|
|
|
|
|
2015-11-15 04:39:24 +01:00
|
|
|
ifeq ($(ENABLE_BREAKPAD),TRUE)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_breakpad
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,breakpad)/src \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
2016-03-31 00:00:03 +02:00
|
|
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
|
|
|
breakpad \
|
2015-11-15 04:39:24 +01:00
|
|
|
)
|
|
|
|
else
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,breakpad)/src/client/linux/libbreakpad_client.a \
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),breakpad)
|
|
|
|
|
2016-02-23 15:08:47 +01:00
|
|
|
endef
|
|
|
|
|
2016-02-27 14:50:13 +01:00
|
|
|
endif # ENABLE_BREAKPAD
|
2015-11-15 04:39:24 +01:00
|
|
|
|
2017-11-24 10:44:42 +01:00
|
|
|
ifeq ($(ENABLE_GPGMEPP),TRUE)
|
|
|
|
|
2017-02-10 16:30:51 +01:00
|
|
|
ifneq ($(SYSTEM_GPGMEPP),)
|
2017-01-30 15:50:55 +01:00
|
|
|
|
2017-02-23 12:57:42 +01:00
|
|
|
gb_ExternalProject__use_gpgmepp:=
|
2017-02-17 09:32:05 +01:00
|
|
|
gb_ExternalProject__use_libassuan:=
|
|
|
|
gb_ExternalProject__use_libgpg-error:=
|
|
|
|
|
2017-02-23 12:57:42 +01:00
|
|
|
define gb_LinkTarget__use_gpgmepp
|
2017-01-30 15:50:55 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$$(INCLUDE) \
|
2017-02-10 16:30:51 +01:00
|
|
|
$$(GPGMEPP_CFLAGS) \
|
2017-01-30 15:50:55 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
2017-02-10 16:30:51 +01:00
|
|
|
$(GPGMEPP_LIBS) \
|
2017-01-30 15:50:55 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-11-23 18:06:59 +01:00
|
|
|
else ifneq ($(filter GPGMEPP,$(BUILD_TYPE)),) # NON-SYSTEM_GPGME
|
2017-02-15 16:00:16 +01:00
|
|
|
|
2017-02-23 12:57:42 +01:00
|
|
|
define gb_ExternalProject__use_gpgmepp
|
2017-11-15 21:31:07 +01:00
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),gpgmepp)
|
2017-02-17 09:32:05 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_libassuan
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libassuan)
|
|
|
|
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_libgpg-error
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),libgpg-error)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-11-15 21:31:07 +01:00
|
|
|
ifneq ($(filter WNT,$(OS)),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_libgpg-error
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),libgpg-error)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(GPG_ERROR_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-LIBPATH:$(call gb_UnpackedTarball_get_dir,libgpg-error)/src/.libs libgpg-error.lib \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_libassuan
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),libassuan)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(LIBASSUAN_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-LIBPATH:$(call gb_UnpackedTarball_get_dir,libassuan)/src/.libs libassuan.lib \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-02-23 12:57:42 +01:00
|
|
|
define gb_LinkTarget__use_gpgmepp
|
2017-02-15 16:00:16 +01:00
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
2017-11-15 21:31:07 +01:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,gpgmepp)/lang/cpp/src \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,gpgmepp)/src \
|
2017-02-24 16:54:36 +01:00
|
|
|
$$(GPG_ERROR_CFLAGS) \
|
2017-02-15 16:00:16 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2017-11-15 21:31:07 +01:00
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
|
|
|
gpgmepp \
|
2017-02-15 16:00:16 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-11-15 21:31:07 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|
|
|
libassuan \
|
|
|
|
libgpg-error \
|
|
|
|
))
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
|
|
|
|
gpgmepp \
|
|
|
|
))
|
|
|
|
|
2017-11-23 10:02:09 +01:00
|
|
|
$(eval $(call gb_Helper_register_executables_for_install,OOO,ooo, \
|
2017-11-24 21:02:22 +01:00
|
|
|
gpgme-w32spawn \
|
2017-11-23 10:02:09 +01:00
|
|
|
))
|
|
|
|
|
2017-11-15 21:31:07 +01:00
|
|
|
endif
|
|
|
|
|
2017-10-26 23:25:34 +02:00
|
|
|
ifneq ($(filter MACOSX LINUX,$(OS)),)
|
2017-03-26 05:57:10 +02:00
|
|
|
|
2017-11-15 21:31:07 +01:00
|
|
|
define gb_LinkTarget__use_gpgmepp
|
|
|
|
$(call gb_LinkTarget_use_package,$(1),gpgmepp)
|
|
|
|
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,gpgmepp)/lang/cpp/src \
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,gpgmepp)/src \
|
|
|
|
$$(GPG_ERROR_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,gpgmepp)/lang/cpp/src/.libs/ -lgpgmepp \
|
2017-12-08 09:48:09 +00:00
|
|
|
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),-L$(call gb_UnpackedTarball_get_dir,gpgmepp)/src/.libs/ -lgpgme) \
|
|
|
|
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),$$(GPG_ERROR_LIBS)) \
|
|
|
|
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),$$(LIBASSUAN_LIBS)) \
|
2017-11-15 21:31:07 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-03-25 01:28:07 +01:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
2017-11-15 21:31:07 +01:00
|
|
|
gpgmepp \
|
2017-03-25 01:28:07 +01:00
|
|
|
libassuan \
|
|
|
|
libgpg-error \
|
|
|
|
))
|
|
|
|
|
2017-01-30 15:50:55 +01:00
|
|
|
endif
|
|
|
|
|
2017-03-26 05:57:10 +02:00
|
|
|
endif
|
|
|
|
|
2017-11-24 10:44:42 +01:00
|
|
|
else # !ENABLE_GPGMEPP
|
|
|
|
|
|
|
|
gb_ExternalProject__use_gpgmepp :=
|
|
|
|
gb_ExternalProject__use_libassuan :=
|
|
|
|
gb_ExternalProject__use_libgpg-error :=
|
|
|
|
|
|
|
|
gb_LinkTarget__use_gpgmepp :=
|
|
|
|
gb_LinkTarget__use_libassuan :=
|
|
|
|
gb_LinkTarget__use_libgpg-error :=
|
|
|
|
|
|
|
|
endif # ENABLE_GPGMEPP
|
|
|
|
|
2015-07-08 11:20:19 +02:00
|
|
|
define gb_LinkTarget__use_dconf
|
|
|
|
$(call gb_LinkTarget_add_defs,$(1),$(DCONF_CFLAGS))
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(DCONF_LIBS))
|
|
|
|
endef
|
|
|
|
|
2011-09-15 14:01:27 +02:00
|
|
|
### Jars ############################################################
|
|
|
|
|
2018-04-11 15:39:57 +01:00
|
|
|
ifneq ($(SYSTEM_HSQLDB),)
|
|
|
|
|
|
|
|
define gb_Jar__use_hsqldb
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(HSQLDB_JAR))
|
|
|
|
endef
|
|
|
|
define gb_JunitTest__use_hsqldb
|
|
|
|
$(call gb_JunitTest_use_system_jar,$(1),$(HSQLDB_JAR))
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_HSQLDB
|
|
|
|
|
|
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
|
|
|
$(eval $(call gb_Helper_register_jars_for_install,OOO,ooo, \
|
|
|
|
hsqldb \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
|
|
|
define gb_Jar__use_hsqldb
|
|
|
|
$(call gb_Jar_use_jar,$(1),hsqldb)
|
|
|
|
endef
|
|
|
|
define gb_JunitTest__use_hsqldb
|
|
|
|
$(call gb_JunitTest_use_jar,$(1),hsqldb)
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_HSQLDB
|
|
|
|
|
|
|
|
|
2014-05-23 07:43:19 +02:00
|
|
|
ifeq ($(ENABLE_SCRIPTING_BEANSHELL),TRUE)
|
|
|
|
|
2014-02-11 19:39:18 +01:00
|
|
|
ifneq ($(SYSTEM_BSH),)
|
2011-10-04 09:44:48 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_bsh
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(BSH_JAR))
|
2011-10-04 09:44:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_BSH
|
|
|
|
|
2014-05-19 10:20:37 +02:00
|
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
2014-03-18 20:38:30 +01:00
|
|
|
$(eval $(call gb_Helper_register_jars_for_install,OOO,extensions_bsh, \
|
2012-08-17 11:02:49 +02:00
|
|
|
bsh \
|
|
|
|
))
|
2014-05-19 10:20:37 +02:00
|
|
|
endif
|
2012-08-17 11:02:49 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_bsh
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),bsh)
|
2011-10-04 09:44:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_BSH
|
|
|
|
|
2014-05-23 07:43:19 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ENABLE_SCRIPTING_JAVASCRIPT),TRUE)
|
2011-09-15 14:01:27 +02:00
|
|
|
|
2014-02-11 19:42:28 +01:00
|
|
|
ifneq ($(SYSTEM_RHINO),)
|
2012-05-06 12:49:33 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_rhino
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(RHINO_JAR))
|
2012-05-06 12:49:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_RHINO
|
|
|
|
|
2014-05-19 10:20:37 +02:00
|
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
2014-03-18 20:50:02 +01:00
|
|
|
$(eval $(call gb_Helper_register_jars_for_install,OOO,extensions_rhino, \
|
2012-08-17 11:02:49 +02:00
|
|
|
js \
|
|
|
|
))
|
2014-05-19 10:20:37 +02:00
|
|
|
endif
|
2012-08-17 11:02:49 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_rhino
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),js)
|
2012-05-06 12:49:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_RHINO
|
|
|
|
|
2014-05-23 07:43:19 +02:00
|
|
|
endif
|
|
|
|
|
2014-02-11 19:39:18 +01:00
|
|
|
ifneq ($(SYSTEM_APACHE_COMMONS),)
|
2012-04-07 10:07:35 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_commons-logging
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(COMMONS_LOGGING_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
2012-10-05 21:17:25 +02:00
|
|
|
gb_ExternalProject__use_commons-logging :=
|
2012-04-07 10:07:35 +02:00
|
|
|
|
|
|
|
else # !SYSTEM_APACHE_COMMONS
|
|
|
|
|
2014-05-19 10:20:37 +02:00
|
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
2014-03-18 21:54:33 +01:00
|
|
|
$(eval $(call gb_Helper_register_jars_for_install,OOO,reportbuilder,\
|
2014-08-18 13:52:32 +02:00
|
|
|
commons-logging-$(COMMONS_LOGGING_VERSION) \
|
2013-10-24 23:10:27 +02:00
|
|
|
))
|
2014-05-19 10:20:37 +02:00
|
|
|
endif
|
2012-04-07 10:07:35 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_commons-logging
|
2013-10-25 18:40:48 +02:00
|
|
|
$(call gb_Jar_use_external_project,$(1),apache_commons_logging)
|
2014-08-18 13:52:32 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),commons-logging-$(COMMONS_LOGGING_VERSION))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
2012-10-05 21:17:25 +02:00
|
|
|
define gb_ExternalProject__use_commons-logging
|
2013-10-26 20:17:52 +02:00
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),apache_commons_logging)
|
2012-10-05 21:17:25 +02:00
|
|
|
endef
|
2012-04-07 10:07:35 +02:00
|
|
|
|
|
|
|
endif # SYSTEM_APACHE_COMMONS
|
|
|
|
|
|
|
|
|
2014-02-11 19:35:22 +01:00
|
|
|
ifneq ($(SYSTEM_JFREEREPORT),)
|
2012-04-07 10:07:35 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_flow-engine
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(JFREEREPORT_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_flute
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(FLUTE_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libbase
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBBASE_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libfonts
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBFONTS_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libformula
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBFORMULA_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_liblayout
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBLAYOUT_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libloader
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBLOADER_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_librepository
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBREPOSITORY_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libserializer
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBSERIALIZER_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libxml
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(LIBXML_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_sac
|
|
|
|
$(call gb_Jar_use_system_jar,$(1),$(SAC_JAR))
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
else # !SYSTEM_JFREEREPORT
|
|
|
|
|
2014-05-19 10:20:37 +02:00
|
|
|
ifeq ($(ENABLE_JAVA),TRUE)
|
2014-03-18 22:03:00 +01:00
|
|
|
$(eval $(call gb_Helper_register_jars_for_install,OOO,reportbuilder,\
|
2013-10-25 21:01:58 +02:00
|
|
|
flow-engine \
|
2012-08-17 11:02:49 +02:00
|
|
|
flute-1.1.6 \
|
|
|
|
libbase-1.1.6 \
|
|
|
|
libfonts-1.1.6 \
|
|
|
|
libformula-1.1.7 \
|
2013-10-25 21:01:58 +02:00
|
|
|
liblayout \
|
2012-08-17 11:02:49 +02:00
|
|
|
libloader-1.1.6 \
|
|
|
|
librepository-1.1.6 \
|
|
|
|
libserializer-1.1.6 \
|
|
|
|
libxml-1.1.7 \
|
|
|
|
sac \
|
|
|
|
))
|
2014-05-19 10:20:37 +02:00
|
|
|
endif
|
2012-08-17 11:02:49 +02:00
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_flow-engine
|
2013-10-25 21:01:58 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),flow-engine)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_flute
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),flute-1.1.6)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libbase
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),libbase-1.1.6)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libfonts
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),libfonts-1.1.6)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libformula
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),libformula-1.1.7)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_liblayout
|
2013-10-25 21:01:58 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),liblayout)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libloader
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),libloader-1.1.6)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_librepository
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),librepository-1.1.6)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libserializer
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),libserializer-1.1.6)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_libxml
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),libxml-1.1.7)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-08-15 17:41:25 +02:00
|
|
|
define gb_Jar__use_sac
|
2012-08-17 11:02:49 +02:00
|
|
|
$(call gb_Jar_use_jar,$(1),sac)
|
2012-04-07 10:07:35 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_JFREEREPORT
|
|
|
|
|
2012-12-02 10:51:37 +01:00
|
|
|
|
|
|
|
# Executables
|
|
|
|
|
2012-12-30 12:27:04 +01:00
|
|
|
# FIXME: the library target should be for build too
|
|
|
|
define gb_Executable__register_bestreversemap
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,bestreversemap,\
|
2016-12-15 10:15:59 +00:00
|
|
|
$(if $(filter $(OS),ANDROID),,$(if $(filter TRUE,$(DISABLE_DYNLOADING)),,$(call gb_Library_get_target,sal_textenc))) \
|
2012-12-30 12:27:04 +01:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2012-12-30 13:11:43 +01:00
|
|
|
# TODO depending on the whole URE might be overkill, but I do not have a
|
|
|
|
# Windows machine to debug it...
|
|
|
|
# FIXME: the library target should be for build too
|
|
|
|
define gb_Executable__register_climaker
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,climaker,\
|
|
|
|
$(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
|
2015-11-27 12:49:34 +01:00
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_URE_MISC_FOLDER)/services.rdb \
|
2013-04-24 15:11:39 +03:00
|
|
|
$(call gb_UnoApi_get_target,udkapi) \
|
2015-11-27 12:49:34 +01:00
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_URE_ETC_FOLDER)/$(call gb_Helper_get_rcfile,uno)
|
2013-05-07 20:41:41 +02:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2014-01-08 13:49:46 +01:00
|
|
|
define gb_Executable__register_cppumaker
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,cppumaker,\
|
2016-12-15 10:15:59 +00:00
|
|
|
$(if $(filter $(OS),ANDROID),,$(if $(filter TRUE,$(DISABLE_DYNLOADING)),,$(call gb_Library_get_target,sal_textenc))) \
|
2014-01-08 13:49:46 +01:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2013-05-16 09:17:57 +02:00
|
|
|
# This is used to determine what we need for 'build' platform.
|
2015-11-27 12:49:34 +01:00
|
|
|
# FIXME: the library target should be for build too
|
2013-06-14 12:48:20 +02:00
|
|
|
define gb_Executable__register_gengal
|
2013-06-17 10:41:18 +02:00
|
|
|
$(call gb_Executable_add_runtime_dependencies,gengal,\
|
2013-05-07 20:41:41 +02:00
|
|
|
$(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
|
2014-08-04 17:23:54 +02:00
|
|
|
$(call gb_Package_get_target_for_build,postprocess_images) \
|
2013-09-27 10:58:28 +02:00
|
|
|
$(call gb_Package_get_target_for_build,postprocess_registry) \
|
2015-12-05 07:05:37 +01:00
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_URE_ETC_FOLDER)/$(call gb_Helper_get_rcfile,uno) \
|
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,fundamental) \
|
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,louno) \
|
2015-11-27 12:49:34 +01:00
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_URE_MISC_FOLDER)/services.rdb \
|
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_ETC_FOLDER)/services/services.rdb \
|
2013-05-07 20:41:41 +02:00
|
|
|
$(call gb_UnoApi_get_target,offapi) \
|
|
|
|
$(call gb_UnoApi_get_target,udkapi) \
|
2012-12-30 13:11:43 +01:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2014-02-11 19:17:42 +01:00
|
|
|
ifeq ($(SYSTEM_ICU),)
|
2012-12-30 12:27:04 +01:00
|
|
|
|
|
|
|
define gb_Executable__register_gendict
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,gendict,\
|
|
|
|
$(call gb_Package_get_target_for_build,icu) \
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(call gb_Package_get_target_for_build,icu_ure) \
|
2012-12-30 12:27:04 +01:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2012-12-30 13:11:43 +01:00
|
|
|
define gb_Executable__register_idlc
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,idlc,\
|
2013-10-20 20:43:46 +02:00
|
|
|
$(call gb_ExternalExecutable_get_dependencies,ucpp) \
|
2012-12-30 13:11:43 +01:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2012-12-30 12:27:04 +01:00
|
|
|
define gb_Executable__register_localize
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,localize,\
|
2017-06-11 20:56:30 +01:00
|
|
|
$(foreach exec,cfgex helpex propex treex ulfex xrmex,\
|
2012-12-30 12:27:04 +01:00
|
|
|
$(call gb_Executable_get_runtime_dependencies,$(exec)) \
|
|
|
|
) \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2013-09-21 01:39:41 +02:00
|
|
|
# FIXME ure/services.rdb needs cleanup
|
2013-04-24 10:42:40 +02:00
|
|
|
# The dependencies on ure/services.rdb and udkapi.rdb are implicitly required
|
2012-12-30 12:27:04 +01:00
|
|
|
# due to the settings for URE_SERVICES and URE_TYPES in cppuhelper/source/unorc:
|
|
|
|
# FIXME: the library target should be for build too
|
|
|
|
define gb_Executable__register_saxparser
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,saxparser,\
|
|
|
|
$(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
|
2014-10-13 16:59:33 +02:00
|
|
|
$(call gb_Package_get_target_for_build,instsetoo_native_setup_ure) \
|
2013-05-24 12:24:27 +02:00
|
|
|
$(call gb_Rdb_get_target_for_build,saxparser) \
|
2016-08-17 01:14:54 +03:00
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_URE_MISC_FOLDER_FOR_BUILD)/services.rdb \
|
2013-04-24 15:11:39 +03:00
|
|
|
$(call gb_UnoApi_get_target,udkapi) \
|
2012-12-30 12:27:04 +01:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2013-04-24 10:42:40 +02:00
|
|
|
# NOTE: the dependencies on ure/services.rdb and udkapi.rdb are implicitly
|
2012-12-30 12:27:04 +01:00
|
|
|
# required due to the settings for URE_SERVICES and URE_TYPES in
|
|
|
|
# cppuhelper/source/unorc
|
|
|
|
# FIXME: the library target should be for build too
|
|
|
|
define gb_Executable__register_uno
|
|
|
|
$(call gb_Executable_add_runtime_dependencies,uno,\
|
|
|
|
$(call gb_Library_get_target,$(gb_CPPU_ENV)_uno) \
|
2015-11-27 12:49:34 +01:00
|
|
|
$(INSTROOT_FOR_BUILD)/$(LIBO_URE_MISC_FOLDER)/services.rdb \
|
2013-04-24 15:11:39 +03:00
|
|
|
$(call gb_UnoApi_get_target,udkapi) \
|
2012-12-30 12:27:04 +01:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
# External executables
|
|
|
|
|
2014-02-11 16:49:19 +01:00
|
|
|
ifneq ($(SYSTEM_LIBXML_FOR_BUILD),)
|
2012-12-02 10:51:37 +01:00
|
|
|
|
|
|
|
gb_ExternalExecutable__register_xmllint :=
|
|
|
|
|
|
|
|
else # ! SYSTEM_LIBXML_FOR_BUILD
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_xmllint
|
2017-09-14 14:54:07 +02:00
|
|
|
$(call gb_ExternalExecutable_set_internal,xmllint,$(WORKDIR_FOR_BUILD)/UnpackedTarball/libxml2/$(if $(filter MSC,$(COM)),win32/bin.msvc)/xmllint$(gb_Executable_EXT_for_build),libxml2)
|
2014-07-28 10:38:49 +02:00
|
|
|
$(call gb_ExternalExecutable_add_dependencies,xmllint,\
|
|
|
|
$(if $(filter WNT,$(OS)),$(call gb_Package_get_target,icu_ure)) \
|
2017-09-14 14:54:07 +02:00
|
|
|
$(call gb_Package_get_target,libxml2) \
|
2014-07-28 10:38:49 +02:00
|
|
|
)
|
2012-12-02 10:51:37 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_LIBXML_FOR_BUILD
|
|
|
|
|
2014-02-11 15:57:18 +01:00
|
|
|
ifneq ($(SYSTEM_LIBXSLT_FOR_BUILD),)
|
2012-12-02 10:51:37 +01:00
|
|
|
|
|
|
|
gb_ExternalExecutable__register_xsltproc :=
|
|
|
|
|
|
|
|
else # ! SYSTEM_LIBXSLT_FOR_BUILD
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_xsltproc
|
2017-09-14 15:26:10 +02:00
|
|
|
$(call gb_ExternalExecutable_set_internal,xsltproc,$(WORKDIR_FOR_BUILD)/UnpackedTarball/libxslt/$(if $(filter MSC,$(COM)),win32/bin.msvc,xsltproc)/xsltproc$(gb_Executable_EXT_for_build),libxslt)
|
2014-07-28 10:38:49 +02:00
|
|
|
$(call gb_ExternalExecutable_add_dependencies,xsltproc,\
|
|
|
|
$(if $(filter WNT,$(OS)),$(call gb_Package_get_target,icu_ure)) \
|
2017-09-14 14:54:07 +02:00
|
|
|
$(call gb_Package_get_target,libxml2) \
|
2017-09-14 15:26:10 +02:00
|
|
|
$(call gb_Package_get_target,libxslt) \
|
2014-07-28 10:38:49 +02:00
|
|
|
)
|
2012-12-02 10:51:37 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_LIBXSLT_FOR_BUILD
|
|
|
|
|
2013-10-20 20:43:46 +02:00
|
|
|
ifneq (,$(SYSTEM_UCPP))
|
|
|
|
|
|
|
|
gb_ExternalExecutable__register_ucpp :=
|
|
|
|
|
|
|
|
else # ! SYSTEM_UCPP
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_ucpp
|
2013-10-21 08:17:32 +02:00
|
|
|
$(call gb_ExternalExecutable_set_internal,ucpp,$(INSTDIR_FOR_BUILD)/$(SDKDIRNAME)/bin/ucpp$(gb_Executable_EXT_for_build))
|
2013-10-20 20:43:46 +02:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # SYSTEM_UCPP
|
|
|
|
|
2013-03-05 22:03:38 +01:00
|
|
|
ifeq (,$(PYTHON_FOR_BUILD))
|
2012-12-02 10:51:37 +01:00
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_python
|
2013-03-19 17:27:01 +01:00
|
|
|
ifeq ($(OS),MACOSX)
|
|
|
|
|
|
|
|
# use set_external, to avoid having the command added as prerequisite for the
|
|
|
|
# targets that make use of it. (Otherwise make will choke as it doesn't have a
|
|
|
|
# matching rule to build that specific file)
|
|
|
|
$(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))
|
|
|
|
# the Zip ensures that internal python has been built (cannot use the Package
|
|
|
|
# target, as that is not used on Mac)
|
2013-05-16 13:36:24 +02:00
|
|
|
$(call gb_ExternalExecutable_add_dependencies,python,$(call gb_GeneratedPackage_get_target_for_build,python3))
|
2013-03-19 17:27:01 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2013-09-22 19:59:37 +03:00
|
|
|
$(call gb_ExternalExecutable_set_internal,python,$(INSTROOT)/$(LIBO_BIN_FOLDER)/$(if $(filter WNT,$(OS)),python-core-$(PYTHON_VERSION)/bin/python.exe,python.bin))
|
2014-03-19 11:24:13 +01:00
|
|
|
$(call gb_ExternalExecutable_set_precommand,python,$(subst $$,$$$$,$(gb_Python_PRECOMMAND)))
|
2013-03-19 17:27:01 +01:00
|
|
|
$(call gb_ExternalExecutable_add_dependencies,python,$(call gb_Package_get_target_for_build,python3))
|
|
|
|
|
|
|
|
endif
|
2012-12-02 10:51:37 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-03-05 22:03:38 +01:00
|
|
|
else
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_python
|
|
|
|
$(call gb_ExternalExecutable_set_external,python,$(PYTHON_FOR_BUILD))
|
2018-02-21 15:51:11 +01:00
|
|
|
$(call gb_ExternalExecutable_set_precommand,python,PYTHONPATH=$$$$PYTHONPATH$$$${PYTHONPATH:+$$$${PYPATH:+:}}$$$$PYPATH)
|
2013-03-05 22:03:38 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif # PYTHON_FOR_BUILD
|
2012-12-02 10:51:37 +01:00
|
|
|
|
2012-12-29 12:56:24 +01:00
|
|
|
ifneq ($(SYSTEM_GENBRK),)
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_genbrk
|
|
|
|
$(call gb_ExternalExecutable_set_external,genbrk,$(SYSTEM_GENBRK))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # ! SYSTEM_GENBRK
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_genbrk
|
2014-04-18 18:34:40 +02:00
|
|
|
$(call gb_ExternalExecutable_set_internal,genbrk,$(WORKDIR_FOR_BUILD)/UnpackedTarball/icu/source/bin/genbrk$(gb_Executable_EXT_for_build),icu)
|
2014-03-19 10:39:40 +01:00
|
|
|
$(call gb_ExternalExecutable_set_precommand,genbrk,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND)))
|
2012-12-29 12:56:24 +01:00
|
|
|
$(call gb_ExternalExecutable_add_dependencies,genbrk,\
|
|
|
|
$(call gb_Package_get_target_for_build,icu) \
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(call gb_Package_get_target_for_build,icu_ure) \
|
2012-12-29 12:56:24 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(SYSTEM_GENCCODE),)
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_genccode
|
|
|
|
$(call gb_ExternalExecutable_set_external,genccode,$(SYSTEM_GENCCODE))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # ! SYSTEM_GENCCODE
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_genccode
|
2014-04-18 18:34:40 +02:00
|
|
|
$(call gb_ExternalExecutable_set_internal,genccode,$(WORKDIR_FOR_BUILD)/UnpackedTarball/icu/source/bin/genccode$(gb_Executable_EXT_for_build),icu)
|
2014-03-19 10:39:40 +01:00
|
|
|
$(call gb_ExternalExecutable_set_precommand,genccode,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND)))
|
2012-12-29 12:56:24 +01:00
|
|
|
$(call gb_ExternalExecutable_add_dependencies,genccode,\
|
|
|
|
$(call gb_Package_get_target_for_build,icu) \
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(call gb_Package_get_target_for_build,icu_ure) \
|
2012-12-29 12:56:24 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(SYSTEM_GENCMN),)
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_gencmn
|
|
|
|
$(call gb_ExternalExecutable_set_external,gencmn,$(SYSTEM_GENCMN))
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
else # ! SYSTEM_GENCMN
|
|
|
|
|
|
|
|
define gb_ExternalExecutable__register_gencmn
|
2014-04-18 18:34:40 +02:00
|
|
|
$(call gb_ExternalExecutable_set_internal,gencmn,$(WORKDIR_FOR_BUILD)/UnpackedTarball/icu/source/bin/gencmn$(gb_Executable_EXT_for_build),icu)
|
2014-03-19 10:39:40 +01:00
|
|
|
$(call gb_ExternalExecutable_set_precommand,gencmn,$(subst $$,$$$$,$(gb_ICU_PRECOMMAND)))
|
2012-12-29 12:56:24 +01:00
|
|
|
$(call gb_ExternalExecutable_add_dependencies,gencmn,\
|
|
|
|
$(call gb_Package_get_target_for_build,icu) \
|
Move i18nlangtag lib to URELIB
...as stoc/Library_javavm.mk depends on it since
9b09a217c79e8a35fc4de54c89ef49fbf8f72752 "Resolves: #i86470# Wrong Java locale
when using 'nl' and 'fr'". The i18nlangtag lib in turn depends on libs from
external/liblangtag and external/icu, so those needed to be moved to URELIB,
too.
On Windows, the external icu package was already split into icu and icu_ure
(because "libxml2 is in URE and depends on icuuc*.dll on Windows"), so use that
splitting on all platforms. (However, the corresponding changes that were
necessary in RepositoryExternal.mk suggest that they had been missing for the
split Windows case until now, and things had happened to work by accident?)
On macOS, a library's install name reflects its (URELIB, OOO, ...) layer, and in
external/icu/icu4c-build.patch there is only a single place to set that for all
libs from external/icu. This patch changes that from OOO to URELIB, but for the
icui18n lib that should stay at OOO. The hack to make it URELIB nonetheless
works for now. To clean this up again, either the whole of icu could go into
URE (dropping the icu vs. icu_ure package split completely), or the macOS layers
URELIB and OOO could be combined into one (as the libs end up in the same
directory anyway).
Change-Id: Idc262fa41481d06ba2cae86ad7629cdccb392c07
Reviewed-on: https://gerrit.libreoffice.org/30272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-25 16:46:35 +02:00
|
|
|
$(call gb_Package_get_target_for_build,icu_ure) \
|
2012-12-29 12:56:24 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2015-02-02 19:49:37 +00:00
|
|
|
ifeq (OWNCLOUD_ANDROID_LIB,$(filter OWNCLOUD_ANDROID_LIB,$(BUILD_TYPE)))
|
|
|
|
|
|
|
|
$(eval $(call gb_Helper_register_jars,OXT,\
|
|
|
|
owncloud-android-library \
|
|
|
|
))
|
|
|
|
|
|
|
|
define gb_Jar__use_owncloud_android_lib
|
|
|
|
$(call gb_Jar_use_external_project,$(1),owncloud-android-lib)
|
|
|
|
$(call gb_Jar_use_external_jar,$(1),$(call gb_UnpackedTarball_get_dir,owncloud-android-lib)/bin/owncloud-android-library.jar)
|
|
|
|
endef
|
|
|
|
define gb_ExternalProject__use_owncloud_android_lib
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),owncloud_android_lib)
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2015-07-03 11:58:27 +02:00
|
|
|
ifneq ($(ENABLE_ONLINE_UPDATE_MAR),)
|
|
|
|
ifneq ($(SYSTEM_BZIP2),)
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_bzip2
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
$(BZIP2_CFLAGS) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),$(BZIP2_LIBS))
|
|
|
|
|
|
|
|
endef
|
2015-07-03 13:46:38 +02:00
|
|
|
|
2015-07-03 11:58:27 +02:00
|
|
|
gb_ExternalProject__use_bzip2 :=
|
|
|
|
|
|
|
|
else # !SYSTEM_BZIP2
|
|
|
|
|
|
|
|
define gb_LinkTarget__use_bzip2
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,bzip2) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
2015-07-14 14:36:37 -07:00
|
|
|
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
$(call gb_UnpackedTarball_get_dir,bzip2)/libbz2.lib \
|
|
|
|
)
|
|
|
|
else
|
2015-07-03 13:46:38 +02:00
|
|
|
$(call gb_LinkTarget_add_libs,$(1),\
|
|
|
|
-L$(call gb_UnpackedTarball_get_dir,bzip2) -lbz2 \
|
|
|
|
)
|
2015-07-14 14:36:37 -07:00
|
|
|
endif
|
|
|
|
|
2015-07-07 09:24:45 +02:00
|
|
|
$(call gb_LinkTarget_use_external_project,$(1),bzip2)
|
2015-07-03 11:58:27 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define gb_ExternalProject__use_bzip2
|
|
|
|
$(call gb_ExternalProject_use_external_project,$(1),bzip2)
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-04-12 20:06:04 +02:00
|
|
|
define gb_LinkTarget__use_clew
|
|
|
|
$(call gb_LinkTarget_set_include,$(1), \
|
|
|
|
-I$(SRCDIR)/external/clew/source/include \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),clew)
|
|
|
|
endef
|
|
|
|
|
2017-03-06 18:49:00 +01:00
|
|
|
ifneq ($(ENABLE_PDFIUM),)
|
2017-02-08 11:19:39 +01:00
|
|
|
define gb_LinkTarget__use_pdfium
|
|
|
|
$(call gb_LinkTarget_set_include,$(1),\
|
|
|
|
-I$(call gb_UnpackedTarball_get_dir,pdfium)/public \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
)
|
|
|
|
$(call gb_LinkTarget_use_libraries,$(1),pdfium)
|
|
|
|
endef
|
|
|
|
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo,\
|
|
|
|
pdfium \
|
|
|
|
))
|
2017-03-06 18:49:00 +01:00
|
|
|
endif
|
2017-02-08 11:19:39 +01:00
|
|
|
|
tdf#108580: integrate vc_redist.exe into MSI
... in InstallUISequense.
Use --with-vcredist-dir to point to a directory with vc_redist.x64.exe
and/or vc_redist.x86.exe. Use --without-vcredist-dir (or
--with-vcredist-dir=no) if you don't want to ship it as part of
installer and want to silence the configure warning.
VCRedist 2015 version 14.0.24215.1 is available at
https://www.microsoft.com/en-us/download/details.aspx?id=53840
Since VisualStudio 2015, VC redist merge module that we used before
started to work differently: it installs the UCRT only on WinXP,
but not on later OSes (Vista to 8.1) which may lack the UCRT (Win10
has it out of the box). The merge module only installs VCRuntime on
those systems, which still leaves us with "api-ms-*.dll is missing"
problem.
(https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/
gives more information on VCRedist refactoring background.)
Since commit 71d9a61302e65fe091cf70c13fa72b3df09b7e3a, we use a
workaround described at the page mentioned above as "App-local
deployment of the Universal CRT". We just copy all UCRT DLLs to
LibreOffice/program. This has a drawback though, that our UCRT
is not updated by Windows Update, so users would rely on LibreOffice
updates in case of some vulnerabilities in UCRT (and they could
even not realize they have that problem).
MS recommends to install UCRT using EXEs they provide from their
site. The EXEs install both VCRuntimes and UCRTs, along with
required patches, for all Windows versions (Windows XP through
Windows 10, where they only install VCRuntimes); the installed
libraries are managed by system's update mechanism. But those EXEs
cannot be used in MSI custom actions inside InstallExecuteSequence,
because they use MSI themselves.
So this patch integrates the vc_redist.xXX.exe into MSI binary
table, and uses custom action to run the EXE after ExecuteAction
in InstallUISequence. This will show the user a VCRedist install
window after the main LibreOffice installation finishes; no user
interaction is required (except for one additional UAC request),
and errors are ignored.
Since this installation takes care of both VCRuntime and UCRT,
we can ultimately drop both the app-local workaround, and
vcredist merge module (so VCRuntime would also be updated by
system). The former is done here: this reverts commit
71d9a61302e65fe091cf70c13fa72b3df09b7e3a.
This approach has its drawback: if one wants to use unattended
installation (without UI; one example is deployment using
ActiveDirectory GPO), then InstallUISequence is not run, and so
VCRedist isn't installed. In this case, one should install
VCRedist separately. Supposedly this should not be huge problem,
because this is the case for many existing applications that need
separate VCRedist deployment in these scenarios, and unattended
installation is advanced stuff that requires prepared user. A
notice would be required in release notes and FAQ, though.
Change-Id: Ia6a16be60af8a08f41ea7c3dbd457d8f89006006
Reviewed-on: https://gerrit.libreoffice.org/46356
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-12-13 00:04:03 +03:00
|
|
|
$(eval $(call gb_Helper_register_packages_for_install,vcredist_exe_binarytable,\
|
|
|
|
$(if $(VCREDIST_DIR),vcredist_exe) \
|
|
|
|
))
|
|
|
|
|
2011-04-01 20:49:35 +00:00
|
|
|
# vim: set noet sw=4 ts=4:
|