Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
860bb38
These changes are the beginning of the SOS for coreclr under lldb. It…
Feb 12, 2015
bb98953
Merge branch 'master' into soscommand1
Feb 13, 2015
5929b9a
Fix building under linux on a linux file system (instead of mounted w…
Feb 13, 2015
df4819b
Missing file in last commit.
Feb 13, 2015
914bb47
Minor pal fixes when initialized for a dll.
Feb 14, 2015
5cf195d
Merge remote-tracking branch 'upstream/master' into soscommand1
Feb 16, 2015
3d149d3
More DAC build fixes. Always enable SELF_NO_HOST defined.
Feb 16, 2015
9f4f811
One more fix to DAC build. The wrong "delete" code was being used cau…
Feb 16, 2015
1c4390a
Merge branch 'master' into soscommand1
Feb 17, 2015
5f73e6f
Ifdef out some PE specific DAC code. Still need to replace some of it…
Feb 18, 2015
288ecfa
Use environment vars to point to the lldb source and libraries. If n…
Feb 19, 2015
fbc318c
Setup the CoreCLR repo to use the LocalPackagePublish mechanism.
AlexGhiondea Feb 19, 2015
4ae7907
Use the MAKEDLLNAME macro to properly name the dynamically loaded lib…
Feb 19, 2015
5b6b16f
Merge branch 'master' into soscommand1
Feb 19, 2015
be3247f
OS bug 1704585: WoW64 breakpoint in crossgen!debugError when compilin…
Feb 19, 2015
b079d1a
Fixed Windows build for the DAC by restore the lib order back. Add th…
Feb 20, 2015
b42e2b0
Merge pull request #294 from AlexGhiondea/localPublish
AlexGhiondea Feb 20, 2015
3d9ceb7
Merge remote-tracking branch 'upstream/master' into soscommand1
Feb 20, 2015
44fb223
Update README.md
weshaggard Feb 20, 2015
44d3087
Change lldb plugin to use lldb dev package for its include and lib fi…
Feb 20, 2015
2748d04
Delete dead code
jkotas Feb 20, 2015
6d59d40
Merge pull request #309 from jkotas/deadcode
jkotas Feb 20, 2015
b363c65
Merge pull request #302 from dotnet-bot/from-tfs
sergiy-k Feb 20, 2015
67d2897
Review feedback. Fixed the sos plugin make file to use the LLDB_INCL…
Feb 20, 2015
0fd6f99
Merge remote-tracking branch 'upstream/master' into soscommand1
Feb 20, 2015
d6cf26f
More review feedback changes. Fixed message when the sos module isn't…
Feb 20, 2015
4e8cd5e
Fix SOS command to not break the OSX build, and be linkable against a…
kangaroo Feb 21, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ cmake_minimum_required(VERSION 2.8.12)
# Set the project name
project(CoreCLR)

set(CLR_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(VM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/vm)

if(CMAKE_SYSTEM_NAME STREQUAL Linux)
set(CLR_CMAKE_PLATFORM_UNIX 1)
set(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64 1)
Expand Down Expand Up @@ -120,6 +123,7 @@ elseif (CLR_CMAKE_PLATFORM_UNIX)
endif(WIN32)

if(CLR_CMAKE_PLATFORM_UNIX)
add_subdirectory(src/ToolBox/SOS/lldbplugin)
add_subdirectory(src/pal)
add_subdirectory(src/coreclr/hosts/unixcorerun)
endif(CLR_CMAKE_PLATFORM_UNIX)
Expand Down Expand Up @@ -467,7 +471,4 @@ else ()
set(ARCH_SOURCES_DIR i386)
endif (IS_64BIT_BUILD EQUAL 1)

set(CLR_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(VM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/vm)

add_subdirectory(src)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Looking for something to work on? The list of [up-for-grabs issues](https://gith
You are encouraged to start a discussion by filing an issue, creating a
gist or starting a thread in the [.NET Foundation forums]. For broader topics, please use the forums.

[Contributing Guide]: https://github.com/dotnet/coreclr/wiki/Contributing
[Contributing Guide]: https://github.com/dotnet/coreclr/wiki/Contribution-Overview
[Developer Guide]: https://github.com/dotnet/coreclr/wiki/Developer-Guide

[.NET Foundation forums]: http://forums.dotnetfoundation.org/
Expand Down
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set "__ProjectDir=%~dp0"
if %__ProjectDir:~-1%==\ set "__ProjectDir=%__ProjectDir:~0,-1%"
set "__ProjectFilesDir=%__ProjectDir%"
set "__SourceDir=%__ProjectDir%\src"
set "__PackagesDir=%__SourceDir%\.nuget"
set "__PackagesDir=%__ProjectDir%\packages"
set "__RootBinDir=%__ProjectDir%\binaries"
set "__LogsDir=%__RootBinDir%\Logs"
set "__CMakeSlnDir=%__RootBinDir%\CMake"
Expand Down
80 changes: 3 additions & 77 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -2,86 +2,12 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="dir.props" />

<!-- Inline task to bootstrap the build to enable downloading nuget.exe -->
<UsingTask TaskName="DownloadFile" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll">
<ParameterGroup>
<Address ParameterType="System.String" Required="true"/>
<FileName ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System" />
<Code Type="Fragment" Language="cs">
<![CDATA[
var directory = System.IO.Path.GetDirectoryName(FileName);
System.IO.Directory.CreateDirectory(directory);
var client = new System.Net.WebClient();
client.Proxy = System.Net.WebRequest.DefaultWebProxy;
client.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
client.DownloadFile(Address, FileName);
]]>
</Code>
</Task>
</UsingTask>

<Target Name="_RestoreBuildTools"
BeforeTargets="Build"
Inputs="$(BuildToolsTargetInputs)"
Outputs="$(BuildToolsTargetOutputs)"
>

<!-- Download latest nuget.exe -->
<DownloadFile
Condition="!Exists($(NuGetToolPath))"
Address="http://nuget.org/nuget.exe"
FileName="$(NuGetToolPath)" />

<!-- Restore build tools -->
<Exec
StandardOutputImportance="Low"
Command="&quot;$(NuGetToolPath)&quot; install &quot; $(SourceDir).nuget\packages.config &quot; -o &quot; $(ToolsDir) &quot; $(NuGetConfigCommandLine)" />

<Touch Files="$(BuildToolsInstallSemaphore)" AlwaysCreate="true" />
</Target>

<!-- Setup Nuget properties -->
<ItemGroup>
<NuSpecSrcs Include="$(PackagesDir)Microsoft.DotNet.CoreCLR.nuspec" />
<NuSpecSrcs Condition="'$(Configuration)'=='Release'" Include="$(PackagesDir)Microsoft.DotNet.CoreCLR.Development.nuspec" />
<NuSpecSrcs Condition="'$(Configuration)'=='Debug'" Include="$(PackagesDir)Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
</ItemGroup>
<ItemGroup>
<!-- Backslash appended, see note in dir.props about the PackagesBinDir property -->
<NuSpecs Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.nuspec" />
<NuSpecs Condition="'$(Configuration)'=='Release'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Development.nuspec" />
<NuSpecs Condition="'$(Configuration)'=='Debug'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
<!-- We use build.proj instead of dirs.proj so we don't conflict with the TFS build-->
<Project Include="src\build.proj" />
</ItemGroup>

<!-- Generate Microsoft.Dotnet.CoreCLR nuget package and associated development 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>

<!-- Build mscorlib -->
<ItemGroup>
<Project Include="src\mscorlib\mscorlib.csproj" />
</ItemGroup>
<Import Project="dir.targets" />

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

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ __CMakeArgs=DEBUG
# Set the various build properties here so that CMake and MSBuild can pick them up
__ProjectDir="$__ProjectRoot"
__SourceDir="$__ProjectDir/src"
__PackagesDir="$__SourceDir/.nuget"
__PackagesDir="$__ProjectDir/packages"
__RootBinDir="$__ProjectDir/binaries"
__LogsDir="$__RootBinDir/Logs"
__CMakeSlnDir="$__RootBinDir/CMake"
Expand Down
34 changes: 28 additions & 6 deletions dir.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)\src\</SourceDir>

<PackagesDir>$(__PackagesDir)\</PackagesDir>
<PackagesDir Condition="'$(__PackagesDir)'==''">$(SourceDir)\.nuget\</PackagesDir>
<PackagesDir Condition="'$(__PackagesDir)'==''">$(ProjectDir)\packages\</PackagesDir>

<RootBinDir>$(__RootBinDir)\</RootBinDir>
<RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)\binaries\</RootBinDir>
Expand All @@ -37,6 +37,20 @@
<TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)\tests\$(BuildArch)\$(BuildType)\</TestWorkingDir>
</PropertyGroup>

<!-- Setup Nuget properties -->
<ItemGroup>
<NuSpecSrcs Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.nuspec" />
<NuSpecSrcs Condition="'$(Configuration)'=='Release'" Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.Development.nuspec" />
<NuSpecSrcs Condition="'$(Configuration)'=='Debug'" Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
</ItemGroup>
<ItemGroup>
<!-- Backslash appended, see note in dir.props about the PackagesBinDir property -->
<NuSpecs Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.nuspec" />
<NuSpecs Condition="'$(Configuration)'=='Release'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Development.nuspec" />
<NuSpecs Condition="'$(Configuration)'=='Debug'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
</ItemGroup>


<!-- Common NuGet properties -->
<PropertyGroup>
<NuGetToolPath>$(ToolsDir)NuGet.exe</NuGetToolPath>
Expand All @@ -47,10 +61,18 @@

<!-- Common build tool properties -->
<PropertyGroup>
<BuildToolsPackageName>Microsoft.DotNet.BuildTools.CoreCLR</BuildToolsPackageName>
<BuildToolsVersion>1.0.1-prerelease</BuildToolsVersion>
<BuildToolsInstallSempahore>$(ToolsDir)BuildTools.$(BuildToolsVersion).installed.semaphore</BuildToolsInstallSempahore>
<BuildToolsTargetInputs>$(MSBuildThisFileFullPath);$(MSBuildThisFileDirectory)build.proj</BuildToolsTargetInputs>
<BuildToolsTargetOutputs>$(BuildToolsInstallSempahore)</BuildToolsTargetOutputs>

<BuildToolsCoreCLRPackageName>Microsoft.DotNet.BuildTools.CoreCLR</BuildToolsCoreCLRPackageName>
<BuildToolsCoreCLRVersion>1.0.1-prerelease</BuildToolsCoreCLRVersion>
<BuildToolsCoreCLRInstallSempahore>$(ToolsDir)BuildTools.$(BuildToolsCoreCLRVersion).installed.semaphore</BuildToolsCoreCLRInstallSempahore>

<BuildToolsPackageName>Microsoft.DotNet.BuildTools</BuildToolsPackageName>
<BuildToolsVersion>1.0.25-prerelease-00009</BuildToolsVersion>

<BuildToolsCoreCLRTargetInputs>$(MSBuildThisFileFullPath);$(MSBuildThisFileDirectory)build.proj</BuildToolsCoreCLRTargetInputs>
<BuildToolsCoreCLRTargetOutputs>$(BuildToolsCoreCLRInstallSempahore)</BuildToolsCoreCLRTargetOutputs>

<BuildToolsCoreCLRLocation>$(ToolsDir)\$(BuildToolsCoreCLRPackageName).$(BuildToolsCoreCLRVersion)</BuildToolsCoreCLRLocation>
<BuildToolsLocation>$(ToolsDir)\$(BuildToolsPackageName).$(BuildToolsVersion)</BuildToolsLocation>
</PropertyGroup>
</Project>
43 changes: 43 additions & 0 deletions dir.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Inline task to bootstrap the build to enable downloading nuget.exe -->
<UsingTask TaskName="DownloadFile" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll">
<ParameterGroup>
<Address ParameterType="System.String" Required="true"/>
<FileName ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System" />
<Code Type="Fragment" Language="cs">
<![CDATA[
var directory = System.IO.Path.GetDirectoryName(FileName);
System.IO.Directory.CreateDirectory(directory);
var client = new System.Net.WebClient();
client.Proxy = System.Net.WebRequest.DefaultWebProxy;
client.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
client.DownloadFile(Address, FileName);
]]>
</Code>
</Task>
</UsingTask>

<Target Name="_RestoreBuildTools"
BeforeTargets="Build"
Inputs="$(BuildToolsCoreCLRTargetInputs)"
Outputs="$(BuildToolsCoreCLRTargetOutputs)"
>

<!-- Download latest nuget.exe -->
<DownloadFile
Condition="!Exists($(NuGetToolPath))"
Address="http://nuget.org/nuget.exe"
FileName="$(NuGetToolPath)" />

<!-- Restore build tools -->
<Exec
StandardOutputImportance="Low"
Command="&quot;$(NuGetToolPath)&quot; install &quot; $(SourceDir).nuget\packages.config &quot; -o &quot; $(ToolsDir) &quot; $(NuGetConfigCommandLine)" />

<Touch Files="$(BuildToolsInstallSemaphore)" AlwaysCreate="true" />
</Target>
</Project>
1 change: 1 addition & 0 deletions src/.nuget/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.DotNet.BuildTools.CoreCLR" version="1.0.1-prerelease" />
<package id="Microsoft.DotNet.BuildTools" version="1.0.25-prerelease-00009" />
</packages>
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ add_subdirectory(strongname)
add_subdirectory(binder)
add_subdirectory(classlibnative)
add_subdirectory(dlls)
add_subdirectory(ToolBox)
add_subdirectory(unwinder)

if(WIN32)
add_subdirectory(ipcman)
add_subdirectory(ToolBox)
add_subdirectory(tools)
endif(WIN32)

Expand Down
8 changes: 5 additions & 3 deletions src/ToolBox/SOS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
add_subdirectory(strike)
add_subdirectory(DacTableGen)
add_subdirectory(diasdk)
add_subdirectory(Strike)
if(WIN32)
add_subdirectory(DacTableGen)
add_subdirectory(diasdk)
endif(WIN32)
Loading