| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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="FTE" default="rebuild.FTE" basedir="../../../.."> |
| <import file="${basedir}/build/config.xml"/> |
| <!-- *************************************************************************** |
| * |
| * build.xml - FTE |
| * Build script for FTE Examples |
| * |
| * ***************************************************************************** --> |
| |
| <target name="config.FTE" depends="config"> |
| <copy todir="${dir.dist.qe.examples}/actionscript/FTE" includeEmptyDirs="false"> |
| <fileset dir="${dir.sdk.examples.as.fte}"> |
| <exclude name="**/build-asFTE.xml"/> |
| <exclude name="**/*.swf"/> |
| </fileset> |
| </copy> |
| </target> |
| |
| <target name="rebuild.FTE" description="Cleans, then rebuilds, the FTE swfs."> |
| <antcall target="perform.FTE"> |
| <param name="perform" value="rebuild"/> |
| </antcall> |
| </target> |
| |
| <target name="clean.FTE" description="Cleans the FTE swfs."> |
| <antcall target="perform.FTE"> |
| <param name="perform" value="clean"/> |
| </antcall> |
| </target> |
| |
| <target name="build.FTE" description="Builds the FTE swfs."> |
| <antcall target="perform.FTE"> |
| <param name="perform" value="build"/> |
| </antcall> |
| </target> |
| |
| <!-- ******************** --> |
| <!-- Root Command Section --> |
| <!-- ******************** --> |
| <target name="rebuild.FTE.app" depends="clean.FTE.app,build.FTE.app" if="output"/> |
| |
| <target name="clean.FTE.app" depends="config.FTE" if="output"> |
| <delete file="${dir.sdk.examples.as.fte}/${output}.swf"/> |
| <delete file="${dir.sdk.examples.as.fte}/${output}_link.xml"/> |
| </target> |
| |
| <target name="build.FTE.app" if="output"> |
| <mxmlc fork="${forkValue}" |
| file="${dir.sdk.examples.as.fte}/src/${output}.as" |
| debug="${debug}" |
| keep-generated-actionscript="false" |
| output="${dir.dist.qe.examples}/bin-${config.dir}/${output}.swf"> |
| <source-path path-element="${dir.sdk.examples.as.fte}/src"/> |
| <!-- <optimize/> --> |
| <default-size width="512" height="500" /> |
| |
| <library-path/> |
| <external-library-path dir="${dir.playerglobals}" includes="playerglobal.swc" append="false"/> |
| <static-link-runtime-shared-libraries/> |
| </mxmlc> |
| </target> |
| |
| <!-- ************* --> |
| <!-- Batch Section --> |
| <!-- ************* --> |
| |
| <target name="perform.FTE" depends="config.FTE" if="perform"> |
| <parallel threadcount="${threadcount}" threadsperprocessor="${threadsperprocessor}" failonany="true"> |
| <antcall target="${perform}.FTE.app"> |
| <param name="output" value="FTEHelloWorld"/> |
| <param name="debug" value="${debug}"/> |
| <param name="timeOperations" value="${timeOperations}"/> |
| <param name="forkValue" value="${forkValue}"/> |
| </antcall> |
| <antcall target="${perform}.FTE.app"> |
| <param name="output" value="FTEParagraph"/> |
| <param name="debug" value="${debug}"/> |
| <param name="timeOperations" value="${timeOperations}"/> |
| <param name="forkValue" value="${forkValue}"/> |
| </antcall> |
| </parallel> |
| </target> |
| |
| </project> |