-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathxmake.lua
More file actions
56 lines (43 loc) · 1.24 KB
/
Copy pathxmake.lua
File metadata and controls
56 lines (43 loc) · 1.24 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
local has_vulkansdk = os.getenv("VULKAN_SDK") ~= nil
set_project("Game")
set_version("0.0.1")
includes("xmake/rules/mode")
includes("xmake/rules/platform")
set_allowedmodes("debug", "release", "package")
set_allowedarchs("x64", "wasm32")
set_allowedplats("windows", "wasm")
add_rules("wv.debug", "wv.release", "wv.package")
set_objectdir("./build/obj/$(plat)/$(mode)")
set_targetdir("./game/$(plat)")
if is_plat("windows") then
add_rules("wv.platform.windows")
add_defines(
--"TRACY_ENABLE",
"WV_SUPPORT_OPENGL",
"WV_SUPPORT_OPENGLES",
"WV_SUPPORT_FASTGLTF",
"WV_SUPPORT_SDL", "WV_SUPPORT_SDL3",
"WV_SUPPORT_IMGUI",
"WV_SUPPORT_TRACY",
"WV_SUPPORT_JOLT"
)
if has_vulkansdk then
add_defines(
"WV_SUPPORT_VULKAN",
"VK_NO_PROTOTYPES",
"IMGUI_IMPL_VULKAN_USE_VOLK",
"IMGUI_IMPL_VULKAN_USE_LOADER"
)
add_requires(
"vulkan-headers",
"volk",
"vulkan-memory-allocator"
)
end
add_requires("fastgltf", "libsdl3", "joltphysics")
if not is_mode("package") then
add_requires("tracy")
end
end
includes( "src/engine" )
includes( "src/game" )