-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
30 lines (25 loc) · 1011 Bytes
/
Copy pathxmake.lua
File metadata and controls
30 lines (25 loc) · 1011 Bytes
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
add_rules("mode.debug", "mode.release")
add_repositories("embrik-repo xmake/repo")
add_requires("flecs", {configs = {debug = is_mode("debug")}})
add_requires("box2d", "clay", "enet", "glm", "libsdl3", "sdl3webgpu", "wgpu-native")
add_requires("miniaudio", "stb", "glaze")
add_requires("luau", "luabridge3")
target("embrik")
if is_plat("android") then
set_kind("shared")
set_basename("main")
else
set_kind("binary")
end
set_languages("c23", "c++23")
set_rundir("$(projectdir)")
add_includedirs("include", "include/library")
add_files("src/**.cpp")
add_packages("box2d", "clay", "enet", "flecs", "glm", "libsdl3", "sdl3webgpu", "wgpu-native")
add_packages("miniaudio", "stb", "glaze", "luau", "luabridge3")
if is_plat("macosx") then
add_frameworks("Metal", "QuartzCore", "Cocoa", "AudioToolbox", "CoreAudio", "AudioUnit")
end
if is_plat("android") then
add_syslinks("android", "log", "GLESv2", "OpenSLES", "dl")
end