mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Issue 884 Flex build script
git-svn-id: https://zxing.googlecode.com/svn/trunk@1836 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
c1c4c32f88
commit
ebf48833f0
62
actionscript/core/build.xml
Normal file
62
actionscript/core/build.xml
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?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>
|
Loading…
Reference in a new issue