linux-packaging-mono/mcs/class/System.Private.CoreLib/System.Private.CoreLib.csproj
Xamarin Public Jenkins (auto-signing) ef583813eb Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
2019-07-26 19:53:28 +00:00

305 lines
16 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Include common build properties -->
<!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> -->
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<!-- Default values -->
<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>
<AvailablePlatforms>x64,x86,arm,armel,arm64</AvailablePlatforms>
<FeaturePortableTimer>true</FeaturePortableTimer>
<FeaturePerfTracing>true</FeaturePerfTracing>
<Configuration Condition=" '$(Configuration)' == '' ">$(BuildType)</Configuration>
<Platform Condition=" '$(Platform)' == '' ">$(BuildArch)</Platform>
<Platform Condition=" '$(Platform)' == 'armel' ">arm</Platform>
<ProjectGuid>{DD18B4BA-3B49-437B-9E34-41EF8A640CE0}</ProjectGuid>
<OutputType>Library</OutputType>
<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>
<CLSCompliant>true</CLSCompliant>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningsNotAsErrors>$(WarningsNotAsErrors);618</WarningsNotAsErrors>
<!-- Remove CS8608 once https://github.com/dotnet/roslyn/issues/23268 is resolved -->
<NoWarn>649,1573,1591,0419,3021,CS8609</NoWarn>
<!-- Temporary disabled warnings -->
<NoWarn>$(NoWarn),CS0067,CS0618</NoWarn>
<!-- Disable nullability-related warnings -->
<NoWarn>$(NoWarn),CS8597,CS8600,CS8601,CS8602,CS8603,CS8604,CS8609,CS8611,CS8618,CS8620,CS8625,CS8631,CS8632,CS8634</NoWarn>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<DefineConstants>$(DefineConstants);_USE_NLS_PLUS_TABLE;CODE_ANALYSIS_BASELINE;netcoreapp</DefineConstants>
<!-- 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>
<LangVersion>8.0</LangVersion>
<!--
<DocumentationFile>$(OutputPath)$(MSBuildProjectName).xml</DocumentationFile>
-->
</PropertyGroup>
<!-- Platform specific properties -->
<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<BaseAddress>0x180000000</BaseAddress>
<DefineConstants>BIT64;AMD64;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x86'">
<PlatformTarget>x86</PlatformTarget>
<BaseAddress>0x10000000</BaseAddress>
<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>
<!-- Configuration specific properties -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Checked'">
<DebugSymbols>true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Debug'">false</Optimize>
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Checked'">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">full</DebugType>
<DefineConstants>_LOGGING;DEBUG;TRACE;$(DefineConstants)</DefineConstants>
<DefineConstants Condition="'$(Platform)' == 'x86' or '$(Platform)' == 'x64'">CODE_ANALYSIS;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugSymbols>true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">pdbOnly</DebugType>
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- Make portable PDBs on Unix -->
<PropertyGroup Condition="'$(OsEnvironment)' == 'Unix'">
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetsOSX)' == 'true'">
<DefineConstants>PLATFORM_OSX;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- Assembly attributes -->
<PropertyGroup>
<AssemblyName>System.Private.CoreLib</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<MajorVersion>4</MajorVersion>
<MinorVersion>6</MinorVersion>
<ExcludeAssemblyInfoPartialFile>true</ExcludeAssemblyInfoPartialFile>
</PropertyGroup>
<!--
Helper Paths
-->
<PropertyGroup>
<CommonPath>$(MSBuildThisFileDirectory)Common</CommonPath>
<BclSourcesRoot>$(MSBuildThisFileDirectory)src</BclSourcesRoot>
<MscorlibDir>$(MSBuildThisFileDirectory)</MscorlibDir>
<NlpObjDir>$(BclSourcesRoot)\System\Globalization\Tables</NlpObjDir>
</PropertyGroup>
<!-- Sources -->
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="Resources\SR.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Microsoft.Win32\UnsafeNativeMethods.cs" />
<Compile Include="Mono\MonoListItem.cs" />
<Compile Include="Mono\MonoDomain.cs" />
<Compile Include="Mono\MonoDomainSetup.cs" />
<Compile Include="Mono\RuntimeHandles.cs" />
<Compile Include="Resources\SR.common.cs" />
<Compile Include="System\AppContext.cs" />
<Compile Include="System\ArgIterator.cs" />
<Compile Include="System\Array.cs" />
<Compile Include="System\Attribute.cs" />
<Compile Include="System\Buffer.cs" />
<Compile Include="System\Delegate.cs" />
<Compile Include="System\Enum.cs" />
<Compile Include="System\Environment.cs" />
<Compile Include="System\Exception.cs" />
<Compile Include="System\GC.cs" />
<Compile Include="System\Object.cs" />
<Compile Include="System\Math.cs" />
<Compile Include="System\MathF.cs" />
<Compile Include="System\MissingMemberException.cs" />
<Compile Include="System\ModuleHandle.cs" />
<Compile Include="System\MulticastDelegate.cs" />
<Compile Include="System\NotImplemented.cs" />
<Compile Include="System\Nullable.cs" />
<Compile Include="System\RuntimeArgumentHandle.cs" />
<Compile Include="System\RuntimeFieldHandle.cs" />
<Compile Include="System\RuntimeMethodHandle.cs" />
<Compile Include="System\RuntimeType.cs" />
<Compile Include="System\RuntimeTypeHandle.cs" />
<Compile Include="System\String.cs" />
<Compile Include="System\Type.cs" />
<Compile Include="System\TypeIdentifier.cs" />
<Compile Include="System\TypedReference.cs" />
<Compile Include="System\TypeLoadException.cs" />
<Compile Include="System\TypeNameParser.cs" />
<Compile Include="System\ValueType.cs" />
<Compile Include="System\WeakReference.cs" />
<Compile Include="System\WeakReference.T.cs" />
<Compile Include="System\__ComObject.cs" />
<Compile Include="System.Globalization\GlobalizationMode.cs" />
<Compile Include="System.Collections.Generic\ArraySortHelper.cs" />
<Compile Include="System.Collections.Generic\Comparer.cs" />
<Compile Include="System.Collections.Generic\EqualityComparer.cs" />
<Compile Include="System.Diagnostics\Debugger.cs" />
<Compile Include="System.Diagnostics\StackFrame.cs" />
<Compile Include="System.Diagnostics\StackTrace.cs" />
<Compile Include="System.IO\Stream.cs" />
<Compile Include="System.IO\FileLoadException.cs" />
<Compile Include="System.Reflection\Assembly.cs" />
<Compile Include="System.Reflection\AssemblyName.cs" />
<Compile Include="System.Reflection\CustomAttributeData.cs" />
<Compile Include="System.Reflection\CustomAttributeTypedArgument.cs" />
<Compile Include="System.Reflection\FieldInfo.cs" />
<Compile Include="System.Reflection\MemberInfo.cs" />
<Compile Include="System.Reflection\MethodBase.cs" />
<Compile Include="System.Reflection\RuntimeAssembly.cs" />
<Compile Include="System.Reflection\RuntimeEventInfo.cs" />
<Compile Include="System.Reflection\RuntimeFieldInfo.cs" />
<Compile Include="System.Reflection\RuntimeLocalVariableInfo.cs" />
<Compile Include="System.Reflection\RuntimeMethodBody.cs" />
<Compile Include="System.Reflection\RuntimeMethodInfo.cs" />
<Compile Include="System.Reflection\RuntimeModule.cs" />
<Compile Include="System.Reflection\RuntimeParameterInfo.cs" />
<Compile Include="System.Reflection\RuntimePropertyInfo.cs" />
<Compile Include="System.Reflection\RuntimeExceptionHandlingClause.cs" />
<Compile Include="System.Reflection.Emit\AssemblyBuilder.cs" />
<Compile Include="System.Reflection.Emit\ConstructorBuilder.cs" />
<Compile Include="System.Reflection.Emit\ConstructorOnTypeBuilderInst.cs" />
<Compile Include="System.Reflection.Emit\CustomAttributeBuilder.cs" />
<Compile Include="System.Reflection.Emit\DerivedTypes.cs" />
<Compile Include="System.Reflection.Emit\DynamicILInfo.cs" />
<Compile Include="System.Reflection.Emit\DynamicMethod.cs" />
<Compile Include="System.Reflection.Emit\DynamicMethod.notsupported.cs" />
<Compile Include="System.Reflection.Emit\EnumBuilder.cs" />
<Compile Include="System.Reflection.Emit\EventBuilder.cs" />
<Compile Include="System.Reflection.Emit\EventOnTypeBuilderInst.cs" />
<Compile Include="System.Reflection.Emit\FieldBuilder.cs" />
<Compile Include="System.Reflection.Emit\FieldOnTypeBuilderInst.cs" />
<Compile Include="System.Reflection.Emit\GenericTypeParameterBuilder.cs" />
<Compile Include="System.Reflection.Emit\ILGenerator.cs" />
<Compile Include="System.Reflection.Emit\LocalBuilder.cs" />
<Compile Include="System.Reflection.Emit\MethodBuilder.cs" />
<Compile Include="System.Reflection.Emit\MethodOnTypeBuilderInst.cs" />
<Compile Include="System.Reflection.Emit\ModuleBuilder.cs" />
<Compile Include="System.Reflection.Emit\MonoArrayMethod.cs" />
<Compile Include="System.Reflection.Emit\ParameterBuilder.cs" />
<Compile Include="System.Reflection.Emit\PropertyBuilder.cs" />
<Compile Include="System.Reflection.Emit\PropertyOnTypeBuilderInst.cs" />
<Compile Include="System.Reflection.Emit\SignatureHelper.cs" />
<Compile Include="System.Reflection.Emit\TypeBuilder.cs" />
<Compile Include="System.Reflection.Emit\TypeBuilderInstantiation.cs" />
<Compile Include="System.Reflection.Emit\UnmanagedMarshal.cs" />
<Compile Include="System.Reflection.Metadata\AssemblyExtensions.cs" />
<Compile Include="System.Resources\ManifestBasedResourceGroveler.cs" />
<Compile Include="System.Runtime\GCSettings.cs" />
<Compile Include="System.Runtime\RuntimeImports.cs" />
<Compile Include="System.Runtime.CompilerServices\DependentHandle.cs" />
<Compile Include="System.Runtime.CompilerServices\JitHelpers.cs" />
<Compile Include="System.Runtime.CompilerServices\RuntimeHelpers.cs" />
<Compile Include="System.Runtime.CompilerServices\RuntimeFeature.cs" />
<Compile Include="System.Runtime.InteropServices\CriticalHandle.cs" />
<Compile Include="System.Runtime.InteropServices\GCHandle.cs" />
<Compile Include="System.Runtime.InteropServices\InteropExtensions.cs" />
<Compile Include="System.Runtime.InteropServices\Marshal.cs" />
<Compile Include="System.Runtime.InteropServices\MarshalAsAttribute.cs" />
<Compile Include="System.Runtime.Loader\AssemblyLoadContext.cs" />
<Compile Include="System.Runtime.Loader\AssemblyDependencyResolver.cs" />
<Compile Include="System.Runtime.Remoting.Contexts\Context.cs" />
<Compile Include="System.Security\DynamicSecurityMethodAttribute.cs" />
<Compile Include="System.Threading\Interlocked.cs" />
<Compile Include="System.Threading\Monitor.cs" />
<Compile Include="System.Threading\Overlapped.cs" />
<Compile Include="System.Threading\PreAllocatedOverlapped.cs" />
<Compile Include="System.Threading\RegisteredWaitHandle.cs" />
<Compile Include="System.Threading\StackCrawlMark.cs" />
<Compile Include="System.Threading\Thread.cs" />
<Compile Include="System.Threading\ThreadPool.cs" />
<Compile Include="System.Threading\ThreadPoolBoundHandle.cs" />
<Compile Include="System.Threading\WaitHandle.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true'">
<Compile Include="Microsoft.Win32.SafeHandles\SafeWaitHandle.Unix.cs" />
<Compile Include="System\Environment.Unix.cs" />
<Compile Include="System.Globalization\GlobalizationMode.Unix.cs" />
<Compile Include="System.Threading\EventWaitHandle.Unix.cs" />
<Compile Include="System.Threading\Mutex.Unix.cs" />
<Compile Include="System.Threading\Semaphore.Unix.cs" />
<Compile Include="System.Runtime.InteropServices\NativeLibrary.Unix.cs" />
<Compile Include="..\corlib\System.IO\MonoIOError.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
<Compile Include="System.Globalization\GlobalizationMode.Windows.cs" />
<Compile Include="System.Runtime.InteropServices\NativeLibrary.Windows.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\corlib\Mono\RuntimeStructs.cs" />
<Compile Include="..\corlib\Mono\RuntimeMarshal.cs" />
<Compile Include="..\corlib\Mono\SafeStringMarshal.cs" />
<Compile Include="..\corlib\Mono\SafeGPtrArrayHandle.cs" />
<Compile Include="..\corlib\System\MonoCustomAttrs.cs" />
<Compile Include="..\corlib\System\TypeSpec.cs" />
<Compile Include="..\corlib\System.Runtime.CompilerServices\PreserveDependencyAttribute.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\referencesource\mscorlib\system\rttype.cs" />
</ItemGroup>
<!-- Mono extensions -->
<PropertyGroup>
<DefineConstants>FEATURE_DEFAULT_INTERFACES;FEATURE_MANAGED_ETW_CHANNELS;$(DefineConstants)</DefineConstants>
<DefineConstants>MONO;NETCORE;DISABLE_REMOTING;MONO_FEATURE_SRE;$(DefineConstants)</DefineConstants>
<NoWarn>3021,$(NoWarn)</NoWarn>
</PropertyGroup>
<Import Project="..\..\..\netcore\System.Private.CoreLib\shared\System.Private.CoreLib.Shared.projitems" />
<!-- Use Roslyn Compilers to build -->
<Import Condition="'$(RoslynPropsFile)' != ''" Project="$(RoslynPropsFile)" />
<!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> -->
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<!-- Overwrite the key that we are going to use for signing -->
<AssemblyOriginatorKeyFile>..\silverlight.pub</AssemblyOriginatorKeyFile>
<!-- Don't need a strong name signature because we only ship the native image -->
<StrongNameSig>None</StrongNameSig>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource LogicalName="System.Private.CoreLib.xml" Include="LinkerDescriptor/System.Private.CoreLib.xml"/>
</ItemGroup>
</Project>