1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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
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
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
)
63 .IF
"$(ANT_DEBUG)"==""
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
95 .IF
"$(WITH_LANG)"!=""
96 ANT_FLAGS
+=-Dsolar.langs
="$(WITH_LANG)" -Dsolar.localized
="true"
97 .ENDIF
# "$(WITH_LANG)"!=""