|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Project DefaultTargets="Release" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <!-- Add all the solutions here. --> |
| 4 | + <ItemGroup> |
| 5 | + <SolutionSet Include="$(MSBuildProjectDirectory)\VGMTrans_WTL.sln" /> |
| 6 | + <ProjectSetCPU Include="$(MSBuildProjectDirectory)\VGMTrans_WTL.sln" /> |
| 7 | + </ItemGroup> |
| 8 | + <!-- Add common build properties here. --> |
| 9 | + <PropertyGroup> |
| 10 | + <CreateHardLinksIfPossible>true</CreateHardLinksIfPossible> |
| 11 | + <CompileFastPlz>BuildInParallel=True; |
| 12 | + CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=$(CreateHardLinksIfPossible); |
| 13 | + CreateHardLinksForCopyAdditionalFilesIfPossible=$(CreateHardLinksIfPossible); |
| 14 | + CreateHardLinksForCopyLocalIfPossible=$(CreateHardLinksIfPossible); |
| 15 | + CreateHardLinksForPublishFilesIfPossible=$(CreateHardLinksIfPossible); |
| 16 | + </CompileFastPlz> |
| 17 | + </PropertyGroup> |
| 18 | + <!-- Add all the custom targets here. --> |
| 19 | + <Target Name="CleanBloat" AfterTargets="InternalBuild"> |
| 20 | + <ItemGroup> |
| 21 | + <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.bsc"/> |
| 22 | + <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.exp"/> |
| 23 | + <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.ilk"/> |
| 24 | + <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.iobj"/> |
| 25 | + <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.ipdb"/> |
| 26 | + <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.lib"/> |
| 27 | + <BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.pdb"/> |
| 28 | + </ItemGroup> |
| 29 | + <Delete Files="@(BloatToDelete)" /> |
| 30 | + </Target> |
| 31 | + <Target Name="CleanCruft"> |
| 32 | + <ItemGroup> |
| 33 | + <CruftToDelete Include="$(MSBuildProjectDirectory)\**\svnrev.h"/> |
| 34 | + <CruftToDelete Include="$(MSBuildProjectDirectory)\**\*.CppClean.log" /> |
| 35 | + </ItemGroup> |
| 36 | + <Delete Files="@(CruftToDelete)" /> |
| 37 | + </Target> |
| 38 | + <Target Name="InternalBuild" AfterTargets="Debug;Release"> |
| 39 | + <MSBuild Projects="@(SolutionSet)" BuildInParallel="false" Properties="Configuration=$(BaseConfiguration)" Targets="Clean" /> |
| 40 | + <MSBuild Projects="@(ProjectSetCPU)" BuildInParallel="false" Properties="Configuration=%(ConfigCPU.Identity)" Targets="Clean" /> |
| 41 | + <CallTarget Targets="CleanCruft" /> |
| 42 | + <MSBuild Projects="@(SolutionSet)" BuildInParallel="false" Properties="Configuration=$(BaseConfiguration);$(CompileFastPlz)" Targets="Build" /> |
| 43 | + <MSBuild Projects="@(ProjectSetCPU)" BuildInParallel="true" Properties="Configuration=%(ConfigCPU.Identity);BuildProjectReferences=false;$(CompileFastPlz)" Targets="@(TargetsSetCPU)" /> |
| 44 | + </Target> |
| 45 | + <Target Name="Debug"> |
| 46 | + <PropertyGroup> |
| 47 | + <BaseConfiguration>Debug</BaseConfiguration> |
| 48 | + </PropertyGroup> |
| 49 | + <ItemGroup> |
| 50 | + <ConfigCPU Include="Debug"/> |
| 51 | + </ItemGroup> |
| 52 | + </Target> |
| 53 | + <Target Name="Release"> |
| 54 | + <PropertyGroup> |
| 55 | + <BaseConfiguration>Release</BaseConfiguration> |
| 56 | + </PropertyGroup> |
| 57 | + <ItemGroup> |
| 58 | + <ConfigCPU Include="Release"/> |
| 59 | + </ItemGroup> |
| 60 | + </Target> |
| 61 | +</Project> |
0 commit comments