Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 92 lines (76 sloc) 3.687 kb
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
1 <?xml version="1.0" ?>
2
5d1c05b Separate packaging from building in ant build; force clean before packag...
Jason Johnston authored
3 <project name="PIE" default="build" basedir=".">
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
4
5 <property name="build_dir" value="./build" />
6 <property name="src_dir" value="./sources" />
7
d62b0c9 Add creation of distributable zip package to build script
Jason Johnston authored
8 <target name="clean">
9 <delete dir="${build_dir}" />
10 </target>
11
5d1c05b Separate packaging from building in ant build; force clean before packag...
Jason Johnston authored
12 <target name="build-uncompressed">
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
13 <mkdir dir="${build_dir}" />
14 <concat destfile="${build_dir}/script_uncompressed.js">
15 <fileset file="${src_dir}/PIE_open.js" />
16 <fileset file="${src_dir}/Util.js" />
17 <fileset file="${src_dir}/Length.js" />
18 <fileset file="${src_dir}/BgPosition.js" />
19 <fileset file="${src_dir}/Angle.js" />
20 <fileset file="${src_dir}/Color.js" />
21 <fileset file="${src_dir}/Tokenizer.js" />
22 <fileset file="${src_dir}/StyleBase.js" />
23 <fileset file="${src_dir}/BackgroundStyleInfo.js" />
24 <fileset file="${src_dir}/BorderStyleInfo.js" />
25 <fileset file="${src_dir}/BorderRadiusStyleInfo.js" />
26 <fileset file="${src_dir}/BorderImageStyleInfo.js" />
27 <fileset file="${src_dir}/BoxShadowStyleInfo.js" />
bf3d9f2 Fix bug where css3 renderings would not get updated when the target elem...
Jason Johnston authored
28 <fileset file="${src_dir}/VisibilityStyleInfo.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
29 <fileset file="${src_dir}/RendererBase.js" />
30 <fileset file="${src_dir}/RootRenderer.js" />
37db46d Split background and border rendering into separate renderers; besides b...
Jason Johnston authored
31 <fileset file="${src_dir}/BackgroundRenderer.js" />
32 <fileset file="${src_dir}/BorderRenderer.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
33 <fileset file="${src_dir}/BorderImageRenderer.js" />
ad351e8 Split box-shadow renderer into two renderers for outset and inset shadow...
Jason Johnston authored
34 <fileset file="${src_dir}/BoxShadowOutsetRenderer.js" />
35 <fileset file="${src_dir}/BoxShadowInsetRenderer.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
36 <fileset file="${src_dir}/PIE_close.js" />
37 <fileset file="${src_dir}/event_handlers.js" />
38 </concat>
39
40 <concat destfile="${build_dir}/PIE_uncompressed.htc">
41 <fileset file="${src_dir}/htc_open.txt" />
42 <fileset file="${build_dir}/script_uncompressed.js" />
43 <fileset file="${src_dir}/htc_close.txt" />
44 </concat>
45 </target>
46
5d1c05b Separate packaging from building in ant build; force clean before packag...
Jason Johnston authored
47 <target name="build-compressed" depends="build-uncompressed">
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots of s...
Jason Johnston authored
48 <exec executable="java">
49 <arg line='-jar tools/compiler.jar
50 --js ${build_dir}/script_uncompressed.js
51 --js ${src_dir}/closure_preservefunctions.js
52 --module "script_compressed:1"
53 --module "temp:1"
54 --module_output_path_prefix ${build_dir}/
55 --compilation_level ADVANCED_OPTIMIZATIONS
56 --externs ${src_dir}/closure_externs.js' />
57 </exec>
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
58
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots of s...
Jason Johnston authored
59 <!--
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
60 <exec executable="yuicompressor">
61 <arg line="${build_dir}/script_uncompressed.js -o ${build_dir}/script_compressed.js" />
62 </exec>
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots of s...
Jason Johnston authored
63 -->
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
64
65 <concat destfile="${build_dir}/PIE.htc">
66 <fileset file="${src_dir}/htc_open.txt" />
67 <fileset file="${build_dir}/script_compressed.js" />
68 <fileset file="${src_dir}/htc_close.txt" />
69 </concat>
1531a07 Add PHP wrapper as workaround for web servers which are not configured t...
Jason Johnston authored
70
71 <delete file="${build_dir}/temp.js" />
72 <delete file="${build_dir}/script_uncompressed.js" />
73 <delete file="${build_dir}/script_compressed.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
74 </target>
75
1531a07 Add PHP wrapper as workaround for web servers which are not configured t...
Jason Johnston authored
76
77 <target name="copy-wrappers">
78 <copy todir="${build_dir}">
79 <fileset dir="${src_dir}/wrappers" />
80 </copy>
81 </target>
82
83
5d1c05b Separate packaging from building in ant build; force clean before packag...
Jason Johnston authored
84 <target name="build" depends="build-uncompressed,build-compressed" />
85
86 <target name="package" depends="clean,build,copy-wrappers">
d62b0c9 Add creation of distributable zip package to build script
Jason Johnston authored
87 <!-- Create distribution bundle -->
88 <zip destfile="${build_dir}/PIE.zip" basedir="${build_dir}"/>
89 </target>
3e71920 Split the monolithic PIE.htc into separate source files per class/compon...
Jason Johnston authored
90
91 </project>
Something went wrong with that request. Please try again.