[RTL]
[reactos.git] / reactos / tools / sysgen / SysGen.BuildEngine / Backends / WarningReport / WarningReport.cs
1 using System;
2 using System.Web.UI;
3 using System.IO;
4 using System.Collections.Generic;
5 using System.Text;
6 using System.Xml;
7
8 using SysGen.BuildEngine.Backends;
9 using SysGen.RBuild.Framework;
10 using SysGen.BuildEngine;
11
12 namespace SysGen.BuildEngine.Backends
13 {
14 public class WarningReport : Backend
15 {
16 public WarningReport(SysGenEngine sysgen)
17 : base(sysgen)
18 {
19 }
20
21 protected override string FriendlyName
22 {
23 get { return "Warning report"; }
24 }
25
26 protected override void Generate()
27 {
28 //using (StreamWriter sw = new StreamWriter(@"C:\roswarning.txt"))
29 //{
30 // foreach (RBuildModule module in Project.Modules)
31 // {
32 // if (module.Unicode == false)
33 // {
34 // if ((module.Defines.ContainsKey("UNICODE")) ||
35 // (module.Defines.ContainsKey("_UNICODE")) ||
36 // (module.Defines.ContainsKey("_UNICODE_")))
37 // {
38 // sw.WriteLine("- Module '{0}' has unicode defines but 'Unicode' property set to 'False'", module.Name);
39 // }
40 // }
41
42 // foreach (KeyValuePair<string, string> define in Project.Defines)
43 // {
44 // if (module.Defines.ContainsKey(define.Key))
45 // {
46 // sw.WriteLine("- Module '{0}' already define '{1}' inherited from project ", module.Name, define.Key);
47 // }
48 // }
49
50 // foreach (string flag in Project.CompilerFlags)
51 // {
52 // if (module.CompilerFlags.Contains(flag))
53 // {
54 // sw.WriteLine("- Module '{0}' already has compiler flag '{1}' inherited from project ", module.Name, flag);
55 // }
56 // }
57
58 // foreach (string flag in Project.LinkerFlags)
59 // {
60 // if (module.LinkerFlags.Contains(flag))
61 // {
62 // sw.WriteLine("- Module '{0}' already has linker flag '{1}' inherited from project ", module.Name, flag);
63 // }
64 // }
65
66 // foreach (RBuildFolder include in module.IncludeFolders)
67 // {
68 // if (Project.IncludeFolders.Contains(include))
69 // {
70 // sw.WriteLine("- Module '{0}' already has include folder '{1}' inherited from project ", module.Name, include.RelativePath);
71 // }
72
73 // if (SysGen.RBuildFolderExists(include) == false)
74 // {
75 // sw.WriteLine("- Module '{0}' includes folder '{1}' which could not be found ", module.Name, include.RelativePath);
76 // }
77 // }
78 // }
79 //}
80 }
81 }
82 }