|
532 | 532 | <!-- Build AOT cross compiler (if available) --> |
533 | 533 | <Target Name="BuildMonoCross" Condition="'$(BuildMonoAOTCrossCompiler)' == 'true'" DependsOnTargets="BuildMonoRuntime"> |
534 | 534 |
|
535 | | - <!-- iOS specific options --> |
| 535 | + <!-- iOS/tvOS specific options --> |
536 | 536 | <PropertyGroup Condition="'$(TargetstvOS)' == 'true' or '$(TargetsiOS)' == 'true'"> |
537 | 537 | <!-- FIXME: Disable for simulator --> |
538 | 538 | <MonoUseCrossTool>true</MonoUseCrossTool> |
|
546 | 546 | <MonoAotAbi Condition="'$(Platform)' == 'x86'">i386-apple-darwin10</MonoAotAbi> |
547 | 547 | <MonoAotAbi Condition="'$(Platform)' == 'x64'">x86_64-apple-darwin10</MonoAotAbi> |
548 | 548 | </PropertyGroup> |
| 549 | + |
| 550 | + <!-- Catalyst specific options --> |
549 | 551 | <PropertyGroup Condition="'$(TargetsMacCatalyst)' == 'true'"> |
550 | 552 | <MonoUseCrossTool>true</MonoUseCrossTool> |
551 | 553 | <MonoAotCMakeSysroot Condition="'$(TargetsMacCatalyst)' == 'true'">$(XcodeDir)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk</MonoAotCMakeSysroot> |
552 | 554 | <MonoAotOffsetsFile>$(MonoObjCrossDir)offsets-$(Platform)-darwin.h</MonoAotOffsetsFile> |
553 | 555 | <MonoAotAbi Condition="'$(Platform)' == 'arm64'">aarch64-apple-maccatalyst</MonoAotAbi> |
554 | 556 | <MonoAotAbi Condition="'$(Platform)' == 'x64'">x86_64-apple-maccatalyst</MonoAotAbi> |
555 | 557 | </PropertyGroup> |
556 | | - <ItemGroup Condition="'$(TargetstvOS)' == 'true' or '$(TargetsiOS)' == 'true' or '$(TargetsMacCatalyst)' == 'true'"> |
557 | | - <MonoAOTCMakeArgs Include="-DCMAKE_OSX_DEPLOYMENT_TARGET=$(macOSVersionMin)" /> |
558 | | - </ItemGroup> |
559 | 558 |
|
| 559 | + <!-- Linux specific options --> |
| 560 | + <ItemGroup Condition="'$(RealTargetOS)' == 'Linux' or $([MSBuild]::IsOSPlatform('Linux'))"> |
| 561 | + <_LibClang Include="$(ANDROID_NDK_ROOT)/toolchains/llvm/prebuilt/$(MonoToolchainPrebuiltOS)/lib64/libclang.so.*"/> |
| 562 | + </ItemGroup> |
560 | 563 | <PropertyGroup Condition="'$(TargetOS)' == 'Linux' and '$(Platform)' == 'arm64'"> |
561 | 564 | <MonoUseCrossTool>true</MonoUseCrossTool> |
562 | 565 | <MonoAotAbi>aarch64-linux-gnu</MonoAotAbi> |
563 | 566 | <MonoAotOffsetsFile>$(MonoObjCrossDir)offsets-aarch-linux-gnu.h</MonoAotOffsetsFile> |
564 | 567 | <MonoAotOffsetsPrefix>$(MonoCrossDir)/usr/lib/gcc/aarch64-linux-gnu/5</MonoAotOffsetsPrefix> |
565 | 568 | </PropertyGroup> |
566 | 569 |
|
| 570 | + <!-- macOS host specific options --> |
| 571 | + <ItemGroup Condition="'$(RealTargetOS)' == 'OSX' or $([MSBuild]::IsOSPlatform('OSX'))"> |
| 572 | + <MonoAOTCMakeArgs Include="-DCMAKE_OSX_DEPLOYMENT_TARGET=$(macOSVersionMin)" /> |
| 573 | + </ItemGroup> |
| 574 | + |
567 | 575 | <!-- WASM specific options --> |
568 | 576 | <PropertyGroup Condition="'$(TargetsBrowser)' == 'true'"> |
569 | 577 | <MonoUseCrossTool>true</MonoUseCrossTool> |
|
577 | 585 | </PropertyGroup> |
578 | 586 |
|
579 | 587 | <!-- Windows specific options --> |
580 | | - <ItemGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))"> |
| 588 | + <ItemGroup Condition="'$(RealTargetOS)' == 'Windows' or $([MSBuild]::IsOSPlatform('Windows'))"> |
581 | 589 | <_MonoAOTCPPFLAGS Include="-DHOST_WIN32" /> |
582 | 590 | <_MonoAOTCPPFLAGS Include="-D__WIN32__" /> |
583 | 591 | <_MonoAOTCPPFLAGS Include="-DWIN32" /> |
|
624 | 632 | <MonoAotOffsetsFile>$(MonoObjDir)cross/offsets-$(Platform)-android.h</MonoAotOffsetsFile> |
625 | 633 | </PropertyGroup> |
626 | 634 |
|
627 | | - <ItemGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))"> |
628 | | - <_LibClang Include="$(ANDROID_NDK_ROOT)/toolchains/llvm/prebuilt/$(MonoToolchainPrebuiltOS)/lib64/libclang.so.*"/> |
629 | | - </ItemGroup> |
630 | | - |
631 | 635 | <PropertyGroup> |
632 | 636 | <MonoLibClang Condition="$([MSBuild]::IsOSPlatform('OSX')) and '$(MonoLibClang)' == ''">$(XcodeDir)/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib</MonoLibClang> |
633 | 637 | <MonoLibClang Condition="$([MSBuild]::IsOSPlatform('Linux')) and '$(MonoLibClang)' == ''">@(_LibClang)</MonoLibClang> |
|
0 commit comments