summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/tbox.shared/project/xmake.lua
blob: 1cd6ebc7993a4334d44cc05918db61ef95867484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set_xmakever("2.3.6")
set_warnings("all", "error")
set_languages("c99", "cxx11")
add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing")
add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing")

add_rules("mode.release", "mode.debug")
add_requires("tbox", {debug = is_mode("debug")})

if is_plat("windows") then
    if is_mode("release") then
        add_cxflags("-MT")
    elseif is_mode("debug") then
        add_cxflags("-MTd")
    end
    add_ldflags("-nodefaultlib:msvcrt.lib")
end

includes("src/${TARGETNAME}", "src/${TARGETNAME}_demo")

${FAQ}