blob: 1a922a4237fc599576da180fde00b3d3293791b8 [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="framework" default="main" basedir=".">
<property name="FLEX_HOME" value="${basedir}"/>
<!-- Set playerglobal.version and locale -->
<loadproperties srcFile="${FLEX_HOME}/build.properties"/>
<target name="main" depends="clean,thirdparty-downloads"/>
<target name="thirdparty-downloads" depends="airsdk-download,playerglobal-download" description="Copies required downloads into place for build" />
<target name="airsdk-check" description="Checks if the Air SDK has been downloaded.">
<available file="${basedir}/lib/air/airglobal.swc" property="airsdk.present"/>
</target>
<target name="playerglobal-check" description="Checks if the playerglobal.swc has been downloaded.">
<available file="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc" property="playerglobal.swc.present"/>
</target>
<!-- Adobe AIR SDK -->
<!-- Because this requires a network connection it is copied only if it doesn't already exist. -->
<!-- Regardless of platform use the win kit to get airglobal.swc. -->
<target name="airsdk-download" depends="airsdk-check" unless="airsdk.present" description="Copies Adobe AIR SDK for the windows from the Adobe website">
<echo message="Be patient. This takes a few minutes..." />
<mkdir dir="${FLEX_HOME}/air"/>
<mkdir dir="${FLEX_HOME}/temp"/>
<get src="http://airdownload.adobe.com/air/win/download/${air.version}/AdobeAIRSDK.zip"
dest="${FLEX_HOME}/temp/AIR Integration Kit.zip"
verbose="false"/>
<unzip dest="${FLEX_HOME}/air/AIR Integration Kit" src="${FLEX_HOME}/temp/AIR Integration Kit.zip" />
<!-- May not be required -->
<copy file="${FLEX_HOME}/air/AIR Integration Kit/frameworks/libs/air/airglobal.swc"
toDir="${basedir}/lib/air"/>
</target>
<!-- playerglobal.swc -->
<!-- Because this requires a network connection it copies playerglobal.swc only if it doesn't already exist. -->
<target name="playerglobal-download" depends="playerglobal-check,playerglobal-settarget,playerglobal10.2-download,playerglobal10.3-download,playerglobal11.0-download,playerglobal11.1-download,playerglobal11.2-download,playerglobal11.3-download,playerglobal11.4-download,playerglobal11.5-download,playerglobal11.6-download,playerglobal11.7-download,playerglobal11.8-download,playerglobal11.9-download,playerglobal12.0-download,playerglobal13.0-download" description="Copies playerglobal.swc from the Adobe website">
</target>
<target name="playerglobal-settarget" unless="playerglobal.swc.present">
<condition property="target10.2">
<equals arg1="${playerglobal.version}" arg2="10.2" />
</condition>
<condition property="target10.3">
<equals arg1="${playerglobal.version}" arg2="10.3" />
</condition>
<condition property="target11.0">
<equals arg1="${playerglobal.version}" arg2="11.0" />
</condition>
<condition property="target11.1">
<equals arg1="${playerglobal.version}" arg2="11.1" />
</condition>
<condition property="target11.2">
<equals arg1="${playerglobal.version}" arg2="11.2" />
</condition>
<condition property="target11.3">
<equals arg1="${playerglobal.version}" arg2="11.3" />
</condition>
<condition property="target11.4">
<equals arg1="${playerglobal.version}" arg2="11.4" />
</condition>
<condition property="target11.5">
<equals arg1="${playerglobal.version}" arg2="11.5" />
</condition>
<condition property="target11.6">
<equals arg1="${playerglobal.version}" arg2="11.6" />
</condition>
<condition property="target11.7">
<equals arg1="${playerglobal.version}" arg2="11.7" />
</condition>
<condition property="target11.8">
<equals arg1="${playerglobal.version}" arg2="11.8" />
</condition>
<condition property="target11.9">
<equals arg1="${playerglobal.version}" arg2="11.9" />
</condition>
<condition property="target12.0">
<equals arg1="${playerglobal.version}" arg2="12.0" />
</condition>
<condition property="target13.0">
<equals arg1="${playerglobal.version}" arg2="13.0" />
</condition>
<condition property="target14.0">
<equals arg1="${playerglobal.version}" arg2="14.0" />
</condition>
<condition property="target15.0">
<equals arg1="${playerglobal.version}" arg2="15.0" />
</condition>
<condition property="target16.0">
<equals arg1="${playerglobal.version}" arg2="16.0" />
</condition>
<condition property="target17.0">
<equals arg1="${playerglobal.version}" arg2="17.0" />
</condition>
<condition property="target18.0">
<equals arg1="${playerglobal.version}" arg2="18.0" />
</condition>
<condition property="target19.0">
<equals arg1="${playerglobal.version}" arg2="19.0" />
</condition>
<condition property="target20.0">
<equals arg1="${playerglobal.version}" arg2="20.0" />
</condition>
</target>
<target name="playerglobal10.2-download" if="target10.2">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_2.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal10.3-download" if="target10.3">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_3.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.0-download" if="target11.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.1-download" if="target11.1">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_1.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.2-download" if="target11.2">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_2.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.3-download" if="target11.3">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_3.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.4-download" if="target11.4">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_4.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.5-download" if="target11.5">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_5.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.6-download" if="target11.6">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_6.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.7-download" if="target11.7">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_7.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.8-download" if="target11.8">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_8.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal11.9-download" if="target11.9">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_9.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal12.0-download" if="target12.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/12/playerglobal12_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal13.0-download" if="target13.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/13/playerglobal13_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal14.0-download" if="target14.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/14/playerglobal14_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal15.0-download" if="target15.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/15/playerglobal15_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal16.0-download" if="target16.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/16/playerglobal16_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal17.0-download" if="target17.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/17/playerglobal17_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal18.0-download" if="target18.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/18/playerglobal18_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal19.0-download" if="target19.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/19/playerglobal19_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<target name="playerglobal20.0-download" if="target20.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://download.macromedia.com/get/flashplayer/updaters/20/playerglobal20_0.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target>
<!-- target name="playerglobal16.0-download" if="target16.0">
<mkdir dir="${basedir}/lib/player/${playerglobal.version}"/>
<get src="http://labsdownload.adobe.com/pub/labs/flashruntimes/flashplayer/flashplayer16_playerglobal.swc"
dest="${basedir}/lib/player/${playerglobal.version}/playerglobal.swc"
verbose="false"/>
</target -->
<target name="clean" description="Cleans third party downloaded files.">
<delete dir="${FLEX_HOME}/temp" />
<delete dir="${FLEX_HOME}/air" />
<delete dir="${FLEX_HOME}/lib/air" />
<delete dir="${FLEX_HOME}/lib/player"/>
</target>
</project>