Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 226 lines (199 sloc) 10.195 kb
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
1 <?xml version="1.0" ?>
2
5d1c05b Separate packaging from building in ant build; force clean before pac…
Jason Johnston authored
3 <project name="PIE" default="build" basedir=".">
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
4
4b397f2 @lojjic Bump build number to start 2.0 beta series
authored
5 <property name="version" value="2.0beta1-SNAPSHOT" />
762539a Add support for multiple fallback CDN locations
Jason Johnston authored
6 <!-- 'http://cdnjs.cloudflare.com/ajax/libs/css3pie/${version}' -->
7 <property name="default_base_urls" value="['http://lojjic.github.com/PIE/files/builds/${version}']"/>
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
8 <property name="build_dir" value="./build" />
9 <property name="src_dir" value="./sources" />
10
d62b0c9 Add creation of distributable zip package to build script
Jason Johnston authored
11 <target name="clean">
12 <delete dir="${build_dir}" />
13 </target>
14
5d1c05b Separate packaging from building in ant build; force clean before pac…
Jason Johnston authored
15 <target name="build-uncompressed">
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
16 <mkdir dir="${build_dir}" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
17
18 <concat destfile="${build_dir}/PIE_IE678_uncompressed.js">
19 <fileset file="${src_dir}/js_open.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
20 <fileset file="${src_dir}/PIE_open.js" />
21 <fileset file="${src_dir}/Util.js" />
43fc3ab Factor out logic common to IE9 and IE<9 gradient renderers into a sha…
Jason Johnston authored
22 <fileset file="${src_dir}/GradientUtil.js" />
4045a50 Implement lazy initialization. Elements which are outside the browser…
Jason Johnston authored
23 <fileset file="${src_dir}/Observable.js" />
24 <fileset file="${src_dir}/Heartbeat.js" />
a69573d Update build file
Jason Johnston authored
25 <fileset file="${src_dir}/OnUnload.js" />
dc459e6 Move the .htc event listeners and event handling logic into an Elemen…
Jason Johnston authored
26 <fileset file="${src_dir}/OnResize.js" />
828dac6 When printing, revert all elements to their default non-CSS3 state, t…
Jason Johnston authored
27 <fileset file="${src_dir}/OnScroll.js" />
28 <fileset file="${src_dir}/OnPrint.js" />
253f0c9 Add listeners for handling changes due to :focus and :active pseudocl…
Jason Johnston authored
29 <fileset file="${src_dir}/OnMouseup.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
30 <fileset file="${src_dir}/Length.js" />
31 <fileset file="${src_dir}/BgPosition.js" />
c89e2d0 Honor background-size when rendering linear-gradients in IE9. Allows …
Jason Johnston authored
32 <fileset file="${src_dir}/BgSize.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
33 <fileset file="${src_dir}/Angle.js" />
34 <fileset file="${src_dir}/Color.js" />
59a89ed @lojjic Beginning of CSS3 transitions implementation. Added parser for transi…
authored
35 <fileset file="${src_dir}/TransitionTimingFunction.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
36 <fileset file="${src_dir}/Tokenizer.js" />
04ed5d5 Move all accesses of element dimensions into a new BoundsInfo object,…
Jason Johnston authored
37 <fileset file="${src_dir}/BoundsInfo.js" />
d6baacf Abstract out the creation of StyleInfo classes. ~300 byte file size i…
Jason Johnston authored
38 <fileset file="${src_dir}/StyleInfoBase.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
39 <fileset file="${src_dir}/BackgroundStyleInfo.js" />
40 <fileset file="${src_dir}/BorderStyleInfo.js" />
41 <fileset file="${src_dir}/BorderRadiusStyleInfo.js" />
42 <fileset file="${src_dir}/BorderImageStyleInfo.js" />
43 <fileset file="${src_dir}/BoxShadowStyleInfo.js" />
775ce0a Implement rendering of background-clip. Fix order of gradient opacity.
Jason Johnston authored
44 <fileset file="${src_dir}/PaddingStyleInfo.js" />
59a89ed @lojjic Beginning of CSS3 transitions implementation. Added parser for transi…
authored
45 <fileset file="${src_dir}/TransitionStyleInfo.js" />
bf3d9f2 Fix bug where css3 renderings would not get updated when the target e…
Jason Johnston authored
46 <fileset file="${src_dir}/VisibilityStyleInfo.js" />
9fcfa80 Major refactoring: VML is now constructed as a single string of marku…
Jason Johnston authored
47 <fileset file="${src_dir}/VmlShape.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
48 <fileset file="${src_dir}/RendererBase.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
49 <fileset file="${src_dir}/RendererBase_IE678.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
50 <fileset file="${src_dir}/RootRenderer.js" />
37db46d Split background and border rendering into separate renderers; beside…
Jason Johnston authored
51 <fileset file="${src_dir}/BackgroundRenderer.js" />
52 <fileset file="${src_dir}/BorderRenderer.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
53 <fileset file="${src_dir}/BorderImageRenderer.js" />
ad351e8 Split box-shadow renderer into two renderers for outset and inset sha…
Jason Johnston authored
54 <fileset file="${src_dir}/BoxShadowOutsetRenderer.js" />
1e1b0fa Remove inset box-shadow renderer from the build until it's implemented
Jason Johnston authored
55 <!--<fileset file="${src_dir}/BoxShadowInsetRenderer.js" />-->
b392f43 Add support for rendering rounded corners etc. on <img> tags -- the i…
Jason Johnston authored
56 <fileset file="${src_dir}/ImgRenderer.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
57 <fileset file="${src_dir}/Element.js" />
58 <fileset file="${src_dir}/PIE_API.js" />
59 <fileset file="${src_dir}/js_close.js" />
1da1423 Add empty vbscript block at end of htc file as a workaround for very …
Jason Johnston authored
60
61 <filterchain>
62 <tokenfilter>
63 <replacestring from="$Version$" to="${version}" />
64 </tokenfilter>
65 </filterchain>
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
66 </concat>
67
68 <concat destfile="${build_dir}/PIE_IE9_uncompressed.js">
69 <fileset file="${src_dir}/js_open.js" />
70 <fileset file="${src_dir}/PIE_open.js" />
71 <fileset file="${src_dir}/Util.js" />
72 <fileset file="${src_dir}/GradientUtil.js" />
73 <fileset file="${src_dir}/Observable.js" />
74 <fileset file="${src_dir}/Heartbeat.js" />
4119484 Fix split build for IE9: add missing files and functions, move color …
Jason Johnston authored
75 <fileset file="${src_dir}/OnUnload.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
76 <fileset file="${src_dir}/OnResize.js" />
77 <fileset file="${src_dir}/OnScroll.js" />
4119484 Fix split build for IE9: add missing files and functions, move color …
Jason Johnston authored
78 <fileset file="${src_dir}/OnMouseup.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
79 <fileset file="${src_dir}/Length.js" />
80 <fileset file="${src_dir}/BgPosition.js" />
81 <fileset file="${src_dir}/BgSize.js" />
82 <fileset file="${src_dir}/Angle.js" />
83 <fileset file="${src_dir}/Color.js" />
59a89ed @lojjic Beginning of CSS3 transitions implementation. Added parser for transi…
authored
84 <fileset file="${src_dir}/TransitionTimingFunction.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
85 <fileset file="${src_dir}/Tokenizer.js" />
86 <fileset file="${src_dir}/BoundsInfo.js" />
87 <fileset file="${src_dir}/StyleInfoBase.js" />
88 <fileset file="${src_dir}/BackgroundStyleInfo.js" />
4119484 Fix split build for IE9: add missing files and functions, move color …
Jason Johnston authored
89 <fileset file="${src_dir}/BorderStyleInfo.js" />
90 <fileset file="${src_dir}/BorderImageStyleInfo.js" />
775ce0a Implement rendering of background-clip. Fix order of gradient opacity.
Jason Johnston authored
91 <fileset file="${src_dir}/PaddingStyleInfo.js" />
59a89ed @lojjic Beginning of CSS3 transitions implementation. Added parser for transi…
authored
92 <fileset file="${src_dir}/TransitionStyleInfo.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
93 <fileset file="${src_dir}/RendererBase.js" />
f745eac IE9: Allow border-image and -pie-background:linear-gradient to work t…
Jason Johnston authored
94 <fileset file="${src_dir}/IE9RootRenderer.js" />
a3423c5 Add support for rendering of linear-gradient in IE9 standards mode. T…
Jason Johnston authored
95 <fileset file="${src_dir}/IE9BackgroundRenderer.js" />
ef5ccac Work in progress on border-image support for IE9.
Jason Johnston authored
96 <fileset file="${src_dir}/IE9BorderImageRenderer.js" />
dc459e6 Move the .htc event listeners and event handling logic into an Elemen…
Jason Johnston authored
97 <fileset file="${src_dir}/Element.js" />
98 <fileset file="${src_dir}/PIE_API.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
99 <fileset file="${src_dir}/js_close.js" />
1da1423 Add empty vbscript block at end of htc file as a workaround for very …
Jason Johnston authored
100
101 <filterchain>
102 <tokenfilter>
103 <replacestring from="$Version$" to="${version}" />
104 </tokenfilter>
105 </filterchain>
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
106 </concat>
107
4538197 Combine htc wrapper files into one
Jason Johnston authored
108 <loadfile property="htc_script_uncompressed" srcFile="${src_dir}/htc_script.js">
1da1423 Add empty vbscript block at end of htc file as a workaround for very …
Jason Johnston authored
109 <filterchain>
110 <tokenfilter>
111 <replacestring from="$JSVariant$" to="_uncompressed" />
112 <replacestring from="$DefaultBaseUrls$" to="${default_base_urls}" />
113 </tokenfilter>
114 </filterchain>
4538197 Combine htc wrapper files into one
Jason Johnston authored
115 </loadfile>
116 <copy file="${src_dir}/htc_markup.htc" tofile="${build_dir}/PIE_uncompressed.htc">
117 <filterchain>
118 <tokenfilter>
119 <replacestring from="$Version$" to="${version}" />
120 <replacestring from="$Contents$" to="${htc_script_uncompressed}" />
121 </tokenfilter>
122 </filterchain>
123 </copy>
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
124 </target>
125
5d1c05b Separate packaging from building in ant build; force clean before pac…
Jason Johnston authored
126 <target name="build-compressed" depends="build-uncompressed">
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots o…
Jason Johnston authored
127 <exec executable="java">
128 <arg line='-jar tools/compiler.jar
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
129 --js ${build_dir}/PIE_IE678_uncompressed.js
4119484 Fix split build for IE9: add missing files and functions, move color …
Jason Johnston authored
130 --module "PIE_IE678:1"
131 --module_output_path_prefix ${build_dir}/
132 --compilation_level ADVANCED_OPTIMIZATIONS
133 --externs ${src_dir}/closure_externs.js' />
134 </exec>
135
136 <exec executable="java">
137 <arg line='-jar tools/compiler.jar
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
138 --js ${build_dir}/PIE_IE9_uncompressed.js
4119484 Fix split build for IE9: add missing files and functions, move color …
Jason Johnston authored
139 --module "PIE_IE9:1"
140 --module_output_path_prefix ${build_dir}/
141 --compilation_level ADVANCED_OPTIMIZATIONS
142 --externs ${src_dir}/closure_externs.js' />
143 </exec>
144
145 <exec executable="java">
146 <arg line='-jar tools/compiler.jar
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
147 --js ${src_dir}/htc_script.js
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots o…
Jason Johnston authored
148 --js ${src_dir}/closure_preservefunctions.js
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
149 --module "htc_script_compressed:1"
f83e0b1 Switch to Closure Compiler, using advanced optimizations mode. Lots o…
Jason Johnston authored
150 --module "temp:1"
151 --module_output_path_prefix ${build_dir}/
152 --compilation_level ADVANCED_OPTIMIZATIONS
153 --externs ${src_dir}/closure_externs.js' />
154 </exec>
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
155
4538197 Combine htc wrapper files into one
Jason Johnston authored
156 <loadfile property="htc_script_compressed" srcFile="${build_dir}/htc_script_compressed.js">
157 <filterchain>
158 <tokenfilter>
159 <replacestring from="$JSVariant$" to="" />
160 <replacestring from="$DefaultBaseUrls$" to="${default_base_urls}" />
161 </tokenfilter>
162 </filterchain>
163 </loadfile>
164 <copy file="${src_dir}/htc_markup.htc" tofile="${build_dir}/PIE.htc">
1da1423 Add empty vbscript block at end of htc file as a workaround for very …
Jason Johnston authored
165 <filterchain>
166 <striplinecomments>
167 <comment value="//#" />
168 </striplinecomments>
169 <tokenfilter>
4538197 Combine htc wrapper files into one
Jason Johnston authored
170 <replacestring from="$Contents$" to="${htc_script_compressed}" />
1da1423 Add empty vbscript block at end of htc file as a workaround for very …
Jason Johnston authored
171 <replacestring from="$Version$" to="${version}" />
172 </tokenfilter>
173 </filterchain>
4538197 Combine htc wrapper files into one
Jason Johnston authored
174 </copy>
743eb63 Add build number to comment top of htc file
Jason Johnston authored
175
1531a07 Add PHP wrapper as workaround for web servers which are not configure…
Jason Johnston authored
176 <delete file="${build_dir}/temp.js" />
aa82152 Implement split build and loader. PIE.htc is now a very small (1K) st…
Jason Johnston authored
177 <delete file="${build_dir}/htc_script_compressed.js" />
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
178 </target>
179
1531a07 Add PHP wrapper as workaround for web servers which are not configure…
Jason Johnston authored
180
181 <target name="copy-wrappers">
182 <copy todir="${build_dir}">
183 <fileset dir="${src_dir}/wrappers" />
184 </copy>
185 </target>
186
187
5d1c05b Separate packaging from building in ant build; force clean before pac…
Jason Johnston authored
188 <target name="build" depends="build-uncompressed,build-compressed" />
189
190 <target name="package" depends="clean,build,copy-wrappers">
d62b0c9 Add creation of distributable zip package to build script
Jason Johnston authored
191 <!-- Create distribution bundle -->
192 <zip destfile="${build_dir}/PIE.zip" basedir="${build_dir}"/>
193 </target>
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
194
2798bc5 Add ant task to automate pushing build result files to the gh-pages b…
Jason Johnston authored
195
196
197 <target name="deploy" depends="build" description="Builds and pushes the files to the gh-pages branch">
198 <!-- Clone repo into temp dir, checking out the gh-pages branch -->
199 <exec executable="git">
200 <arg line="clone --reference . --branch gh-pages git@github.com:lojjic/PIE.git ${build_dir}/temp-git-clone" />
201 </exec>
202
203 <!-- Copy built files into correct version dir -->
204 <copy todir="${build_dir}/temp-git-clone/files/builds/${version}" overwrite="true">
205 <fileset file="${build_dir}/PIE.htc" />
206 <fileset file="${build_dir}/PIE_IE678.js" />
207 <fileset file="${build_dir}/PIE_IE9.js" />
208 <fileset file="${build_dir}/PIE_uncompressed.htc" />
209 <fileset file="${build_dir}/PIE_IE678_uncompressed.js" />
210 <fileset file="${build_dir}/PIE_IE9_uncompressed.js" />
211 </copy>
212
213 <!-- Commit and push -->
214 <exec executable="git" dir="${build_dir}/temp-git-clone">
215 <arg line='commit -a -m "Update files for build ${version}"' />
216 </exec>
217 <exec executable="git" dir="${build_dir}/temp-git-clone">
218 <arg line='push origin gh-pages' />
219 </exec>
220
221 <!-- Cleanup -->
222 <delete dir="${build_dir}/temp-git-clone" />
223 </target>
224
3e71920 Split the monolithic PIE.htc into separate source files per class/com…
Jason Johnston authored
225 </project>
Something went wrong with that request. Please try again.