Merge pull request #2215 from kumpera/crash_in_mono_class_get_method_from_name_flags
[mono.git] / mcs / tools / corcompare / gen-infos.rb
index c1d796d2750aa910989c23278f9271126db0e4d0..e87bb7fe40aa5916ed579be9b901e950ecc22b30 100755 (executable)
@@ -9,9 +9,14 @@ $fx1_1 = File.join $fx, "v1.1.4322"
 $fx2_0 = File.join $fx, "v2.0.50727"
 $fx3_0 = 'C:/Program Files/Reference Assemblies/Microsoft/Framework/v3.0'
 $fx3_5 = 'C:/Program Files/Reference Assemblies/Microsoft/Framework/v3.5'
-$fx4_0 = 'C:/Program Files/Reference Assemblies/Microsoft/Framework/.NETFramework/v4.0'
+$fx4_0 = File.join $fx, "v4.0.30319"
+$fx4_0_wpf = File.join $fx4_0, "WPF"
+$fx4_5 = File.join $fx, "v4.0.30319"
+$fx4_5_wpf = File.join $fx4_0, "WPF"
 $sl2_0 = 'C:/Program Files/Microsoft Silverlight/2.0.40115.0'
 $sl2_0sdk = 'C:/Program Files/Microsoft SDKs/Silverlight/v2.0/Libraries/Client/'
+$sl4 = 'C:/Program Files/Microsoft Silverlight/4.0.51204.0'
+$sl4_sdk = 'C:/Program Files/Microsoft SDKs/Silverlight/v4.0/Libraries/Client'
 
 $net_1_1 = [
        "mscorlib",
@@ -105,6 +110,7 @@ $net_3_5 = [
        "System",
        "System.AddIn",
        "System.AddIn.Contract",
+       "System.ComponentModel.DataAnnotations",
        "System.Configuration",
        "System.Core",
        "System.Configuration.Install",
@@ -138,6 +144,8 @@ $net_3_5 = [
        "Microsoft.Build.Framework",
        "Microsoft.Build.Tasks",
        "Microsoft.Build.Utilities",
+       "Microsoft.Build.Conversion.v3.5",
+       "Microsoft.Build.Utilities.v3.5",
        "",
        "System.Configuration.Install",
        "System.Design",
@@ -218,7 +226,6 @@ $net_4_0 = [
        "System.Net",
        "System.Numerics",
        "System.Printing",
-       "System.Runtime",
        "System.Runtime.Caching",
        "System.Runtime.Remoting",
        "System.Runtime.Serialization",
@@ -259,13 +266,137 @@ $net_4_0 = [
        "System.WorkflowServices",
        "System.Xaml",
        "System.Xaml.Hosting",
-       "System.XML",
+       "System.Xml",
        "System.Xml.Linq",
 
        "WindowsBase",
        "XamlBuildTask"
 ]
 
+$net_4_5 = [
+       "mscorlib",
+       
+       "Microsoft.Activities.Build",
+       "Microsoft.Build.Conversion.v4.0",
+       "Microsoft.Build",
+       "Microsoft.Build.Engine",
+       "Microsoft.Build.Framework",
+       "Microsoft.Build.Tasks.v4.0",
+       "Microsoft.Build.Utilities.v4.0",
+       "Microsoft.CSharp",
+       "Microsoft.Data.Entity.Build.Tasks",
+       "Microsoft.JScript",
+       "Microsoft.VisualBasic.Activities.Compiler",
+       "Microsoft.VisualBasic.Compatibility.Data",
+       "Microsoft.VisualBasic.Compatibility",
+       "Microsoft.VisualBasic",
+       "Microsoft.Windows.ApplicationServer.Applications",
+       
+       "PresentationBuildTasks",
+       "PresentationCore",
+       "PresentationFramework.Aero",
+       "PresentationFramework.Classic",
+       "PresentationFramework",
+       "PresentationFramework.Luna",
+       "PresentationFramework.Royale",
+       "PresentationUI",
+       "ReachFramework",
+       "System.Printing",
+       "System.Speech",
+       "WindowsBase",
+       "XamlBuildTask",
+       
+       "System.Activities",
+       "System.Activities.Core.Presentation",
+       "System.Activities.DurableInstancing",
+       "System.Activities.Presentation",
+       "System.AddIn.Contract",
+       "System.AddIn",
+       "System.ComponentModel.Composition",
+       "System.ComponentModel.DataAnnotations",
+       "System.Configuration",
+       "System.Configuration.Install",
+       "System.Core",
+       "System.Data.DataSetExtensions",
+       "System.Data",
+       "System.Data.Entity.Design",
+       "System.Data.Entity",
+       "System.Data.Linq",
+       "System.Data.OracleClient",
+       "System.Data.Services.Client",
+       "System.Data.Services.Design",
+       "System.Data.Services",
+       "System.Data.SqlXml",
+       "System.Deployment",
+       "System.Design",
+       "System.Device",
+       "System.DirectoryServices.AccountManagement",
+       "System.DirectoryServices",
+       "System.DirectoryServices.Protocols",
+       "System",
+       "System.Drawing.Design",
+       "System.Drawing",
+       "System.Dynamic",
+       "System.EnterpriseServices",
+       "System.EnterpriseServices.Thunk",
+       "System.EnterpriseServices.Wrapper",
+       "System.IdentityModel",
+       "System.IdentityModel.Selectors",
+       "System.IdentityModel.Services",
+       "System.IO.Compression",
+       "System.IO.Compression.FileSystem",
+       "System.IO.Log",
+       "System.Management",
+       "System.Management.Instrumentation",
+       "System.Messaging",
+       "System.Net",
+       "System.Net.Http",
+       "System.Net.Http.WebRequest",
+       "System.Numerics",
+       "System.Reflection.context",
+       "System.Runtime.Caching",
+       "System.Runtime.Remoting",
+       "System.Runtime.Serialization",
+       "System.Runtime.Serialization.Formatters.Soap",
+       "System.Security",
+       "System.ServiceModel.Activation",
+       "System.ServiceModel.Activities",
+       "System.ServiceModel.Channels",
+       "System.ServiceModel.Discovery",
+       "System.ServiceModel",
+       "System.ServiceModel.Routing",
+       "System.ServiceModel.Web",
+       "System.ServiceProcess",
+       "System.Threading.Tasks.Dataflow",
+       "System.Transactions",
+       "System.Web.Abstractions",
+       "System.Web.ApplicationServices",
+       "System.Web.DataVisualization.Design",
+       "System.Web.DataVisualization",
+       "System.Web",
+       "System.Web.DynamicData.Design",
+       "System.Web.DynamicData",
+       "System.Web.Entity.Design",
+       "System.Web.Entity",
+       "System.Web.Extensions.Design",
+       "System.Web.Extensions",
+       "System.Web.Mobile",
+       "System.Web.RegularExpressions",
+       "System.Web.Services",
+       "System.Windows.Forms.DataVisualization.Design",
+       "System.Windows.Forms.DataVisualization",
+       "System.Windows.Forms",
+       "System.Windows.Presentation",
+       "System.Workflow.Activities",
+       "System.Workflow.ComponentModel",
+       "System.Workflow.Runtime",
+       "System.WorkflowServices",
+       "System.Xaml",
+       "System.Xaml.Hosting",
+       "System.Xml",
+       "System.Xml.Linq"
+]
+
 $sl_2_0 = [
        "mscorlib",
        "System.Windows",
@@ -283,6 +414,44 @@ $sl_2_0 = [
        "System.Windows.Controls.Data",
 ]
 
+$sl_4 = [
+       "mscorlib",
+       "Microsoft.VisualBasic",
+       "System",
+       "System.Core",
+       "System.Net",
+       "System.Runtime.Serialization",
+       "System.ServiceModel",
+       "System.ServiceModel.Web",
+       "System.Windows",
+       "System.Windows.Browser",
+       "System.Xml",
+       "",
+       "Microsoft.CSharp",
+       "System.ComponentModel.Composition",
+       "System.ComponentModel.Composition.Initialization",
+       "System.ComponentModel.DataAnnotations",
+       "System.Data.Services.Client",
+       "System.Json",
+       "System.Numerics",
+       "System.Runtime.Serialization.Json",
+       "System.ServiceModel.Extensions",
+       "System.ServiceModel.NetTcp",
+       "System.ServiceModel.PollingDuplex",
+       "System.ServiceModel.Syndication",
+       "System.ServiceModel.Web.Extensions",
+       "System.Windows.Controls.Data",
+       "System.Windows.Controls.Data.Input",
+       "System.Windows.Controls",
+       "System.Windows.Controls.Input",
+       "System.Windows.Controls.Navigation",
+       "System.Windows.Data",
+       "System.Xml.Linq",
+       "System.Xml.Serialization",
+       "System.Xml.Utils",
+       "System.Xml.XPath"
+]
+
 def locate(assembly, fxs = nil)
        if fxs
                fxs.each do |fx|
@@ -323,7 +492,7 @@ def process(profile, assemblies, fxs = nil)
 
        assemblies.each do |assembly|
                if assembly != nil and assembly.length > 0
-                       #puts assembly
+                       puts assembly
                        location = locate(assembly, fxs)
                        if location
                                generate(location, assembly)
@@ -348,9 +517,9 @@ end
 
 delete("*.tar.gz")
 
-process("1.1", $net_1_1, [$fx1_1])
 process("2.0", $net_2_0, [$fx2_0])
 process("3.0", $net_3_0, [$fx3_0, $fx2_0])
 process("3.5", $net_3_5, [$fx3_5, $fx2_0])
-process("4.0", $net_4_0, [$fx4_0])
-process("SL2", $sl_2_0, [$sl2_0, $sl2_0sdk])
+process("4.0", $net_4_0, [$fx4_0, $fx4_0_wpf])
+process("4.5", $net_4_5, [$fx4_5, $fx4_5_wpf])
+process("SL4", $sl_4, [$sl4, $sl4_sdk])