-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
46 lines (41 loc) · 1.17 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<project name="native" default="release">
<macrodef name="devenv">
<attribute name="config" />
<sequential>
<exec dir="." executable="devenv"
failonerror="yes">
<arg line="jnitl.vcproj /rebuild" />
<arg value="@{config}"/>
</exec>
</sequential>
</macrodef>
<target name="compile">
<devenv config="Release" />
<devenv config="Release RTDLL" />
<devenv config="Debug" />
<devenv config="Debug RTDLL" />
</target>
<target name="clean">
<delete dir="Debug"/>
<delete dir="Release"/>
<delete dir="build"/>
<delete dir="lib"/>
</target>
<target name="release" depends="compile">
<mkdir dir="build" />
<tstamp />
<zip file="build/jnitl-${DSTAMP}-win32.zip">
<zipfileset dir="." includes="include/*.h, lib/*.lib" />
</zip>
</target>
<target name="source-zip">
<mkdir dir="build" />
<tstamp />
<zip file="build/jnitl-${DSTAMP}-src.zip">
<fileset dir="." includes="source/**/*" />
<fileset dir="." includes="include/**/*" />
<fileset dir="." includes="jnitl.sln, jnitl.vcproj, build.xml" />
</zip>
</target>
</project>