<?xml version="1.0" encoding="UTF-8"?>
<project name="Build SWC Library" default="build-swc-lib">

	<!-- Include the build.properties file -->
	<property file="./build.properties"/>
        
	<!-- Point Ant to the Flex installation -->
	<taskdef resource="flexTasks.tasks"
			 classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
		
	<!-- Define the commands to generate a SWC library -->
 	<target name="build-swc-lib" description="Generates a SWC library from a directory of as3 classes">
		<echo>Generating SWC Library</echo>
		<exec executable="${compc.exe}">
			<!-- Set the output path -->
			<arg line="-output ${OUTPUT}"/>
			<!-- Include all of the AS3 files in LIBRARY -->
			<arg line="-include-sources ${LIBRARY}"/>
			<!-- Compile for Flash Player 10.0.0 and higher -->
			<!-- <arg line="-target-player=10.0.0"/> -->
			<!-- Turn off strict mode -->
			<!-- <arg line="-strict=false"/> -->
		</exec>
	</target>
</project>

