mirror of
https://github.com/zxing/zxing.git
synced 2024-11-11 05:24:06 -08:00
63 lines
2 KiB
XML
63 lines
2 KiB
XML
|
<?xml version="1.0"?>
|
||
|
<!--
|
||
|
* Copyright 2011 ZXing authors.
|
||
|
*
|
||
|
* Licensed 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="youtube-as3-player-helper" default="build" basedir="../">
|
||
|
<property environment="env" />
|
||
|
<property file="${basedir}/build.properties.local" />
|
||
|
<property file="${basedir}/../../build.properties"/>
|
||
|
<property name="FLEX_HOME" location="${env.FLEX_HOME}" />
|
||
|
<property name="dist" location="${basedir}/bin" />
|
||
|
<property name="src" location="${basedir}/src" />
|
||
|
|
||
|
<fail unless="FLEX_HOME"
|
||
|
message="Error: define FLEX_HOME env. var. with a path to Flex4 SDK" />
|
||
|
|
||
|
<fail unless="version"
|
||
|
message="Error: version is undefined." />
|
||
|
|
||
|
<property name="libraryName" value="zxing-${version}.swc" />
|
||
|
|
||
|
<taskdef resource="flexTasks.tasks"
|
||
|
classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
|
||
|
|
||
|
<target name="clean">
|
||
|
<delete>
|
||
|
<fileset dir="${dist}" includes="**/${libraryName}"/>
|
||
|
</delete>
|
||
|
</target>
|
||
|
|
||
|
<target name="init">
|
||
|
<mkdir dir="${dist}"/>
|
||
|
</target>
|
||
|
|
||
|
<target name="build" depends="init">
|
||
|
<fileset id="srcFiles" dir="src">
|
||
|
<include name="**/*.as"/>
|
||
|
</fileset>
|
||
|
|
||
|
<pathconvert property="classes" pathsep="," refid="srcFiles">
|
||
|
<chainedmapper>
|
||
|
<globmapper from="${basedir}/src/*" to="*"></globmapper>
|
||
|
<mapper type="package" from="*.as" to="*"/>
|
||
|
</chainedmapper>
|
||
|
</pathconvert>
|
||
|
|
||
|
<compc output="${dist}/${libraryName}" include-classes="${classes}">
|
||
|
<source-path path-element="${src}"/>
|
||
|
</compc>
|
||
|
</target>
|
||
|
</project>
|