]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | <?xml version="1.0" encoding="utf-8"?>\r |
2 | <project name="modern" default=".help">\r | |
3 | <!--\r | |
4 | The build-impl.xml file imported here contains the guts of the build process. It is\r | |
5 | a great idea to read that file to understand how the process works, but it is best to\r | |
6 | limit your changes to this file.\r | |
7 | -->\r | |
8 | <import file="${basedir}/.sencha/package/build-impl.xml"/>\r | |
9 | <import file="${basedir}/.sencha/test/test-impl.xml"/>\r | |
10 | \r | |
11 | <!--\r | |
12 | The following targets can be provided to inject logic before and/or after key steps\r | |
13 | of the build process:\r | |
14 | \r | |
15 | The "init-local" target is used to initialize properties that may be personalized\r | |
16 | for the local machine.\r | |
17 | \r | |
18 | <target name="-before-init-local"/>\r | |
19 | <target name="-after-init-local"/>\r | |
20 | \r | |
21 | The "clean" target is used to clean build output from the build.dir.\r | |
22 | \r | |
23 | <target name="-before-clean"/>\r | |
24 | <target name="-after-clean"/>\r | |
25 | \r | |
26 | The general "init" target is used to initialize all other properties, including\r | |
27 | those provided by Sencha Cmd.\r | |
28 | \r | |
29 | <target name="-before-init"/>\r | |
30 | <target name="-after-init"/>\r | |
31 | \r | |
32 | The "build" target performs the call to Sencha Cmd to build the application.\r | |
33 | \r | |
34 | <target name="-before-build"/>\r | |
35 | <target name="-after-build"/>\r | |
36 | -->\r | |
37 | \r | |
38 | \r | |
39 | <target name="-js">\r | |
40 | <x-compile refid="${compiler.ref.id}">\r | |
41 | <![CDATA[\r | |
42 | --ignore=${classpath.excludes}\r | |
43 | --include-preprocessor-tags=true\r | |
44 | --options=debug:true,product:ext,minVersion:6,logger:yes\r | |
45 | concatenate\r | |
46 | --output-file=${build.dir}/ext-modern-all-debug.js\r | |
47 | and\r | |
48 | union\r | |
49 | --tag=package-core,core\r | |
50 | and\r | |
51 | concatenate\r | |
52 | --output-file=${build.dir}/ext-modern-debug.js\r | |
53 | and\r | |
54 | include\r | |
55 | +all\r | |
56 | and\r | |
57 | exclude\r | |
58 | --tag=pacakge-core,core\r | |
59 | and\r | |
60 | metadata\r | |
61 | +append\r | |
62 | +alternates\r | |
63 | --base-path=${build.dir}\r | |
64 | --output-file=${build.dir}/ext-modern-debug.js\r | |
65 | and\r | |
66 | metadata\r | |
67 | +append\r | |
68 | +alias\r | |
69 | --base-path=${build.dir}\r | |
70 | --output-file=${build.dir}/ext-modern-debug.js\r | |
71 | and\r | |
72 | --options=debug:false,logger:no\r | |
73 | union\r | |
74 | +all\r | |
75 | and\r | |
76 | concatenate\r | |
77 | +yui\r | |
78 | --output-file=${build.dir}/ext-modern-all.js\r | |
79 | ]]>\r | |
80 | </x-compile>\r | |
81 | </target>\r | |
82 | \r | |
83 | <target name="-after-js">\r | |
84 | \r | |
85 | <x-compress-js\r | |
86 | srcfile="${build.dir}/ext-modern-debug.js"\r | |
87 | outfile="${build.dir}/ext-modern.js"/>\r | |
88 | \r | |
89 | <x-compress-js\r | |
90 | srcfile="${build.dir}/ext-modern-all-debug.js"\r | |
91 | outfile="${build.dir}/ext-modern-all.js"/>\r | |
92 | \r | |
93 | <for list="ext-modern,ext-modern-all"\r | |
94 | param="file">\r | |
95 | <sequential>\r | |
96 | <x-strip-js srcfile="${build.dir}/@{file}-debug.js"\r | |
97 | outfile="${build.dir}/@{file}-debug.js"/>\r | |
98 | </sequential>\r | |
99 | </for>\r | |
100 | </target>\r | |
101 | \r | |
102 | <target name="charts" depends="init">\r | |
103 | <x-compile refid="${compiler.ref.id}">\r | |
104 | <![CDATA[\r | |
105 | classpath\r | |
106 | +new\r | |
107 | -name=charts\r | |
108 | -path=${framework.dir}/packages/charts/modern/src\r | |
109 | and\r | |
110 | classpath\r | |
111 | -name=charts\r | |
112 | -path=${framework.dir}/packages/charts/src\r | |
113 | and\r | |
114 | classpath\r | |
115 | -name=charts\r | |
116 | -path=${framework.dir}/packages/charts/modern/overrides\r | |
117 | -tags=overrides\r | |
118 | and\r | |
119 | classpath\r | |
120 | -name=charts\r | |
121 | -path=${framework.dir}/packages/charts/overrides\r | |
122 | -tags=overrides\r | |
123 | and\r | |
124 | include\r | |
125 | -all\r | |
126 | ]]>\r | |
127 | </x-compile>\r | |
128 | </target>\r | |
129 | \r | |
130 | <target name="ux" depends="init">\r | |
131 | <x-compile refid="${compiler.ref.id}">\r | |
132 | <![CDATA[\r | |
133 | classpath\r | |
134 | +new\r | |
135 | -name=ux\r | |
136 | -path=${framework.dir}/packages/ux/modern/src\r | |
137 | and\r | |
138 | classpath\r | |
139 | -name=ux\r | |
140 | -path=${framework.dir}/packages/ux/src\r | |
141 | and\r | |
142 | classpath\r | |
143 | -name=ux\r | |
144 | -path=${framework.dir}/packages/ux/modern/overrides\r | |
145 | -tags=overrides\r | |
146 | and\r | |
147 | classpath\r | |
148 | -name=ux\r | |
149 | -path=${framework.dir}/packages/ux/overrides\r | |
150 | -tags=overrides\r | |
151 | and\r | |
152 | include\r | |
153 | -all\r | |
154 | ]]>\r | |
155 | </x-compile>\r | |
156 | </target>\r | |
157 | \r | |
158 | <target name="exporter" depends="init">\r | |
159 | <x-compile refid="${compiler.ref.id}">\r | |
160 | <![CDATA[\r | |
161 | classpath\r | |
162 | +new\r | |
163 | -name=ux\r | |
164 | -path=${framework.dir}/../packages/exporter/modern/src\r | |
165 | and\r | |
166 | classpath\r | |
167 | -name=ux\r | |
168 | -path=${framework.dir}/../packages/exporter/src\r | |
169 | and\r | |
170 | classpath\r | |
171 | -name=ux\r | |
172 | -path=${framework.dir}/../packages/exporter/modern/overrides\r | |
173 | -tags=overrides\r | |
174 | and\r | |
175 | classpath\r | |
176 | -name=ux\r | |
177 | -path=${framework.dir}/../packages/exporter/overrides\r | |
178 | -tags=overrides\r | |
179 | and\r | |
180 | include\r | |
181 | -all\r | |
182 | ]]>\r | |
183 | </x-compile>\r | |
184 | </target>\r | |
185 | \r | |
186 | <target name="pivot" depends="init">\r | |
187 | <x-compile refid="${compiler.ref.id}">\r | |
188 | <![CDATA[\r | |
189 | classpath\r | |
190 | +new\r | |
191 | -name=ux\r | |
192 | -path=${framework.dir}/../packages/pivot/modern/src\r | |
193 | and\r | |
194 | classpath\r | |
195 | -name=ux\r | |
196 | -path=${framework.dir}/../packages/pivot/src\r | |
197 | and\r | |
198 | classpath\r | |
199 | -name=ux\r | |
200 | -path=${framework.dir}/../packages/pivot/modern/overrides\r | |
201 | -tags=overrides\r | |
202 | and\r | |
203 | classpath\r | |
204 | -name=ux\r | |
205 | -path=${framework.dir}/../packages/pivot/overrides\r | |
206 | -tags=overrides\r | |
207 | and\r | |
208 | include\r | |
209 | -all\r | |
210 | ]]>\r | |
211 | </x-compile>\r | |
212 | </target>\r | |
213 | \r | |
214 | <target name="core-bootstrap" depends="init">\r | |
215 | <local name="base.path"/>\r | |
216 | <property name="base.path" value="${framework.dir}"/>\r | |
217 | \r | |
218 | <delete file="${base.dir}/bootstrap-modern-manifest.js"/>\r | |
219 | \r | |
220 | <x-compile refid="${compiler.ref.id}">\r | |
221 | <![CDATA[\r | |
222 | include\r | |
223 | -all\r | |
224 | and\r | |
225 | exclude\r | |
226 | +recursive\r | |
227 | -class=Ext.Loader\r | |
228 | and\r | |
229 | metadata\r | |
230 | -tpl=var Ext = Ext || '{' '}'; Ext.manifest = {0};\r | |
231 | -info=AppManifest\r | |
232 | -basePath=${base.path}\r | |
233 | +append\r | |
234 | +bootRelative\r | |
235 | -output-file=${base.path}/bootstrap-modern-manifest.js\r | |
236 | ]]>\r | |
237 | </x-compile>\r | |
238 | \r | |
239 | <x-bootstrap file="${base.path}/bootstrap.js"\r | |
240 | basedir="${base.path}"\r | |
241 | coreFilesFile="${base.path}/bootstrap-modern-files.js"\r | |
242 | classMetadataFile="${base.path}/bootstrap-modern-data.js"\r | |
243 | overridesFile="${base.path}/bootstrap-modern-data.js"\r | |
244 | includeBoot="true"\r | |
245 | includeCoreFiles="true"\r | |
246 | appendCoreFiles="false"\r | |
247 | appendClassMetadata="false"\r | |
248 | appendOverrides="true"\r | |
249 | coreFilesJsonpTpl="Ext.Boot.loadSyncBasePrefix"\r | |
250 | loaderConfigJsonpTpl="Ext.Loader.addBaseUrlClassPathMappings"\r | |
251 | overrideTpl="Ext.Loader.loadScriptsSyncBasePrefix"\r | |
252 | overrideTplType="jsonp"\r | |
253 | overrideExcludeTags="">\r | |
254 | <![CDATA[\r | |
255 | Ext.Boot.loadSyncBasePrefix([\r | |
256 | "bootstrap-modern-manifest.js",\r | |
257 | "bootstrap-modern-files.js"\r | |
258 | ]);\r | |
259 | ]]>\r | |
260 | </x-bootstrap>\r | |
261 | \r | |
262 | <!--\r | |
263 | Duplicate the "ext.js" dev-mode bootstrap file to the other deployed names\r | |
264 | -->\r | |
265 | <for list="ext-modern,ext-modern-all" param="part1">\r | |
266 | <sequential>\r | |
267 | <for list=".,-debug." param="part2">\r | |
268 | <sequential>\r | |
269 | <local name="out"/>\r | |
270 | <property name="out" value="@{part1}@{part2}js"/>\r | |
271 | <echo>Generating ${out}</echo>\r | |
272 | <copy file="${base.path}/bootstrap.js" tofile="${base.path}/${out}"\r | |
273 | overwrite="true"/>\r | |
274 | <replace file="${base.path}/${out}"\r | |
275 | token="bootstrapper"\r | |
276 | value="bootstrapper :: GENERATED COPY! Edit "core/bootstrap.js""/>\r | |
277 | </sequential>\r | |
278 | </for>\r | |
279 | </sequential>\r | |
280 | </for>\r | |
281 | <delete file="${base.path}/bootstrap.js"/>\r | |
282 | </target>\r | |
283 | \r | |
284 | <target name="bootstrap"\r | |
285 | description="*** Regenerate files needed by standalone examples and unit tests ***"\r | |
286 | depends="charts,ux,exporter,core-bootstrap,test-bootstrap"/>\r | |
287 | \r | |
288 | </project>\r |