-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
40 lines (31 loc) · 1.68 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildOS Condition="$([MSBuild]::IsOsPlatform(`Windows`)) == true">Windows</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOsPlatform(`Linux`)) == true">Linux</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOsPlatform(`OSX`)) == true">macOS</BuildOS>
</PropertyGroup>
<PropertyGroup>
<TopLevelDirectory>$(MSBuildThisFileDirectory)</TopLevelDirectory>
<ArtifactsDir>$(TopLevelDirectory)artifacts\</ArtifactsDir>
<!-- Without separate intermediate directories, project.assets.json would
get stomped on by each project as it was restored and built. For more info
see https://github.com/NuGet/Home/issues/4463 -->
<BaseIntermediateOutputPath>$(ArtifactsDir)obj\$(BuildOS)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<!-- Placing output binaries in a higher level directory than the project
files avoids problems with generated AssemblyInfo, among other benefits. -->
<BaseOutputPath>$(ArtifactsDir)bin\$(MSBuildProjectName)\</BaseOutputPath>
<VeldridSpirvVersion>1.0.15</VeldridSpirvVersion>
</PropertyGroup>
<PropertyGroup Condition="$(BuildOS) == 'Windows'">
<RuntimeID>win-x64</RuntimeID>
<VeldridSpirvNativeName>libveldrid-spirv.dll</VeldridSpirvNativeName>
</PropertyGroup>
<PropertyGroup Condition="$(BuildOS) == 'Linux'">
<RuntimeID>linux-x64</RuntimeID>
<VeldridSpirvNativeName>libveldrid-spirv.so</VeldridSpirvNativeName>
</PropertyGroup>
<PropertyGroup Condition="$(BuildOS) == 'macOS'">
<RuntimeID>osx-x64</RuntimeID>
<VeldridSpirvNativeName>libveldrid-spirv.dylib</VeldridSpirvNativeName>
</PropertyGroup>
</Project>