Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / apache-commons / ExternalProject_apache_commons_logging.mk
bloba75558eaa0b4f89e2c8ce0086c10eed12d89379f
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 # for RSCREVISION
11 include $(SOLARENV)/inc/minor.mk
13 $(eval $(call gb_ExternalProject_ExternalProject,apache_commons_logging))
15 $(eval $(call gb_ExternalProject_use_unpacked,apache_commons_logging,apache_commons_logging))
17 # TODO: this should go into RepositoryExternal.mk
18 ifneq ($(SYSTEM_TOMCAT),YES)
19 $(eval $(call gb_ExternalProject_use_packages,apache_commons_logging,\
20 tomcat_inc \
22 endif
24 $(eval $(call gb_ExternalProject_register_targets,apache_commons_logging,\
25 build \
28 $(call gb_ExternalProject_get_state_target,apache_commons_logging,build) :
29 cd "$(call gb_UnpackedTarball_get_dir,apache_commons_logging)" && \
30 ANT_OPTS="$$ANT_OPTS -Dfile.encoding=ISO-8859-1" \
31 $(ICECREAM_RUN) "$(ANT)" \
32 -q \
33 -f build.xml \
34 -Dbuild.label="build-$(RSCREVISION)" \
35 $(if $(filter YES,$(SYSTEM_TOMCAT))\
36 ,-Dservletapi.jar=$(SERVLETAPI_JAR) \
37 ,-Dservletapi.jar=$(SOLARVER)/$(INPATH)/bin/servlet-api.jar \
39 $(if $(filter yes,$(JAVACISGCJ))\
40 ,-Dbuild.compiler=gcj \
41 ,-Dant.build.javac.source=$(JAVA_SOURCE_VER) \
42 -Dant.build.javac.target=$(JAVA_TARGET_VER) \
43 ) \
44 $(if $(debug),-Dbuild.debug="on") \
45 compile build-jar && \
46 touch $@
48 # vim: set noet sw=4 ts=4: