-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
28 lines (26 loc) · 883 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
--- @diagnostic disable:undefined-global
add_rules('mode.debug', 'mode.release')
includes('vendor/imgui')
includes('vendor/glfw')
includes('vendor/glfw3webgpu')
-- target
target('wgpu-imgui-app')
set_kind('binary')
set_targetdir('build')
add_defines('RESOURCE_DIR="../resources"')
add_defines('WGPU_TARGET=WGPU_TARGET_LINUX_X11')
add_defines('GLFW_EXPOSE_NATIVE_X11')
add_defines('WEBGPU_BACKEND_WGPU')
add_files('src/**.cpp')
add_includedirs('vendor', 'src')
add_includedirs('vendor/glfw')
add_includedirs('vendor/imgui')
add_includedirs('vendor/glfw3webgpu')
add_includedirs('vendor/webgpu/include/webgpu', 'vendor/webgpu/include')
add_deps('glfw')
add_deps('glfw3webgpu')
add_deps('imgui')
add_linkdirs('vendor/webgpu/bin/linux-x86_64')
add_links('wgpu', 'vulkan')
add_links('tbb', 'pthread')
add_links('X11', 'Xrandr', 'Xrender', 'Xinerama', 'Xfixes', 'Xcursor', 'Xi', 'Xext')