#80424# targets and settings for ant builds
This commit is contained in:
parent
fd9a2346a0
commit
fb0ea6b88c
3 changed files with 116 additions and 2 deletions
101
solenv/inc/ant.mk
Normal file
101
solenv/inc/ant.mk
Normal file
|
@ -0,0 +1,101 @@
|
|||
|
||||
# --- Settings -----------------------------------------------------
|
||||
|
||||
.INCLUDE : settings.mk
|
||||
|
||||
|
||||
.IF "$(J2EE_HOME)"==""
|
||||
J2EE_HOME=$(SOLARROOT)$/j2sdkee1.2
|
||||
.ENDIF
|
||||
|
||||
# --- ANT build environment ---------------------------------------
|
||||
|
||||
.IF "$(ANT_CLASSPATH)" ==""
|
||||
ANT_CLASSPATH:=$(SOLARBINDIR)$/ant.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$/$(SOLARBINDIR)$/xerces.jar
|
||||
.ENDIF
|
||||
|
||||
ANT=java -Xmx1024m org.apache.tools.ant.Main -Djava.home=$(JAVA_HOME)
|
||||
|
||||
.IF "$(ANT_BUILDFILE)"==""
|
||||
ANT_BUILDFILE=build.xml
|
||||
.ENDIF
|
||||
|
||||
.IF "$(ANT_DEBUG)"==""
|
||||
.IF "$(debug)"==""
|
||||
ANT_DEBUG=off
|
||||
.ELSE
|
||||
ANT_DEBUG=on
|
||||
.ENDIF
|
||||
.ENDIF
|
||||
|
||||
.IF "$(ANT_OPT)"==""
|
||||
.IF "$(optimize)"==""
|
||||
ANT_OPT=off
|
||||
.ELSE
|
||||
ANT_OPT=on
|
||||
.ENDIF
|
||||
.ENDIF
|
||||
|
||||
.IF "$(wdkbuild)"==""
|
||||
ANT_FLAGS!:=-Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext=$(PROEXT) -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) -f $(ANT_BUILDFILE) $(ANT_FLAGS)
|
||||
.ELSE
|
||||
ANT_FLAGS!:=-f $(ANT_BUILDFILE) -Dwdk.build=$(wdkbuild) $(ANT_FLAGS)
|
||||
.ENDIF
|
||||
|
||||
.INCLUDE : target.mk
|
||||
|
||||
CLASSPATH!:=$(CLASSPATH)$(PATH_SEPERATOR)$(ANT_CLASSPATH)$(PATH_SEPERATOR)$(JAVA_HOME)$/lib$/tools.jar
|
||||
.EXPORT : CLASSPATH
|
||||
|
||||
# --- TARGETS -----------------------------------------------------
|
||||
|
||||
#$(CLASSDIR)$/solar.properties .PHONY:
|
||||
$(CLASSDIR)$/solar.properties : $(SOLARENV)$/inc/minor.mk $(SOLARENV)$/inc/ant.properties
|
||||
@echo Making: $@
|
||||
.IF "$(GUI)"=="UNX"
|
||||
@+echo solar.build="$(BUILD)" > $@
|
||||
@+echo solar.rscversion="$(RSCVERSION)" >> $@
|
||||
@+echo solar.rscrevision="$(RSCREVISION)" >> $@
|
||||
@+echo solar.minor="$(LAST_MINOR)" >> $@
|
||||
@+echo solar.sourceversion="$(SOURCEVERSION)" >> $@
|
||||
@+echo solar.udkstamp="$(UDKSTAMP)" >> $@
|
||||
@+echo solar.extstamp="$(EXTSTAMP)" >> $@
|
||||
.ELSE
|
||||
@+echo solar.build=$(BUILD) > $@
|
||||
@+echo solar.rscversion=$(RSCVERSION) >> $@
|
||||
@+echo solar.rscrevision=$(RSCREVISION) >> $@
|
||||
@+echo solar.minor=$(LAST_MINOR) >> $@
|
||||
@+echo solar.sourceversion=$(SOURCEVERSION) >> $@
|
||||
@+echo solar.udkstamp=$(UDKSTAMP) >> $@
|
||||
@+echo solar.extstamp=$(EXTSTAMP) >> $@
|
||||
.ENDIF
|
||||
@+cat $(DMAKEROOT)$/../ant.properties >> $@
|
||||
|
||||
ANTBUILD .PHONY:
|
||||
$(ANT) $(ANT_FLAGS)
|
||||
|
||||
clean .PHONY:
|
||||
$(ANT) $(ANT_FLAGS) $@
|
||||
|
||||
prepare .PHONY:
|
||||
$(ANT) $(ANT_FLAGS) $@
|
||||
|
||||
main:
|
||||
$(ANT) $(ANT_FLAGS) $@
|
||||
|
||||
info:
|
||||
$(ANT) $(ANT_FLAGS) $@
|
||||
|
||||
jar .PHONY:
|
||||
$(ANT) $(ANT_FLAGS) $@
|
||||
|
||||
javadoc .PHONY:
|
||||
$(ANT) $(ANT_FLAGS) $@
|
||||
|
||||
compile .PHONY:
|
||||
$(ANT) $(ANTFLAGS) $@
|
||||
|
||||
test:
|
||||
$(ANT) $(ANT_FLAGS) $@
|
||||
|
||||
|
12
solenv/inc/ant.properties
Normal file
12
solenv/inc/ant.properties
Normal file
|
@ -0,0 +1,12 @@
|
|||
solar.jar=${solar.bin}
|
||||
build.bin=${build.dir}/bin
|
||||
build.class=${build.dir}/class
|
||||
build.inc=${build.dir}/inc
|
||||
build.lib=${build.dir}/lib
|
||||
build.misc=${build.dir}/misc
|
||||
build.obj=${build.dir}/obj
|
||||
build.res=${build.dir}/res
|
||||
build.slb=${build.dir}/slb
|
||||
build.slo=${build.dir}/slo
|
||||
build.srs=${build.dir}/srs
|
||||
|
|
@ -2,9 +2,9 @@
|
|||
#
|
||||
# $RCSfile: settings.mk,v $
|
||||
#
|
||||
# $Revision: 1.62 $
|
||||
# $Revision: 1.63 $
|
||||
#
|
||||
# last change: $Author: pl $ $Date: 2001-08-27 09:51:35 $
|
||||
# last change: $Author: hjs $ $Date: 2001-08-27 15:16:18 $
|
||||
#
|
||||
# The Contents of this file are made available subject to the terms of
|
||||
# either of the following licenses
|
||||
|
@ -922,6 +922,7 @@ SOLARBINDIR=$(SOLARVERSION)$/$(INPATH)$/bin$(EXT_UPDMINOR)
|
|||
SOLARUCRDIR=$(SOLARVERSION)$/$(INPATH)$/ucr$(EXT_UPDMINOR)
|
||||
SOLARPARDIR=$(SOLARVERSION)$/$(INPATH)$/par$(EXT_UPDMINOR)
|
||||
SOLARXMLDIR=$(SOLARVERSION)$/$(INPATH)$/xml$(EXT_UPDMINOR)
|
||||
SOLARDOCDIR=$(SOLARVERSION)$/$(INPATH)$/doc$(EXT_UPDMINOR)
|
||||
|
||||
# Full-Debug Pfade
|
||||
.IF "$(debug)" != ""
|
||||
|
|
Loading…
Reference in a new issue