public readbuildfile ( string absfilepath ) : KeyValuePair |
||
absfilepath | string | |
return | KeyValuePair |
private void button1_Click(object sender, EventArgs e) { //this is also horrible practice, and will be fixed after the demo CmakeGen cgen = new CmakeGen(); XmlReader reader = XmlReader.Instance; KeyValuePair <Graph <string>, Dictionary <string, BuildElement> > buildinfo = new KeyValuePair <Graph <string>, Dictionary <string, BuildElement> >(); buildinfo = reader.readbuildfile(textBox2.Text + "\\cbf.xml"); cgen.CreateCmakeList(textBox2.Text, "CMakeLists.txt", buildinfo.Value, buildinfo.Key); }
static void Main(string[] args) { //Initialize singleton generator VSGen vcprojgen = new VSGen(); XmlReader reader = new XmlReader(); reader.readbuildfile("C:\\Users\\kotarf\\Documents\\Unmake\\Unmake\\ProjectGenerator\\Sample_Build_System\\cbf.xml"); vcprojgen.CreateTestSolution(@"C:\temp\FooBar", "Foo"); vcprojgen.CreateTestProject(@"C:\temp\FooBarFoo.sln", "myproj", VSGen.TestProjectType.Acceptance); /* Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); * */ }
static void Main(string[] args) { //Initialize singleton generators //VSGen vcprojgen = new VSGen(); //CmakeGen cgen = new CmakeGen(); XmlReader reader = XmlReader.Instance; KeyValuePair <Graph <string>, Dictionary <string, BuildElement> > buildinfo = new KeyValuePair <Graph <string>, Dictionary <string, BuildElement> >(); buildinfo = reader.readbuildfile("C:\\Users\\kotarf\\Documents\\Unmake\\Unmake\\ProjectGenerator\\Sample_Build_System_2\\cbf.xml"); //vcprojgen.CreateTestSolution(@"C:\temp\FooBar", "Foo"); //vcprojgen.CreateTestProject("C:\temp\FooBarFoo.sln", "myproj", VSGen.TestProjectType.Acceptance); //cgen.CreateCmakeList("C:\\Users\\kotarf\\Documents\\Unmake\\Unmake\\ProjectGenerator\\Sample_Build_System_2\\", "clists.txt", buildinfo.Value, buildinfo.Key); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); }