summaryrefslogtreecommitdiff
path: root/tests/projects/hybrid/static_library/xmake.lua
blob: 5d0ef14940a20e87d57680d5ceb9b629249ed484 (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
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