summaryrefslogtreecommitdiff
path: root/tests/console_rust/xmake.lua
blob: 57d18582b4adac69dd5c2aceaaf3d64d085f3c8f (plain)
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
-- the debug mode
if is_mode("debug") then
    
    -- enable the debug symbols
    set_symbols("debug")

    -- disable optimization
    set_optimize("none")
end

-- the release mode
if is_mode("release") then

    -- set the symbols visibility: hidden
    set_symbols("hidden")

    -- enable fastest optimization
    set_optimize("fastest")

    -- strip all symbols
    set_strip("all")
end

-- add target
target("console_rust")

    -- set kind
    set_kind("binary")

    -- add files
    add_files("src/*.rs")