Skip to content

Commit

Permalink
Delete unused and redundant msbuild properties in coreclr build (#33645)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Mar 17, 2020
1 parent c3257c2 commit f8fd577
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 34 deletions.
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<LicenseFile>$(RepoRoot)LICENSE.TXT</LicenseFile>

<!-- Indicates this is not an officially supported release. Release branches should set this to false. -->
<!-- Keep it in sync with PRERELEASE in clrdefinitions.cmake -->
<IsPrerelease>true</IsPrerelease>

<!-- Experimental packages should not be stable -->
Expand Down
23 changes: 2 additions & 21 deletions src/coreclr/dir.common.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@

<!-- Common properties -->
<PropertyGroup>
<RootRepoDir>$(MSBuildThisFileDirectory)..\..\</RootRepoDir>
<ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir>

<BaseIntermediateOutputPath>$(RootRepoDir)artifacts\obj\coreclr\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<BaseIntermediateOutputPath>$(RepoRoot)artifacts\obj\coreclr\$(MSBuildProjectName)\</BaseIntermediateOutputPath>

<SourceDir>$(ProjectDir)src\</SourceDir>
<RootBinDir>$(RootRepoDir)artifacts\</RootBinDir>
<BinDir>$(RootBinDir)bin\coreclr\$(PlatformConfigPathPart)\</BinDir>
<BinDir>$(ArtifactsDir)bin\coreclr\$(PlatformConfigPathPart)\</BinDir>

<!-- 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.
Expand All @@ -55,8 +53,6 @@
<!-- Set the boolean below to true to generate packages with stabilized versions -->
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
<StableVersion Condition="'$(StabilizePackageVersion)' == 'true' and '$(StableVersion)' == ''">$(PackageVersion)</StableVersion>

<PreReleaseLabel>preview8</PreReleaseLabel>
</PropertyGroup>

<!-- Set up common target properties that we use to conditionally include sources -->
Expand All @@ -83,21 +79,6 @@
<DebugType Condition="'$(DebugType)' == ''">Portable</DebugType>
</PropertyGroup>

<!-- Common properties -->
<PropertyGroup>

<!-- This name is used to create a GIT repository URL https://github.com/dotnet/$(GitHubRepositoryName) used to find source code for debugging -->
<GitHubRepositoryName Condition="'$(GitHubRepositoryName)' == ''">coreclr</GitHubRepositoryName>

<!-- Default to portable build if not explicitly set -->
<PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>

<!-- If true, indicates that this is not an officially supported release -->
<!-- It is important to flip this to false in official release branches -->
<!-- Keep it in sync with PRERELEASE in clrdefinitions.cmake -->
<IsPrerelease>true</IsPrerelease>
</PropertyGroup>

<!-- Output paths -->
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand Down
9 changes: 4 additions & 5 deletions src/coreclr/tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@

<!-- Common properties -->
<PropertyGroup>
<RootBinDir>$(MSBuildThisFileDirectory)..\..\..\artifacts\</RootBinDir>
<BinDir>$(RootBinDir)bin\coreclr\$(TargetOS).$(BuildArch).$(BuildType)\</BinDir>
<BinDir>$(ArtifactsDir)bin\coreclr\$(TargetOS).$(BuildArch).$(BuildType)\</BinDir>

<TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir>
<TestWorkingDir>$(RootBinDir)tests\coreclr\$(TargetOS).$(BuildArch).$(BuildType)\</TestWorkingDir>
<TestWorkingDir>$(ArtifactsDir)tests\coreclr\$(TargetOS).$(BuildArch).$(BuildType)\</TestWorkingDir>

<AltJitArch>$(__AltJitArch)</AltJitArch>
</PropertyGroup>
Expand All @@ -28,14 +27,14 @@
<PropertyGroup>
<!-- When not using the SDK, we want to set this property here so
that BuildVersionFile gets the correct value. -->
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == '' Or '$(UsingMicrosoftNETSdk)' != 'true'">$(RootBinDir)obj\</BaseIntermediateOutputPath>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == '' Or '$(UsingMicrosoftNETSdk)' != 'true'">$(ArtifactsDir)obj\</BaseIntermediateOutputPath>
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)\$(TargetOS).$(BuildArch).$(BuildType)</IntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)' == ''">$(BaseIntermediateOutputPath)\coreclr\$(TargetOS).$(BuildArch).$(BuildType)</OutputPath>
</PropertyGroup>

<!-- Targeting Package paths -->
<PropertyGroup>
<TargetingPackPath Condition="'$(BaseTargetingPackPath)' == ''">$(RootBinDir)TargetingPack\</TargetingPackPath>
<TargetingPackPath Condition="'$(BaseTargetingPackPath)' == ''">$(ArtifactsDir)TargetingPack\</TargetingPackPath>
</PropertyGroup>

<PropertyGroup Condition="'$(BuildAllProjects)'=='true'">
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/tests/dir.common.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

<!-- BaseIntermediateOutputPath is used by the SDK as the location
for the lock file, and props/targets from nuget packages. -->
<BaseIntermediateOutputPath>$(RootRepoDir)/artifacts/tests/coreclr/obj/$(OSPlatformConfig)/Managed/$(BuildProjectRelativeDir)</BaseIntermediateOutputPath>
<BaseIntermediateOutputPath>$(RepoRoot)/artifacts/tests/coreclr/obj/$(OSPlatformConfig)/Managed/$(BuildProjectRelativeDir)</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>

<BaseOutputPath>$(RootRepoDir)/artifacts/tests/coreclr/$(OSPlatformConfig)/$(BuildProjectRelativeDir)</BaseOutputPath>
<BaseOutputPath>$(RepoRoot)/artifacts/tests/coreclr/$(OSPlatformConfig)/$(BuildProjectRelativeDir)</BaseOutputPath>
<OutputPath>$(BaseOutputPath)</OutputPath>

</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/tests/override.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
>

<ItemGroup>
<ReferencePath Include="$(RootRepoDir)\artifacts\bin\coreclr\$(TargetOS).$(BuildArch).$(BuildType)\System.Private.CoreLib.dll" />
<ReferencePath Include="$(RepoRoot)\artifacts\bin\coreclr\$(TargetOS).$(BuildArch).$(BuildType)\System.Private.CoreLib.dll" />
</ItemGroup>
</Target>

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/tests/publishdependency.targets
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<PropertyGroup>
<ProductDestination>$(RootRepoDir)\artifacts\bin\coreclr\$(TargetOS).$(BuildArch).$(BuildType)</ProductDestination>
<ProductDestination>$(RepoRoot)\artifacts\bin\coreclr\$(TargetOS).$(BuildArch).$(BuildType)</ProductDestination>
<RefDestination>$(ProductDestination)\ref</RefDestination>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/tests/src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@

<!-- Setup the default output and intermediate paths -->
<PropertyGroup>
<BaseOutputPath>$(RootRepoDir)\artifacts\tests\coreclr</BaseOutputPath>
<BaseOutputPath>$(RepoRoot)\artifacts\tests\coreclr</BaseOutputPath>
<BaseOutputPath Condition="'$(__TestRootDir)' != ''">$(__TestRootDir)</BaseOutputPath>
<BaseOutputPathWithConfig>$(BaseOutputPath)\$(OSPlatformConfig)\</BaseOutputPathWithConfig>
<BinDir>$(BaseOutputPathWithConfig)</BinDir>
<BaseIntermediateOutputPath>$(RootRepoDir)\artifacts\tests\coreclr\obj\$(OSPlatformConfig)\Managed\</BaseIntermediateOutputPath>
<BaseIntermediateOutputPath>$(RepoRoot)\artifacts\tests\coreclr\obj\$(OSPlatformConfig)\Managed\</BaseIntermediateOutputPath>
<BaseIntermediateOutputPath Condition="'$(__ManagedTestIntermediatesDir)' != ''">$(__ManagedTestIntermediatesDir)\</BaseIntermediateOutputPath>
<__NativeTestIntermediatesDir Condition="'$(__NativeTestIntermediatesDir)' == ''">$([System.IO.Path]::GetFullPath($(BaseOutputPathWithConfig)..\..\coreclr\obj\$(TargetOS).$(BuildArch).$(Configuration)\Native\))</__NativeTestIntermediatesDir>
<BuildProjectRelativeDir>$(MSBuildProjectName)\</BuildProjectRelativeDir>
Expand Down
2 changes: 0 additions & 2 deletions src/mono/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
<!-- Set the boolean below to true to generate packages with stabilized versions -->
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
<StableVersion Condition="'$(StabilizePackageVersion)' == 'true' and '$(StableVersion)' == ''">$(PackageVersion)</StableVersion>

<PreReleaseLabel>preview8</PreReleaseLabel>
</PropertyGroup>

<!-- Set up common target properties that we use to conditionally include sources -->
Expand Down

0 comments on commit f8fd577

Please sign in to comment.