summaryrefslogtreecommitdiff
path: root/tests/projects/other/native_module/hello/xmake.lua
blob: 211e839d37f1ffc75b6f39883d98f175a5598837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
add_rules("mode.debug", "mode.release")

add_moduledirs("modules")

target("test")
    set_kind("binary")
    add_files("src/*.cpp")
    on_config(function (target)
        import("shared.foo", {always_build = true})
        import("binary.bar")
        print("foo: 1 + 1 = %d", foo.add(1, 1))
        print("foo: 1 - 1 = %d", foo.sub(1, 1))
        print("bar: 1 + 1 = %s", bar.add(1, 1))
        print("bar: 1 - 1 = %s", bar.sub(1, 1))
    end)