This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnative_build.xml
87 lines (62 loc) · 2.59 KB
/
native_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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0"?>
<!-- ======================================================================
Dec 14, 2005 11:48:16 AM
native code builder for JNotify
omry
====================================================================== -->
<project name="jnotify native build" default="build">
<description>
native code builder for JNotify
</description>
<!-- =================================
target: build
================================= -->
<target name="build" depends="setup" description="--> builds jnotify native code for jnotify-${platform}">
<fail unless="platform"/>
<antcall target="p.build">
<param name="dir" value="${platform}/Release" />
</antcall>
<zip destfile="${output}/jnotify-native-${platform}-${version}-src.zip">
<fileset dir="${platform}" excludes="${src.excludes}" includes="${src.includes}" />
</zip>
<concat destfile="${output}/CHANGELOG" append="true" fixlastline="true">
<filelist dir="${platform}" files="CHANGELOG"/>
</concat>
</target>
<!-- =================================
target: p.build
================================= -->
<target name="p.build" depends="setup">
<echo>"dir = ${dir}"</echo>
<mkdir dir="${output}"/>
<exec executable="make" dir="${dir}"></exec>
<copy todir="${output}" verbose="true" failonerror="true">
<fileset dir="${dir}" includes="${output.include}" />
</copy>
</target>
<!-- =================================
target: clean
================================= -->
<target name="clean" depends="setup" description="--> clean">
<antcall target="p.clean">
<param name="dir" value="${platform}/Debug" />
</antcall>
<antcall target="p.clean">
<param name="dir" value="${platform}/Release" />
</antcall>
<delete dir="${output}"/>
</target>
<target name="p.clean" depends="setup">
<fail unless="platform"/>
<exec executable="make" dir="${dir}">
<arg line="clean"/>
</exec>
<delete dir="${output}/${dir}" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: setup
- - - - - - - - - - - - - - - - - -->
<target name="setup">
<loadproperties srcfile="${platform}/build.properties" />
</target>
</project>