Repository navigation
Expand file tree
/
Copy pathAndroidplayer.csproj
More file actions
184 lines (152 loc) · 8.53 KB
/
Copy pathAndroidplayer.csproj
File metadata and controls
184 lines (152 loc) · 8.53 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<Project Sdk="Microsoft.NET.Sdk">
<!-- 1. Main properties -->
<PropertyGroup>
<!-- <OutputType>Exe</OutputType>-->
<OutputType Condition="'$(Configuration)' == 'Debug'">Exe</OutputType>
<OutputType Condition="'$(Configuration)' != 'Debug'">WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<LangVersion>12.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AvaloniaAccessUnstablePrivateApis>true</AvaloniaAccessUnstablePrivateApis>
<Avalonia_I_Want_To_Use_Private_Apis_In_Nuget_Package_And_Promise_To_Pin_The_Exact_Avalonia_Version_In_Package_Dependency>true</Avalonia_I_Want_To_Use_Private_Apis_In_Nuget_Package_And_Promise_To_Pin_The_Exact_Avalonia_Version_In_Package_Dependency>
<!--
<PublishAot>true</PublishAot>
<IsAotCompatible>true</IsAotCompatible>
<SelfContained>true</SelfContained>
-->
</PropertyGroup>
<!-- 2. DepsPlatform — MUST be before any conditional ItemGroup -->
<PropertyGroup>
<_EffectiveRid Condition="'$(RuntimeIdentifier)' != ''">$(RuntimeIdentifier)</_EffectiveRid>
<_EffectiveRid Condition="'$(_EffectiveRid)' == ''">$(NETCoreSdkRuntimeIdentifier)</_EffectiveRid>
<DepsPlatform Condition="$(_EffectiveRid.StartsWith('win'))">windows</DepsPlatform>
<DepsPlatform Condition="$(_EffectiveRid.StartsWith('linux'))">linux</DepsPlatform>
<DepsPlatform Condition="$(_EffectiveRid.StartsWith('osx'))">macos</DepsPlatform>
<DepsPlatform Condition="'$(DepsPlatform)' == '' AND $([MSBuild]::IsOSPlatform('Windows'))">windows</DepsPlatform>
<DepsPlatform Condition="'$(DepsPlatform)' == '' AND $([MSBuild]::IsOSPlatform('Linux'))">linux</DepsPlatform>
<DepsPlatform Condition="'$(DepsPlatform)' == '' AND $([MSBuild]::IsOSPlatform('OSX'))">macos</DepsPlatform>
</PropertyGroup>
<!-- 3. Define symbols for #if WINDOWS / LINUX / MACOS -->
<PropertyGroup>
<DefineConstants Condition="'$(DepsPlatform)' == 'windows'">$(DefineConstants);WINDOWS</DefineConstants>
<DefineConstants Condition="'$(DepsPlatform)' == 'linux'">$(DefineConstants);LINUX</DefineConstants>
<DefineConstants Condition="'$(DepsPlatform)' == 'macos'">$(DefineConstants);MACOS</DefineConstants>
</PropertyGroup>
<!-- 4. NO Compile Remove — use #if guards inside the .cs files instead -->
<!-- 5a. Cross-platform packages -->
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.2.6" />
<PackageReference Include="Avalonia.Desktop" Version="11.2.6" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.6" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.6" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.2" />
<PackageReference Include="FFmpeg.AutoGen" Version="7.0.0" />
<PackageReference Include="LiteDB" Version="6.0.0-prerelease.65" />
<PackageReference Include="SharpAdbClient" Version="2.3.23" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
</ItemGroup>
<!-- 5b. Windows-only packages -->
<ItemGroup Condition="'$(DepsPlatform)' == 'windows'">
<PackageReference Include="SharpDX" Version="4.2.0" />
<PackageReference Include="SharpDX.D3DCompiler" Version="4.2.0" />
<PackageReference Include="SharpDX.Direct2D1" Version="4.2.0" />
<PackageReference Include="SharpDX.Direct3D11" Version="4.2.0" />
<PackageReference Include="SharpDX.Direct3D9" Version="4.2.0" />
<PackageReference Include="SharpDX.DXGI" Version="4.2.0" />
<PackageReference Include="SharpDX.Mathematics" Version="4.2.0" />
<PackageReference Include="SharpDX.XAudio2" Version="4.2.0" />
</ItemGroup>
<!-- 5c. Linux-only packages -->
<ItemGroup Condition="'$(DepsPlatform)' == 'linux'">
<PackageReference Include="Silk.NET.Vulkan" Version="2.23.0" />
<PackageReference Include="Silk.NET.Vulkan.Extensions.KHR" Version="2.23.0" />
<PackageReference Include="Silk.NET.Vulkan.Extensions.EXT" Version="2.23.0" />
</ItemGroup>
<!-- 5d. macOS-only packages -->
<ItemGroup Condition="'$(DepsPlatform)' == 'macos'">
<PackageReference Include="SharpMetal" Version="1.1.0" />
</ItemGroup>
<!-- 6a. Windows-only trimmer roots -->
<ItemGroup Condition="'$(DepsPlatform)' == 'windows'">
<TrimmerRootAssembly Include="SharpDX" />
<TrimmerRootAssembly Include="SharpDX.Direct3D11" />
<TrimmerRootAssembly Include="SharpDX.Direct3D9" />
<TrimmerRootAssembly Include="SharpDX.DXGI" />
<TrimmerRootAssembly Include="SharpDX.D3DCompiler" />
<TrimmerRootAssembly Include="SharpDX.Direct2D1" />
<TrimmerRootAssembly Include="SharpDX.Mathematics" />
<TrimmerRootAssembly Include="SharpDX.XAudio2" />
</ItemGroup>
<!-- 6b. Linux-only trimmer roots -->
<ItemGroup Condition="'$(DepsPlatform)' == 'linux'">
<TrimmerRootAssembly Include="Silk.NET.Vulkan" />
<TrimmerRootAssembly Include="Silk.NET.Vulkan.Extensions.KHR" />
</ItemGroup>
<!-- 6c. macOS-only trimmer roots -->
<ItemGroup Condition="'$(DepsPlatform)' == 'macos'">
<TrimmerRootAssembly Include="SharpMetal" />
</ItemGroup>
<!-- 6d. Cross-platform trimmer roots -->
<ItemGroup>
<TrimmerRootAssembly Include="LiteDB" />
<TrimmerRootAssembly Include="System.Configuration.ConfigurationManager" />
<TrimmerRootAssembly Include="SharpAdbClient" />
<TrimmerRootAssembly Include="FFmpeg.AutoGen" />
</ItemGroup>
<ItemGroup Condition="'$(DepsPlatform)' == 'windows'">
<PackageReference Include="Microsoft.XAudio2.Redist" Version="1.2.13" />
<!-- Ship the redist build under the name SharpDX probes for (2.8) -->
<None Include="$(NuGetPackageRoot)microsoft.xaudio2.redist\1.2.13\build\native\release\bin\x64\xaudio2_9redist.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<TargetPath>xaudio2_8.dll</TargetPath>
<Link>xaudio2_8.dll</Link>
</None>
</ItemGroup>
<!-- 7. Native deps copy -->
<ItemGroup>
<Content Remove="deps\**\*" />
<None Remove="deps\**\*" />
</ItemGroup>
<ItemGroup>
<Content Include=".github\workflows\build.yml" />
<Content Include="deps\$(DepsPlatform)\adb\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<TargetPath>%(Filename)%(Extension)</TargetPath>
</Content>
<Content Include="deps\$(DepsPlatform)\ffmpeg\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<TargetPath>%(Filename)%(Extension)</TargetPath>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="user\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="scrcpy-server.jar">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<TargetPath>scrcpy-server.jar</TargetPath>
</Content>
</ItemGroup>
<!-- 8. Avalonia resources -->
<ItemGroup>
<AvaloniaResource Include="Icons\**" />
<AvaloniaResource Include="Src\Keymap\K_icons\**" />
</ItemGroup>
<ItemGroup>
<UpToDateCheckInput Remove="Native_test\my_view.axaml" />
<UpToDateCheckInput Remove="Native_test\My_window.axaml" />
<UpToDateCheckInput Remove="Native_test\VideoPlayer.axaml" />
<UpToDateCheckInput Remove="Native_test\VideoPlayer_2.axaml" />
</ItemGroup>
</Project>