-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
76 lines (65 loc) · 2.46 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
<?xml version="1.0" encoding="utf-8"?>
<project name="pdfcase" default="all" basedir=".">
<property name="LOCALE" value="en_US" />
<property file="${basedir}/build.properties" />
<taskdef resource="flexTasks.tasks"
classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"
/>
<tstamp>
<format property="year" pattern="yyyy" locale="en" />
<format property="datetime" pattern="EE MMM d yyyy h:mm aa" />
</tstamp>
<property name="name" value="" />
<property name="version" value="0.6" />
<property name="src.dir" value="${basedir}/src" />
<property name="pv3d.src" value="${basedir}/PV3D" />
<property name="pv3d.dir" value="${basedir}/bin/" />
<property name="bin.dir" value="${basedir}/bin/" />
<!-- =================================
target: all
================================= -->
<target name="all"
depends="clean, init, build.swc"
description="All targets to compile library"
/>
<!-- - - - - - - - - - - - - - - - - -
target: clean
- - - - - - - - - - - - - - - - - -->
<target name="clean" description="Removes bin directory">
<delete dir="${bin.dir}" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: init
- - - - - - - - - - - - - - - - - -->
<target name="init">
<mkdir dir="${bin.dir}" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: build.swc
- - - - - - - - - - - - - - - - - -->
<target name="build.swc">
<path id="lib.files">
<fileset dir="${src.dir}">
<include name="**/**" />
</fileset>
</path>
<pathconvert property="lib.classes"
pathsep=" "
dirsep="."
refid="lib.files"
>
<map from="${src.dir}/" to="" />
<mapper>
<chainedmapper>
<globmapper from="*.as" to="*" />
</chainedmapper>
</mapper>
</pathconvert>
<!-- Now we build the .swc -->
<compc output="${bin.dir}/pdfcase.swc" include-classes="${lib.classes}">
<compiler.library-path dir="${bin.dir}" append="true">
</compiler.library-path>
<source-path path-element="${src.dir}/" />
</compc>
</target>
</project>