diff options
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} + |
