2004-06-22 06:37:04 +08:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!-- NAnt build file: http://sourceforge.net/projects/nant/ -->
|
|
|
|
|
|
|
|
<project name="SigarSharp" default="build">
|
|
|
|
<property name="debug" value="true"/>
|
2004-07-22 05:16:33 +08:00
|
|
|
<property name="build.dir" value="build"/>
|
|
|
|
<property name="sigarsharp" value="${build.dir}/SigarSharp.dll"/>
|
2004-06-22 06:37:04 +08:00
|
|
|
|
2004-07-22 04:41:32 +08:00
|
|
|
<target name="clean">
|
2004-07-22 05:16:33 +08:00
|
|
|
<delete dir="${build.dir}"/>
|
2004-07-22 04:41:32 +08:00
|
|
|
</target>
|
2004-06-22 06:37:04 +08:00
|
|
|
|
2004-07-22 04:41:32 +08:00
|
|
|
<target name="build-examples">
|
2004-07-22 05:16:33 +08:00
|
|
|
<nant buildfile="examples/default.build"
|
|
|
|
inheritall="true">
|
|
|
|
<properties>
|
|
|
|
<property name="build.dir" value="../build"/>
|
|
|
|
<property name="sigarsharp" value="../build/SigarSharp.dll"/>
|
|
|
|
</properties>
|
|
|
|
</nant>
|
2004-07-22 04:41:32 +08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build" description="Build C# Sigar bindings">
|
2004-07-22 05:16:33 +08:00
|
|
|
<mkdir dir="${build.dir}"/>
|
2004-07-22 04:41:32 +08:00
|
|
|
|
2004-07-22 05:16:33 +08:00
|
|
|
<csc target="library" debug="${debug}"
|
2004-09-21 06:10:01 +08:00
|
|
|
unsafe="true"
|
2004-07-22 05:16:33 +08:00
|
|
|
output="${sigarsharp}">
|
2004-06-22 06:37:04 +08:00
|
|
|
<sources>
|
2004-09-22 08:09:59 +08:00
|
|
|
<include name="src/Sigar.cs"/>
|
2004-06-22 06:37:04 +08:00
|
|
|
</sources>
|
|
|
|
</csc>
|
|
|
|
</target>
|
|
|
|
</project>
|