-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathxmake.lua
More file actions
70 lines (60 loc) · 1.56 KB
/
xmake.lua
File metadata and controls
70 lines (60 loc) · 1.56 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
set_project("HitagiEngine")
set_languages("c++23")
add_repositories("local-repo xmake")
includes("xmake/rules/*.lua")
add_rules(
"mode.debug",
"mode.release",
"mode.releasedbg",
"copy-dll",
"inject_env"
)
if is_mode("debug") then
add_defines("HITAGI_DEBUG", "_DEBUG")
end
if is_plat("windows") then
set_encodings("utf-8")
if is_mode("debug") then
set_runtimes("MDd")
else
set_runtimes("MD")
end
end
option("profile")
set_default(false)
set_description("Enable tracy profiling.")
option_end()
if has_config("profile") then
add_defines("TRACY_ENABLE")
add_requireconfs("tracy", {configs = {on_demand = true}})
if is_plat("windows") then
add_defines("TRACY_IMPORTS")
end
end
add_requireconfs("*", {configs = {shared = true}})
add_requires(
"taskflow",
"cxxopts",
"nlohmann_json",
"range-v3",
"vulkansdk",
"vulkan-memory-allocator",
"directx-shader-compiler",
"spirv-reflect",
"libpng",
"libjpeg-turbo",
"fx-gltf",
"libsdl3",
"gtest",
"benchmark",
"fmt"
)
add_requires("magic_enum", {configs = {modules = true}})
add_requires("tracy v0.12.1")
add_requires("assimp", {configs = {cxflags = "/EHsc"}})
add_requires("usd", {configs = {toolchains = "msvc"}})
add_requires("spdlog", {configs = {fmt_external = true}})
add_requires("imgui v1.92.1-docking", {configs = {freetype = true, wchar32 = true}})
add_requires("d3d12-memory-allocator", "directx12-agility-sdk", {optional = true})
includes("hitagi/xmake.lua")
includes("examples/**/xmake.lua")