190 lines
9.3 KiB
XML
190 lines
9.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
|
<RootNamespace>Barotrauma</RootNamespace>
|
|
<Authors>FakeFish, Undertow Games</Authors>
|
|
<Product>Barotrauma</Product>
|
|
<Version>0.1300.0.7</Version>
|
|
<Copyright>Copyright © FakeFish 2018-2020</Copyright>
|
|
<Platforms>AnyCPU;x64</Platforms>
|
|
<AssemblyName>Barotrauma</AssemblyName>
|
|
<ApplicationIcon>..\BarotraumaShared\Icon.ico</ApplicationIcon>
|
|
<Configurations>Debug;Release;Unstable</Configurations>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
<DefineConstants>DEBUG;TRACE;CLIENT;LINUX;USE_STEAM</DefineConstants>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<OutputPath>..\bin\$(Configuration)Linux\</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<DefineConstants>TRACE;DEBUG;CLIENT;LINUX;X64;USE_STEAM</DefineConstants>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<OutputPath>..\bin\$(Configuration)Linux\</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
|
<DefineConstants>TRACE;CLIENT;LINUX;USE_STEAM</DefineConstants>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<OutputPath>..\bin\$(Configuration)Linux\</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unstable|AnyCPU'">
|
|
<DefineConstants>TRACE;CLIENT;LINUX;USE_STEAM;UNSTABLE</DefineConstants>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<OutputPath>..\bin\$(Configuration)Linux\</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<DefineConstants>TRACE;CLIENT;LINUX;X64;USE_STEAM</DefineConstants>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<OutputPath>..\bin\$(Configuration)Linux\</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unstable|x64'">
|
|
<DefineConstants>TRACE;CLIENT;LINUX;X64;USE_STEAM;UNSTABLE</DefineConstants>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<OutputPath>..\bin\$(Configuration)Linux\</OutputPath>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="..\BarotraumaShared\**\*" CopyToOutputDirectory="PreserveNewest" />
|
|
<Content Remove="..\BarotraumaShared\**\*.cs" />
|
|
<Compile Include="..\BarotraumaShared\**\*.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="freetype6.dll" />
|
|
<None Remove="soft_oal_x64.dll" />
|
|
<None Remove="x64\SDL2.dll" />
|
|
<None Remove="webm_mem_playback_x64.dll" />
|
|
<None Remove="libfreetype6.so" />
|
|
<None Remove="libopenal.so.1" />
|
|
<None Remove="libSDL2-2.0.so.0" />
|
|
<None Remove="webm_mem_playback_x64.so" />
|
|
<None Remove="libopenal.1.dylib" />
|
|
<None Remove="libSDL2-2.0.0.dylib" />
|
|
<None Remove="libwebm_mem_playback_x64.dylib" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="libfreetype6.so">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="libopenal.so.1">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="libSDL2-2.0.so.0">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="webm_mem_playback_x64.so">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
|
|
<Content Include="Content\**\*">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
|
|
<EmbeddedResource Include="Icon.bmp">
|
|
<LogicalName>Icon.bmp</LogicalName>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(Configuration)'!='Debug'">
|
|
<ProjectReference Include="..\..\Libraries\Concentus\CSharp\Concentus\Concentus.NetStandard.csproj" AdditionalProperties="Configuration=Release" />
|
|
<ProjectReference Include="..\..\Libraries\Facepunch.Steamworks\Facepunch.Steamworks.Posix.csproj" AdditionalProperties="Configuration=Release" />
|
|
<ProjectReference Include="..\..\Libraries\Farseer Physics Engine 3.5\Farseer.NetStandard.csproj" AdditionalProperties="Configuration=Release" />
|
|
<ProjectReference Include="..\..\Libraries\GameAnalytics\GA_SDK_NETSTANDARD\GA_SDK_NETSTANDARD.csproj" AdditionalProperties="Configuration=Release" />
|
|
<ProjectReference Include="..\..\Libraries\Hyper.ComponentModel\Hyper.ComponentModel.NetStandard.csproj" AdditionalProperties="Configuration=Release" />
|
|
<ProjectReference Include="..\..\Libraries\Lidgren.Network\Lidgren.NetStandard.csproj" AdditionalProperties="Configuration=Release" />
|
|
<ProjectReference Include="..\..\Libraries\MonoGame.Framework\Src\MonoGame.Framework\MonoGame.Framework.Linux.NetStandard.csproj" AdditionalProperties="Configuration=Release" />
|
|
<ProjectReference Include="..\..\Libraries\SharpFont\Source\SharpFont\SharpFont.NetStandard.csproj" AdditionalProperties="Configuration=Release" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(Configuration)'=='Debug'">
|
|
<ProjectReference Include="..\..\Libraries\Concentus\CSharp\Concentus\Concentus.NetStandard.csproj" AdditionalProperties="Configuration=Debug" />
|
|
<ProjectReference Include="..\..\Libraries\Facepunch.Steamworks\Facepunch.Steamworks.Posix.csproj" AdditionalProperties="Configuration=Debug" />
|
|
<ProjectReference Include="..\..\Libraries\Farseer Physics Engine 3.5\Farseer.NetStandard.csproj" AdditionalProperties="Configuration=Debug" />
|
|
<ProjectReference Include="..\..\Libraries\GameAnalytics\GA_SDK_NETSTANDARD\GA_SDK_NETSTANDARD.csproj" AdditionalProperties="Configuration=Debug" />
|
|
<ProjectReference Include="..\..\Libraries\Hyper.ComponentModel\Hyper.ComponentModel.NetStandard.csproj" AdditionalProperties="Configuration=Debug" />
|
|
<ProjectReference Include="..\..\Libraries\Lidgren.Network\Lidgren.NetStandard.csproj" AdditionalProperties="Configuration=Debug" />
|
|
<ProjectReference Include="..\..\Libraries\MonoGame.Framework\Src\MonoGame.Framework\MonoGame.Framework.Linux.NetStandard.csproj" AdditionalProperties="Configuration=Debug" />
|
|
<ProjectReference Include="..\..\Libraries\SharpFont\Source\SharpFont\SharpFont.NetStandard.csproj" AdditionalProperties="Configuration=Debug" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="Properties\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="NVorbis" Version="0.8.6" />
|
|
<PackageReference Include="RestSharp" Version="106.6.10" />
|
|
</ItemGroup>
|
|
|
|
<!-- Sourced from https://stackoverflow.com/a/45248069 -->
|
|
<Target Name="GetGitRevision" BeforeTargets="WriteGitRevision" Condition="'$(BuildHash)' == ''">
|
|
<PropertyGroup>
|
|
<!-- temp file for the git version (lives in "obj" folder)-->
|
|
<VerFile>$(IntermediateOutputPath)gitver</VerFile>
|
|
<BranchFile>$(IntermediateOutputPath)gitbranch</BranchFile>
|
|
</PropertyGroup>
|
|
|
|
<!-- write the hash to the temp file.-->
|
|
<Exec Command="git -C $(ProjectDir) rev-parse --short HEAD > $(VerFile)" ContinueOnError="true">
|
|
<Output TaskParameter="exitcode" ItemName="exitcodes" />
|
|
</Exec>
|
|
<Exec Command="git -C $(ProjectDir) rev-parse --short HEAD --symbolic-full-name --abbrev-ref=strict > $(BranchFile)" ContinueOnError="true" />
|
|
|
|
<Exec Command="echo GIT_UNAVAILABLE > $(VerFile)" Condition="'%(exitcodes.identity)'>0" />
|
|
<Exec Command="echo GIT_UNAVAILABLE > $(BranchFile)" Condition="'%(exitcodes.identity)'>0" />
|
|
|
|
<!-- read the version into the GitVersion itemGroup-->
|
|
<ReadLinesFromFile File="$(VerFile)">
|
|
<Output TaskParameter="Lines" ItemName="GitVersion" />
|
|
</ReadLinesFromFile>
|
|
<!-- Set the BuildHash property to contain the GitVersion, if it wasn't already set.-->
|
|
<PropertyGroup>
|
|
<BuildHash>@(GitVersion)</BuildHash>
|
|
</PropertyGroup>
|
|
|
|
<!-- read the branch into the GitBranch itemGroup-->
|
|
<ReadLinesFromFile File="$(BranchFile)">
|
|
<Output TaskParameter="Lines" ItemName="GitBranch" />
|
|
</ReadLinesFromFile>
|
|
<!-- Set the BuildHash property to contain the GitVersion, if it wasn't already set.-->
|
|
<PropertyGroup>
|
|
<BuildBranch>@(GitBranch)</BuildBranch>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="WriteGitRevision" BeforeTargets="CoreCompile">
|
|
<!-- names the obj/.../CustomAssemblyInfo.cs file -->
|
|
<PropertyGroup>
|
|
<CustomAssemblyInfoFile>$(IntermediateOutputPath)CustomAssemblyInfo.cs</CustomAssemblyInfoFile>
|
|
</PropertyGroup>
|
|
<!-- includes the CustomAssemblyInfo for compilation into your project -->
|
|
<ItemGroup>
|
|
<Compile Include="$(CustomAssemblyInfoFile)" />
|
|
</ItemGroup>
|
|
<!-- defines the AssemblyMetadata attribute that will be written -->
|
|
<ItemGroup>
|
|
<AssemblyAttributes Include="AssemblyMetadata">
|
|
<_Parameter1>GitRevision</_Parameter1>
|
|
<_Parameter2>$(BuildHash)</_Parameter2>
|
|
</AssemblyAttributes>
|
|
<AssemblyAttributes Include="AssemblyMetadata">
|
|
<_Parameter1>GitBranch</_Parameter1>
|
|
<_Parameter2>$(BuildBranch)</_Parameter2>
|
|
</AssemblyAttributes>
|
|
<AssemblyAttributes Include="AssemblyMetadata">
|
|
<_Parameter1>ProjectDir</_Parameter1>
|
|
<_Parameter2>$(ProjectDir)</_Parameter2>
|
|
</AssemblyAttributes>
|
|
</ItemGroup>
|
|
<!-- writes the attribute to the customAssemblyInfo file -->
|
|
<WriteCodeFragment Language="C#" OutputFile="$(CustomAssemblyInfoFile)" AssemblyAttributes="@(AssemblyAttributes)" />
|
|
</Target>
|
|
|
|
</Project> |