Repository navigation
Expand file tree
/
Copy pathbuild.xml
More file actions
109 lines (91 loc) · 4.18 KB
/
Copy pathbuild.xml
File metadata and controls
109 lines (91 loc) · 4.18 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project name="native buttonexample" default="main" basedir=".">
<property name="FLEXJS_HOME" location="../../.."/>
<property name="example" value="ButtonExample" />
<property file="${FLEXJS_HOME}/env.properties"/>
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
<include file="${basedir}/../../build_example.xml" />
<condition property="JS.SWC" value="${FLEXJS_HOME}/js/libs/js.swc" >
<and>
<not>
<isset property="JS.SWC" />
</not>
<available file="${FLEXJS_HOME}/js/libs/js.swc" type="file" />
</and>
</condition>
<condition property="JS.SWC" value="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" >
<and>
<not>
<isset property="JS.SWC" />
</not>
<available file="${FALCONJX_HOME}/../externs/js/out/bin/js.swc" type="file" />
</and>
</condition>
<condition property="JS.SWC" value="${FALCONJX_HOME}/libs/js.swc" >
<and>
<not>
<isset property="JS.SWC" />
</not>
<available file="${FALCONJX_HOME}/libs/js.swc" type="file" />
</and>
</condition>
<path id="lib.path">
<fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
</path>
<target name="main" depends="clean,build" description="Clean build of ${example}">
</target>
<target name="build">
<java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
fork="true">
<jvmarg line="${mxmlc.jvm.args}"/>
<jvmarg line="-Dflexlib=${FLEXJS_HOME}/frameworks}"/>
<arg value="+flexlib=${FLEXJS_HOME}/frameworks" />
<arg value="-debug" />
<arg value="-define=CONFIG::as_only,false" />
<arg value="-define=CONFIG::js_only,true" />
<arg value="-external-library-path=${JS.SWC}" />
<arg value="-compiler.mxml.children-as-data" />
<arg value="-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent" />
<arg value="-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent" />
<arg value="-compiler.binding-value-change-event-type=valueChange" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
<arg value="${basedir}/src/${example}.as" />
</java>
<fail>
<condition>
<not>
<or>
<equals arg1="${errorCode}" arg2="0" />
<equals arg1="${errorCode}" arg2="2" />
</or>
</not>
</condition>
</fail>
</target>
<target name="clean">
<delete dir="${basedir}/bin" failonerror="false" />
<delete dir="${basedir}/bin-debug" failonerror="false" />
<delete dir="${basedir}/bin-release" failonerror="false" />
<delete dir="${basedir}/target" failonerror="false" />
</target>
</project>