2010-06-07 Jonathan Chambers <joncham@gmail.com>
authorJonathan Chambers <joncham@gmail.com>
Mon, 7 Jun 2010 16:39:11 +0000 (16:39 -0000)
committerJonathan Chambers <joncham@gmail.com>
Mon, 7 Jun 2010 16:39:11 +0000 (16:39 -0000)
* Add start of MSBuild based build.

svn path=/trunk/mcs/; revision=158591

mcs/build/msbuild/Mono.Common.targets [new file with mode: 0644]
mcs/class/Mono.CompilerServices.SymbolWriter/Mono.CompilerServices.SymbolWriter.csproj [new file with mode: 0644]
mcs/class/Mono.Security/Mono.Security.csproj [new file with mode: 0644]
mcs/class/System.Core/System.Core.csproj [new file with mode: 0644]
mcs/class/System.XML/System.Xml.csproj [new file with mode: 0644]
mcs/class/System/System.csproj [new file with mode: 0644]
mcs/class/corlib/corlib.csproj [new file with mode: 0644]

diff --git a/mcs/build/msbuild/Mono.Common.targets b/mcs/build/msbuild/Mono.Common.targets
new file mode 100644 (file)
index 0000000..2a5c53b
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <Import Project="$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks"/>\r
+  <PropertyGroup  Condition=" '$(USE_MONO_COMPILER)' == '1' ">\r
+    <CscToolExe>gmcs.bat</CscToolExe>\r
+    <CscToolPath>C:\MonoExperimental2.5.0\bin</CscToolPath>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition=" ('$(Configuration)' == 'basic' Or '$(Configuration)' == 'basic_XML_DEP') ">\r
+    <OutputPath>$(MSBuildProjectDirectory)\..\lib\basic\</OutputPath>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition=" '$(Configuration)' == 'net_2_0_bootstrap' ">\r
+    <OutputPath>$(MSBuildProjectDirectory)\..\lib\net_2_0_bootstrap\</OutputPath>\r
+  </PropertyGroup>\r
+  <Target Name="SetupProject">\r
+         <MSBuild.ExtensionPack.FileSystem.File TaskAction="Replace" RegexPattern="/" Replacement="\" Files="$(MSBuildProjectName).dll.sources"/>\r
+         <MakeDir Directories="$(OutputDirectory)"/>\r
+  </Target>\r
+</Project>
\ No newline at end of file
diff --git a/mcs/class/Mono.CompilerServices.SymbolWriter/Mono.CompilerServices.SymbolWriter.csproj b/mcs/class/Mono.CompilerServices.SymbolWriter/Mono.CompilerServices.SymbolWriter.csproj
new file mode 100644 (file)
index 0000000..f2c0d22
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Common.targets"/>
+  <ItemGroup>
+    <ResponseFile Include="$(MSBuildProjectName).dll.sources"/>
+  </ItemGroup>
+  <PropertyGroup>
+    <OutputType>Library</OutputType>
+    <AssemblyName>$(MSBuildProjectName)</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <CompilerResponseFile>@(ResponseFile)</CompilerResponseFile>
+    <NoConfig>true</NoConfig>
+    <CodePage>65001</CodePage>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'basic|AnyCPU' ">
+    <DefineConstants>BOOTSTRAP_BASIC,NET_1_1,NET_2_0</DefineConstants>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System.dll"/>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Target Name="BeforeBuild" DependsOnTargets="SetupProject">
+  </Target>
+</Project>
\ No newline at end of file
diff --git a/mcs/class/Mono.Security/Mono.Security.csproj b/mcs/class/Mono.Security/Mono.Security.csproj
new file mode 100644 (file)
index 0000000..e936d57
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Common.targets"/>
+  <ItemGroup>
+    <ResponseFile Include="$(MSBuildProjectName).dll.sources"/>
+  </ItemGroup>
+  <PropertyGroup>
+    <OutputType>Library</OutputType>
+    <AssemblyName>$(MSBuildProjectName)</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <CompilerResponseFile>@(ResponseFile)</CompilerResponseFile>
+    <NoConfig>true</NoConfig>
+    <CodePage>65001</CodePage>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'basic|AnyCPU' ">
+    <DefineConstants>BOOTSTRAP_BASIC,NET_1_1,NET_2_0</DefineConstants>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System.dll"/>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Target Name="BeforeBuild" DependsOnTargets="SetupProject">
+  </Target>
+</Project>
\ No newline at end of file
diff --git a/mcs/class/System.Core/System.Core.csproj b/mcs/class/System.Core/System.Core.csproj
new file mode 100644 (file)
index 0000000..1c1bf66
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Common.targets"/>
+  <ItemGroup>
+    <ResponseFile Include="$(MSBuildProjectName).dll.sources"/>
+  </ItemGroup>
+  <PropertyGroup>
+    <OutputType>Library</OutputType>
+    <AssemblyName>$(MSBuildProjectName)</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <CompilerResponseFile>@(ResponseFile)</CompilerResponseFile>
+    <NoConfig>true</NoConfig>
+    <NoWarn>1720</NoWarn>
+    <CodePage>65001</CodePage>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'basic|AnyCPU' ">
+    <DefineConstants>BOOTSTRAP_BASIC,NET_1_1,NET_2_0,INSIDE_SYSCORE,LIBC,NET_3_5</DefineConstants>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System.dll"/>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Target Name="BeforeBuild" DependsOnTargets="SetupProject">
+  </Target>
+</Project>
\ No newline at end of file
diff --git a/mcs/class/System.XML/System.Xml.csproj b/mcs/class/System.XML/System.Xml.csproj
new file mode 100644 (file)
index 0000000..3081bd4
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Common.targets"/>
+  <ItemGroup>
+    <ResponseFile Include="$(MSBuildProjectName).dll.sources"/>
+  </ItemGroup>
+  <PropertyGroup>
+    <OutputType>Library</OutputType>
+    <AssemblyName>$(MSBuildProjectName)</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <CompilerResponseFile>@(ResponseFile)</CompilerResponseFile>
+    <NoWarn>0618,0612,0642</NoWarn>
+    <NoConfig>true</NoConfig>
+    <CodePage>65001</CodePage>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'basic|AnyCPU' ">
+    <DefineConstants>BOOTSTRAP_BASIC,NET_1_1,NET_2_0</DefineConstants>
+  </PropertyGroup>
+  <ItemGroup>
+    <Compile Include="System.Xml.XPath\Parser.cs"/>
+    <Compile Include="Mono.Xml.Xsl\PatternParser.cs"/>
+    <Compile Include="Mono.Xml.Xsl\PatternTokenizer.cs"/>
+    <Reference Include="System.dll"/>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Target Name="BeforeBuild" DependsOnTargets="SetupProject">
+  </Target>
+</Project>
\ No newline at end of file
diff --git a/mcs/class/System/System.csproj b/mcs/class/System/System.csproj
new file mode 100644 (file)
index 0000000..2c4dd82
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Common.targets"/>
+  <ItemGroup>
+    <ResponseFile Include="$(MSBuildProjectName).dll.sources"/>
+  </ItemGroup>
+  <PropertyGroup>
+    <OutputType>Library</OutputType>
+    <AssemblyName>$(MSBuildProjectName)</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <CompilerResponseFile>@(ResponseFile)</CompilerResponseFile>
+    <NoConfig>true</NoConfig>
+    <CodePage>65001</CodePage>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'basic|AnyCPU' ">
+    <DefineConstants>BOOTSTRAP_BASIC,NET_1_1,NET_2_0,CONFIGURATION_2_0</DefineConstants>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'basic_XML_DEP|AnyCPU' ">
+    <DefineConstants>BOOTSTRAP_BASIC,NET_1_1,NET_2_0,CONFIGURATION_2_0,XML_DEP</DefineConstants>
+  </PropertyGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="resources/Asterisk.wav"/>
+    <EmbeddedResource Include="resources/Beep.wav"/>
+    <EmbeddedResource Include="resources/Exclamation.wav"/>
+    <EmbeddedResource Include="resources/Hand.wav"/>
+    <EmbeddedResource Include="resources/Question.wav"/>
+  </ItemGroup>
+  <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'basic_XML_DEP|AnyCPU' ">
+    <Reference Include="System.Xml"/>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Target Name="BeforeBuild" DependsOnTargets="SetupProject">
+  </Target>
+</Project>
\ No newline at end of file
diff --git a/mcs/class/corlib/corlib.csproj b/mcs/class/corlib/corlib.csproj
new file mode 100644 (file)
index 0000000..d55c4ec
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Common.targets"/>
+  <ItemGroup>
+    <ResponseFile Include="corlib.dll.sources"/>
+  </ItemGroup>
+  <PropertyGroup>
+    <OutputType>Library</OutputType>
+    <AssemblyName>mscorlib</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <CompilerResponseFile>@(ResponseFile)</CompilerResponseFile>
+    <NoConfig>true</NoConfig>
+    <NoStdLib>true</NoStdLib>
+    <CodePage>65001</CodePage>
+    <UseVSHostingProcess>false</UseVSHostingProcess>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'basic|AnyCPU' ">
+    <DefineConstants>INSIDE_CORLIB,NET_1_1,NET_2_0,LIBC,BOOTSTRAP_BASIC</DefineConstants>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0_bootstrap|AnyCPU' ">
+    <DefineConstants>INSIDE_CORLIB,NET_1_1,NET_2_0,LIBC,BOOTSTRAP_BASIC</DefineConstants>
+  </PropertyGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="resources/collation.core.bin"/>
+    <EmbeddedResource Include="resources/collation.tailoring.bin"/>
+    <EmbeddedResource Include="resources/collation.cjkCHS.bin"/>
+    <EmbeddedResource Include="resources/collation.cjkCHT.bin"/>
+    <EmbeddedResource Include="resources/collation.cjkJA.bin"/>
+    <EmbeddedResource Include="resources/collation.cjkKO.bin"/>
+    <EmbeddedResource Include="resources/collation.cjkKOlv2.bin"/>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Target Name="BeforeBuild" DependsOnTargets="SetupProject">
+  </Target>
+</Project>
\ No newline at end of file