| <?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="TourDeStyle" default="main" basedir="."> |
| <property name="ROYALE_HOME" location="../../.."/> |
| <property name="example" value="TourDeStyle" /> |
| |
| <property file="${ROYALE_HOME}/env.properties"/> |
| <property environment="env"/> |
| <property file="${ROYALE_HOME}/build.properties"/> |
| <property name="ROYALE_HOME" value="${ROYALE_HOME}"/> |
| |
| <include file="${basedir}/../../build_example.xml" /> |
| |
| <target name="main" depends="clean,build_example.compile" description="Clean build of ${example}"> |
| </target> |
| |
| <target name="debug" depends="clean,compile-debug-only" description="Debug-only build of ${example} (skips JS release)"> |
| </target> |
| |
| <target name="compile-debug-only"> |
| <available file="${basedir}/src/main/config/compile-app-config.xml" |
| type="file" |
| property="optional_arg" value="-load-config+="${basedir}/src/main/config/compile-app-config.xml"" /> |
| |
| <taskdef resource="flexTasks.tasks" classpathref="lib.path"/> |
| <property name="config_arg" value="royale" /> |
| <property name="file_suffix" value="mxml" /> |
| <property name="optional_arg" value="-define+=CONFIG::dummy,true" /> |
| |
| <echo message="Compiling ${example} (debug only)"/> |
| <mxmlc fork="true" |
| debug="true" |
| configname="${config_arg}" |
| swf-version="${swf.version}" |
| closure-lib="${GOOG_HOME}" |
| file="${basedir}/src/main/royale/${example}.${file_suffix}" |
| output="${basedir}/bin-debug/${example}.swf"> |
| <jvmarg line="${mxmlc.jvm.args}"/> |
| <arg line="${optional_arg}" /> |
| <arg value="+playerglobal.version=${playerglobal.version}" /> |
| <arg value="${playerglobal_arg}" /> |
| </mxmlc> |
| |
| <antcall target="build_example.wrapper" /> |
| <antcall target="build_example.copy-resources" /> |
| </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> |