summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Mitchell <mmitche@microsoft.com>2015-06-08 09:23:45 -0700
committerMatt Mitchell <mmitche@microsoft.com>2015-06-08 09:23:45 -0700
commit6b36698f02601918ad3cd549e0debd55862b5347 (patch)
treecf81c84b4fa2265810e5e757ad86eae9870c0ee8
parent9f990b1cc2b6b224af6044bb8cf98447703fdae3 (diff)
parent0670a50513aa3a96a89fd7bd5c051e22ccbf05e4 (diff)
downloadcoreclr-6b36698f02601918ad3cd549e0debd55862b5347.tar.gz
coreclr-6b36698f02601918ad3cd549e0debd55862b5347.tar.bz2
coreclr-6b36698f02601918ad3cd549e0debd55862b5347.zip
Merge pull request #1116 from jasonwilliams200OK/master
build,freebsd: Adds freebsdmscorlib to build.cmd
-rw-r--r--Documentation/freebsd-instructions.md4
-rw-r--r--build.cmd3
-rw-r--r--dir.props7
3 files changed, 8 insertions, 6 deletions
diff --git a/Documentation/freebsd-instructions.md b/Documentation/freebsd-instructions.md
index 7b49a285cf..feb306fb64 100644
--- a/Documentation/freebsd-instructions.md
+++ b/Documentation/freebsd-instructions.md
@@ -95,10 +95,10 @@ We don't _yet_ have support for building managed code on FreeBSD, so you'll need
You will build `mscorlib.dll` out of the coreclr repository and the rest of the framework that out of the corefx repository. For mscorlib (from a regular command prompt window) run:
```
-D:\git\coreclr> build.cmd linuxmscorlib
+D:\git\coreclr> build.cmd freebsdmscorlib
```
-The output is placed in `bin\Product\Linux.x64.Debug\mscorlib.dll`. You'll want to copy this to the runtime folder on your FreeBSD machine. (e.g. `~/coreclr-demo/runtime`)
+The output is placed in `bin\Product\FreeBSD.x64.Debug\mscorlib.dll`. You'll want to copy this to the runtime folder on your FreeBSD machine. (e.g. `~/coreclr-demo/runtime`)
For the rest of the framework, you need to pass some special parameters to build.cmd when building out of the CoreFX repository.
diff --git a/build.cmd b/build.cmd
index 5433711e9c..0558b01463 100644
--- a/build.cmd
+++ b/build.cmd
@@ -31,9 +31,10 @@ if /i "%1" == "release" (set __BuildType=Release&shift&goto Arg_Loop)
if /i "%1" == "clean" (set __CleanBuild=1&shift&goto Arg_Loop)
-if /i "%1" == "windowsmscorlib" (set __MscorlibOnly=1&set __BuildOS=Windows_NT&shift&goto Arg_Loop)
+if /i "%1" == "freebsdmscorlib" (set __MscorlibOnly=1&set __BuildOS=FreeBSD&shift&goto Arg_Loop)
if /i "%1" == "linuxmscorlib" (set __MscorlibOnly=1&set __BuildOS=Linux&shift&goto Arg_Loop)
if /i "%1" == "osxmscorlib" (set __MscorlibOnly=1&set __BuildOS=OSX&shift&goto Arg_Loop)
+if /i "%1" == "windowsmscorlib" (set __MscorlibOnly=1&set __BuildOS=Windows_NT&shift&goto Arg_Loop)
if /i "%1" == "vs2013" (set __VSVersion=%1&set __VSProductVersion=120&shift&goto Arg_Loop)
if /i "%1" == "vs2015" (set __VSVersion=%1&set __VSProductVersion=140&shift&goto Arg_Loop)
diff --git a/dir.props b/dir.props
index bcab50d229..d44e11dcc8 100644
--- a/dir.props
+++ b/dir.props
@@ -58,11 +58,12 @@
<!-- Setup common target properties that we use to conditionally include sources -->
<PropertyGroup>
- <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows>
+ <TargetsFreeBSD Condition="'$(BuildOS)' == 'FreeBSD'">true</TargetsFreeBSD>
<TargetsLinux Condition="'$(BuildOS)' == 'Linux'">true</TargetsLinux>
<TargetsOSX Condition="'$(BuildOS)' == 'OSX'">true</TargetsOSX>
-
- <TargetsUnix Condition="'$(TargetsLinux)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix>
+ <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows>
+
+ <TargetsUnix Condition="'$(TargetsFreeBSD)' == 'true' or '$(TargetsLinux)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix>
</PropertyGroup>
<!-- Common NuGet properties -->