]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/blackberry/.sencha/app/js-impl.xml
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / blackberry / .sencha / app / js-impl.xml
1 <project name="js-impl">
2 <!--
3 this target extracts split mode information from the compiler's app
4 processor to determine various pieces of information
5 -->
6 <target name="-detect-app-build-properties"
7 depends="-init-compiler">
8 <x-load-app-builder-properties
9 refid="${compiler.ref.id}"
10 splitModePropName="enable.split.mode"
11 pageModePropName="app.page.mode"/>
12 </target>
13
14 <!--
15 this is the standard js compile target that builds the output js file(s)
16 -->
17 <target name="-compile-js" depends="-detect-app-build-properties">
18 <if>
19 <x-is-true value="${enable.split.mode}"/>
20 <then>
21 <x-compile refid="${compiler.ref.id}">
22 <![CDATA[
23 # build a separate sdk-only js file
24 union
25 -tag=package-sencha-core,framework
26 and
27 ${build.optimize}
28 and
29 concat
30 ${build.compression}
31 -out=${build.framework.file}
32 ${build.concat.options}
33
34 # now build the all-classes file, without
35 # the framework code included
36 and
37 restore
38 page
39 and
40 exclude
41 -tag=framework,package-sencha-core
42 and
43 ${build.optimize}
44 and
45 concat
46 ${build.compression}
47 -out=${build.classes.file}
48 ${build.concat.options}
49 ]]>
50 </x-compile>
51 </then>
52 <else>
53 <x-compile refid="${compiler.ref.id}">
54 <![CDATA[
55 # build an all-classes.js file that contains
56 # all code needed by the app
57 restore
58 page
59 and
60 ${build.optimize}
61 and
62 concat
63 ${build.compression}
64 -out=${build.classes.file}
65 ${build.concat.options}
66 ]]>
67 </x-compile>
68 </else>
69 </if>
70 </target>
71
72 <!--
73 Build javascript
74 -->
75 <target name="-before-js"/>
76 <target name="-js" depends="-compile-js"/>
77 <target name="-after-js"/>
78 </project>