1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir 29*cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweirANT_LIB*:=$(ANT_HOME)/lib 32*cdf0e10cSrcweir 33*cdf0e10cSrcweirANT_CLASSPATH:=$(ANT_LIB)/xercesImpl.jar$(PATH_SEPERATOR)$(ANT_LIB)/xml-apis.jar$(PATH_SEPERATOR)$(ANT_LIB)/ant.jar 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir# PATH_SEPERATOR won't work here as it is defined 36*cdf0e10cSrcweir# as ; for wondows (all shells) 37*cdf0e10cSrcweir#PATH!:=$(ANT_HOME)/bin$(PATH_SEPERATOR)$(PATH) 38*cdf0e10cSrcweirPATH!:=$(ANT_HOME)/bin:$(PATH) 39*cdf0e10cSrcweir 40*cdf0e10cSrcweirANT*:=$(ANT_HOME)/bin/ant 41*cdf0e10cSrcweirANT_BUILDFILE*=build.xml 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir.IF "$(ANT_DEBUG)"=="" 44*cdf0e10cSrcweir.IF "$(debug)"=="" 45*cdf0e10cSrcweirANT_DEBUG=off 46*cdf0e10cSrcweir.ELSE 47*cdf0e10cSrcweirANT_DEBUG=on 48*cdf0e10cSrcweir.ENDIF 49*cdf0e10cSrcweir.ENDIF 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir.IF "$(ANT_OPT)"=="" 52*cdf0e10cSrcweir.IF "$(optimize)"=="" 53*cdf0e10cSrcweirANT_OPT=off 54*cdf0e10cSrcweir.ELSE 55*cdf0e10cSrcweirANT_OPT=on 56*cdf0e10cSrcweir.ENDIF 57*cdf0e10cSrcweir.ENDIF 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir.IF "$(JDK)"=="gcj" 60*cdf0e10cSrcweirJAVA_HOME= 61*cdf0e10cSrcweir.EXPORT : JAVA_HOME 62*cdf0e10cSrcweir.ENDIF 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir.IF "$(JAVACISGCJ)" == "yes" 65*cdf0e10cSrcweirANT_FLAGS!:=-Dbuild.compiler=gcj -Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) \ 66*cdf0e10cSrcweir -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) \ 67*cdf0e10cSrcweir -Dproext="$(PROEXT)" -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) \ 68*cdf0e10cSrcweir -Dsolar.doc=$(SOLARDOCDIR) -Dcommon.jar=$(SOLARCOMMONBINDIR) \ 69*cdf0e10cSrcweir -Dcommon.doc=$(SOLARCOMMONDOCDIR) -Dsolar.sourceversion=$(SOURCEVERSION) \ 70*cdf0e10cSrcweir -Dsolar.lastminor=$(LAST_MINOR) -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs 71*cdf0e10cSrcweir.ELSE 72*cdf0e10cSrcweirANT_FLAGS!:=-Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) \ 73*cdf0e10cSrcweir -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext="$(PROEXT)" \ 74*cdf0e10cSrcweir -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) \ 75*cdf0e10cSrcweir -Dcommon.jar=$(SOLARCOMMONBINDIR) -Dcommon.doc=$(SOLARCOMMONDOCDIR) \ 76*cdf0e10cSrcweir -Dsolar.sourceversion=$(SOURCEVERSION) -Dsolar.lastminor=$(LAST_MINOR) \ 77*cdf0e10cSrcweir -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs 78*cdf0e10cSrcweir.ENDIF 79*cdf0e10cSrcweir.ELSE # No java 80*cdf0e10cSrcweirANT= 81*cdf0e10cSrcweirANT_FLAGS= 82*cdf0e10cSrcweir.ENDIF 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir.IF "$(WITH_LANG)"!="" 85*cdf0e10cSrcweirANT_FLAGS+=-Dsolar.langs="$(WITH_LANG)" -Dsolar.localized="true" 86*cdf0e10cSrcweir.ENDIF # "$(WITH_LANG)"!="" 87*cdf0e10cSrcweir 88