merge the formfield patch from ooo-build
[ooovba.git] / solenv / inc / antsettings.mk
bloba5d04289f119320ffc652ddcb53fa61eef4296c9
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: antsettings.mk,v $
11 # $Revision: 1.7.166.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
33 .IF "$(SOLAR_JAVA)"!=""
35 .IF "$(ANT_HOME)" == ""
36 ANT_HOME*:=$(COMMON_BUILD_TOOLS)/apache-ant-1.7.0
37 .EXPORT : ANT_HOME
38 .ENDIF
39 ANT_LIB*:=$(ANT_HOME)/lib
41 ANT_CLASSPATH:=$(ANT_LIB)/xercesImpl.jar$(PATH_SEPERATOR)$(ANT_LIB)/xml-apis.jar$(PATH_SEPERATOR)$(ANT_LIB)/ant.jar
43 # PATH_SEPERATOR won't work here as it is defined
44 # as ; for wondows (all shells)
45 #PATH!:=$(ANT_HOME)/bin$(PATH_SEPERATOR)$(PATH)
46 PATH!:=$(ANT_HOME)/bin:$(PATH)
48 ANT*:=$(ANT_HOME)/bin/ant
49 ANT_BUILDFILE*=build.xml
51 .IF "$(ANT_COMPILER_FLAGS)"==""
52 .IF "$(JAVACISGCJ)" == "yes"
53 ANT_COMPILER_FLAGS=-Dbuild.compiler=gcj
54 .ENDIF
55 .ENDIF
57 .IF "$(ANT_JAVA_VER_FLAGS)"==""
58 .IF "$(JDK)" != "gcj" && $(JAVACISKAFFE) != "yes"
59 ANT_JAVA_VER_FLAGS=-Dant.build.javac.source=$(JAVA_SOURCE_VER) -Dant.build.javac.target=$(JAVA_TARGET_VER)
60 .ENDIF
61 .ENDIF
63 .IF "$(ANT_DEBUG)"==""
64 .IF "$(debug)"==""
65 ANT_DEBUG=off
66 .ELSE
67 ANT_DEBUG=on
68 .ENDIF
69 .ENDIF
71 .IF "$(ANT_OPT)"==""
72 .IF "$(optimize)"==""
73 ANT_OPT=off
74 .ELSE
75 ANT_OPT=on
76 .ENDIF
77 .ENDIF
79 .IF "$(JDK)"=="gcj"
80 JAVA_HOME=
81 .EXPORT : JAVA_HOME
82 .ENDIF
84 ANT_FLAGS!:=$(ANT_COMPILER_FLAGS) -Dprj=$(PRJ) -Dprjname=$(PRJNAME) $(ANT_JAVA_VER_FLAGS) \
85 -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on \
86 -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext="$(PROEXT)" -Dsolar.bin=$(SOLARBINDIR) \
87 -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) -Dcommon.jar=$(SOLARCOMMONBINDIR) \
88 -Dcommon.doc=$(SOLARCOMMONDOCDIR) -Dsolar.sourceversion=$(SOURCEVERSION) \
89 -Dsolar.lastminor=$(LAST_MINOR) -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs
90 .ELSE # No java
91 ANT=
92 ANT_FLAGS=
93 .ENDIF
95 .IF "$(WITH_LANG)"!=""
96 ANT_FLAGS+=-Dsolar.langs="$(WITH_LANG)" -Dsolar.localized="true"
97 .ENDIF # "$(WITH_LANG)"!=""