blob: 67c131e99d8736a49bc8b288e5366f61939c0308 [file] [log] [blame]
<?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="tool_air" default="main" basedir=".">
<property name="FLEX_HOME" location="${basedir}/../../.."/>
<property file="${FLEX_HOME}/env.properties"/>
<property environment="env"/>
<property file="${FLEX_HOME}/build.properties"/>
<property name="local.playerglobal.version" value="11"/>
<target name="main" depends="clean,compile" description="Clean build of tool_air.swc"/>
<property name="compc.jvm.args" value="-Dassert -ea -DAS3 -DAVMPLUS -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false"/>
<!-- since no bundles the main and bundle targets are same. To keep uniformity the target is added -->
<target name="main_with_ja_JP" depends="clean,compile,bundles" description="Clean build of tool_air.swc and en_US and ja_JP"/>
<target name="other.locales" depends="bundles" description="Build other locale SWCs"/>
<target name="clean" depends="bundles-clean">
<delete file="bundles.properties"/>
<delete file="${FLEX_HOME}/frameworks/libs/automation/tool_air.swc"/>
<delete file="${FLEX_HOME}/frameworks/libs/automation/tool_air.swc.incr"/>
</target>
<target name="compile">
<echo message="Compiling tool_air.swc"/>
<echo message="Using ${env.AIR_HOME}/frameworks/libs/air/airglobal.swc" level="info"/>
<!-- Load the <compc> task. We can't do this at the <project> level -->
<!-- because targets that run before flexTasks.jar gets built would fail. -->
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
<!--
Link in the classes (and their dependencies) for the MXML tags
listed in this project's manifest.xml.
Also link the additional classes (and their dependencies)
listed in FrameworkClasses.as,
because these aren't referenced by the manifest classes.
Keep the standard metadata when compiling.
Link in accessibility support.
Include the appropriate CSS files and assets in the SWC.
Don't include any resources in the SWC.
Write a bundle list of referenced resource bundles
into the file bundles.properties in this directory.
-->
<compc fork="true"
output="${FLEX_HOME}/frameworks/libs/automation/tool_air.swc">
<jvmarg line="${compc.jvm.args}"/>
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.AIR_HOME=${env.AIR_HOME}" />
</compc>
</target>
<target name="tool_air_bundles">
<echo message="Compiling dmv_automation/locale/${locale}/tool_air_rb.swc"/>
<!-- Load the <compc> task. We can't do this at the <project> level -->
<!-- because targets that run before flexTasks.jar gets built would fail. -->
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
<compc fork="true"
output="${FLEX_HOME}/frameworks/locale/${locale}/tool_air_rb.swc">
<jvmarg line="${compc.jvm.args}"/>
<load-config filename="bundle-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
<arg value="+locale=${locale}" />
</compc>
</target>
<target name="tool_air_bundles-clean">
<delete file="${FLEX_HOME}/frameworks/locale/${locale}/tool_air_rb.swc"/>
<delete file="${FLEX_HOME}/frameworks/locale/${locale}/tool_air_rb.swc.incr"/>
</target>
<target name="bundles">
<antcall target="tool_air_bundles">
<param name="locale" value="da_DK"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="de_DE"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="de_CH"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="en_US"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="es_ES"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="fi_FI"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="fr_FR"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="it_IT"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="ja_JP"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="ko_KR"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="nb_NO"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="nl_NL"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="pt_BR"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="ru_RU"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="sv_SE"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="zh_CN"/>
</antcall>
<antcall target="tool_air_bundles">
<param name="locale" value="zh_TW"/>
</antcall>
</target>
<target name="bundles_en_US">
<ant dir="bundles/en_US"/>
</target>
<target name="bundles-clean">
<echo message="IN bundles clean"/>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="da_DK"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="de_DE"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="de_CH"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="en_US"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="es_ES"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="fi_FI"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="fr_CH"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="fr_FR"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="it_IT"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="ja_JP"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="ko_KR"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="nb_NO"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="nl_NL"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="pt_BR"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="ru_RU"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="sv_SE"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="zh_CN"/>
</antcall>
<antcall target="tool_air_bundles-clean">
<param name="locale" value="zh_TW"/>
</antcall>
</target>
</project>