-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSound Of Functions.csproj
More file actions
57 lines (51 loc) · 2.9 KB
/
Sound Of Functions.csproj
File metadata and controls
57 lines (51 loc) · 2.9 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Project Sdk="Godot.NET.Sdk/4.2.1">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework>
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'ios' ">net8.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
<RootNamespace>SoundOfFunctions</RootNamespace>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="CSharpMath" Version="0.5.1" />
<PackageReference Include="CSharpMath.SkiaSharp" Version="0.5.1" />
</ItemGroup>
<ItemGroup
Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies"
Version="2.88.1-preview.108" />
</ItemGroup>
<ItemGroup
Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' ">
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies"
Version="2.88.1-preview.108" />
</ItemGroup>
<!-- Downloads the rust component of the parser automatically from the latest github CI run -->
<Target Name="CustomBeforeCompile" BeforeTargets="BeforeCompile">
<PropertyGroup>
<ParserName>Linux.zip</ParserName>
<ParserName Condition="'$(GodotTargetPlatform)' == 'windows'">Windows.zip</ParserName>
<ParserName Condition="'$(GodotTargetPlatform)' == 'macos'">MacOS.zip</ParserName>
<ParserName Condition="'$(GodotTargetPlatform)' == 'linux'">Linux.zip</ParserName>
<ParserFile>libfnky_parser.so</ParserFile>
<ParserFile Condition="'$(GodotTargetPlatform)' == 'windows'">fnky_parser.dll</ParserFile>
<ParserFile Condition="'$(GodotTargetPlatform)' == 'macos'">libfnky_parser.dylib</ParserFile>
<ParserFile Condition="'$(GodotTargetPlatform)' == 'linux'">libfnky_parser.so</ParserFile>
<ParserUrl>https://nightly.link/F-nk-Sound/fnky_parser/workflows/ci/main/$(ParserName)</ParserUrl>
</PropertyGroup>
<Message Text="Targeting platform `$(GodotTargetPlatform)`" />
<DownloadFile DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" SourceUrl="$(ParserUrl)" />
<Unzip SourceFiles="$(OutDir)/$(ParserName)" DestinationFolder="$(OutDir)" />
<Copy SourceFiles="$(OutDir)$(ParserFile)" DestinationFolder="$(GodotProjectDir)" />
</Target>
</Project>