Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 359 lines (302 sloc) 18.556 kB
6accdb1 @aharui Text Layout Framework Donation From Adobe
aharui authored
1 <!--
2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to You under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17
18 <project name="tlf" default="main" basedir=".">
0d3d931 Minor modifications so trunk will build. By default FLEX_HOME is the…
Carol Frampton authored
19
20 <!-- Default Flex SDK is the trunk. Override on cmd line with -D=FLEX_HOME=path. -->
21 <property name="FLEX_HOME" value="${basedir}/../../sdk/trunk"/>
22 <echo>FLEX_HOME is ${FLEX_HOME}</echo>
23
6accdb1 @aharui Text Layout Framework Donation From Adobe
aharui authored
24 <property name="flex.sdk.frameworks" value="${FLEX_HOME}/frameworks"/>
25 <property name="flex.locale" value="en_US"/>
26
27 <property name="output.dir" value="bin"/>
28 <property name="output.docs" value="${FLEX_HOME}/tempDoc"/>
29 <property name="project.uri" value="library://ns.adobe.com/flashx/textLayout"/>
30 <property name="compc.jvm.args" value="-Xmx384m" />
31 <property name="textLayout.namespace" value="flashx.textLayout"/>
32
33 <property name="asTestApps.dir" value="${basedir}/asTestApps"/>
34 <property name="textLayout.dir" value="${basedir}/textLayout"/>
35 <property name="textLayout_editBar.dir" value="${basedir}/sdk/samples/flex/textLayout_editBar"/>
36 <property name="textLayout_ui.dir" value="${basedir}/sdk/samples/flex/textLayout_ui"/>
37 <property name="testApps.dir" value="${basedir}/testApps"/>
38
39 <property name="automation_core.dir" value="${basedir}/automation_core"/>
40 <property name="automation_tests.dir" value="${basedir}/automation_tests"/>
41 <property name="automation_apps.dir" value="${basedir}/automation_apps"/>
42 <property name="test.dir" value="${basedir}/test"/>
43
44 <property name="dbg" value="false"/>
45 <property name="rel" value="true"/>
46
47 <condition property="digest" value="false" else="true">
48 <istrue value="${debug}"/>
49 </condition>
50
0d3d931 Minor modifications so trunk will build. By default FLEX_HOME is the…
Carol Frampton authored
51 <!-- for Flex tags suchs as mxmlc and compc -->
52 <path id="flexTasks.path">
53 <fileset dir="${FLEX_HOME}">
54 <include name="lib/flexTasks.jar" />
55 <include name="ant/lib/flexTasks.jar" />
56 </fileset>
57 </path>
58 <taskdef resource="flexTasks.tasks" classpathref="flexTasks.path"/>
6accdb1 @aharui Text Layout Framework Donation From Adobe
aharui authored
59
60 <target name="all" depends="clean,textLayout, asTestApps,textLayout_editBar, textLayout_ui, testApps, automation_core, automation_tests, automation_apps" description="Clean build of TLF component and associated applications"/>
61 <target name="main" depends="clean,textLayout" description="Clean build of textLayout.swc"/>
62
63 <target name="clean" description="Cleans all SWCs and SWFs">
64 <delete failonerror="false">
65 <fileset dir="${output.dir}">
66 </fileset>
67 </delete>
68 </target>
69
70 <target name="textLayout" description="Compiles textLayout.swc">
71 <compc fork="true"
72 output="${output.dir}/textLayout.swc"
73 compute-digest="true"
74 include-classes="flashx.textLayout.CoreClasses flashx.textLayout.EditClasses flashx.textLayout.ConversionClasses">
75 <jvmarg line="${compc.jvm.args}"/>
76 <keep-as3-metadata>IMXMLObject</keep-as3-metadata>
77 <include-namespaces uri="${project.uri}"/>
78 <namespace uri="${project.uri}" manifest="${textLayout.dir}/manifest.xml"/>
79 <source-path path-element="${textLayout.dir}/src"/>
80 <library-path/>
81 <include-file name="manifest.xml" path="${textLayout.dir}/manifest.xml"/>
82 <static-link-runtime-shared-libraries/>
83 <define name="CONFIG::debug" value="${dbg}"/>
84 <define name="CONFIG::release" value="${rel}"/>
85 </compc>
86 </target>
87
88 <target name="documentation" depends="textLayout" description="Updates textLayout.swc with ASDoc XML">
89 <condition property="asdoc.jvm.args" value="-Xmx384m">
90 <os family="windows"/>
91 </condition>
92 <condition property="asdoc.jvm.args" value="-Xmx512m">
93 <os family="mac"/>
94 </condition>
95 <condition property="asdoc.jvm.args" value="-Xmx512m">
96 <os family="unix"/>
97 </condition>
98
99 <delete failonerror="false">
100 <fileset dir="${output.docs}">
101 <include name="validation_errors.log"/>
102 </fileset>
103 </delete>
104
105 <!-- builds ASDoc XML -->
106 <delete dir="${output.docs}\tempdita" failonerror="false" includeEmptyDirs="true"/>
107 <asdoc output="${output.docs}" lenient="false" failonerror="true" keep-xml="true" skip-xsl="true" fork="true">
108 <doc-classes class="flashx.textLayout.CoreClasses"/>
109 <doc-classes class="flashx.textLayout.EditClasses"/>
110 <doc-classes class="flashx.textLayout.ConversionClasses"/>
111 <compiler.source-path path-element="src"/>
112 <external-library-path dir="${output.dir}/textLayout.swc"/>
113 <doc-namespaces uri="${project.uri}"/>
114 <namespace uri="${project.uri}" manifest="manifest.xml"/>
115 <jvmarg line="${asdoc.jvm.args}"/>
116 <static-link-runtime-shared-libraries/>
117 <define name="CONFIG::debug" value="${dbg}"/>
118 <define name="CONFIG::release" value="${rel}"/>
119 </asdoc>
120
121 <available file="${output.docs}/validation_errors.log" property="asdoc.errors"/>
122 <fail if="asdoc.errors" message="ASDoc Errors"/>
123 </target>
124
125 <target name="textLayout_editBar" description="Builds textLayout_editBar.swc">
126 <compc fork="${forkValue}" output="${output.dir}/apps/testApps/bin/textLayout_editBar.swc"
127 include-classes="EditBarClasses" compute-digest="${digest}">
128 <source-path path-element="${textLayout_editBar.dir}/src"/>
129 <jvmarg line="${jvm.args}"/>
130 <library-path/>
131 <external-library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
132
133 <!-- <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="flex.swc" append="true"/> --><!-- for Flex SDK 4.0 -->
134 <external-library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
135
136 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
137 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="rpc.swc" append="true"/>
138 <external-library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="framework_rb.swc" append="true"/>
139 <external-library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="rpc_rb.swc" append="true"/>
140 <static-link-runtime-shared-libraries/>
141
142 <define name="CONFIG::debug" value="${dbg}"/>
143 <define name="CONFIG::release" value="${rel}"/>
144 </compc>
145 </target>
146
147 <target name="textLayout_ui" description="Builds textLayout_ui.swc">
148 <compc fork="${forkValue}" output="${output.dir}/apps/testApps/bin/textLayout_ui.swc"
149 include-classes="${textLayout.namespace}.UiClasses,bxf.BxfClasses" compute-digest="${digest}">
150 <source-path path-element="${textLayout_ui.dir}/src"/>
151 <jvmarg line="${jvm.args}"/>
152 <library-path/>
153
154 <external-library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
155
156 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
157 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="rpc.swc" append="true"/>
158 <external-library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="framework_rb.swc" append="true"/>
159 <external-library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="rpc_rb.swc" append="true"/>
160 <external-library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
161 <static-link-runtime-shared-libraries/>
162
163 <define name="CONFIG::debug" value="${dbg}"/>
164 <define name="CONFIG::release" value="${rel}"/>
165 </compc>
166 </target>
167
168 <target name="testApps" description="Builds TLF test application">
169 <mxmlc fork="${forkValue}" file="${testApps.dir}/src/flowCss.css"
170 keep-generated-actionscript="false"
171 output="${output.dir}/apps/testApps/bin/Flow.swf">
172 <jvmarg line="${jvm.args}"/>
173 <library-path/>
174 <library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
175 <library-path dir="${output.dir}/apps/testApps/bin" includes="textLayout_ui.swc" append="true"/>
176 <library-path dir="${output.dir}/apps/testApps/bin" includes="textLayout_editBar.swc" append="true"/>
177
178 <!-- <library-path dir="${flex.sdk.frameworks}/libs/" includes="flex.swc" append="true"/> --><!-- for Flex SDK 4.0 -->
179 <library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
180
181 <library-path dir="${flex.sdk.frameworks}/libs/" includes="flex4.swc" append="true"/>
182 <library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
183 <library-path dir="${flex.sdk.frameworks}/libs/" includes="rpc.swc" append="true"/>
184 <library-path dir="${flex.sdk.frameworks}/libs/" includes="spark.swc" append="true"/>
185 <library-path dir="${flex.sdk.frameworks}/libs/" includes="sparkskins.swc" append="true"/>
186 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="framework_rb.swc" append="true"/>
187 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="spark_rb.swc" append="true"/>
188 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="rpc_rb.swc" append="true"/>
189 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="flex4_rb.swc" append="true"/>
190 <static-link-runtime-shared-libraries/>
191 </mxmlc>
192
193 <mxmlc fork="${forkValue}" file="${testApps.dir}/src/Flow.mxml"
194 keep-generated-actionscript="false"
195 output="${output.dir}/apps/testApps/bin/Flow.swf">
196
197 <default-size width="1100" height="550" />
198 <jvmarg line="${jvm.args}"/>
199 <library-path/>
200 <library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
201 <library-path dir="${output.dir}/apps/testApps/bin" includes="textLayout_ui.swc" append="true"/>
202 <library-path dir="${output.dir}/apps/testApps/bin" includes="textLayout_editBar.swc" append="true"/>
203 <!-- <library-path dir="${flex.sdk.frameworks}/libs/" includes="flex.swc" append="true"/> --><!-- for Flex SDK 4.0 -->
204 <library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
205 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="mx_rb.swc" append="true"/> <!-- for Flex SDK 4.5 -->
206
207 <library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
208 <library-path dir="${flex.sdk.frameworks}/libs/" includes="rpc.swc" append="true"/>
209 <library-path dir="${flex.sdk.frameworks}/libs/" includes="spark.swc" append="true"/>
210 <library-path dir="${flex.sdk.frameworks}/libs/" includes="sparkskins.swc" append="true"/>
211 <library-path dir="${flex.sdk.frameworks}/libs/" includes="utilities.swc" append="true"/>
212 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="framework_rb.swc" append="true"/>
213 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="rpc_rb.swc" append="true"/>
214 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="spark_rb.swc" append="true"/>
215 <static-link-runtime-shared-libraries/>
216
217 <define name="CONFIG::debug" value="${dbg}"/>
218 <define name="CONFIG::release" value="${rel}"/>
219 </mxmlc>
220 </target>
221
222 <target name="asTestApp" description="build a single application in asTestApp" if="output">
223 <mxmlc fork="${forkValue}"
224 file="${asTestApps.dir}/src/${output}.as"
225 output="${output.dir}/apps/asTestApps/bin/${output}.swf">
226 <source-path path-element="${asTestApps.dir}/src"/>
227 <jvmarg line="${jvm.args}"/>
228
229 <default-size width="1100" height="550" />
230
231 <library-path/>
232 <library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
233 <library-path dir="${flex.sdk.frameworks}/libs/" includes="flex.swc" append="true"/>
234 <library-path dir="${flex.sdk.frameworks}/libs/" includes="flex4.swc" append="true"/>
235 <library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
236 <library-path dir="${flex.sdk.frameworks}/libs/" includes="rpc.swc" append="true"/>
237 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="framework_rb.swc" append="true"/>
238 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="rpc_rb.swc" append="true"/>
239 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="flex4_rb.swc" append="true"/>
240 <static-link-runtime-shared-libraries/>
241
242 <define name="CONFIG::debug" value="${dbg}"/>
243 <define name="CONFIG::release" value="${rel}"/>
244 </mxmlc>
245 </target>
246
247 <target name="asTestApps" description="builds some applications in asTestApps">
248 <antcall target="asTestApp">
249 <param name="output" value="ExplicitFormField"/>
250 </antcall>
251 <antcall target="asTestApp">
252 <param name="output" value="TCMTestFocus2"/>
253 </antcall>
254 <antcall target="asTestApp">
255 <param name="output" value="AliceScroll"/>
256 </antcall>
257 <antcall target="asTestApp">
258 <param name="output" value="KeyLogger"/>
259 </antcall>
260 <antcall target="asTestApp">
261 <param name="output" value="OpHammer"/>
262 </antcall>
263 </target>
264
265 <target name="automation_core" description="Builds the automation_core.swc">
266 <compc fork="${forkValue}" output="${output.dir}/apps/automation_apps/bin/automation_core.swc"
267 include-classes="AutomationCoreClasses">
268 <source-path path-element="${automation_core.dir}/src"/>
269 <jvmarg line="${jvm.args}"/>
270 <library-path/>
271 <external-library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
272
273 <external-library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
274
275 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
276
277 <!-- External swcs -->
278 <external-library-path dir="${automation_core.dir}/libs/" includes="flexunit.swc" append="true"/>
279 <static-link-runtime-shared-libraries/>
280
281 <define name="CONFIG::debug" value="${dbg}"/>
282 <define name="CONFIG::release" value="${rel}"/>
283 </compc>
284 </target>
285
286 <target name="automation_tests" description="Builds the automation_tests.swc">
287 <compc fork="${forkValue}" output="${output.dir}/apps/automation_apps/bin/automation_tests.swc"
288 include-classes="AutomationTestClasses">
289 <source-path path-element="${automation_tests.dir}/src"/>
290 <jvmarg line="${jvm.args}"/>
291 <library-path/>
292 <external-library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
293 <external-library-path dir="${output.dir}/apps/automation_apps/bin" includes="automation_core.swc" append="true"/>
294 <external-library-path dir="${automation_core.dir}/libs" includes="flexunit.swc" append="true"/>
295
296 <!-- External swcs -->
297
298 <external-library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
299
300 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
301 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="rpc.swc" append="true"/>
302 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="spark.swc" append="true"/>
303 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="sparkskins.swc" append="true"/>
304 <external-library-path dir="${flex.sdk.frameworks}/libs/" includes="utilities.swc" append="true"/>
305 <external-library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="framework_rb.swc" append="true"/>
306 <external-library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="rpc_rb.swc" append="true"/>
307 <external-library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="spark_rb.swc" append="true"/>
308
309
310 <static-link-runtime-shared-libraries/>
311
312 <define name="CONFIG::debug" value="${dbg}"/>
313 <define name="CONFIG::release" value="${rel}"/>
314 </compc>
315 </target>
316
317 <target name="automation_apps" description="Builds the automation test application">
318 <mxmlc fork="${forkValue}" file="${automation_apps.dir}/src/VellumUnit.mxml"
319 output="${output.dir}/apps/automation_apps/bin/VellumUnit.swf">
320 <jvmarg line="${jvm.args}"/>
321 <library-path/>
322 <library-path dir="${output.dir}" includes="textLayout.swc" append="true"/>
323 <library-path dir="${output.dir}/apps/automation_apps/bin" includes="automation_core.swc" append="true"/>
324 <library-path dir="${output.dir}/apps/automation_apps/bin" includes="automation_tests.swc" append="true"/>
325 <library-path dir="${automation_core.dir}/libs" includes="flexunit.swc" append="true"/>
326
327 <!-- External swcs -->
328 <library-path dir="${flex.sdk.frameworks}/libs/mx/" includes="mx.swc" append="true"/><!-- for Flex SDK 4.5 -->
329 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="mx_rb.swc" append="true"/> <!-- for Flex SDK 4.5 -->
330
331 <library-path dir="${flex.sdk.frameworks}/libs/" includes="framework.swc" append="true"/>
332 <library-path dir="${flex.sdk.frameworks}/libs/" includes="rpc.swc" append="true"/>
333 <library-path dir="${flex.sdk.frameworks}/libs/" includes="spark.swc" append="true"/>
334 <library-path dir="${flex.sdk.frameworks}/libs/" includes="sparkskins.swc" append="true"/>
335 <library-path dir="${flex.sdk.frameworks}/libs/" includes="utilities.swc" append="true"/>
336 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="framework_rb.swc" append="true"/>
337 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="rpc_rb.swc" append="true"/>
338 <library-path dir="${flex.sdk.frameworks}/locale/${flex.locale}/" includes="spark_rb.swc" append="true"/>
339
340
341 <static-link-runtime-shared-libraries/>
342
343 <define name="CONFIG::debug" value="${dbg}"/>
344 <define name="CONFIG::release" value="${rel}"/>
345 </mxmlc>
346 <html-wrapper title="VellumUnit" file="VellumUnit.html"
347 application="VellumUnit"
348 swf="VellumUnit"
349 width="1100"
350 height="800"
351 output="${output.dir}/apps/automation_apps/bin" />
352 <copy todir="${output.dir}/apps/test">
353 <fileset dir="${test.dir}">
354 <include name="**/*.*"/>
355 </fileset>
356 </copy>
357 </target>
358 </project>
Something went wrong with that request. Please try again.