mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-10 01:50:53 +09:00

* [wasm] Extract src/mono/browser from src/mono/wasm, and update to track changes * [wasm] Makefile - update to remove some unrelated targets * [wasm] Rename wasm.proj to browser.proj - feedback from @ maraf * Add the renamed browser.proj * address review feedback from @ maraf * review feedback from @ pavelsavara * address review feedback from @ maraf
101 lines
5 KiB
Text
101 lines
5 KiB
Text
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<!-- Needed for PublishTrimmed -->
|
|
<NetCoreAppToolCurrent>{NetCoreAppToolCurrent}</NetCoreAppToolCurrent>
|
|
<ToolsILLinkDir>{ToolsILLinkDir}</ToolsILLinkDir>
|
|
</PropertyGroup>
|
|
|
|
<!-- Use live illink bits. It is necessary to both import the package props and override
|
|
the tasks assembly, because the live package props in the build output do not use
|
|
the same layout as the NuGet package. -->
|
|
<!-- This must be done after the usual nuget props imports, to override the implicitly referenced
|
|
Microsoft.NET.ILLink.Tasks.props from the SDK. -->
|
|
<Import Project="$(ToolsILLinkDir)$(NetCoreAppToolCurrent)/build/Microsoft.NET.ILLink.Tasks.props" />
|
|
|
|
<PropertyGroup>
|
|
<!-- Don't use SDK's trimming functionality. -->
|
|
<_RequiresILLinkPack>false</_RequiresILLinkPack>
|
|
<ILLinkTasksAssembly>$(ToolsILLinkDir)$(NetCoreAppToolCurrent)/ILLink.Tasks.dll</ILLinkTasksAssembly>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>{TargetFramework}</TargetFramework>
|
|
<OutputType>Exe</OutputType>
|
|
<NETCoreAppMaximumVersion>{NetCoreAppMaximumVersion}</NETCoreAppMaximumVersion>
|
|
<UseMonoRuntime>{UseMonoRuntime}</UseMonoRuntime>
|
|
<RuntimeIdentifier>{RuntimeIdentifier}</RuntimeIdentifier>
|
|
<PublishAot>{PublishAot}</PublishAot>
|
|
<AppHostSourcePath>{AppHostSourcePath}</AppHostSourcePath>
|
|
<SingleFileHostSourcePath>{SingleFileHostSourcePath}</SingleFileHostSourcePath>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
|
|
<!-- wasm specific -->
|
|
<MonoAOTCompilerDir>{MonoAOTCompilerDir}</MonoAOTCompilerDir>
|
|
<MonoProjectRoot>{MonoProjectRoot}</MonoProjectRoot>
|
|
<BrowserProjectRoot>{BrowserProjectRoot}</BrowserProjectRoot>
|
|
<WasmProjectRoot>{WasmProjectRoot}</WasmProjectRoot>
|
|
<WasiProjectRoot>{WasiProjectRoot}</WasiProjectRoot>
|
|
<MonoAOTCompilerTasksAssemblyPath>{MonoAOTCompilerTasksAssemblyPath}</MonoAOTCompilerTasksAssemblyPath>
|
|
<WasmAppBuilderTasksAssemblyPath>{WasmAppBuilderTasksAssemblyPath}</WasmAppBuilderTasksAssemblyPath>
|
|
<MonoTargetsTasksAssemblyPath>{MonoTargetsTasksAssemblyPath}</MonoTargetsTasksAssemblyPath>
|
|
<MicrosoftNetCoreAppRuntimePackRidDir>{MicrosoftNetCoreAppRuntimePackRidDir}</MicrosoftNetCoreAppRuntimePackRidDir>
|
|
|
|
<!-- Needed for targetingpacks.targets -->
|
|
<ProductVersion>{ProductVersion}</ProductVersion>
|
|
<NetCoreAppCurrent>{NetCoreAppCurrent}</NetCoreAppCurrent>
|
|
<NetCoreAppCurrentVersion>{NetCoreAppCurrentVersion}</NetCoreAppCurrentVersion>
|
|
<MicrosoftNetCoreAppFrameworkName>{MicrosoftNetCoreAppFrameworkName}</MicrosoftNetCoreAppFrameworkName>
|
|
<MicrosoftNetCoreAppRefPackDir>{MicrosoftNetCoreAppRefPackDir}</MicrosoftNetCoreAppRefPackDir>
|
|
<MicrosoftNetCoreAppRuntimePackDir>{MicrosoftNetCoreAppRuntimePackDir}</MicrosoftNetCoreAppRuntimePackDir>
|
|
|
|
<RepositoryEngineeringDir>{RepositoryEngineeringDir}</RepositoryEngineeringDir>
|
|
<_ExtraTrimmerArgs>{ExtraTrimmerArgs} $(_ExtraTrimmerArgs)</_ExtraTrimmerArgs>
|
|
{AdditionalProperties}
|
|
|
|
<!-- Needed for PublishAot -->
|
|
<IlcToolsPath>{IlcToolsPath}</IlcToolsPath>
|
|
<IlcBuildTasksPath>{IlcBuildTasksPath}</IlcBuildTasksPath>
|
|
<IlcSdkPath>{IlcSdkPath}</IlcSdkPath>
|
|
<IlcFrameworkPath>{IlcFrameworkPath}</IlcFrameworkPath>
|
|
<IlcFrameworkNativePath>{IlcFrameworkNativePath}</IlcFrameworkNativePath>
|
|
<SysRoot Condition="('$(CrossBuild)' == 'true' or '$(BuildArchitecture)' != '$(TargetArchitecture)') and '$(ROOTFS_DIR)' != ''">$(ROOTFS_DIR)</SysRoot>
|
|
<CoreCLRBuildIntegrationDir>{CoreCLRBuildIntegrationDir}</CoreCLRBuildIntegrationDir>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<CustomLinkerArg Condition="'$(CrossBuild)' == 'true' and '$(_hostArchitecture)' == '$(_targetArchitecture)' and '$(ROOTFS_DIR)' != ''" Include="--gcc-toolchain=$(ROOTFS_DIR)/usr" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
{RuntimeHostConfigurationOptions}
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
{AdditionalProjectReferences}
|
|
</ItemGroup>
|
|
|
|
<Target Name="LocateNativeCompiler"
|
|
Condition="'$(PublishAot)' == 'true' and '$(_hostOS)' != 'win'"
|
|
BeforeTargets="SetupOSSpecificProps">
|
|
<PropertyGroup>
|
|
<CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == ''">clang</CppCompilerAndLinker>
|
|
</PropertyGroup>
|
|
|
|
<Exec Command="sh -c 'build_arch="$(TargetArchitecture)" compiler="$(CppCompilerAndLinker)" . "$(RepositoryEngineeringDir)/common/native/init-compiler.sh" && echo "$CC;$LDFLAGS"' 2>/dev/null"
|
|
EchoOff="true"
|
|
ConsoleToMsBuild="true"
|
|
StandardOutputImportance="Low">
|
|
<Output TaskParameter="ConsoleOutput" PropertyName="_CC_LDFLAGS" />
|
|
</Exec>
|
|
|
|
<PropertyGroup>
|
|
<CppLinker>$(_CC_LDFLAGS.SubString(0, $(_CC_LDFLAGS.IndexOf(';'))))</CppLinker>
|
|
<_LDFLAGS>$(_CC_LDFLAGS.SubString($([MSBuild]::Add($(_CC_LDFLAGS.IndexOf(';')), 1))))</_LDFLAGS>
|
|
<LinkerFlavor Condition="$(_LDFLAGS.Contains('lld'))">lld</LinkerFlavor>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Import Project="{NativeSanitizersTargets}" />
|
|
|
|
</Project>
|