Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 81 lines (67 sloc) 3.304 kb
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
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" />
37db46d Split background and border rendering into separate renderers; beside…
Jason Johnston authored
26 <fileset file="${src_dir}/BackgroundRenderer.js" />
27 <fileset file="${src_dir}/BorderRenderer.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
28 <fileset file="${src_dir}/BorderImageRenderer.js" />
29 <fileset file="${src_dir}/BoxShadowRenderer.js" />
30 <fileset file="${src_dir}/PIE_close.js" />
31 <fileset file="${src_dir}/event_handlers.js" />
32 </concat>
33
34 <concat destfile="${build_dir}/PIE_uncompressed.htc">
35 <fileset file="${src_dir}/htc_open.txt" />
36 <fileset file="${build_dir}/script_uncompressed.js" />
37 <fileset file="${src_dir}/htc_close.txt" />
38 </concat>
39 </target>
40
41 <target name="package-compressed" depends="package-uncompressed">
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots o…
Jason Johnston authored
42 <exec executable="java">
43 <arg line='-jar tools/compiler.jar
44 --js ${build_dir}/script_uncompressed.js
45 --js ${src_dir}/closure_preservefunctions.js
46 --module "script_compressed:1"
47 --module "temp:1"
48 --module_output_path_prefix ${build_dir}/
49 --compilation_level ADVANCED_OPTIMIZATIONS
50 --externs ${src_dir}/closure_externs.js' />
51 </exec>
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
52
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots o…
Jason Johnston authored
53 <!--
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
54 <exec executable="yuicompressor">
55 <arg line="${build_dir}/script_uncompressed.js -o ${build_dir}/script_compressed.js" />
56 </exec>
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots o…
Jason Johnston authored
57 -->
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
58
59 <concat destfile="${build_dir}/PIE.htc">
60 <fileset file="${src_dir}/htc_open.txt" />
61 <fileset file="${build_dir}/script_compressed.js" />
62 <fileset file="${src_dir}/htc_close.txt" />
63 </concat>
1531a07 Add PHP wrapper as workaround for web servers which are not configure…
Jason Johnston authored
64
65 <delete file="${build_dir}/temp.js" />
66 <delete file="${build_dir}/script_uncompressed.js" />
67 <delete file="${build_dir}/script_compressed.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
68 </target>
69
1531a07 Add PHP wrapper as workaround for web servers which are not configure…
Jason Johnston authored
70
71 <target name="copy-wrappers">
72 <copy todir="${build_dir}">
73 <fileset dir="${src_dir}/wrappers" />
74 </copy>
75 </target>
76
77
78 <target name="package" depends="package-uncompressed,package-compressed,copy-wrappers" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
79
80 </project>
Something went wrong with that request. Please try again.