summaryrefslogtreecommitdiffstats
path: root/win/CS/build.xml
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-07-17 14:17:53 +0000
committersr55 <[email protected]>2011-07-17 14:17:53 +0000
commit88cc694ec68c7f396945897f7a865bef0ec3b341 (patch)
tree7afa892cd2326b5e04b13df87a11accb4ea6f272 /win/CS/build.xml
parentb7bd335a32a15c792cf0539bc1c96f46209452f3 (diff)
WinGui: Setup a simple msbuild configuration and simplified the project build targets.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4117 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/build.xml')
-rw-r--r--win/CS/build.xml55
1 files changed, 50 insertions, 5 deletions
diff --git a/win/CS/build.xml b/win/CS/build.xml
index 55d3852b4..d0c40cacb 100644
--- a/win/CS/build.xml
+++ b/win/CS/build.xml
@@ -1,6 +1,51 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
+<!--
+ build.xml
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License
+
+ HandBrake Build Scipt for usage with Jenkins.
+ Usage: msbuild build.xml /p:Platform=x86
+ Reuqires: HandBrakeCli.exe to be in the release folder.
+-->
+<Project DefaultTargets="NightlyBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <!-- Setup -->
+ <PropertyGroup>
+ <DestFolder>Deploy\</DestFolder>
+ <Configuration>Release</Configuration>
+ </PropertyGroup>
+
+ <!-- Build all the main cproj files.-->
+ <ItemGroup>
+ <ProjectsToBuild Include="HandBrake.Interop\HandBrakeInterop\*proj" Exclude="$(MSBuildProjectFile)"/>
+ <ProjectsToBuild Include="HandBrake.ApplicationServices\*proj" Exclude="$(MSBuildProjectFile)"/>
+ <ProjectsToBuild Include="HandBrakeCS.*proj" Exclude="$(MSBuildProjectFile)"/>
+ </ItemGroup>
- <!-- TODO -->
-</Project>
+ <!-- Dependencies -->
+ <PropertyGroup>
+ <NightlyDependsOn>Nightly;NightlyPostBuildEvent</NightlyDependsOn>
+ </PropertyGroup>
+
+ <!-- Builds -->
+ <Target Name="NightlyBuild" DependsOnTargets="$(NightlyDependsOn)"/>
+
+ <!-- Build Components -->
+ <Target Name="Nightly">
+ <MSBuild Projects ="@(ProjectsToBuild)"
+ ContinueOnError ="false"
+ Properties="Configuration=$(Configuration)" >
+ <Output ItemName="OutputFiles" TaskParameter="TargetOutputs"/>
+ </MSBuild>
+ </Target>
+
+ <!-- Events -->
+ <Target Name="NightlyPostBuildEvent">
+ <Exec Command="copy $(ProjectDir)Installer\MakeNightly.nsi $(ProjectDir)bin\x86\Release /Y" />
+ <Exec Command="copy $(ProjectDir)handbrakepineapple.ico $(ProjectDir)bin\x86\Release /Y" />
+ <Exec Command="xcopy $(ProjectDir)doc $(ProjectDir)bin\x86\Release\doc /I /Y" />
+ <Exec Command="makensis $(ProjectDir)bin\x86\Release\MakeNightly.nsi" />
+ </Target>
+
+</Project> \ No newline at end of file