diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-29 14:50:49 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-29 14:50:49 +1000 |
commit | baf787b9eb742b0c52ecf8c9ae319dbfb4ea0f1b (patch) | |
tree | a3da522dda3c173bc7de13842c98bbb419324efa /xmake.lua | |
parent | 824579234685171f0ca78674c7c18dfe6b43fe6e (diff) |
opengl clear color working
Diffstat (limited to 'xmake.lua')
-rw-r--r-- | xmake.lua | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -17,11 +17,10 @@ elseif is_mode("release") then add_defines("CRELEASE") end - -- Platform defines and system packages if is_plat("linux") then add_defines("CEL_PLATFORM_LINUX") - add_syslinks("vulkan", "dl", "X11", "pthread") + add_syslinks("dl", "X11", "pthread") elseif is_plat("windows") then add_defines("CEL_PLATFORM_WINDOWS") add_syslinks("user32", "gdi32", "kernel32", "shell32") @@ -95,12 +94,11 @@ rule("compile_glsl_frag_shaders") end) -- TODO: Metal shaders compilation --- - -- common configuration for both static and shared libraries target("core_config") set_kind("static") -- kind is required but you can ignore it since it's just for common settings add_packages("local_glfw") + add_defines("CEL_REND_BACKEND_OPENGL") add_includedirs("deps/cgltf", {public = true}) add_includedirs("deps/glfw-3.3.8/include/GLFW", {public = true}) add_includedirs("deps/glad/include", {public = true}) @@ -172,6 +170,7 @@ target("tri") target("cube") set_kind("binary") set_group("examples") + -- add_defines("CEL_REND_BACKEND_OPENGL") add_deps("core_static") add_files("examples/cube/ex_cube.c") set_rundir("$(projectdir)") |