diff options
| author | ruki <[email protected]> | 2024-04-05 16:21:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-05 16:21:00 +0800 |
| commit | 982a307fa363ae022554df2afaa3f922c5bb0986 (patch) | |
| tree | 279590bb6068b94eeade11693217b11d21e0db35 /tests/projects/other/native_module/xmake.lua | |
| parent | 282e468d6cf18473bac127d260fe802e7bb64392 (diff) | |
| parent | 5297e2329198a683400870382699af2f37d25ec2 (diff) | |
Merge pull request #4932 from xmake-io/native
Improve native shared module to remove lua package dependence
Diffstat (limited to 'tests/projects/other/native_module/xmake.lua')
| -rw-r--r-- | tests/projects/other/native_module/xmake.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/projects/other/native_module/xmake.lua b/tests/projects/other/native_module/xmake.lua index e403454bb..211e839d3 100644 --- a/tests/projects/other/native_module/xmake.lua +++ b/tests/projects/other/native_module/xmake.lua @@ -6,11 +6,11 @@ target("test") set_kind("binary") add_files("src/*.cpp") on_config(function (target) - import("shared.foo") - import("binary.bar", {always_build = true}) - print("shared: 1 + 1 = %d", foo.add(1, 1)) - print("shared: 1 - 1 = %d", foo.sub(1, 1)) - print("binary: 1 + 1 = %s", bar.add(1, 1)) - print("binary: 1 - 1 = %s", bar.sub(1, 1)) + 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) |
