summaryrefslogtreecommitdiff
path: root/src/build.proj
blob: f727bf3a80dcc66dc96a694433e3c318c6edaeee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\dir.props"/>
  
  <!-- List the projects that need to be built -->
  <ItemGroup>
    <Project Include="mscorlib\mscorlib.csproj" />
  </ItemGroup>

  <Import Project="..\dir.targets" />

  <Import Project="..\dir.traversal.targets" />


  <!-- Hook into the local publishing by providing the task that needs to run before we can do the local publishing -->
  <Import Project="$(BuildToolsLocation)\lib\packages.targets" Condition="Exists('$(BuildToolsLocation)\lib\packages.targets')" />
  <PropertyGroup>
    <NugetPackageBuildTargets>BuildNuGetPackages</NugetPackageBuildTargets>
  </PropertyGroup>

  <!-- Generate RyuJIT nuget package -->
  <Target Name="BuildNuGetPackages" AfterTargets="MovePDB" Condition="'$(BuildNugetPackage)' != 'false'">
    <MakeDir Directories="$(PackagesBinDir)" Condition="!Exists('$(PackagesBinDir)')" />
    <Copy SourceFiles="@(NuSpecSrcs)" DestinationFolder="$(PackagesBinDir)" />
    <Exec Command="&quot;$(NuGetToolPath)&quot; pack &quot;%(NuSpecs.Identity)&quot; -NoPackageAnalysis -NoDefaultExcludes -OutputDirectory &quot;$(PackagesBinDir)&quot;" />
  </Target>

  <ItemGroup>
    <PDBSToMove Include="$(BinDir)mscorlib.pdb"/>
  </ItemGroup>

  <PropertyGroup>
    <MscorlibPDBPath>$(BinDir)mscorlib.pdb</MscorlibPDBPath>
  </PropertyGroup>

  <Target Name="MovePDB" AfterTargets="Build">
    <Move Condition="Exists($(MscorlibPDBPath))"
        SourceFiles="@(PDBSToMove)"
        DestinationFolder="$(BinDir)PDB"
    />
  </Target>
</Project>