2011-11-18 15:32:32 +00:00
|
|
|
<project name="ANX.Framework Build" default="build">
|
|
|
|
<property name="build.platform" value="Any CPU" />
|
2012-08-10 13:24:34 +00:00
|
|
|
<property name="build.dir" value="../../bin" />
|
2012-08-24 08:01:14 +00:00
|
|
|
<property name="build.dir.tools" value="../bin" />
|
2012-02-20 13:59:52 +00:00
|
|
|
<property name="build.solution_dir" value="../" />
|
|
|
|
|
2011-11-18 15:32:32 +00:00
|
|
|
<property name="project.anx.path" value="../ANX.Framework" />
|
|
|
|
<property name="project.anx.name" value="ANX.Framework" />
|
2012-08-24 08:01:14 +00:00
|
|
|
|
2011-11-18 15:32:32 +00:00
|
|
|
<property name="project.anx.extended" value="false" unless="${property::exists('project.anx.extended')}" />
|
|
|
|
<property name="project.anx.directives" value="" unless="${property::exists('project.anx.directives')}" />
|
|
|
|
|
|
|
|
<property name="project.anxcontent.path" value="../ANX.Framework.ContentPipeline" />
|
|
|
|
<property name="project.anxcontent.name" value="ANX.Framework.ContentPipeline" />
|
|
|
|
|
2012-08-24 09:54:18 +00:00
|
|
|
<!-- dont change the following flags... set 'em by calling the appropriate target -->
|
|
|
|
<property name="build.configuration" value="Release" />
|
|
|
|
<property name="project.anx.build_env" value="VS2010" />
|
|
|
|
<property name="project.anx.platform" value="Windows" />
|
|
|
|
<property name="project.anx.windows" value="true" />
|
|
|
|
<property name="project.anx.linux" value="false" />
|
|
|
|
<property name="project.anx.psvita" value="false" />
|
|
|
|
<property name="project.anx.metro" value="false" />
|
|
|
|
|
2011-11-18 15:32:32 +00:00
|
|
|
<target name="clean" description="Cleans all targets.">
|
2011-11-21 09:25:29 +00:00
|
|
|
<delete>
|
|
|
|
<fileset>
|
|
|
|
<include name="../bin/**" />
|
2011-11-22 11:59:35 +00:00
|
|
|
<include name="${build.dir}/${build.configuration}/installer/**" />
|
2011-11-21 09:25:29 +00:00
|
|
|
<include name="${project.anx.path}/obj/**" />
|
2011-12-14 20:25:54 +00:00
|
|
|
<include name="${project.anx.path.inputsystem.standard}/obj/**" />
|
2011-12-01 08:47:54 +00:00
|
|
|
<include name="${project.anx.path.inputsystem.recording}/obj/**" />
|
2011-12-14 20:25:54 +00:00
|
|
|
<include name="${project.anx.path.inputdevices.xinput}/obj/**" />
|
|
|
|
<include name="${project.anx.path.inputdevices.kinect}/obj/**" />
|
|
|
|
<include name="${project.anx.path.inputdevices.opentk}/obj/**" />
|
2011-11-21 09:25:29 +00:00
|
|
|
<include name="${project.anx.path.soundsystem.xaudio}/obj/**" />
|
2011-12-01 08:47:54 +00:00
|
|
|
<include name="${project.anx.path.soundsystem.openal}/obj/**" />
|
2011-11-21 09:25:29 +00:00
|
|
|
<include name="${project.anx.path.rendersystem.dx10}/obj/**" />
|
|
|
|
<include name="${project.anx.path.rendersystem.dx11}/obj/**" />
|
|
|
|
<include name="${project.anx.path.rendersystem.gl3}/obj/**" />
|
2012-02-21 18:26:42 +00:00
|
|
|
<include name="${project.anx.path.rendersystem.metro}/obj/**" />
|
2011-11-21 09:25:29 +00:00
|
|
|
<include name="${project.anxcontent.path}/obj/**" />
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
2011-11-18 15:32:32 +00:00
|
|
|
</target>
|
|
|
|
|
2012-08-10 13:24:34 +00:00
|
|
|
<target name="VS2010">
|
|
|
|
<property name="project.anx.build_env" value="VS2010" />
|
|
|
|
</target>
|
|
|
|
|
2012-02-20 10:33:52 +00:00
|
|
|
<target name="VS2011">
|
|
|
|
<property name="project.anx.build_env" value="VS2011" />
|
|
|
|
</target>
|
|
|
|
|
2012-08-24 08:01:14 +00:00
|
|
|
<target name="windows">
|
|
|
|
<property name="project.anx.windows" value="true" />
|
|
|
|
<property name="project.anx.platform" value="Windows" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="linux">
|
|
|
|
<property name="project.anx.linux" value="true" />
|
|
|
|
<property name="project.anx.platform" value="Linux" />
|
|
|
|
|
|
|
|
<call target="generate_project_files" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="psvita">
|
|
|
|
<property name="project.anx.psvita" value="true" />
|
|
|
|
<property name="project.anx.platform" value="PS Vita" />
|
|
|
|
|
|
|
|
<call target="generate_project_files" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="metro">
|
2012-08-24 09:54:18 +00:00
|
|
|
<property name="project.anx.metro" value="true" />
|
2012-08-24 08:01:14 +00:00
|
|
|
<property name="project.anx.platform" value="Windows 8 / Metro" />
|
|
|
|
|
|
|
|
<call target="generate_project_files" />
|
|
|
|
</target>
|
|
|
|
|
2012-02-20 10:33:52 +00:00
|
|
|
<target name="build">
|
|
|
|
<echo message="===================================================" />
|
|
|
|
<echo message="ANX.Framework build script" />
|
|
|
|
<echo message="===================================================" />
|
|
|
|
<echo message="" />
|
2012-08-24 08:01:14 +00:00
|
|
|
<echo message="Build environment : ${project.anx.build_env}" />
|
2012-02-20 10:33:52 +00:00
|
|
|
<echo message="Build configuration: ${build.configuration}" />
|
2012-08-24 08:01:14 +00:00
|
|
|
<echo message="Target platform : ${project.anx.platform}" />
|
2012-02-20 10:33:52 +00:00
|
|
|
<echo message="" />
|
|
|
|
|
2011-11-18 15:32:32 +00:00
|
|
|
<if test="${project.anx.extended}">
|
|
|
|
<property name="project.anx.directives" value="${project.anx.directives} XNAEXT" />
|
|
|
|
</if>
|
2012-02-20 13:59:52 +00:00
|
|
|
|
|
|
|
<echo message="Compiler directives: ${project.anx.directives}" />
|
2011-11-18 15:32:32 +00:00
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<call target="tools" />
|
|
|
|
|
2011-11-18 15:32:32 +00:00
|
|
|
<call target="generate_stock_shaders" />
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<call target="anx" />
|
|
|
|
<call target="content_pipeline" />
|
|
|
|
|
|
|
|
<call target="inputsystem" />
|
|
|
|
<call target="soundsystem" />
|
|
|
|
<call target="rendersystem" />
|
|
|
|
<call target="platformsystem" />
|
2012-08-29 18:29:57 +00:00
|
|
|
|
|
|
|
<call target="samples" />
|
2011-11-18 15:32:32 +00:00
|
|
|
</target>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="anx" description="Build ANX.Framework core">
|
|
|
|
<echo message="building: ANX.Framework" />
|
2011-11-18 15:32:32 +00:00
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
|
|
|
<arg value="/p:OutputPath=${build.dir}/${build.configuration}" />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
2012-02-20 13:59:52 +00:00
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
2011-11-18 15:32:32 +00:00
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
2012-08-22 21:04:13 +00:00
|
|
|
<arg value="/nologo" />
|
2011-11-18 15:32:32 +00:00
|
|
|
<arg value="${project.anx.path}/${project.anx.name}.csproj" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="rendersystem" description="Build ANX.Framework InputSystems">
|
2012-08-24 09:54:18 +00:00
|
|
|
<!-- default windows fileset -->
|
|
|
|
<fileset id="rendersystem_files" basedir="../RenderSystems/">
|
|
|
|
<include name="**/*.csproj" />
|
|
|
|
<exclude name="**/*PSVita*.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<if test="${project.anx.linux}">
|
|
|
|
<fileset id="rendersystem_files" basedir="../RenderSystems/">
|
|
|
|
<include name="**/*GL*_Linux.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.psvita}">
|
|
|
|
<fileset id="rendersystem_files" basedir="../RenderSystems/">
|
|
|
|
<include name="**/*.PSVITA*_PSVITA.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.metro}">
|
|
|
|
<fileset id="rendersystem_files" basedir="../RenderSystems/">
|
|
|
|
<include name="**/*.Metro*_WindowsMetro.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<foreach item="File" property="projectFile">
|
|
|
|
<in>
|
2012-08-24 09:54:18 +00:00
|
|
|
<items refid="rendersystem_files" />
|
2012-08-22 21:04:13 +00:00
|
|
|
</in>
|
|
|
|
<do>
|
|
|
|
<echo message="building: ${path::get-file-name-without-extension(projectFile)}" />
|
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
|
|
|
<arg value="/p:OutputPath=${build.dir}/${build.configuration}" />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
|
|
|
<arg value="/nologo" />
|
|
|
|
<arg value="${projectFile}" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
2011-11-18 15:32:32 +00:00
|
|
|
</target>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="inputsystem" description="Build ANX.Framework InputSystems">
|
2012-08-24 09:54:18 +00:00
|
|
|
<!-- default windows fileset -->
|
|
|
|
<fileset id="inputsystem_files" basedir="../InputSystems/">
|
|
|
|
<include name="**/*.csproj" />
|
|
|
|
<exclude name="**/*PSVita*.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
2012-08-27 05:47:32 +00:00
|
|
|
<exclude name="**/*ModernUI*.csproj" />
|
2012-08-24 09:54:18 +00:00
|
|
|
<exclude name="**/*Kinect*.csproj" />
|
|
|
|
<exclude name="**/*_Linux.csproj" />
|
|
|
|
<exclude name="**/ANX.InputDevices.Test*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<if test="${project.anx.linux}">
|
|
|
|
<fileset id="inputsystem_files" basedir="../InputSystems/">
|
|
|
|
<include name="**/*_Linux.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
2012-08-27 05:47:32 +00:00
|
|
|
<exclude name="**/*ModernUI*.csproj" />
|
2012-08-24 09:54:18 +00:00
|
|
|
<exclude name="**/*Kinect*.csproj" />
|
|
|
|
<exclude name="**/*PSVITA*.csproj" />
|
|
|
|
<exclude name="**/*Windows*.csproj" />
|
|
|
|
<exclude name="**/ANX.InputDevices.Test*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.psvita}">
|
|
|
|
<fileset id="inputsystem_files" basedir="../InputSystems/">
|
|
|
|
<include name="**/*_PSVITA.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
2012-08-27 05:47:32 +00:00
|
|
|
<exclude name="**/*ModernUI*.csproj" />
|
2012-08-24 09:54:18 +00:00
|
|
|
<exclude name="**/*Kinect*.csproj" />
|
|
|
|
<exclude name="**/*Windows*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
2012-08-25 17:27:45 +00:00
|
|
|
<exclude name="**/*OpenTK*.csproj" />
|
2012-08-24 09:54:18 +00:00
|
|
|
<exclude name="**/ANX.InputDevices.Test*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.metro}">
|
|
|
|
<fileset id="inputsystem_files" basedir="../InputSystems/">
|
|
|
|
<include name="**/*_WindowsMetro.csproj" />
|
2012-08-27 05:47:32 +00:00
|
|
|
<include name="**/*ModernUI*.csproj" />
|
2012-08-24 09:54:18 +00:00
|
|
|
<exclude name="**/*PsVita*.csproj" />
|
|
|
|
<exclude name="**/*Kinect*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
|
|
|
<exclude name="**/*OpenTK*.csproj" />
|
|
|
|
<exclude name="**/ANX.InputDevices.Test*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<foreach item="File" property="projectFile">
|
|
|
|
<in>
|
2012-08-24 09:54:18 +00:00
|
|
|
<items refid="inputsystem_files" />
|
2012-08-22 21:04:13 +00:00
|
|
|
</in>
|
|
|
|
<do>
|
|
|
|
<echo message="building: ${path::get-file-name-without-extension(projectFile)}" />
|
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
|
|
|
<arg value="/p:OutputPath=${build.dir}/${build.configuration}" />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
|
|
|
<arg value="/nologo" />
|
|
|
|
<arg value="${projectFile}" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
2011-11-18 15:32:32 +00:00
|
|
|
</target>
|
2012-08-24 09:54:18 +00:00
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="soundsystem" description="Build ANX.Framework SoundSystems">
|
2012-08-24 09:54:18 +00:00
|
|
|
<!-- default windows fileset -->
|
|
|
|
<fileset id="soundsystem_files" basedir="../SoundSystems/">
|
|
|
|
<include name="**/*.csproj" />
|
|
|
|
<exclude name="**/*PSVita*.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<if test="${project.anx.linux}">
|
|
|
|
<fileset id="soundsystem_files" basedir="../SoundSystems/">
|
|
|
|
<include name="**/*_Linux.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
|
|
|
<exclude name="**/*PSVITA*.csproj" />
|
|
|
|
<exclude name="**/*Windows*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.psvita}">
|
|
|
|
<fileset id="soundsystem_files" basedir="../SoundSystems/">
|
|
|
|
<include name="**/*_PsVita.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
2012-08-25 17:27:45 +00:00
|
|
|
<exclude name="**/*OpenAL*.csproj" />
|
2012-08-24 09:54:18 +00:00
|
|
|
<exclude name="**/*Windows*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.metro}">
|
|
|
|
<fileset id="soundsystem_files" basedir="../SoundSystems/">
|
|
|
|
<include name="**/*_WindowsMetro.csproj" />
|
|
|
|
<exclude name="**/*PSVita*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
|
|
|
<exclude name="**/*OpenAL*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<foreach item="File" property="projectFile">
|
|
|
|
<in>
|
2012-08-24 09:54:18 +00:00
|
|
|
<items refid="soundsystem_files" />
|
2012-08-22 21:04:13 +00:00
|
|
|
</in>
|
|
|
|
<do>
|
|
|
|
<echo message="building: ${path::get-file-name-without-extension(projectFile)}" />
|
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
|
|
|
<arg value="/p:OutputPath=${build.dir}/${build.configuration}" />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
|
|
|
<arg value="/nologo" />
|
|
|
|
<arg value="${projectFile}" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
2011-11-18 15:32:32 +00:00
|
|
|
</target>
|
|
|
|
|
2012-08-29 18:29:57 +00:00
|
|
|
<target name="samples" description="Build ANX.Framework samples">
|
|
|
|
<!-- default windows fileset -->
|
|
|
|
<fileset id="sample_files" basedir="../Samples/">
|
|
|
|
<include name="**/*.csproj" />
|
|
|
|
|
|
|
|
<exclude name="**/*Kinect*.csproj" />
|
|
|
|
|
|
|
|
<exclude name="**/*PSVita*.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<foreach item="File" property="projectFile">
|
|
|
|
<in>
|
|
|
|
<items refid="sample_files" />
|
|
|
|
</in>
|
|
|
|
<do>
|
|
|
|
<echo message="building: ${path::get-file-name-without-extension(projectFile)}" />
|
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
|
|
|
<arg value="/p:OutputPath=${build.dir}/samples/${build.configuration}" />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
|
|
|
<arg value="/nologo" />
|
|
|
|
<arg value="${projectFile}" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="platformsystem" description="Build ANX.Framework PlatformSystems">
|
2012-08-24 09:54:18 +00:00
|
|
|
<!-- default windows fileset -->
|
|
|
|
<fileset id="platformsystem_files" basedir="../PlatformSystems/">
|
|
|
|
<include name="**/*.csproj" />
|
|
|
|
<exclude name="**/*PSVita*.csproj" />
|
|
|
|
<exclude name="**/*Metro*.csproj" />
|
|
|
|
<exclude name="**/*Linux*.csproj" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<if test="${project.anx.linux}">
|
|
|
|
<fileset id="platformsystem_files" basedir="../PlatformSystems/">
|
|
|
|
<include name="**/*Linux*_Linux.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.psvita}">
|
|
|
|
<fileset id="platformsystem_files" basedir="../PlatformSystems/">
|
|
|
|
<include name="**/*PsVita*_PsVita.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="${project.anx.metro}">
|
|
|
|
<fileset id="platformsystem_files" basedir="../PlatformSystems/">
|
|
|
|
<include name="**/*Metro*_WindowsMetro.csproj" />
|
|
|
|
</fileset>
|
|
|
|
</if>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<foreach item="File" property="projectFile">
|
|
|
|
<in>
|
2012-08-24 09:54:18 +00:00
|
|
|
<items refid="platformsystem_files" />
|
2012-08-22 21:04:13 +00:00
|
|
|
</in>
|
|
|
|
<do>
|
|
|
|
<echo message="building: ${path::get-file-name-without-extension(projectFile)}" />
|
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
|
|
|
<arg value="/p:OutputPath=${build.dir}/${build.configuration}" />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
|
|
|
<arg value="/nologo" />
|
|
|
|
<arg value="${projectFile}" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
2012-02-21 18:26:42 +00:00
|
|
|
</target>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="tools" description="Build ANX.Framework tools" unless="${target::has-executed('tools')}">
|
|
|
|
<foreach item="File" property="projectFile">
|
|
|
|
<in>
|
|
|
|
<items basedir="../Tools/">
|
|
|
|
<include name="**/*.csproj" />
|
|
|
|
<exclude name="**/HLSLParser*.csproj" />
|
|
|
|
<exclude name="**/DX11MetroShaderGenerator.csproj" />
|
|
|
|
</items>
|
|
|
|
</in>
|
|
|
|
<do>
|
|
|
|
<echo message="building: ${path::get-file-name-without-extension(projectFile)}" />
|
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
|
|
|
<arg value="/p:OutputPath=${build.dir}/${build.configuration}" />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
|
|
|
<arg value="/nologo" />
|
|
|
|
<arg value="${projectFile}" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
2012-08-10 13:24:34 +00:00
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
</target>
|
2012-08-10 13:24:34 +00:00
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="content_pipeline" description="Build ANX.Framework ContentPipeline extensions">
|
|
|
|
<echo message="building: Content.Pipeline.Extensions" />
|
2012-08-10 13:24:34 +00:00
|
|
|
|
|
|
|
<exec program="msbuild.exe" >
|
|
|
|
<arg value="/t:Build"/>
|
|
|
|
<arg value="/p:Configuration=${build.configuration}"/>
|
|
|
|
<arg value='/p:Platform="${build.platform}"'/>
|
2012-08-22 21:04:13 +00:00
|
|
|
<arg value="/p:OutputPath=${build.dir}/${build.configuration}" />
|
2012-08-10 13:24:34 +00:00
|
|
|
<arg value="/p:SolutionDir=${build.solution_dir}" />
|
|
|
|
<arg value='/p:DefineConstants="${project.anx.directives}"' />
|
|
|
|
<arg value="/p:AllowUnsafeBlocks=true" />
|
|
|
|
<arg value="/clp:ErrorsOnly" />
|
2012-08-22 21:04:13 +00:00
|
|
|
<arg value="/nologo" />
|
|
|
|
<arg value="${project.anxcontent.path}/${project.anxcontent.name}.csproj" />
|
2012-08-22 11:29:03 +00:00
|
|
|
</exec>
|
2011-11-18 15:32:32 +00:00
|
|
|
</target>
|
|
|
|
|
2012-08-22 21:04:13 +00:00
|
|
|
<target name="generate_stock_shaders" description="Generate code for stock shaders" depends="tools">
|
|
|
|
<foreach item="File" property="buildFile">
|
|
|
|
<in>
|
|
|
|
<items basedir="../shader/">
|
|
|
|
<include name="**/build.xml" />
|
|
|
|
<exclude name="**/*Metro*/build.xml" unless="${project.anx.metro}" />
|
|
|
|
</items>
|
|
|
|
</in>
|
|
|
|
<do>
|
|
|
|
<echo message="generating: ${path::get-file-name(path::get-directory-name(buildFile))}" />
|
|
|
|
|
|
|
|
<exec program="../bin/sscg.exe" >
|
|
|
|
<arg value="${buildFile}" />
|
|
|
|
<arg value="/silent" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
2011-11-18 15:32:32 +00:00
|
|
|
</target>
|
|
|
|
|
2011-11-22 14:51:30 +00:00
|
|
|
<target name="create_packages" description="generates all type of packages">
|
|
|
|
<call target="create_zip_packages" />
|
|
|
|
<call target="create_msi_packages" />
|
|
|
|
</target>
|
|
|
|
|
2011-11-22 09:16:38 +00:00
|
|
|
<target name="create_zip_packages" description="Generate zip package containing binaries" depends="build">
|
2011-11-18 15:32:32 +00:00
|
|
|
<loadfile file="${project.anx.path}/Properties/AssemblyInfo.cs" property="assembly_version_file" />
|
|
|
|
<regex pattern="AssemblyVersion\(.(?'assembly_version'\d+\.\d+.\d+)" input="${assembly_version_file}" />
|
|
|
|
<property name="build.output.release_package" value="../package/${project.anx.name}-${build.configuration}-${assembly_version}.zip"/>
|
|
|
|
|
|
|
|
<zip ziplevel="9" zipfile="${build.output.release_package}">
|
|
|
|
<fileset basedir="${build.dir}/${build.configuration}/">
|
|
|
|
<include name="*.dll" />
|
2011-11-21 16:33:22 +00:00
|
|
|
<include name="*.config" />
|
2011-11-18 15:32:32 +00:00
|
|
|
<include name="../../doc/license.txt" />
|
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
</target>
|
2011-11-22 09:16:38 +00:00
|
|
|
|
2011-11-22 14:51:30 +00:00
|
|
|
<target name="create_msi_packages" description="Create the installer package" depends="build">
|
2011-11-22 09:16:38 +00:00
|
|
|
<loadfile file="${project.anx.path}/Properties/AssemblyInfo.cs" property="assembly_version_file" />
|
|
|
|
<regex pattern="AssemblyVersion\(.(?'assembly_version'\d+\.\d+.\d+)" input="${assembly_version_file}" />
|
|
|
|
<property name="build.output.installer_package" value="../package/${project.anx.name}-${build.configuration}-${assembly_version}.msi"/>
|
|
|
|
|
|
|
|
<property name="wix.dir" value="${path::combine(environment::get-variable('WIX'), 'bin')}" readonly="true" />
|
|
|
|
<loadtasks assembly="${wix.dir}\Microsoft.Tools.WindowsInstallerXml.NAntTasks.dll" />
|
|
|
|
|
2012-01-27 17:15:57 +00:00
|
|
|
<candle out="${build.dir}/${build.configuration}/installer/" exedir="${wix.dir}" extensions="WixUIExtension;WiXUtilExtension">
|
2011-11-22 09:16:38 +00:00
|
|
|
<sources>
|
|
|
|
<include name="../Installer/anx.wxs" />
|
|
|
|
</sources>
|
2011-11-22 15:20:13 +00:00
|
|
|
<defines>
|
|
|
|
<define name="PRODUCTVERSION" value="${assembly_version}" />
|
|
|
|
</defines>
|
2011-11-22 09:16:38 +00:00
|
|
|
</candle>
|
|
|
|
|
|
|
|
<light
|
|
|
|
exedir="${wix.dir}"
|
|
|
|
out="${build.output.installer_package}"
|
|
|
|
warningsaserrors="true"
|
|
|
|
suppressices="ICE57"
|
|
|
|
cultures="en-us"
|
2012-01-27 17:15:57 +00:00
|
|
|
extensions="WixUIExtension;WiXUtilExtension"
|
2011-11-22 09:16:38 +00:00
|
|
|
rebuild="true"
|
|
|
|
suppresspdb="true">
|
|
|
|
<!-- Specify additional options -->
|
|
|
|
<arg line="-fv" />
|
|
|
|
<sources basedir="${build.dir}/${build.configuration}/installer/">
|
|
|
|
<include name="*.wixobj" />
|
|
|
|
</sources>
|
|
|
|
</light>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2012-08-24 08:01:14 +00:00
|
|
|
<target name="generate_project_files" depends="tools">
|
2012-08-24 09:54:18 +00:00
|
|
|
<fileset id="project_files" basedir="../">
|
|
|
|
<include name="**/${project.anx.name}/*.csproj" />
|
|
|
|
<include name="RenderSystems/**/*.csproj" />
|
|
|
|
<include name="InputSystems/**/*.csproj" />
|
|
|
|
<include name="PlatformSystems/**/*.csproj" />
|
|
|
|
<include name="SoundSystems/**/*.csproj" />
|
|
|
|
<exclude name="**/*_Linux.csproj" />
|
|
|
|
<exclude name="**/*_PSVita.csproj" />
|
|
|
|
<exclude name="**/*_WindowsMetro.csproj" />
|
|
|
|
</fileset>
|
|
|
|
|
2012-08-24 08:01:14 +00:00
|
|
|
<foreach item="File" property="projectFile">
|
|
|
|
<in>
|
2012-08-24 09:54:18 +00:00
|
|
|
<items refid="project_files" />
|
2012-08-24 08:01:14 +00:00
|
|
|
</in>
|
|
|
|
<do>
|
2012-08-24 09:54:18 +00:00
|
|
|
<echo message="create project file: ${path::get-file-name-without-extension(projectFile)}" />
|
2012-08-24 08:01:14 +00:00
|
|
|
|
|
|
|
<exec program="${build.dir.tools}/${build.configuration}/ProjectConverter.exe" >
|
|
|
|
<arg value=""${projectFile}"" />
|
|
|
|
<arg value="/linux" if="${project.anx.linux}" />
|
|
|
|
<arg value="/psvita" if="${project.anx.psvita}" />
|
|
|
|
<arg value="/windowsmetro" if="${project.anx.metro}" />
|
|
|
|
</exec>
|
|
|
|
</do>
|
|
|
|
</foreach>
|
|
|
|
</target>
|
2011-11-18 15:32:32 +00:00
|
|
|
</project>
|