diff options
| author | ruki <[email protected]> | 2026-08-09 18:06:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-08-09 18:06:16 +0800 |
| commit | 5f5daf64c504e1103a355f45bf925a5149b03e24 (patch) | |
| tree | af4d584b3c7badc1df56038cdb29099b4f3e99fd /xmake/templates/c/module/binary/xmake.lua | |
| parent | 6ac4ea833193a4319a1eb6e5f588d1877fd48064 (diff) | |
move templates dir
Diffstat (limited to 'xmake/templates/c/module/binary/xmake.lua')
| -rw-r--r-- | xmake/templates/c/module/binary/xmake.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xmake/templates/c/module/binary/xmake.lua b/xmake/templates/c/module/binary/xmake.lua new file mode 100644 index 000000000..7df556cb8 --- /dev/null +++ b/xmake/templates/c/module/binary/xmake.lua @@ -0,0 +1,15 @@ +add_rules("mode.debug", "mode.release") + +add_moduledirs("modules") + +target("${TARGET_NAME}") + set_kind("binary") + add_files("src/*.c") + on_config(function (target) + import("binary.bar") + print("binary: 1 + 1 = %s", bar.add(1, 1)) + print("binary: 1 - 1 = %s", bar.sub(1, 1)) + end) + +${FAQ} + |
