diff options
| author | ruki <[email protected]> | 2024-07-25 00:54:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-25 00:54:13 +0800 |
| commit | c7c412f6458f5aceeb02e9bfc292dc7aac0852d3 (patch) | |
| tree | 90fc1076e7dd5a2971d7033bee28825a80e59477 /tests/projects/other/native_module/hello/xmake.lua | |
| parent | 039cd576af844dc146b7517160648765b90b81b1 (diff) | |
move autogen tests
Diffstat (limited to 'tests/projects/other/native_module/hello/xmake.lua')
| -rw-r--r-- | tests/projects/other/native_module/hello/xmake.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/projects/other/native_module/hello/xmake.lua b/tests/projects/other/native_module/hello/xmake.lua new file mode 100644 index 000000000..211e839d3 --- /dev/null +++ b/tests/projects/other/native_module/hello/xmake.lua @@ -0,0 +1,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) + |
