Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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