-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxmake.lua
42 lines (29 loc) · 1007 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- the debug mode
if is_mode("debug") then
-- enable the debug symbols
set_symbols("debug")
-- disable optimization
set_optimize("none")
end
target("imgui")
set_kind("shared")
add_linkdirs("/usr/lib/x86_64-linux-gnu/","/usr/local/lib")
-- 添加链接的lib名称
add_links("glfw3","GL","Xrandr","X11","Xi","Xxf86vm","pthread","dl","Xinerama","m","rt","Xcursor")
add_headers("src/imgui/*.h")
add_files("src/imgui/*.cpp")
target("hello")
set_kind("binary")
-- 添加链接的目录 方便ld寻找
-- add_linkdirs("/usr/lib/x86_64-linux-gnu/","/usr/local/lib")
-- 添加链接的lib名称
-- add_links("glfw3","GL","Xrandr","X11","Xi","Xxf86vm","pthread","dl","Xinerama","m","rt","Xcursor")
add_headers("src/imgui/*.h")
-- set_headerdir("src/imgui")
-- add files
add_files("src/main.cpp")
add_cxxflags("-fPIC")
add_deps("imgui")
-- target("demo")
-- set_kind("binary")
-- add_files("demo/*.c")