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