This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
/
build.xml
81 lines (68 loc) · 3.3 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
<?xml version="1.0" ?>
<project name="PIE" default="package" basedir=".">
<property name="build_dir" value="./build" />
<property name="src_dir" value="./sources" />
<target name="package-uncompressed">
<mkdir dir="${build_dir}" />
<concat destfile="${build_dir}/script_uncompressed.js">
<fileset file="${src_dir}/PIE_open.js" />
<fileset file="${src_dir}/Util.js" />
<fileset file="${src_dir}/Length.js" />
<fileset file="${src_dir}/BgPosition.js" />
<fileset file="${src_dir}/Angle.js" />
<fileset file="${src_dir}/Color.js" />
<fileset file="${src_dir}/Tokenizer.js" />
<fileset file="${src_dir}/StyleBase.js" />
<fileset file="${src_dir}/BackgroundStyleInfo.js" />
<fileset file="${src_dir}/BorderStyleInfo.js" />
<fileset file="${src_dir}/BorderRadiusStyleInfo.js" />
<fileset file="${src_dir}/BorderImageStyleInfo.js" />
<fileset file="${src_dir}/BoxShadowStyleInfo.js" />
<fileset file="${src_dir}/RendererBase.js" />
<fileset file="${src_dir}/RootRenderer.js" />
<fileset file="${src_dir}/BackgroundRenderer.js" />
<fileset file="${src_dir}/BorderRenderer.js" />
<fileset file="${src_dir}/BorderImageRenderer.js" />
<fileset file="${src_dir}/BoxShadowOutsetRenderer.js" />
<fileset file="${src_dir}/BoxShadowInsetRenderer.js" />
<fileset file="${src_dir}/PIE_close.js" />
<fileset file="${src_dir}/event_handlers.js" />
</concat>
<concat destfile="${build_dir}/PIE_uncompressed.htc">
<fileset file="${src_dir}/htc_open.txt" />
<fileset file="${build_dir}/script_uncompressed.js" />
<fileset file="${src_dir}/htc_close.txt" />
</concat>
</target>
<target name="package-compressed" depends="package-uncompressed">
<exec executable="java">
<arg line='-jar tools/compiler.jar
--js ${build_dir}/script_uncompressed.js
--js ${src_dir}/closure_preservefunctions.js
--module "script_compressed:1"
--module "temp:1"
--module_output_path_prefix ${build_dir}/
--compilation_level ADVANCED_OPTIMIZATIONS
--externs ${src_dir}/closure_externs.js' />
</exec>
<!--
<exec executable="yuicompressor">
<arg line="${build_dir}/script_uncompressed.js -o ${build_dir}/script_compressed.js" />
</exec>
-->
<concat destfile="${build_dir}/PIE.htc">
<fileset file="${src_dir}/htc_open.txt" />
<fileset file="${build_dir}/script_compressed.js" />
<fileset file="${src_dir}/htc_close.txt" />
</concat>
<delete file="${build_dir}/temp.js" />
<delete file="${build_dir}/script_uncompressed.js" />
<delete file="${build_dir}/script_compressed.js" />
</target>
<target name="copy-wrappers">
<copy todir="${build_dir}">
<fileset dir="${src_dir}/wrappers" />
</copy>
</target>
<target name="package" depends="package-uncompressed,package-compressed,copy-wrappers" />
</project>