Skip to content

Commit bd8ff14

Browse files
authored
Copy coreclr-tools from the portable coreclr build (#1494)
1 parent 2c14660 commit bd8ff14

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

repos/coreclr-portable.proj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@
1414
<RepositoryReference Include="roslyn" />
1515
</ItemGroup>
1616

17+
<Target Name="CopyTools"
18+
AfterTargets="Package">
19+
<PropertyGroup>
20+
<CoreClrDestinationDir>$(ToolPackageExtractDir)coreclr-tools</CoreClrDestinationDir>
21+
<AssemblyExtension Condition="'$(TargetOS)' == 'Linux'">so</AssemblyExtension>
22+
<AssemblyExtension Condition="'$(TargetOS)' == 'FreeBSD'">so</AssemblyExtension>
23+
<AssemblyExtension Condition="'$(TargetOS)' == 'OSX'">dylib</AssemblyExtension>
24+
<AssemblyExtension Condition="'$(AssemblyExtension)' == ''">please define AssemblyExtension for $(TargetOS)</AssemblyExtension>
25+
</PropertyGroup>
26+
27+
<ItemGroup>
28+
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/ilasm" />
29+
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/ildasm" />
30+
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/libcoreclr.$(AssemblyExtension)" />
31+
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/System.Private.CoreLib.dll" />
32+
</ItemGroup>
33+
34+
<Message Importance="High" Text="Copying source-built ILAsm and ILDasm '@(CoreClrTools)' to '$(CoreClrDestinationDir)'" />
35+
36+
<Copy SourceFiles="@(CoreClrTools)" DestinationFolder="$(CoreClrDestinationDir)" />
37+
</Target>
38+
1739
<Target Name="CleanupRepoForNonPortableBuild" AfterTargets="RemoveBuiltPackagesFromCache">
1840
<ItemGroup>
1941
<DirsToDelete Include="$(ProjectDirectory)artifacts" Condition="Exists('$(ProjectDirectory)artifacts')" />

repos/coreclr.proj

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,5 @@
1212
<BuiltSdkPackageOverride Include="@(ILSdkOverride)" />
1313
</ItemGroup>
1414

15-
<Target Name="CopyTools"
16-
AfterTargets="Package">
17-
<PropertyGroup>
18-
<CoreClrDestinationDir>$(ToolPackageExtractDir)coreclr-tools</CoreClrDestinationDir>
19-
<AssemblyExtension Condition="'$(TargetOS)' == 'Linux'">so</AssemblyExtension>
20-
<AssemblyExtension Condition="'$(TargetOS)' == 'FreeBSD'">so</AssemblyExtension>
21-
<AssemblyExtension Condition="'$(TargetOS)' == 'OSX'">dylib</AssemblyExtension>
22-
<AssemblyExtension Condition="'$(AssemblyExtension)' == ''">please define AssemblyExtension for $(TargetOS)</AssemblyExtension>
23-
</PropertyGroup>
24-
25-
<ItemGroup>
26-
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/ilasm" />
27-
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/ildasm" />
28-
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/libcoreclr.$(AssemblyExtension)" />
29-
<CoreClrTools Include="$(ProjectDirectory)bin/Product/$(TargetOS).$(Platform).$(Configuration)/System.Private.CoreLib.dll" />
30-
</ItemGroup>
31-
32-
<Message Importance="High" Text="Copying source-built ILAsm and ILDasm '@(CoreClrTools)' to '$(CoreClrDestinationDir)'" />
33-
34-
<Copy SourceFiles="@(CoreClrTools)" DestinationFolder="$(CoreClrDestinationDir)" />
35-
</Target>
36-
3715
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))/dir.targets" />
3816
</Project>

0 commit comments

Comments
 (0)