|
339 | 339 | </ItemGroup> |
340 | 340 | </Target> |
341 | 341 |
|
342 | | - <Target Name="ProcessMauiAssets"> |
| 342 | + <Target Name="ProcessMauiAssets" |
| 343 | + Condition="'$(EnableMauiAssetProcessing)' != 'false'"> |
343 | 344 | <PropertyGroup Condition="'$(_ResizetizerIsWindowsAppSdk)' == 'True'"> |
344 | 345 | <_MauiAssetItemMetadata>TargetPath</_MauiAssetItemMetadata> |
345 | 346 | </PropertyGroup> |
|
365 | 366 | </Target> |
366 | 367 |
|
367 | 368 | <Target Name="ProcessMauiSplashScreens" |
| 369 | + Condition="'$(EnableMauiSplashScreenProcessing)' != 'false'" |
368 | 370 | Inputs="$(MSBuildThisFileFullPath);$(_ResizetizerTaskAssemblyName);$(_MauiSplashInputsFile);@(MauiSplashScreen)" |
369 | 371 | Outputs="$(_MauiSplashStampFile)"> |
370 | 372 |
|
371 | 373 | <PropertyGroup> |
372 | 374 | <_MauiHasSplashScreens>false</_MauiHasSplashScreens> |
373 | 375 | <_MauiHasSplashScreens Condition="'@(MauiSplashScreen->Count())' != '0'">true</_MauiHasSplashScreens> |
| 376 | + <_MauiShouldGenerateSplashScreen>false</_MauiShouldGenerateSplashScreen> |
| 377 | + <_MauiShouldGenerateSplashScreen Condition="'$(_MauiHasSplashScreens)' == 'true'">true</_MauiShouldGenerateSplashScreen> |
| 378 | + <_MauiShouldGenerateSplashScreen Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True' and '$(_MauiHasSplashScreens)' != 'true' and '$(EnableBlankMauiSplashScreen)' == 'true'">true</_MauiShouldGenerateSplashScreen> |
374 | 379 | </PropertyGroup> |
375 | 380 |
|
376 | 381 | <DetectInvalidResourceOutputFilenamesTask |
|
400 | 405 | </ItemGroup> |
401 | 406 |
|
402 | 407 | <!-- iOS, but not Catalyst --> |
403 | | - <ItemGroup Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True'"> |
| 408 | + <ItemGroup Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True' and '$(_MauiHasSplashScreens)' == 'true'"> |
404 | 409 | <!-- Add a Link attribute in the form of '<filename>_<inputshash>.<extension>' --> |
405 | 410 | <_MauiSplashScreenWithHashesInFilename |
406 | 411 | Include="@(_MauiSplashScreenWithHashes->HasMetadata('Link'))" |
|
412 | 417 | Link="%(Filename)_%(InputsFileHash)%(Extension)" /> |
413 | 418 | </ItemGroup> |
414 | 419 | <GenerateSplashStoryboard |
415 | | - Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True'" |
| 420 | + Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True' and '$(_MauiShouldGenerateSplashScreen)' == 'true'" |
416 | 421 | IntermediateOutputPath="$(_MauiIntermediateSplashScreen)" |
417 | 422 | MauiSplashScreen="@(_MauiSplashScreenWithHashesInFilename)" |
418 | 423 | InputsFile="$(_MauiSplashInputsFile)" |
419 | 424 | /> |
420 | | - <PropertyGroup Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True'"> |
| 425 | + <PropertyGroup Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True' and '$(_MauiShouldGenerateSplashScreen)' == 'true'"> |
421 | 426 | <_MauiIntermediateStoryboard>$(_MauiIntermediateSplashScreen)MauiSplash.storyboard</_MauiIntermediateStoryboard> |
422 | 427 | <_MauiIntermediatePList>$(_MauiIntermediateSplashScreen)MauiInfo.plist</_MauiIntermediatePList> |
423 | 428 | </PropertyGroup> |
424 | 429 | <CreatePartialInfoPlistTask |
425 | | - Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True'" |
| 430 | + Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True' and '$(_MauiShouldGenerateSplashScreen)' == 'true'" |
426 | 431 | IntermediateOutputPath="$(_MauiIntermediateSplashScreen)" |
427 | 432 | PlistName="MauiInfo.plist" |
428 | 433 | Storyboard="$(_MauiIntermediateStoryboard)" |
429 | 434 | /> |
430 | | - <ItemGroup Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True'"> |
| 435 | + <ItemGroup Condition="'$(_ResizetizerIsiOSSpecificApp)' == 'True' and '$(_MauiShouldGenerateSplashScreen)' == 'true'"> |
431 | 436 | <_MauiSplashAssets Include="$(_MauiIntermediateSplashScreen)**\*" /> |
432 | 437 | <_MauiSplashStoryboard Include="$(_MauiIntermediateStoryboard)" /> |
433 | 438 | <_MauiSplashPList Include="$(_MauiIntermediatePList)" /> |
|
481 | 486 | </Target> |
482 | 487 |
|
483 | 488 | <Target Name="ProcessMauiFonts" |
| 489 | + Condition="'$(EnableMauiFontProcessing)' != 'false'" |
484 | 490 | Inputs="$(MSBuildThisFileFullPath);$(_ResizetizerTaskAssemblyName);$(_MauiFontInputsFile);@(MauiFont)" |
485 | 491 | Outputs="$(_MauiFontStampFile)" |
486 | 492 | AfterTargets="$(ProcessMauiFontsAfterTargets)" |
|
568 | 574 | </Target> |
569 | 575 |
|
570 | 576 | <Target Name="ResizetizeImages" |
| 577 | + Condition="'$(EnableMauiImageProcessing)' != 'false'" |
571 | 578 | Inputs="$(MSBuildThisFileFullPath);$(_ResizetizerTaskAssemblyName);$(_ResizetizerInputsFile);@(MauiImage)" |
572 | 579 | Outputs="$(_ResizetizerStampFile)" |
573 | 580 | AfterTargets="$(ResizetizeAfterTargets)" |
|
0 commit comments