Files
mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj
Zoltan Varga ecd67a91c4 [wasm] Add aot+netcore support. (#17798)
* [wasm] Compile corelib as 32 bit.

* [wasm] Add a netcore cross compiler.

* [wasm] Add netcore+aot support.

* [aot] Load the dedup module lazily instead of at startup.

The previous version didn't work on netcore because it couldn't resolve references to corlib etc.
since they were not yet registered in the root domain at the time of loading.

* Add more icall trampoline signatures.

* Add more netcore pinvokes.

* Fix the build.

* Add more icall trampoline signatures.

* Add an --embed-file option to the packager.

* Add more netcore pinvokes.

* [interp] Return FALSE for IsDynamicCodeCompiled.

* Add a netcore project and targets for running BenchmarkDotNet.

* Fix pinvoke tables.

* Add missing files.

* Fix make clean.

* Add a comment.

* Revert "Fix pinvoke tables."

This reverts commit 998065e77614b7e621d2873510aabc3930669ca9.

* Make xunit-runner into a dotnet project. Add a netcore version.
2019-11-22 12:42:55 +01:00

306 lines
17 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<GenerateResxSourceOmitGetResourceString>true</GenerateResxSourceOmitGetResourceString>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<EnsureRuntimePackageDependencies>false</EnsureRuntimePackageDependencies>
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
<OutputType>Library</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<!-- Ensure a portable PDB is emitted for the project. A PDB is needed for crossgen. -->
<DebugType>Portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Configurations>Debug;Release;Checked</Configurations>
<Configuration>Release</Configuration>
<Platforms>x64;x86;arm;arm64;wasm32</Platforms>
<Features>strict;nullablePublicOnly</Features>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetsUnix)'=='' AND '$(TargetsOSX)'=='' AND '$(TargetsWindows)'==''">
<TargetsUnix>true</TargetsUnix>
<TargetsOSX>true</TargetsOSX>
<TargetsWindows>false</TargetsWindows>
<BuildArch>x64</BuildArch>
<OutputPath>bin/x64</OutputPath>
</PropertyGroup>
<!-- Compilation options -->
<PropertyGroup>
<Configuration Condition=" '$(BuildType)' != '' ">$(BuildType)</Configuration>
<Platform Condition=" '$(BuildArch)' != '' ">$(BuildArch)</Platform>
<Platform Condition=" '$(Platform)' == 'armel' ">arm</Platform>
<ProjectGuid>{DD18B4BA-3B49-437B-9E34-41EF8A640CE0}</ProjectGuid>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- This prevents the default MsBuild targets from referencing System.Core.dll -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<!-- These prevent the default MsBuild targets from referencing System.dll and mscorlib.dll -->
<ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
<NoStdLib>true</NoStdLib>
<NoCompilerStandardLib>true</NoCompilerStandardLib>
<SubsystemVersion>6.00</SubsystemVersion>
<Utf8Output>true</Utf8Output>
<HighEntropyVA>true</HighEntropyVA>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn),0419,0649,1573,1591,3021,CA2002</NoWarn>
<Nullable>enable</Nullable>
<!-- Ignore all previous constants since SPCL is sensitive to what is defined and the Sdk adds some by default -->
<DefineConstants>$(DefineConstants);netcoreapp</DefineConstants>
<DisableImplicitConfigurationDefines>true</DisableImplicitConfigurationDefines>
<!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two properties to any folder that exists to skip
the GenerateReferenceAssemblyPaths task (not target) and to prevent it from outputting a warning (MSB3644). -->
<_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)/Documentation</_TargetFrameworkDirectories>
<_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)/Documentation</_FullFrameworkReferenceAssemblyPaths>
<SkipCommonResourcesIncludes>true</SkipCommonResourcesIncludes>
<DocumentationFile>$(OutputPath)$(MSBuildProjectName).xml</DocumentationFile>
</PropertyGroup>
<!-- Platform specific properties -->
<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<DefineConstants>BIT64;AMD64;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x86'">
<PlatformTarget>x86</PlatformTarget>
<DefineConstants>BIT32;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'arm'">
<PlatformTarget>arm</PlatformTarget>
<DefineConstants>BIT32;ARM;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'arm64'">
<PlatformTarget>AnyCPU</PlatformTarget>
<DefineConstants>BIT64;ARM64;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'wasm32'">
<PlatformTarget>AnyCPU</PlatformTarget>
<DefineConstants>BIT32;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- Configuration specific properties -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Checked'">
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Debug'">false</Optimize>
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Checked'">true</Optimize>
<DefineConstants>_LOGGING;DEBUG;$(DefineConstants)</DefineConstants>
<DefineConstants Condition="'$(Platform)' == 'x86' or '$(Platform)' == 'x64'">CODE_ANALYSIS;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetsOSX)' == 'true'">
<DefineConstants>PLATFORM_OSX;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- Assembly attributes -->
<PropertyGroup>
<!-- SDK sets product to assembly but we want it to be our product name -->
<Product>Microsoft%AE .NET Core</Product>
<AssemblyName>System.Private.CoreLib</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<ExcludeAssemblyInfoPartialFile>true</ExcludeAssemblyInfoPartialFile>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<Description>$(AssemblyName)</Description>
</PropertyGroup>
<!-- Signing -->
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<StrongNameKeyId>SilverlightPlatform</StrongNameKeyId>
</PropertyGroup>
<!--
Helper Paths
-->
<PropertyGroup>
<CommonPath>$(MSBuildThisFileDirectory)Common</CommonPath>
<BclSourcesRoot>$(MSBuildThisFileDirectory)src</BclSourcesRoot>
<SharedBclSourcesRoot>$(MSBuildThisFileDirectory)shared</SharedBclSourcesRoot>
</PropertyGroup>
<!-- Mono specific build changes -->
<PropertyGroup>
<!-- Disable nullability-related warnings -->
<NoWarn>$(NoWarn),CS8597,CS8600,CS8601,CS8602,CS8603,CS8604,CS8609,CS8611,CS8618,CS8620,CS8625,CS8631,CS8632,CS8634</NoWarn>
<NoWarn>$(NoWarn),618,67</NoWarn>
<DefineConstants>FEATURE_DEFAULT_INTERFACES;FEATURE_MANAGED_ETW_CHANNELS;$(DefineConstants)</DefineConstants>
<DefineConstants>MONO;NETCORE;DISABLE_REMOTING;MONO_FEATURE_SRE;$(DefineConstants)</DefineConstants>
<FeaturePortableTimer>true</FeaturePortableTimer>
<FeaturePortableThreadPool>true</FeaturePortableThreadPool>
<FeaturePerfTracing>true</FeaturePerfTracing>
<RuntimeMetadataVersion>v4.0.30319</RuntimeMetadataVersion>
</PropertyGroup>
<!-- Sources -->
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="resources\SR.common.cs" />
<Compile Include="resources\SR.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="src\Microsoft\Win32\UnsafeNativeMethods.cs" />
<Compile Include="src\Mono\MonoListItem.cs" />
<Compile Include="src\Mono\MonoDomain.cs" />
<Compile Include="src\Mono\MonoDomainSetup.cs" />
<Compile Include="src\Mono\RuntimeHandles.cs" />
<Compile Include="src\System\ArgIterator.cs" />
<Compile Include="src\System\Array.Mono.cs" />
<Compile Include="src\System\Attribute.Mono.cs" />
<Compile Include="src\System\Buffer.Mono.cs" />
<Compile Include="src\System\Delegate.Mono.cs" />
<Compile Include="src\System\Enum.Mono.cs" />
<Compile Include="src\System\Environment.Mono.cs" />
<Compile Include="src\System\Exception.Mono.cs" />
<Compile Include="src\System\GC.Mono.cs" />
<Compile Include="src\System\Object.Mono.cs" />
<Compile Include="src\System\Math.Mono.cs" />
<Compile Include="src\System\MathF.Mono.cs" />
<Compile Include="src\System\MissingMemberException.Mono.cs" />
<Compile Include="src\System\ModuleHandle.cs" />
<Compile Include="src\System\MulticastDelegate.cs" />
<Compile Include="src\System\NotImplemented.cs" />
<Compile Include="src\System\Nullable.Mono.cs" />
<Compile Include="src\System\RuntimeArgumentHandle.cs" />
<Compile Include="src\System\RuntimeFieldHandle.cs" />
<Compile Include="src\System\RuntimeMethodHandle.cs" />
<Compile Include="src\System\RuntimeType.Mono.cs" />
<Compile Include="src\System\RuntimeTypeHandle.cs" />
<Compile Include="src\System\String.Mono.cs" />
<Compile Include="src\System\Type.Mono.cs" />
<Compile Include="src\System\TypeIdentifier.cs" />
<Compile Include="src\System\TypedReference.cs" />
<Compile Include="src\System\TypeLoadException.Mono.cs" />
<Compile Include="src\System\TypeNameParser.cs" />
<Compile Include="src\System\ValueType.cs" />
<Compile Include="src\System\WeakReference.Mono.cs" />
<Compile Include="src\System\WeakReference.T.Mono.cs" />
<Compile Include="src\System\__ComObject.cs" />
<Compile Include="src\System\Globalization\GlobalizationMode.Mono.cs" />
<Compile Include="src\System\Collections\Generic\ArraySortHelper.Mono.cs" />
<Compile Include="src\System\Collections\Generic\Comparer.Mono.cs" />
<Compile Include="src\System\Collections\Generic\EqualityComparer.Mono.cs" />
<Compile Include="src\System\Diagnostics\Debugger.cs" />
<Compile Include="src\System\Diagnostics\StackFrame.Mono.cs" />
<Compile Include="src\System\Diagnostics\StackTrace.Mono.cs" />
<Compile Include="src\System\IO\Stream.Mono.cs" />
<Compile Include="src\System\IO\FileLoadException.Mono.cs" />
<Compile Include="src\System\Reflection\Assembly.Mono.cs" />
<Compile Include="src\System\Reflection\AssemblyName.Mono.cs" />
<Compile Include="src\System\Reflection\CustomAttribute.cs" />
<Compile Include="src\System\Reflection\CustomAttributeData.cs" />
<Compile Include="src\System\Reflection\CustomAttributeTypedArgument.Mono.cs" />
<Compile Include="src\System\Reflection\FieldInfo.Mono.cs" />
<Compile Include="src\System\Reflection\MemberInfo.Mono.cs" />
<Compile Include="src\System\Reflection\MethodBase.Mono.cs" />
<Compile Include="src\System\Reflection\RuntimeAssembly.cs" />
<Compile Include="src\System\Reflection\RuntimeEventInfo.cs" />
<Compile Include="src\System\Reflection\RuntimeFieldInfo.cs" />
<Compile Include="src\System\Reflection\RuntimeLocalVariableInfo.cs" />
<Compile Include="src\System\Reflection\RuntimeMethodBody.cs" />
<Compile Include="src\System\Reflection\RuntimeMethodInfo.cs" />
<Compile Include="src\System\Reflection\RuntimeModule.cs" />
<Compile Include="src\System\Reflection\RuntimeParameterInfo.cs" />
<Compile Include="src\System\Reflection\RuntimePropertyInfo.cs" />
<Compile Include="src\System\Reflection\RuntimeExceptionHandlingClause.cs" />
<Compile Include="src\System\Reflection\Emit\AssemblyBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\ConstructorBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\ConstructorOnTypeBuilderInst.cs" />
<Compile Include="src\System\Reflection\Emit\CustomAttributeBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\DerivedTypes.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\DynamicILInfo.cs" />
<Compile Include="src\System\Reflection\Emit\DynamicMethod.cs" />
<Compile Include="src\System\Reflection\Emit\DynamicMethod.notsupported.cs" />
<Compile Include="src\System\Reflection\Emit\EnumBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\EventBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\EventOnTypeBuilderInst.cs" />
<Compile Include="src\System\Reflection\Emit\FieldBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\FieldOnTypeBuilderInst.cs" />
<Compile Include="src\System\Reflection\Emit\GenericTypeParameterBuilder.cs" />
<Compile Include="src\System\Reflection\Emit\ILGenerator.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\LocalBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\MethodBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\MethodOnTypeBuilderInst.cs" />
<Compile Include="src\System\Reflection\Emit\ModuleBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\MonoArrayMethod.cs" />
<Compile Include="src\System\Reflection\Emit\ParameterBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\PropertyBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\PropertyOnTypeBuilderInst.cs" />
<Compile Include="src\System\Reflection\Emit\SignatureHelper.cs" />
<Compile Include="src\System\Reflection\Emit\TypeBuilder.Mono.cs" />
<Compile Include="src\System\Reflection\Emit\TypeBuilderInstantiation.cs" />
<Compile Include="src\System\Reflection\Emit\UnmanagedMarshal.cs" />
<Compile Include="src\System\Reflection\Metadata\AssemblyExtensions.cs" />
<Compile Include="src\System\Resources\ManifestBasedResourceGroveler.Mono.cs" />
<Compile Include="src\System\Runtime\GCSettings.Mono.cs" />
<Compile Include="src\System\Runtime\CompilerServices\DependentHandle.cs" />
<Compile Include="src\System\Runtime\CompilerServices\JitHelpers.cs" />
<Compile Include="src\System\Runtime\CompilerServices\RuntimeHelpers.Mono.cs" />
<Compile Include="src\System\Runtime\CompilerServices\RuntimeFeature.Mono.cs" />
<Compile Include="src\System\Runtime\InteropServices\CriticalHandle.Mono.cs" />
<Compile Include="src\System\Runtime\InteropServices\GCHandle.Mono.cs" />
<Compile Include="src\System\Runtime\InteropServices\Marshal.Mono.cs" />
<Compile Include="src\System\Runtime\InteropServices\MarshalAsAttribute.Mono.cs" />
<Compile Include="src\System\Runtime\InteropServices\NativeLibrary.Mono.cs" />
<Compile Include="src\System\Runtime\InteropServices\SafeHandle.Mono.cs" />
<Compile Include="src\System\Runtime\Loader\AssemblyLoadContext.Mono.cs" />
<Compile Include="src\System\Runtime\Loader\AssemblyDependencyResolver.cs" />
<Compile Include="src\System\Runtime\Remoting\Contexts\Context.cs" />
<Compile Include="src\System\Security\DynamicSecurityMethodAttribute.cs" />
<Compile Include="src\System\Threading\Interlocked.cs" />
<Compile Include="src\System\Threading\Monitor.cs" />
<Compile Include="src\System\Threading\Overlapped.cs" />
<Compile Include="src\System\Threading\PreAllocatedOverlapped.cs" />
<Compile Include="src\System\Threading\StackCrawlMark.cs" />
<Compile Include="src\System\Threading\Thread.Mono.cs" />
<Compile Include="src\System\Threading\ThreadPool.Mono.cs" />
<Compile Include="src\System\Threading\LowLevelLock.cs" />
<Compile Include="src\System\Threading\LowLevelSpinWaiter.cs" />
<Compile Include="src\System\Threading\WaitHandle.Mono.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true'">
<Compile Include="src\Microsoft\Win32\SafeHandles\SafeWaitHandle.Unix.Mono.cs" />
<Compile Include="src\System\Environment.Unix.Mono.cs" />
<Compile Include="src\System\Globalization\GlobalizationMode.Unix.Mono.cs" />
<Compile Include="src\System\Threading\EventWaitHandle.Unix.Mono.cs" />
<Compile Include="src\System\Threading\Mutex.Unix.Mono.cs" />
<Compile Include="src\System\Threading\Semaphore.Unix.Mono.cs" />
<Compile Include="src\System\Threading\LowLevelLifoSemaphore.Unix.Mono.cs" />
<Compile Include="src\System\IO\MonoIOError.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
<Compile Include="src\System\Globalization\GlobalizationMode.Windows.Mono.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="src\Mono\RuntimeStructs.cs" />
<Compile Include="src\Mono\RuntimeMarshal.cs" />
<Compile Include="src\Mono\SafeStringMarshal.cs" />
<Compile Include="src\Mono\SafeGPtrArrayHandle.cs" />
<Compile Include="src\System\TypeSpec.cs" />
<Compile Include="src\System\Runtime\CompilerServices\PreserveDependencyAttribute.cs" />
</ItemGroup>
<Import Project="shared\System.Private.CoreLib.Shared.projitems" />
<!-- Use Roslyn Compilers to build -->
<Import Project="../roslyn/packages/microsoft.net.compilers.toolset/$(MicrosoftNetCompilersVersion)/build/Microsoft.Net.Compilers.Toolset.props" />
<ItemGroup>
<EmbeddedResource LogicalName="System.Private.CoreLib.xml" Include="src\LinkerDescriptor\System.Private.CoreLib.xml"/>
</ItemGroup>
</Project>