<?xml version="1.0"?>
<project name="pnetlib Xsharp" default="all">
	<target name="all">

		<!-- Build the Xsharp.dll library -->
		<compile output="Xsharp.dll"
				 target="library"
				 unsafe="true"
				 optimize="true"
				 debug="${CONFIG_DEBUG_LINES}"
				 sanewarnings="true"
				 install="true"
				 installasdefault="${INSTALL_AS_DEFAULT}">

			<!-- We add Xlib.cs to the list carefully because it may
			     live in the build directory instead of the source -->
			<sources>
				<includes name="**/*.cs"/>
				<excludes name="Xlib.cs"/>
				<file name="Xlib.cs" basedir="${csant.build.dir}"/>
			</sources>

			<references>
				<file name="../System/first/System.dll"/>
				<file name="../DotGNU.SSL/DotGNU.SSL.dll"/>
				<file name="../DotGNU.Images/DotGNU.Images.dll"/>
				<file name="../SharpZipLib/ICSharpCode.SharpZipLib.dll"/>
				<file name="../OpenSystem.Platform/OpenSystem.Platform.dll"/>
				<file name="../runtime/mscorlib.dll"/>
			</references>

			<resources>
				<file name="../resources/en_US/Xsharp/Xsharp.resources"/>
			</resources>

			<arg compiler="cscc" value="-fassembly-version=${FRAMEWORK_VERSION}"/>
			<arg compiler="cscc" value="-Wno-empty-input"/>
			<arg compiler="cscc" value="-flatin1-charset"/>
			<arg compiler="csc" value="/nowarn:626"/>
			<arg compiler="csc" value="/nowarn:649"/>
			<arg compiler="csc" value="/nowarn:168"/>
			<arg compiler="csc" value="/nowarn:67"/>
			<arg compiler="csc" value="/nowarn:169"/>
		</compile>

	</target>
</project>
