add default.build for examples
This commit is contained in:
		
							parent
							
								
									8c5c7fad4f
								
							
						
					
					
						commit
						72acbba364
					
				@ -4,34 +4,28 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<project name="SigarSharp" default="build">
 | 
					<project name="SigarSharp" default="build">
 | 
				
			||||||
  <property name="debug" value="true"/>
 | 
					  <property name="debug" value="true"/>
 | 
				
			||||||
 | 
					  <property name="build.dir" value="build"/>
 | 
				
			||||||
 | 
					  <property name="sigarsharp" value="${build.dir}/SigarSharp.dll"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <target name="clean">
 | 
					  <target name="clean">
 | 
				
			||||||
    <delete dir="build"/>
 | 
					    <delete dir="${build.dir}"/>
 | 
				
			||||||
  </target>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  <target name="build-exe">
 | 
					 | 
				
			||||||
    <csc target="exe" output="build/${name}.exe" debug="${debug}">
 | 
					 | 
				
			||||||
      <sources>
 | 
					 | 
				
			||||||
        <includes name="examples/${name}.cs"/>
 | 
					 | 
				
			||||||
      </sources>
 | 
					 | 
				
			||||||
      <references>
 | 
					 | 
				
			||||||
        <includes name="build/SigarSharp.dll"/>
 | 
					 | 
				
			||||||
      </references>
 | 
					 | 
				
			||||||
    </csc>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  </target>
 | 
					  </target>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <target name="build-examples">
 | 
					  <target name="build-examples">
 | 
				
			||||||
    <foreach item="String" in="Free,CpuInfo,Df"
 | 
					    <nant buildfile="examples/default.build"
 | 
				
			||||||
             delim="," property="name">
 | 
					          inheritall="true">
 | 
				
			||||||
      <call target="build-exe"/>
 | 
					      <properties>
 | 
				
			||||||
    </foreach>
 | 
					        <property name="build.dir" value="../build"/>
 | 
				
			||||||
 | 
					        <property name="sigarsharp" value="../build/SigarSharp.dll"/>
 | 
				
			||||||
 | 
					      </properties>
 | 
				
			||||||
 | 
					    </nant>
 | 
				
			||||||
  </target>
 | 
					  </target>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <target name="build" description="Build C# Sigar bindings">
 | 
					  <target name="build" description="Build C# Sigar bindings">
 | 
				
			||||||
    <mkdir dir="build"/>
 | 
					    <mkdir dir="${build.dir}"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <csc target="library" output="build/SigarSharp.dll" debug="${debug}">
 | 
					    <csc target="library" debug="${debug}"
 | 
				
			||||||
 | 
					         output="${sigarsharp}">
 | 
				
			||||||
      <sources>
 | 
					      <sources>
 | 
				
			||||||
        <includes name="src/Sigar.cs"/>
 | 
					        <includes name="src/Sigar.cs"/>
 | 
				
			||||||
      </sources>
 | 
					      </sources>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										36
									
								
								bindings/dotnet/examples/default.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								bindings/dotnet/examples/default.build
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0"?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<!-- NAnt build file: http://sourceforge.net/projects/nant/ -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<project name="SigarSharpExamples" default="build">
 | 
				
			||||||
 | 
					  <property name="debug" value="true"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  <property name="build.dir" overwrite="false" value="bin"/>
 | 
				
			||||||
 | 
					  <property name="sigarsharp" overwrite="false"
 | 
				
			||||||
 | 
					            value="../../bindings/csharp/build/SigarSharp.dll"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  <target name="clean">
 | 
				
			||||||
 | 
					    <delete dir="${build.dir}"/>
 | 
				
			||||||
 | 
					  </target>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  <target name="build-exe">
 | 
				
			||||||
 | 
					    <csc target="exe" output="${build.dir}/${name}.exe" debug="${debug}">
 | 
				
			||||||
 | 
					      <sources>
 | 
				
			||||||
 | 
					        <includes name="${name}.cs"/>
 | 
				
			||||||
 | 
					      </sources>
 | 
				
			||||||
 | 
					      <references>
 | 
				
			||||||
 | 
					        <includes name="${sigarsharp}"/>
 | 
				
			||||||
 | 
					      </references>
 | 
				
			||||||
 | 
					    </csc>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  </target>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  <target name="build" description="Build C# Sigar examples">
 | 
				
			||||||
 | 
					    <mkdir dir="${build.dir}"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <foreach item="String" in="Free,CpuInfo,Df"
 | 
				
			||||||
 | 
					             delim="," property="name">
 | 
				
			||||||
 | 
					      <call target="build-exe"/>
 | 
				
			||||||
 | 
					    </foreach>
 | 
				
			||||||
 | 
					  </target>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user