mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
working on OpenGL loading
This commit is contained in:
12
xmake.lua
12
xmake.lua
@@ -46,6 +46,10 @@ local backends = {
|
||||
else
|
||||
remove_files("Sources/Backends/OpenGL/WGL/**.c")
|
||||
end
|
||||
end,
|
||||
before_build = function(target, os)
|
||||
local gles_dir = target:pkg("opengl-headers"):installdir()
|
||||
os.runv("python", {"Scripts/GenerateOpenGLDefs.py", "Sources/Backends/OpenGL/OpenGLFunctions.h", gles_dir .. "/include/GLES3/gl31.h", "Sources/Backends/OpenGL/OpenGLWraps.h"})
|
||||
end
|
||||
},
|
||||
}
|
||||
@@ -124,6 +128,14 @@ target("pulse_gpu")
|
||||
add_defines("PULSE_PLAT_WASM")
|
||||
end
|
||||
|
||||
before_build(function(target)
|
||||
for name, module in pairs(backends) do
|
||||
if module ~= nil and has_config(module.option) and module.before_build then
|
||||
module.before_build(target, os)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
for name, module in pairs(backends) do
|
||||
if module ~= nil and has_config(module.option) then
|
||||
if module.packages then
|
||||
|
||||
Reference in New Issue
Block a user