-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
33 lines (27 loc) · 1002 Bytes
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set_project("15672_vulkan_engine")
set_warnings("all")
set_languages("c++20")
add_rules("mode.debug","mode.releasedbg", "mode.release")
add_requires("vulkansdk", "glfw", "libpng")
add_requires("glslang", {configs = {binaryonly = true}})
target("Engine")
set_kind("static")
add_packages("vulkansdk", "glfw", "libpng")
-- set_pcheader("src/Engine/pch.hpp")
add_headerfiles("src/Engine/**/*.hpp")
add_headerfiles("src/Engine/**.hpp")
add_includedirs("src/Engine")
add_files("src/Engine/**/*.cpp")
add_files("src/Engine/**.cpp")
target("Main")
set_default(true)
set_kind("binary")
add_packages("vulkansdk", "glfw", "libpng")
-- set_pcheader("src/Engine/pch.hpp")
add_headerfiles("src/Main/**.hpp")
add_rules("utils.glsl2spv", {outputdir = "shader_build"})
add_includedirs("src/Engine")
add_files("src/Main/**.cpp")
add_files("src/Main/shader/*.vert", "src/Main/shader/*.frag")
add_deps("Engine")
set_rundir("$(projectdir)")