-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
44 lines (39 loc) · 1.12 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
add_rules("mode.debug", "mode.release")
task("configure")
on_run(function ()
os.execv("xmake", {"project", "-k", "compile_commands"}, {stdout = outfile, stderr = errfile})
os.execv("xmake", {"project", "-k", "cmakelists"}, {stdout = outfile, stderr = errfile})
end)
set_menu {
usage = "xmake configure",
description = "Configure the project and generate CMake files",
options = {}
}
task_end()
set_languages("c++17")
add_requires("glfw")
add_requires("spdlog v1.11.0")
add_requires("raylib 4.5.0")
add_requires("entt v3.9.0")
add_requires("imgui v1.89.6-docking")
target("serum-core")
set_kind("static")
add_includedirs(
"core/include",
"vendor/raylib-cpp/include",
{ public = true }
)
add_packages("glfw", "raylib", "entt", "spdlog", { public = true })
add_files("core/src/*.cpp")
target("serum-editor")
set_kind("binary")
add_packages("imgui")
add_deps("serum-core")
add_includedirs(
"vendor/rlImGui",
"editor/include"
)
add_files(
"vendor/rlImGui/rlImGui.cpp",
"editor/src/*.cpp"
)