Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 80 lines (66 sloc) 3.253 kb
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
1 <?xml version="1.0" ?>
2
3 <project name="PIE" default="package" basedir=".">
4
5 <property name="build_dir" value="./build" />
6 <property name="src_dir" value="./sources" />
7
8 <target name="package-uncompressed">
9 <mkdir dir="${build_dir}" />
10 <concat destfile="${build_dir}/script_uncompressed.js">
11 <fileset file="${src_dir}/PIE_open.js" />
12 <fileset file="${src_dir}/Util.js" />
13 <fileset file="${src_dir}/Length.js" />
14 <fileset file="${src_dir}/BgPosition.js" />
15 <fileset file="${src_dir}/Angle.js" />
16 <fileset file="${src_dir}/Color.js" />
17 <fileset file="${src_dir}/Tokenizer.js" />
18 <fileset file="${src_dir}/StyleBase.js" />
19 <fileset file="${src_dir}/BackgroundStyleInfo.js" />
20 <fileset file="${src_dir}/BorderStyleInfo.js" />
21 <fileset file="${src_dir}/BorderRadiusStyleInfo.js" />
22 <fileset file="${src_dir}/BorderImageStyleInfo.js" />
23 <fileset file="${src_dir}/BoxShadowStyleInfo.js" />
24 <fileset file="${src_dir}/RendererBase.js" />
25 <fileset file="${src_dir}/RootRenderer.js" />
26 <fileset file="${src_dir}/BackgroundAndBorderRenderer.js" />
27 <fileset file="${src_dir}/BorderImageRenderer.js" />
28 <fileset file="${src_dir}/BoxShadowRenderer.js" />
29 <fileset file="${src_dir}/PIE_close.js" />
30 <fileset file="${src_dir}/event_handlers.js" />
31 </concat>
32
33 <concat destfile="${build_dir}/PIE_uncompressed.htc">
34 <fileset file="${src_dir}/htc_open.txt" />
35 <fileset file="${build_dir}/script_uncompressed.js" />
36 <fileset file="${src_dir}/htc_close.txt" />
37 </concat>
38 </target>
39
40 <target name="package-compressed" depends="package-uncompressed">
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots of s...
Jason Johnston authored
41 <exec executable="java">
42 <arg line='-jar tools/compiler.jar
43 --js ${build_dir}/script_uncompressed.js
44 --js ${src_dir}/closure_preservefunctions.js
45 --module "script_compressed:1"
46 --module "temp:1"
47 --module_output_path_prefix ${build_dir}/
48 --compilation_level ADVANCED_OPTIMIZATIONS
49 --externs ${src_dir}/closure_externs.js' />
50 </exec>
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
51
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots of s...
Jason Johnston authored
52 <!--
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
53 <exec executable="yuicompressor">
54 <arg line="${build_dir}/script_uncompressed.js -o ${build_dir}/script_compressed.js" />
55 </exec>
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots of s...
Jason Johnston authored
56 -->
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
57
58 <concat destfile="${build_dir}/PIE.htc">
59 <fileset file="${src_dir}/htc_open.txt" />
60 <fileset file="${build_dir}/script_compressed.js" />
61 <fileset file="${src_dir}/htc_close.txt" />
62 </concat>
1531a07 Add PHP wrapper as workaround for web servers which are not configured t...
Jason Johnston authored
63
64 <delete file="${build_dir}/temp.js" />
65 <delete file="${build_dir}/script_uncompressed.js" />
66 <delete file="${build_dir}/script_compressed.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
67 </target>
68
1531a07 Add PHP wrapper as workaround for web servers which are not configured t...
Jason Johnston authored
69
70 <target name="copy-wrappers">
71 <copy todir="${build_dir}">
72 <fileset dir="${src_dir}/wrappers" />
73 </copy>
74 </target>
75
76
77 <target name="package" depends="package-uncompressed,package-compressed,copy-wrappers" />
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
78
79 </project>
Something went wrong with that request. Please try again.