Remove logic to create the default config file

This commit is contained in:
Thomas Goyne 2012-11-01 13:44:07 -07:00
parent 45ff83637a
commit c4daf53030
1 changed files with 1 additions and 30 deletions

View File

@ -31,38 +31,9 @@
--> -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Create build configuration file if it does not exist-target -->
<Target
Name="CreateDefaultConfigurationHeader"
BeforeTargets="PrepareForBuild"
Condition="'@(CreateDefaultConfigurationHeader)' != ''"
>
<PropertyGroup>
<AegisubMustCreateConfigurationHeader Condition="!Exists('%(CreateDefaultConfigurationHeader.TargetFile)')">true</AegisubMustCreateConfigurationHeader>
</PropertyGroup>
<Warning
Condition="'$(AegisubMustCreateConfigurationHeader)'=='true'"
Text="Creating default configuration file. You should edit this file to customise the build."
/>
<Error
Condition="!Exists('%(CreateDefaultConfigurationHeader.TemplateFile)') and '$(AegisubMustCreateConfigurationHeader)'=='true'"
Text="The configuration file template was not found."
/>
<Copy
Condition="'$(AegisubMustCreateConfigurationHeader)'=='true'"
SourceFiles="%(CreateDefaultConfigurationHeader.TemplateFile)"
DestinationFiles="%(CreateDefaultConfigurationHeader.TargetFile)"
/>
<Message
Condition="'$(AegisubMustCreateConfigurationHeader)'=='true'"
Text="Created %(CreateDefaultConfigurationHeader.TargetFile)"
/>
</Target>
<!-- Default configuration --> <!-- Default configuration -->
<Import Project="$(MSBuildThisFileDirectory)Aegisub.DefaultConfiguration.props" /> <Import Project="$(MSBuildThisFileDirectory)Aegisub.DefaultConfiguration.props" />
<!-- Build credit text --> <!-- Build credit text -->
<PropertyGroup Condition="'$(AegisubBuildCredit)'==''"> <PropertyGroup Condition="'$(AegisubBuildCredit)'==''">
<AegisubBuildCredit>Anonymous</AegisubBuildCredit> <AegisubBuildCredit>Anonymous</AegisubBuildCredit>
@ -212,7 +183,7 @@
<!-- Add property pages --> <!-- Add property pages -->
<ItemGroup> <ItemGroup>
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)Aegisub.xml" /> <PropertyPageSchema Include="$(MSBuildThisFileDirectory)Aegisub.xml" />
<ProjectTools Include="AegisubConfig;CreateDefaultConfigurationHeader" /> <ProjectTools Include="AegisubConfig" />
</ItemGroup> </ItemGroup>
</Project> </Project>