diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-29 14:10:55 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-29 14:10:55 +1000 |
commit | 824579234685171f0ca78674c7c18dfe6b43fe6e (patch) | |
tree | af7d9de2d81fb0b16db26ee09ea9456aae248ec9 /xmake.lua | |
parent | 8d116bd23d9441e33cb3377e90c08169109b438a (diff) |
start adding opengl backend
Diffstat (limited to 'xmake.lua')
-rw-r--r-- | xmake.lua | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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}) |