summaryrefslogtreecommitdiff
path: root/tests/projects/hybrid/static_library/xmake.lua
blob: 560343ced7680e2e2064b3bfff6bece7b522a701 (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
add_rules("mode.release", "mode.debug")

target("test")
    set_kind("static")
    add_files("src/*.c", "src/*.cpp")
    if is_plat("macosx") then
        add_files("src/*.m", "src/*.mm")
    end

target("demo")
    set_kind("binary")
    add_deps("test")
    add_files("src/main.cpp")
    if is_plat("macosx") then
        add_defines("MACOSX")
    end

--[[
target("demo2")
    set_kind("binary")
    add_files("src/main2.cpp", "src/*.d")
    if not is_plat("macosx") then
        set_enabled(false)
    end
]]