-
Notifications
You must be signed in to change notification settings - Fork 1
/
CutTheRope.csproj
98 lines (98 loc) · 4.88 KB
/
CutTheRope.csproj
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>CutTheRope</AssemblyName>
<AssemblyTitle>Cut The Rope FNA Edition</AssemblyTitle>
<Product>Cut The Rope FNA Edition</Product>
<ProductName>$(Product)</ProductName>
<Description>Cut The Rope ported to FNA</Description>
<Company>ZeptoLab</Company>
<Authors>Rosalie</Authors>
<Copyright>Copyright © 2012</Copyright>
<Version>1.0.6</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<ProductVersion>$(Version)</ProductVersion>
<NeutralLanguage>en-US</NeutralLanguage>
</PropertyGroup>
<!-- set variables -->
<PropertyGroup>
<FNALibsArch Condition="('$(RuntimeIdentifier)' == '' And
$([MSBuild]::IsOsPlatform('Linux')) And
'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64')
Or '$(RuntimeIdentifier)' == 'linux-x64'">lib64</FNALibsArch>
<FNALibsArch Condition="('$(RuntimeIdentifier)' == '' And
$([MSBuild]::IsOsPlatform('Linux')) And
'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64')
Or '$(RuntimeIdentifier)' == 'linux-arm64'">libaarch64</FNALibsArch>
<FNALibsArch Condition="('$(RuntimeIdentifier)' == '' And
$([MSBuild]::IsOsPlatform('Windows')) And
'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64')
Or '$(RuntimeIdentifier)' == 'win-x64'">x64</FNALibsArch>
<FNALibsArch Condition="('$(RuntimeIdentifier)' == '' And
$([MSBuild]::IsOsPlatform('Windows')) And
'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X86')
Or '$(RuntimeIdentifier)' == 'win-x86'">x86</FNALibsArch>
</PropertyGroup>
<!-- publish settings -->
<PropertyGroup>
<PublishSingleFile Condition="'$(PublishAot)' != 'true'">true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<IsTrimmable>true</IsTrimmable>
<TrimMode>full</TrimMode>
</PropertyGroup>
<!-- AOT settings -->
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'linux-x64'
Or '$(RuntimeIdentifier)' == 'linux-arm64'">
<NativeLibrary Include="-L$(MSBuildProjectDirectory)/fnalibs/$(FNALibsArch)/" />
<NativeLibrary Include="-l:libSDL2-2.0.so.0" />
<NativeLibrary Include="-l:libFNA3D.so.0" />
<NativeLibrary Include="-l:libFAudio.so.0" />
<NativeLibrary Include="-l:libtheorafile.so" />
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<NativeLibrary Include="$(MSBuildProjectDirectory)\fnalibs\$(FNALibsArch)\lib\SDL2.lib" />
<NativeLibrary Include="$(MSBuildProjectDirectory)\fnalibs\$(FNALibsArch)\lib\FNA3D.lib" />
<NativeLibrary Include="$(MSBuildProjectDirectory)\fnalibs\$(FNALibsArch)\lib\FAudio.lib" />
<NativeLibrary Include="$(MSBuildProjectDirectory)\fnalibs\$(FNALibsArch)\lib\libtheorafile.lib" />
</ItemGroup>
<ItemGroup>
<RdXmlFile Include="rd.xml" />
<DirectPInvokeList Include="SDLApis.txt" />
<DirectPInvoke Include="FNA3D" />
<DirectPInvoke Include="FAudio" />
<DirectPInvoke Include="libtheorafile" />
</ItemGroup>
<!-- application settings -->
<PropertyGroup>
<ApplicationIcon>app.ico</ApplicationIcon>
</PropertyGroup>
<!-- FNA libraries -->
<ItemGroup>
<Content Include="$(MSBuildProjectDirectory)\fnalibs\$(FNALibsArch)\*.*">
<TargetPath>%(Filename)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<!-- bmp file is only needed for Linux -->
<Content Include="app.bmp" Condition="('$(RuntimeIdentifier)' == ''
And $([MSBuild]::IsOsPlatform('Linux')))
Or '$(RuntimeIdentifier)' == 'linux-x64'
Or '$(RuntimeIdentifier)' == 'linux-arm64'">
<TargetPath>$(AssemblyTitle)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="content\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Remove="FNA\**" />
<ProjectReference Include="FNA\FNA.Core.csproj">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</ProjectReference>
</ItemGroup>
</Project>