示例#1
0
文件: Program.cs 项目: tmds/Tmds.GLib
        static void Main(string[] args)
        {
            NamespaceCollection lib = GirParser.Parse("../../gir-files", "Gtk-3.0");
            Generator           gen = new Generator(lib);

            foreach (var ns in lib.Namespaces)
            {
                string code = gen.Generate(ns.Name);
                File.WriteAllText($"../Tmds.GLib/Generated/{ns.Name}.Generated.cs", code);
                //Console.WriteLine(gen.Generate(ns));
            }
        }
示例#2
0
 public Namespace(NamespaceCollection nsc, string name)
 {
     NamespaceCollection = nsc;
     Name = name;
 }
示例#3
0
文件: Program.cs 项目: tmds/Tmds.GLib
 public Generator(NamespaceCollection namespaces)
 {
     _namespaces = namespaces;
 }