]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/kiva/.sencha/app/page-impl.xml
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / kiva / .sencha / app / page-impl.xml
1 <project name="page-impl.xml">
2 <target name="-build-output-microload-page">
3 <if>
4 <x-is-true value="${build.enable.embedded.manifest}"/>
5 <then>
6 <x-compile refid="${compiler.ref.id}">
7 <![CDATA[
8 # generate microloader file
9 microload
10 -operation=microloader
11 -microloaderPath=${app.microloader.path}
12 -tpl=${build.microloader.code.tpl}
13 -out=${build.microloader.path}
14 and
15 # generate json file
16 microload
17 -operation=json
18 -append
19 -tpl=${build.microloader.json.tpl.embedded}
20 -out=${build.microloader.path}
21 ]]>
22 </x-compile>
23 </then>
24 <else>
25 <x-compile refid="${compiler.ref.id}">
26 <![CDATA[
27 # generate json file
28 microload
29 -operation=json
30 -tpl=${build.microloader.json.tpl.standalone}
31 -out=${build.out.json.path}
32 and
33 # generate microloader file
34 microload
35 -operation=microloader
36 -microloaderPath=${app.microloader.path}
37 -tpl=${build.microloader.code.tpl}
38 -out=${build.microloader.path}
39 and
40 microload
41 -operation=json
42 -append
43 -tpl=${build.microloader.json.tpl.external}
44 -out=${build.microloader.path}
45 ]]>
46 </x-compile>
47 </else>
48 </if>
49
50 <if>
51 <x-is-true value="${build.enable.embedded.microloader}"/>
52 <then>
53 <x-sencha-command dir="${app.dir}" inheritall="true">
54 <![CDATA[
55 fs
56 minify
57 ${build.embedded.microloader.compressor}
58 -from=${build.microloader.path}
59 -to=${build.microloader.path}
60 ]]>
61 </x-sencha-command>
62 <x-compile refid="${compiler.ref.id}">
63 <![CDATA[
64 markup
65 -contentFile=${build.microloader.path}
66 -tpl=${build.embedded.microloader.tpl}
67 -out=${build.out.page.path}
68 ]]>
69 </x-compile>
70
71 <!--once the generated microloader file is embedded, delete it-->
72 <delete file="${build.microloader.path}"/>
73 </then>
74 <else>
75 <x-compile refid="${compiler.ref.id}">
76 <![CDATA[
77 markup
78 -markup=${build.external.microloader.markup}
79 -out=${build.out.page.path}
80 ]]>
81 </x-compile>
82 </else>
83 </if>
84
85 </target>
86
87 <!-- generates a separate json manifest for use with native packager -->
88 <target name="-build-standalone-json-manifest">
89 <x-run-if-true value="${enable.standalone.manifest}">
90 <x-compile refid="${compiler.ref.id}">
91 <![CDATA[
92 # generate json file
93 microload
94 -operation=json
95 -tpl=${build.microloader.json.tpl.standalone}
96 -out=${build.out.json.path}
97 ]]>
98 </x-compile>
99 </x-run-if-true>
100 </target>
101
102 <target name="-build-output-markup-page">
103 <condition property="internal.app.css.rel" value="${app.out.css.rel}">
104 <x-is-true value="${enable.ext42.themes}"/>
105 </condition>
106 <property name="internal.app.css.rel" value=""/>
107
108 <x-compile refid="${compiler.ref.id}">
109 <![CDATA[
110 markup
111 -out=${build.out.page.path}
112 ]]>
113 </x-compile>
114 </target>
115
116 <!-- '-detect-app-build-properties' is defined in js-impl.xml -->
117 <target name="-build-output-page"
118 depends="-detect-app-build-properties,-build-standalone-json-manifest">
119 <if>
120 <x-is-true value="${build.output.markuponly}"/>
121 <then>
122 <x-ant-call target="-build-output-markup-page"/>
123 </then>
124 <else>
125 <x-ant-call target="-build-output-microload-page"/>
126 </else>
127 </if>
128 </target>
129
130 <target name="-copy-app-resources" depends="-init-compiler">
131 <if>
132 <x-is-false value="${build.output.markuponly}"/>
133 <then>
134 <x-compile refid="${compiler.ref.id}">
135 <![CDATA[
136 app-resources
137 -compress=${enable.resource.compression}
138 -out=${build.dir}
139 ]]>
140 </x-compile>
141 </then>
142 </if>
143 </target>
144
145 <target name="-generate-deltas" depends="-init-compiler">
146 <if>
147 <and>
148 <x-is-true value="${enable.deltas}"/>
149 <x-is-false value="${build.output.markuponly}"/>
150 </and>
151 <then>
152 <x-compile refid="${compiler.ref.id}">
153 <![CDATA[
154 deltas
155 -archivePath=${build.out.archive.path}
156 -deltaPath=${build.out.delta.path}
157 -resourcePath=${build.dir}
158 ]]>
159 </x-compile>
160 </then>
161 </if>
162 </target>
163
164 <target name="-generate-cache-manifest" depends="-init-compiler">
165 <if>
166 <and>
167 <x-is-true value="${enable.cache.manifest}"/>
168 <x-is-false value="${build.output.markuponly}"/>
169 </and>
170 <then>
171 <x-compile refid="${compiler.ref.id}">
172 <![CDATA[
173 cache-manifest
174 -cacheManifestPath=${build.manifest.path}
175 ]]>
176 </x-compile>
177 <replace file="${build.out.page.path}"
178 token="&lt;html manifest=&quot;&quot;"
179 value="&lt;html manifest=&quot;${build.manifest.name}&quot;"/>
180 </then>
181 </if>
182 </target>
183
184 <target name="-before-page"/>
185 <target name="-page"
186 depends="-copy-app-resources,
187 -generate-deltas,
188 -build-output-page,
189 -generate-cache-manifest"/>
190 <target name="-after-page"/>
191 </project>