-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathChefs.csproj
More file actions
225 lines (194 loc) · 8.75 KB
/
Chefs.csproj
File metadata and controls
225 lines (194 loc) · 8.75 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<Project Sdk="Uno.Sdk">
<PropertyGroup>
<!-- Building with dotnet build -f net10.0-platform will still cause restore to happen for all TargetFrameworks -->
<!-- which will force us to install all workloads even if not needed -->
<!-- To prevent that, we will pass TargetFrameworkOverride as a global property (i.e, dotnet build -p:TargetFrameworkOverride=net10.0-platform) -->
<!-- That way, we set TargetFrameworks property to only the needed TargetFramework -->
<TargetFrameworks Condition="'$(TargetFrameworkOverride)'!=''">$(TargetFrameworkOverride)</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworkOverride)'==''">
net10.0-android;
net10.0-ios;
net10.0-windows10.0.19041;
net10.0-desktop;
net10.0-browserwasm;
</TargetFrameworks>
<OutputType>Exe</OutputType>
<UnoSingleProject>true</UnoSingleProject>
<!-- Display name -->
<ApplicationTitle>Chefs</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>uno.platform.chefs.skia</ApplicationId>
<ApplicationId Condition="'$(IsCanaryBranch)'=='true'">$(ApplicationId)-canary</ApplicationId>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<UseMocks Condition="'$(UseMocks)'==''">true</UseMocks>
<!--
If you encounter this error message:
error NETSDK1148: A referenced assembly was compiled using a newer version of Microsoft.Windows.SDK.NET.dll.
Please update to a newer .NET SDK in order to reference this assembly.
This means that the two packages below must be aligned with the "build" version number of
the "Microsoft.Windows.SDK.BuildTools" package above, and the "revision" version number
must be the highest found in https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref.
-->
<!-- <WindowsSdkPackageVersion>10.0.22621.28</WindowsSdkPackageVersion> -->
<!--
UnoFeatures let's you quickly add and manage implicit package references based on the features you want to use.
https://aka.platform.uno/singleproject-features
-->
<UnoFeatures>
Material;
Hosting;
Toolkit;
Logging;
MVUX;
Configuration;
HttpKiota;
Serialization;
Localization;
Navigation;
MediaElement;
Skia;
ThemeService;
Authentication;
SkiaRenderer;
</UnoFeatures>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Mapsui.Uno.WinUI" />
<PackageReference Include="LiveChartsCore.SkiaSharpView.Uno.WinUI" />
</ItemGroup>
<PropertyGroup Condition="'$(UseMocks)'=='true'">
<DefineConstants>$(DefineConstants);USE_MOCKS</DefineConstants>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="Assets\Maps\location_pin.svg" />
<EmbeddedResource Include="Assets\Maps\location_circle.svg" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug' or '$(IsUiAutomationMappingEnabled)'=='True'">
<IsUiAutomationMappingEnabled>True</IsUiAutomationMappingEnabled>
<DefineConstants>$(DefineConstants);USE_UITESTS</DefineConstants>
<EmbedAssembliesIntoApk Condition="$(IsAndroid)">true</EmbedAssembliesIntoApk>
</PropertyGroup>
<PropertyGroup>
<UnoSplashScreenColor>#313033</UnoSplashScreenColor>
<UnoIconForegroundScale>0.5</UnoIconForegroundScale>
<UnoSplashScreenBaseSize>350,300</UnoSplashScreenBaseSize>
<UnoIconForegroundFile Condition="'$(IsCanaryBranch)'=='true'">Assets/Icons/icon_foreground_canary.svg</UnoIconForegroundFile>
<UnoSplashScreenFile Condition="'$(IsCanaryBranch)'=='true'">Assets/Splash/splash_screen_canary.svg</UnoSplashScreenFile>
</PropertyGroup>
<PropertyGroup Condition="$(IsBrowserWasm) AND '$(Configuration)' == 'Release'">
<WasmShellMonoRuntimeExecutionMode>InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode>
<WasmShellEmccLinkOptimization>false</WasmShellEmccLinkOptimization>
<WasmShellEnableEmccProfiling>true</WasmShellEnableEmccProfiling>
<UnoXamlResourcesTrimming>true</UnoXamlResourcesTrimming>
</PropertyGroup>
<ItemGroup>
<Content Include="Assets\**\*.png" />
</ItemGroup>
<ItemGroup Condition=" $(IsAndroid) And '$(IsUiAutomationMappingEnabled)' == 'True' ">
<AndroidJavaSource Include="Platforms\Android\java\chefs\droid\MainActivityExports.java" />
</ItemGroup>
<Target Name="AdjustCalabash" BeforeTargets="BeforeBuild">
<!-- Needs to be run as a target, as RuntimeIdentifier is set after the csproj is parsed -->
<PropertyGroup Condition="!$(RuntimeIdentifier.Contains('arm64'))">
<DefineConstants>$(DefineConstants);HAS_TESTCLOUD_AGENT</DefineConstants>
</PropertyGroup>
</Target>
<Choose>
<When Condition="'$(IsCanaryBranch)'=='true'">
<ItemGroup>
<UnoImage Include="Assets\Icons\chefslogo_canary.svg" Link="Assets\Icons\chefslogosignature.svg" />
<UnoImage Include="Assets\Icons\chefslogo_dark_canary.svg" Link="Assets\Icons\chefslogosignature_dark.svg" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<UnoImage Include="Assets\Icons\chefslogo.svg" Link="Assets\Icons\chefslogosignature.svg" />
<UnoImage Include="Assets\Icons\chefslogo_dark.svg" Link="Assets\Icons\chefslogosignature_dark.svg" />
</ItemGroup>
</Otherwise>
</Choose>
<Choose>
<When Condition="$(IsAndroid) or $(IsIOSOrCatalyst)">
<ItemGroup>
<IncludeXamlNamespaces Include="mobile" />
<ExcludeXamlNamespaces Include="not_mobile" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<IncludeXamlNamespaces Include="not_mobile" />
<ExcludeXamlNamespaces Include="mobile" />
</ItemGroup>
</Otherwise>
</Choose>
<Choose>
<When Condition="$(IsIOS)">
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<CodesignKey>iPhone Distribution</CodesignKey>
<!-- BEGIN Workaround - AOT fails currently uno-private #648, not fixed in 9.0.200 -->
<MtouchUseLlvm>false</MtouchUseLlvm>
<!-- END Workaround -->
</PropertyGroup>
<ItemGroup Condition="'$(IsUiAutomationMappingEnabled)'=='True' and !$(RuntimeIdentifier.Contains('arm64'))">
<PackageReference Include="Xamarin.TestCloud.Agent" />
</ItemGroup>
</When>
<When Condition="$(IsBrowserWasm)">
<PropertyGroup Condition="'$(Configuration)'=='Release' and '$(WasmShellMonoRuntimeExecutionMode)'=='InterpreterAndAOT'">
<WasmAotFileName>aot-skia.profile</WasmAotFileName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<WasmShellMonoRuntimeExecutionMode>InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode>
<WasmShellEmccLinkOptimization>false</WasmShellEmccLinkOptimization>
<WasmShellEnableEmccProfiling>true</WasmShellEnableEmccProfiling>
<!--
Uncomment this block to generate a profile
<WasmShellGenerateAOTProfile>true</WasmShellGenerateAOTProfile>
<WasmShellILLinkerEnabled>false</WasmShellILLinkerEnabled>
<UnoXamlResourcesTrimming>false</UnoXamlResourcesTrimming>
<WasmShellEnableJiterpreter>false</WasmShellEnableJiterpreter>
-->
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="Platforms\WebAssembly\WasmCSS\**\*.css" />
<EmbeddedResource Include="Platforms\WebAssembly\WasmScripts\**\*.js" />
<UpToDateCheckInput Include="Platforms\WebAssembly\WasmCSS\**\*" />
<UpToDateCheckInput Include="Platforms\WebAssembly\WasmScripts\**\*" />
</ItemGroup>
<ItemGroup>
<None Remove="Platforms\WebAssembly\WasmScripts\TestRunner.js" />
</ItemGroup>
<ItemGroup>
<UpToDateCheckInput Remove="Platforms\WebAssembly\WasmScripts\TestRunner.js" />
</ItemGroup>
</When>
</Choose>
<!-- https://github.com/dotnet/runtime/issues/109289 -->
<Target Name="Issue109289_Workaround" AfterTargets="_BrowserWasmWriteRspForLinking" Condition=" $(NETCoreSdkVersion.Contains('9.0.')) ">
<ItemGroup>
<_WasmLinkStepArgs Remove="@(_EmccLinkStepArgs)" />
<_EmccLinkStepArgs Remove=""%(_WasmNativeFileForLinking.Identity)"" />
<_WasmLinkDependencies Remove="@(_WasmNativeFileForLinking)" />
<_SkiaSharpToReorder Include="@(_WasmNativeFileForLinking)" Condition="$([System.String]::Copy('%(FullPath)').Contains('SkiaSharp'))" />
<_WasmNativeFileForLinking Remove="@(_SkiaSharpToReorder)" />
<_WasmNativeFileForLinking Include="@(_SkiaSharpToReorder)" />
<_EmccLinkStepArgs Include=""%(_WasmNativeFileForLinking.Identity)"" />
<_WasmLinkDependencies Include="@(_WasmNativeFileForLinking)" />
<_WasmLinkStepArgs Include="@(_EmccLinkStepArgs)" />
</ItemGroup>
</Target>
<Target Name="AdjustStrip" BeforeTargets="_WasmCommonPrepareForWasmBuildNative">
<PropertyGroup>
<!-- Enable debug symbols for release mode to profiling -->
<WasmNativeStrip>false</WasmNativeStrip>
<WasmNativeDebugSymbols>true</WasmNativeDebugSymbols>
</PropertyGroup>
</Target>
<ItemGroup>
<Content Include="..\AppData\*.json" LinkBase="AppData">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>