Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1452 | chris | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||
| 3 | <PropertyGroup Condition="'$(Configuration)' == 'Documentation'"> |
||
| 4 | <OutputPath>.\opentk\</OutputPath> |
||
| 5 | </PropertyGroup> |
||
| 6 | <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> |
||
| 7 | <OutputPath>.\opentk\</OutputPath> |
||
| 8 | </PropertyGroup> |
||
| 9 | <PropertyGroup Condition="'$(Configuration)' == 'Release'"> |
||
| 10 | <OutputPath>.\opentk\</OutputPath> |
||
| 11 | </PropertyGroup> |
||
| 12 | <PropertyGroup Condition="'$(Configuration)' == 'Nsis'"> |
||
| 13 | <OutputPath>.\opentk\</OutputPath> |
||
| 14 | </PropertyGroup> |
||
| 15 | <PropertyGroup> |
||
| 16 | <ProjectGuid>{ADC34399-7613-44D2-90B2-19250F06FE7B}</ProjectGuid> |
||
| 17 | <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
||
| 18 | <TargetFrameworkProfile /> |
||
| 19 | <InputPath>..\..\</InputPath> |
||
| 20 | <OutputPath>.\opentk\</OutputPath> |
||
| 21 | </PropertyGroup> |
||
| 22 | <Target Name="Build"> |
||
| 23 | <CallTarget Targets="CleanTreeCopy" /> |
||
| 24 | <!-- Make a clean copy of the source tree --> |
||
| 25 | <CreateItem |
||
| 26 | Include="$(InputPath)**\*.*" |
||
| 27 | Exclude="$(InputPath)**\.svn\**\*.*; |
||
| 28 | $(InputPath)**\obj\**\*.*; |
||
| 29 | $(InputPath)Installers\Zip\opentk\**\*.*; |
||
| 30 | $(InputPath)Documentation\Source\**\*.*; |
||
| 31 | $(InputPath)**\OpenTK*.xml; |
||
| 32 | $(InputPath)**\*.suo; |
||
| 33 | $(InputPath)**\*.pidb; |
||
| 34 | $(InputPath)**\*.userprefs; |
||
| 35 | $(InputPath)**\opentk*.zip; |
||
| 36 | $(InputPath)**\opentk*.exe; |
||
| 37 | $(InputPath)**\vshost*.exe; |
||
| 38 | "> |
||
| 39 | <Output TaskParameter="Include" ItemName="FileList" /> |
||
| 40 | </CreateItem> |
||
| 41 | <Copy SourceFiles="@(FileList)" DestinationFiles="@(FileList->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" /> |
||
| 42 | <!-- Zip the copy of the source tree --> |
||
| 43 | <Exec Command="7z a -tzip opentk.zip $(OutputPath)" /> |
||
| 44 | <!-- Copy the zip file to the root directory and add a date stamp --> |
||
| 45 | <ReadLinesFromFile File="../../Version.txt"> |
||
| 46 | <Output TaskParameter="Lines" ItemName="Version"/> |
||
| 47 | </ReadLinesFromFile> |
||
| 48 | <Copy SourceFiles=".\opentk.zip" DestinationFiles="@(Version->'..\..\opentk-%(Identity).zip')" /> |
||
| 49 | </Target> |
||
| 50 | <Target Name="Clean"> |
||
| 51 | <CreateItem Include=".\opentk.zip;..\..\opentk-*.zip"> |
||
| 52 | <Output TaskParameter="Include" ItemName="FilesToDelete" /> |
||
| 53 | </CreateItem> |
||
| 54 | <Delete Files="@(FilesToDelete)" /> |
||
| 55 | <CallTarget Targets="CleanTreeCopy" /> |
||
| 56 | </Target> |
||
| 57 | <Target Name="Rebuild"> |
||
| 58 | <CallTarget Targets="Clean" /> |
||
| 59 | <CallTarget Targets="Build" /> |
||
| 60 | </Target> |
||
| 61 | <Target Name="CleanTreeCopy"> |
||
| 62 | <RemoveDir Directories="$(OutputPath)" Condition="$(OS) == 'Windows_NT'" /> |
||
| 63 | <Exec Command="rm -rf '$(OutputPath)'" Condition="$(OS) != 'Windows_NT'" /> |
||
| 64 | </Target> |
||
| 65 | </Project> |