-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
43 lines (34 loc) · 942 Bytes
/
xmake.lua
File metadata and controls
43 lines (34 loc) · 942 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
31
32
33
34
35
36
37
38
39
40
41
42
43
set_project("Btk")
-- Setup the environment
add_rules("mode.debug","mode.release", "mode.asan", "mode.releasedbg")
add_includedirs("include")
add_includedirs("src")
set_languages("c++17")
add_cxxflags("cl::/utf-8")
-- Mode check
if is_mode("debug") then
if is_plat("linux") then
add_cxxflags("-rdynamic")
add_cflags("-rdynamic")
add_ldflags("-rdynamic")
end
end
-- Main component
includes("src/core")
includes("src/widgets")
includes("src/platform")
-- Plugins
includes("src/plugins")
-- Tests
includes("tests")
-- Main Target
target("btk")
set_kind("static")
add_deps("btk_core", "btk_platform", "btk_widgets")
-- Package exports
add_headerfiles("include/(Btk/widgets/*.hpp)")
add_headerfiles("include/(Btk/plugins/*.hpp)")
add_headerfiles("include/(Btk/detail/*.hpp)")
add_headerfiles("include/(Btk/signal/*.hpp)")
add_headerfiles("include/(Btk/*.hpp)")
target_end()