forked from cappuccino/cappuccino
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
46 lines (34 loc) · 1.75 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 = "cplutil" default = "build" basedir = "." >
<import file = "../../common.xml" />
<property name = "Build.Products" location = "${Build}/cplutil.build/${Configuration}" />
<property name = "Build.cplutil" location = "${Build}/${Configuration}/cplutil" />
<property name = "Build.cplutil.bin" location = "${Build}/${Configuration}/cplutil/bin" />
<property name = "Build.cplutil.lib" location = "${Build}/${Configuration}/cplutil/lib" />
<target name = "clean">
<delete dir = "${Build.cplutil}" verbose = "true" />
<delete dir = "${Build.Products}" verbose = "true" />
</target>
<target name = "build">
<mkdir dir = "${Build.Products}" />
<concat destfile = "${Build.Products}/cplutil.js">
<filelist>
<file name="${basedir}/../Utilities/bridge.js" />
<file name="${basedir}/../Utilities/regex-bridge.js" />
<file name="${Build}/Objective-J.build/\${Configuration}/Rhino/Objective-J.js" />
<file name="${basedir}/cplutil.js" />
</filelist>
</concat>
<mkdir dir = "${Build.cplutil}" />
<jsc>
<arguments>
<arg line = "-o cplutil.class" />
<arg value = "-nosource" />
<arg value = "${Build.Products}/cplutil.js" />
</arguments>
</jsc>
<move file = "${Build.Products}/cplutil.class" tofile = "${Build.cplutil}/cplutil.class" />
<copy file = "cplutil" tofile = "${Build.cplutil.bin}/cplutil" />
<copy file = "${Build.cplutil}/cplutil.class" tofile = "${Build.cplutil.lib}/cplutil.class" />
</target>
</project>