Dav1dde / glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.
https://glad.dav1d.de/
Other
3.73k stars 440 forks source link

Static library libglad.a has to be generated manually #377

Closed knitterJ closed 2 years ago

knitterJ commented 2 years ago

Can I receive explanation why do I have to generate static library file manually and why it wasn't possible to add lib folder with the file like libglad.a for the generation process?

Dav1dde commented 2 years ago

Two main reasons:

Glad is not supposed to be built/ran everytime you build your application. The intended way is to include the generated code in your project and only update it (or re-generate it), when you actually need to do that (one of the reasons I dont really like the CMake integration). This is also why there is a web generator, so you don't even have to have Python installed.

The other reason is, it simply would not be possible. Compiling code is different on basically every system (that's why autoconfigure, cmake and all these other systems exist). It would be impossible for me to actually compile the code in a way it works everywhere.