Paren fix for Ubu 10.04 build (and fdo#58417 ?)
[LibreOffice.git] / rhino / ExternalProject_rhino.mk
blob9b3703c663dadf7526122a794d789ae71c609b88
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,rhino))
15 $(eval $(call gb_ExternalProject_use_unpacked,rhino,rhino))
17 $(eval $(call gb_ExternalProject_register_targets,rhino,\
18 build \
21 $(call gb_ExternalProject_get_state_target,rhino,build) :
22 cd "$(call gb_UnpackedTarball_get_dir,rhino)" && \
23 $(ICECREAM_RUN) "$(ANT)" \
24 -q \
25 -f build.xml \
26 -Dbuild.label="build-$(RSCREVISION)" \
27 -DTARFILE_LOCATION="$(if $(findstring -cygwin,$(BUILD_PLATFORM)),$(shell cygpath -m $(TARFILE_LOCATION)),$(TARFILE_LOCATION))" \
28 $(if $(filter yes,$(JAVACISGCJ))\
29 ,-Dbuild.compiler=gcj \
30 ,-Dant.build.javac.source=$(JAVA_SOURCE_VER) \
31 -Dant.build.javac.target=$(JAVA_TARGET_VER) \
32 ) \
33 $(if $(debug),-Dbuild.debug="on") \
34 jar && \
35 touch $@
37 # vim: set noet sw=4 ts=4: