update ooo310-m15
[ooovba.git] / solenv / inc / antsettings.mk
blob8010635f7714c900d17721eb10ce17f82ab13635
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
42 PATH!:=$(ANT_HOME)$/bin$(PATH_SEPERATOR)$(PATH)
44 ANT*:=$(ANT_HOME)$/bin$/ant
45 ANT_BUILDFILE*=build.xml
47 .IF "$(ANT_COMPILER_FLAGS)"==""
48 .IF "$(JAVACISGCJ)" == "yes"
49 ANT_COMPILER_FLAGS=-Dbuild.compiler=gcj
50 .ENDIF
51 .ENDIF
53 .IF "$(ANT_JAVA_VER_FLAGS)"==""
54 .IF "$(JDK)" != "gcj" && $(JAVACISKAFFE) != "yes"
55 ANT_JAVA_VER_FLAGS=-Dant.build.javac.source=$(JAVA_SOURCE_VER) -Dant.build.javac.target=$(JAVA_TARGET_VER)
56 .ENDIF
57 .ENDIF
59 .IF "$(ANT_DEBUG)"==""
60 .IF "$(debug)"==""
61 ANT_DEBUG=off
62 .ELSE
63 ANT_DEBUG=on
64 .ENDIF
65 .ENDIF
67 .IF "$(ANT_OPT)"==""
68 .IF "$(optimize)"==""
69 ANT_OPT=off
70 .ELSE
71 ANT_OPT=on
72 .ENDIF
73 .ENDIF
75 .IF "$(JDK)"=="gcj"
76 JAVA_HOME=
77 .EXPORT : JAVA_HOME
78 .ENDIF
80 ANT_FLAGS!:=$(ANT_COMPILER_FLAGS) -Dprj=$(PRJ) -Dprjname=$(PRJNAME) $(ANT_JAVA_VER_FLAGS) \
81 -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on \
82 -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext="$(PROEXT)" -Dsolar.bin=$(SOLARBINDIR) \
83 -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) -Dcommon.jar=$(SOLARCOMMONBINDIR) \
84 -Dcommon.doc=$(SOLARCOMMONDOCDIR) -Dsolar.sourceversion=$(SOURCEVERSION) \
85 -Dsolar.lastminor=$(LAST_MINOR) -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs
86 .ELSE # No java
87 ANT=
88 ANT_FLAGS=
89 .ENDIF
91 .IF "$(WITH_LANG)"!=""
92 ANT_FLAGS+=-Dsolar.langs="$(WITH_LANG)" -Dsolar.localized="true"
93 .ENDIF # "$(WITH_LANG)"!=""