summaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-29 14:10:55 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-29 14:10:55 +1000
commit824579234685171f0ca78674c7c18dfe6b43fe6e (patch)
treeaf7d9de2d81fb0b16db26ee09ea9456aae248ec9 /xmake.lua
parent8d116bd23d9441e33cb3377e90c08169109b438a (diff)
start adding opengl backend
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/xmake.lua b/xmake.lua
index 40ef961..09082ff 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -62,6 +62,7 @@ local core_sources = {
"src/physics/*.c",
"src/renderer/*.c",
"src/renderer/backends/*.c",
+ "src/renderer/backends/opengl/*.c",
"src/resources/*.c",
"src/std/*.c",
"src/std/containers/*.c",
@@ -113,17 +114,18 @@ target("core_config")
add_includedirs("src/physics/", {public = true})
add_includedirs("src/renderer/", {public = true})
add_includedirs("src/renderer/backends/", {public = true})
+ add_includedirs("src/renderer/backends/opengl", {public = true})
add_includedirs("src/resources/", {public = true})
add_includedirs("src/std/", {public = true})
add_includedirs("src/std/containers", {public = true})
add_includedirs("src/systems/", {public = true})
add_files("src/empty.c") -- for some reason we need this on Mac so it doesnt call 'ar' with no files and error
- add_rules("compile_glsl_vert_shaders")
- add_rules("compile_glsl_frag_shaders")
- add_files("assets/shaders/triangle.vert")
- add_files("assets/shaders/triangle.frag")
- add_files("assets/shaders/cube.vert")
- add_files("assets/shaders/cube.frag")
+ -- add_rules("compile_glsl_vert_shaders")
+ -- add_rules("compile_glsl_frag_shaders")
+ -- add_files("assets/shaders/triangle.vert")
+ -- add_files("assets/shaders/triangle.frag")
+ -- add_files("assets/shaders/cube.vert")
+ -- add_files("assets/shaders/cube.frag")
-- add_files("assets/shaders/*.frag")
if is_plat("windows") then
add_includedirs("$(env VULKAN_SDK)/Include", {public = true})