368e23a390
In dmake jfreereport build system an intermediate directory classes was used. All artefacts that created during build were copied there, including external apache-commons-logging.jar. Finally java system property was used -Dlib=classes. In gbuild we don't want to mess with copying artefacts around. The artefacts are packaging in $(OUTDIR)/bin and java system property points to -Dlib=$(OUTDIR)/bin. However the dependencies must be set inside jfreereport module, because of jar interdependency: liblayout depends on other jars and flow-engine depends on liblayout. This is achived with new function gb_ExternalProject_use_packages. Special treatment is necessary when system apache-commons library is used, in which case it is not reside in $(OUTDIR)/bin, but in /usr/share/java/commons-logging.jar or in custom location. For that purpose the both patches: flow-engine.patch and liblayout.patch were extended and new java system property was introduced -Dcommons-logging.jar and passed to the build.xml. A dependency from liblayout to apache-commons-logging is set. jfreereport was moved to tail_build module. Change-Id: I32e39bb5f4f825f182c3bd3cfc1a13ea1c38321e Reviewed-on: https://gerrit.libreoffice.org/761 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
53 lines
1.8 KiB
Makefile
53 lines
1.8 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# 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/.
|
|
#
|
|
|
|
$(eval $(call gb_Module_Module,jfreereport))
|
|
|
|
ifneq ($(SOLAR_JAVA),)
|
|
ifneq ($(filter JFREEREPORT,$(BUILD_TYPE)),)
|
|
$(eval $(call gb_Module_add_targets,jfreereport,\
|
|
UnpackedTarball_jfreereport_sac \
|
|
ExternalProject_jfreereport_sac \
|
|
Package_jfreereport_sac \
|
|
UnpackedTarball_jfreereport_libbase \
|
|
ExternalProject_jfreereport_libbase \
|
|
Package_jfreereport_libbase \
|
|
UnpackedTarball_jfreereport_flute \
|
|
ExternalProject_jfreereport_flute \
|
|
Package_jfreereport_flute \
|
|
UnpackedTarball_jfreereport_libloader \
|
|
ExternalProject_jfreereport_libloader \
|
|
Package_jfreereport_libloader \
|
|
UnpackedTarball_jfreereport_libxml \
|
|
ExternalProject_jfreereport_libxml \
|
|
Package_jfreereport_libxml \
|
|
UnpackedTarball_jfreereport_libformula \
|
|
ExternalProject_jfreereport_libformula \
|
|
Package_jfreereport_libformula \
|
|
UnpackedTarball_jfreereport_libfonts \
|
|
ExternalProject_jfreereport_libfonts \
|
|
Package_jfreereport_libfonts \
|
|
ExternalProject_jfreereport_librepository \
|
|
UnpackedTarball_jfreereport_librepository \
|
|
Package_jfreereport_librepository \
|
|
UnpackedTarball_jfreereport_libserializer \
|
|
ExternalProject_jfreereport_libserializer \
|
|
Package_jfreereport_libserializer \
|
|
UnpackedTarball_jfreereport_liblayout \
|
|
ExternalProject_jfreereport_liblayout \
|
|
Package_jfreereport_liblayout \
|
|
UnpackedTarball_jfreereport_flow_engine \
|
|
ExternalProject_jfreereport_flow_engine \
|
|
Package_jfreereport_flow_engine \
|
|
Package_jfreereport_version \
|
|
))
|
|
endif
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|