diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
commit | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch) | |
tree | 98110734c91668dfdbb126fcc0e15ddbd93738ca /dir.props | |
parent | fa45f57ed55137c75ac870356a1b8f76c84b229c (diff) | |
download | coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2 coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip |
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'dir.props')
-rw-r--r-- | dir.props | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/dir.props b/dir.props new file mode 100644 index 0000000000..5b96cd1f1c --- /dev/null +++ b/dir.props @@ -0,0 +1,195 @@ +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <!-- + $(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix. + --> + <PropertyGroup> + <OsEnvironment Condition="'$(OsEnvironment)'=='' and '$(OS)'=='OSX'">Unix</OsEnvironment> + <OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment> + </PropertyGroup> + + <!-- Version numbers for both managed & native binaries --> + <PropertyGroup> + <MajorVersion>4</MajorVersion> + <MinorVersion>6</MinorVersion> + </PropertyGroup> + + <!-- Build Tools Versions --> + <PropertyGroup> + <RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion> + <RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName> + </PropertyGroup> + + <!-- + Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer + as well as runnning the build on mono. Until we can get these sorted out we will continue using the .NET 4.5 version of the tasks. + --> + <PropertyGroup> + <BuildToolsTargets45>true</BuildToolsTargets45> + </PropertyGroup> + + <!-- Common properties --> + <PropertyGroup> + <!-- Set basic properties and normalize --> + <BuildArch>$(__BuildArch)</BuildArch> + <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch> + <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch> + + <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType> + <BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType> + <BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType> + <BuildType Condition="'$(__BuildType)' == 'checked'">Checked</BuildType> + + <BuildOS>$(__BuildOS)</BuildOS> + <BuildOS Condition="'$(__BuildOS)' == ''">Windows_NT</BuildOS> + + <ProjectDir>$(__ProjectDir)\</ProjectDir> + <ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)</ProjectDir> + + <SourceDir>$(__SourceDir)\</SourceDir> + <SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)src\</SourceDir> + + <PackagesDir>$(__PackagesDir)\</PackagesDir> + <PackagesDir Condition="'$(__PackagesDir)'==''">$(ProjectDir)packages\</PackagesDir> + + <RootBinDir>$(__RootBinDir)\</RootBinDir> + <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)bin\</RootBinDir> + + <BinDir>$(__BinDir)\</BinDir> + <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)Product\$(BuildOS).$(BuildArch).$(BuildType)\</BinDir> + + <__IntermediatesDir Condition="'$(__IntermediatesDir)' == ''">$(RootBinDir)obj\$(BuildOS).$(BuildArch).$(BuildType)</__IntermediatesDir> + <IntermediateOutputRootPath Condition="'$(IntermediateOutputRootPath)' == ''">$(__IntermediatesDir)\</IntermediateOutputRootPath> + + <!-- We don't append back slash because this path is used by nuget.exe as output directory and it + fails to write packages to it if the path contains the forward slash. + --> + <PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir> + <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir).nuget\</PackagesBinDir> + + <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir> + <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/</DotnetCliPath> + <OverrideToolHost>$(DotnetCliPath)dotnet</OverrideToolHost> + <BuildToolsSemaphore Condition="'$(BuildToolsSemaphore)' == ''">$(ToolsDir)Microsoft.DotNet.Build.Tasks.dll</BuildToolsSemaphore> + + <TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir> + <TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)tests\$(BuildOS).$(BuildArch).$(BuildType)\</TestWorkingDir> + + <Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform> + <Platform Condition="'$(Platform)' == 'amd64'">x64</Platform> + + </PropertyGroup> + + <!-- Output paths --> + <PropertyGroup> + <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RootBinDir)obj\</BaseIntermediateOutputPath> + <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</IntermediateOutputPath> + <OutputPath Condition="'$(OutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</OutputPath> + <FinalOutputPath Condition="'$(FinalOutputPath)' == ''">$(BinDir)</FinalOutputPath> + </PropertyGroup> + + <Import Condition="Exists('$(ToolsDir)BuildVersion.targets')" Project="$(ToolsDir)BuildVersion.targets" /> + + <!-- Import Build tools common props file where repo-independent properties are found --> + <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" /> + + + <!-- Common nuget properties --> + <PropertyGroup> + <NuGetToolPath Condition="'$(NuGetToolPath)'==''">$(PackagesDir)NuGet.exe</NuGetToolPath> + <NuGetConfigFile Condition="'$(NuGetConfigFile)'==''">$(SourceDir)NuGet.Config</NuGetConfigFile> + <NuGetConfigCommandLine>-ConfigFile "$(NuGetConfigFile)"</NuGetConfigCommandLine> + + <NugetRestoreCommand>"$(NuGetToolPath)"</NugetRestoreCommand> + <NugetRestoreCommand>$(NugetRestoreCommand) install</NugetRestoreCommand> + <!-- Trim off the last slash so that nuget doesn't get confused and say there are illegal characters on + the path. --> + <NugetRestoreCommand>$(NugetRestoreCommand) -OutputDirectory "$(PackagesDir.TrimEnd('\\'))"</NugetRestoreCommand> + <NugetRestoreCommand>$(NugetRestoreCommand) $(NuGetConfigCommandLine)</NugetRestoreCommand> + <NugetRestoreCommand>$(NugetRestoreCommand) -Verbosity detailed</NugetRestoreCommand> + <NugetRestoreCommand Condition="'$(OsEnvironment)'=='Unix'">mono $(NuGetRestoreCommand)</NugetRestoreCommand> + </PropertyGroup> + + <PropertyGroup> + <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'!='Unix'">$(DotnetCliPath)dotnet.exe</DotnetToolCommand> + <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'=='Unix'">$(DotnetCliPath)dotnet</DotnetToolCommand> + + <DnuRestoreCommand>$(DnuRestoreCommand) "$(DotnetToolCommand)"</DnuRestoreCommand> + <DnuRestoreCommand>$(DnuRestoreCommand) restore</DnuRestoreCommand> + <DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('\\'))"</DnuRestoreCommand> + </PropertyGroup> + + <!-- Setup common target properties that we use to conditionally include sources --> + <PropertyGroup> + <TargetsFreeBSD Condition="'$(BuildOS)' == 'FreeBSD'">true</TargetsFreeBSD> + <TargetsLinux Condition="'$(BuildOS)' == 'Linux'">true</TargetsLinux> + <TargetsNetBSD Condition="'$(BuildOS)' == 'NetBSD'">true</TargetsNetBSD> + <TargetsOSX Condition="'$(BuildOS)' == 'OSX'">true</TargetsOSX> + <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows> + + <TargetsUnix Condition="'$(TargetsFreeBSD)' == 'true' or '$(TargetsLinux)' == 'true' or '$(TargetsNetBSD)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix> + + <!-- We are only tracking Linux Distributions for Nuget RID mapping --> + <DistroRid Condition="'$(TargetsLinux)' == 'true'">$(__DistroRid)</DistroRid> + + </PropertyGroup> + + <!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. --> + <Import Project="$(ProjectDir)dependencies.props" /> + + <!-- Packaging properties --> + <PropertyGroup> + <PreReleaseLabel>servicing</PreReleaseLabel> + <PackageDescriptionFile>$(SourceDir).nuget/descriptions.json</PackageDescriptionFile> + <PackageLicenseFile>$(SourceDir).nuget/dotnet_library_license.txt</PackageLicenseFile> + <PackageThirdPartyNoticesFile>$(SourceDir).nuget/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile> + + <!-- This should be kept in sync with package details in src/.nuget/init/project.json --> + <RuntimeIdGraphDefinitionFile>$(PackagesDir)/Microsoft.NETCore.Platforms/1.0.2-beta-24224-02/runtime.json</RuntimeIdGraphDefinitionFile> + + <!-- This link should be updated for each release milestone, currently this points to 1.1.0-beta --> + <ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes> + + <ProjectUrl>https://dot.net</ProjectUrl> + + <!-- Central place to set the versions of all nuget packages produced in the repo --> + <Version Condition="'$(MSBuildProjectExtension)' == '.pkgproj' and '$(Version)' == ''">1.1.1</Version> + + <!-- Set the boolean below to true to generate packages with stabilized versions --> + <StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion> + <StableVersion Condition="'$(MSBuildProjectExtension)' == '.pkgproj' and '$(StabilizePackageVersion)' == 'true' and '$(StableVersion)' == ''">$(Version)</StableVersion> + + <!-- On Windows, MSbuild still runs against Desktop FX while it runs on .NET Core on non-Windows. this requires + pulling in different packaging dependencies. + --> + <PackagingTaskDir Condition="'$(TargetsWindows)' == 'true'">$(ToolsDir)net45/</PackagingTaskDir> + <BuildNumberMajor Condition="'$(BuildNumberMajor)' == ''">00001</BuildNumberMajor> + <!-- defined in buildtools packaging.targets, but we need this before targets are imported --> + <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform> + <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform> + <MinOSForArch>win7</MinOSForArch> + <MinOSForArch Condition="'$(PackagePlatform)' == 'arm'">win8</MinOSForArch> + <MinOSForArch Condition="'$(PackagePlatform)' == 'arm64'">win10</MinOSForArch> + + <!-- Define packaging attributes for cross target components --> + <HasCrossTargetComponents Condition="'$(TargetsWindows)' == 'true' and ('$(PackagePlatform)' =='arm64' or '$(PackagePlatform)' =='arm')">true</HasCrossTargetComponents> + <CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm64'">x64</CrossTargetComponentFolder> + <CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm'">x86</CrossTargetComponentFolder> + + <PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath> + <SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath> + </PropertyGroup> + + <!-- Add required legal files to packages --> + <ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'"> + <File Condition="Exists('$(PackageLicenseFile)')" + Include="$(PackageLicenseFile)" > + <SkipPackageFileCheck>true</SkipPackageFileCheck> + </File> + <File Condition="Exists('$(PackageThirdPartyNoticesFile)')" + Include="$(PackageThirdPartyNoticesFile)" > + <SkipPackageFileCheck>true</SkipPackageFileCheck> + </File> + </ItemGroup> + +</Project> |