-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
123 lines (90 loc) · 3.4 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<project name="Processing video library for JavaScript" default="build" basedir="./">
<description>
See README
</description>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SETTINGS
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="settings">
<property name="author" value="Florian Jenett"/>
<property name="copyright" value="(c) 2012"/>
<property name="version" value="0.0.0"/>
<property name="libName" value="processing.video"/>
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="doc" location="documentation"/>
<property name="build" location="build"/>
<property name="res" location="resources"/>
<property name="dist" location="dist"/>
<property name="local_resources" value="/Users/fjenett/Dev/Processing/Libraries/_resources/"/>
<!-- GOOGLE CLOSURE COMPILER -->
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
classpath="${local_resources}closure-compiler/compiler.jar"/>
</target>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
INIT
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="init" depends="settings">
<buildnumber file="${res}/build.number"/>
<tstamp> <!-- Create the time stamp -->
<format property="date" pattern="MM/dd/yyyy" offset="0" unit="hour"/>
</tstamp>
<echo>Building ${libName} ... ${version}, build #${build.number} on ${date}</echo>
<mkdir dir="${dist}"/>
</target>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
COMPILE
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="compile" depends="init" >
<mkdir dir="${bin}"/>
<concat destfile="${bin}/${libName}.js">
<!-- this list is sorted! -->
<fileset dir="${src}">
<include name="*.js" />
</fileset>
</concat>
</target>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BUILD
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="build" depends="compile" >
<mkdir dir="${dist}" />
<jscomp compilationLevel="simple"
warning="default"
debug="false"
output="${dist}/${libName}.js"
prettyprint="true" >
<sources dir="${bin}">
<file name="${libName}.js" />
</sources>
</jscomp>
<!-- <copy file="${bin}/${libName}.js" todir="${dist}" /> -->
<exec executable="/bin/bash">
<arg value="${res}/CopyDistToTests.sh"/>
</exec>
</target>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DOCUMENTATION
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="documentation" depends="build">
</target>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
INSTALL
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="install" depends="build">
</target>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
RELEASE
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="release" depends="documentation">
</target>
<!-- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CLEAN
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + -->
<target name="clean" depends="settings" >
<delete dir="${bin}" />
<delete dir="${doc}" />
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>