-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
23 lines (20 loc) · 747 Bytes
/
Program.cs
File metadata and controls
23 lines (20 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.IO;
using System.Linq;
using HtmlAgilityPack;
namespace DotGLFW.Generator;
public class Program
{
private static void Main(string[] args)
{
string glfwPath = args[0]; // Path to the GLFW source code
string generatedPath = args[1]; // Path to the generated source code
string licensePath = args[2]; // Path to the license file
string docUrl = args[3]; // URL to the GLFW documentation
var glfwProvider = new GLFWProvider(glfwPath);
var sourceWriter = new SourceWriter(generatedPath);
var license = File.ReadAllText(licensePath);
var generator = new Generator(new ModelProvider(glfwProvider), sourceWriter, docUrl, license);
generator.Generate();
}
}