The Makefile behaviour is recreated using the new and significantly cleaner .NET Core csproj format. fixheader.exe is promoted to OpenRA.PostProcess.exe and now runs on all platforms.
31 lines
1.4 KiB
XML
31 lines
1.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net461</TargetFramework>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<Optimize>true</Optimize>
|
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
<OutputPath>..</OutputPath>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<LangVersion>5</LangVersion>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<Platforms>x86</Platforms>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<ExternalConsole>false</ExternalConsole>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<Optimize>false</Optimize>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj" />
|
|
<ProjectReference Include="..\OpenRA.PostProcess\OpenRA.PostProcess.csproj">
|
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<Target Name="PostProcess" AfterTargets="Build" Inputs="$(TargetPath)" Outputs="$(IntermediateOutputPath)\$(TargetFileName).processed">
|
|
<Exec Command="$(TargetDir)/OpenRA.PostProcess.exe $(TargetPath) -LAA" />
|
|
<Touch Files="$(IntermediateOutputPath)\$(TargetFileName).processed" AlwaysCreate="true" />
|
|
</Target>
|
|
</Project> |