xref: /aoo41x/main/solenv/inc/antsettings.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24
25.IF "$(SOLAR_JAVA)"!=""
26
27ANT_LIB*:=$(ANT_HOME)/lib
28
29ANT_CLASSPATH:=$(ANT_LIB)/xercesImpl.jar$(PATH_SEPERATOR)$(ANT_LIB)/xml-apis.jar$(PATH_SEPERATOR)$(ANT_LIB)/ant.jar
30
31# PATH_SEPERATOR won't work here as it is defined
32# as ; for wondows (all shells)
33#PATH!:=$(ANT_HOME)/bin$(PATH_SEPERATOR)$(PATH)
34PATH!:=$(ANT_HOME)/bin:$(PATH)
35
36ANT*:=$(ANT_HOME)/bin/ant
37ANT_BUILDFILE*=build.xml
38
39.IF "$(ANT_DEBUG)"==""
40.IF "$(debug)"==""
41ANT_DEBUG=off
42.ELSE
43ANT_DEBUG=on
44.ENDIF
45.ENDIF
46
47.IF "$(ANT_OPT)"==""
48.IF "$(optimize)"==""
49ANT_OPT=off
50.ELSE
51ANT_OPT=on
52.ENDIF
53.ENDIF
54
55.IF "$(JDK)"=="gcj"
56JAVA_HOME=
57.EXPORT : JAVA_HOME
58.ENDIF
59
60.IF "$(JAVACISGCJ)" == "yes"
61ANT_FLAGS!:=-Dbuild.compiler=gcj -Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) \
62 -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) \
63 -Dproext="$(PROEXT)" -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) \
64 -Dsolar.doc=$(SOLARDOCDIR) -Dcommon.jar=$(SOLARCOMMONBINDIR) \
65 -Dcommon.doc=$(SOLARCOMMONDOCDIR) -Dsolar.sourceversion=$(SOURCEVERSION) \
66 -Dsolar.lastminor=$(LAST_MINOR) -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs
67.ELSE
68ANT_FLAGS!:=-Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) \
69 -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext="$(PROEXT)" \
70 -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) \
71 -Dcommon.jar=$(SOLARCOMMONBINDIR) -Dcommon.doc=$(SOLARCOMMONDOCDIR) \
72 -Dsolar.sourceversion=$(SOURCEVERSION) -Dsolar.lastminor=$(LAST_MINOR) \
73 -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs
74.ENDIF
75.ELSE # No java
76ANT=
77ANT_FLAGS=
78.ENDIF
79
80.IF "$(WITH_LANG)"!=""
81ANT_FLAGS+=-Dsolar.langs="$(WITH_LANG)" -Dsolar.localized="true"
82.ENDIF			# "$(WITH_LANG)"!=""
83
84