diff options
Diffstat (limited to 'xmake/templates/c/module.binary')
7 files changed, 0 insertions, 65 deletions
diff --git a/xmake/templates/c/module.binary/.gitignore b/xmake/templates/c/module.binary/.gitignore deleted file mode 100644 index 152105761..000000000 --- a/xmake/templates/c/module.binary/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Xmake cache -.xmake/ -build/ - -# MacOS Cache -.DS_Store - - diff --git a/xmake/templates/c/module.binary/modules/binary/bar/.gitignore b/xmake/templates/c/module.binary/modules/binary/bar/.gitignore deleted file mode 100644 index 152105761..000000000 --- a/xmake/templates/c/module.binary/modules/binary/bar/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Xmake cache -.xmake/ -build/ - -# MacOS Cache -.DS_Store - - diff --git a/xmake/templates/c/module.binary/modules/binary/bar/src/add.c b/xmake/templates/c/module.binary/modules/binary/bar/src/add.c deleted file mode 100644 index 93fdf0ad8..000000000 --- a/xmake/templates/c/module.binary/modules/binary/bar/src/add.c +++ /dev/null @@ -1,9 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -int main(int argc, char **argv) { - int a = atoi(argv[1]); - int b = atoi(argv[2]); - printf("%d", a + b); - return 0; -} diff --git a/xmake/templates/c/module.binary/modules/binary/bar/src/sub.c b/xmake/templates/c/module.binary/modules/binary/bar/src/sub.c deleted file mode 100644 index ae7b6d1f2..000000000 --- a/xmake/templates/c/module.binary/modules/binary/bar/src/sub.c +++ /dev/null @@ -1,9 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -int main(int argc, char **argv) { - int a = atoi(argv[1]); - int b = atoi(argv[2]); - printf("%d", a - b); - return 0; -} diff --git a/xmake/templates/c/module.binary/modules/binary/bar/xmake.lua b/xmake/templates/c/module.binary/modules/binary/bar/xmake.lua deleted file mode 100644 index d4983d741..000000000 --- a/xmake/templates/c/module.binary/modules/binary/bar/xmake.lua +++ /dev/null @@ -1,10 +0,0 @@ -add_rules("mode.debug", "mode.release") - -target("add") - add_rules("module.binary") - add_files("src/add.c") - -target("sub") - add_rules("module.binary") - add_files("src/sub.c") - diff --git a/xmake/templates/c/module.binary/src/main.c b/xmake/templates/c/module.binary/src/main.c deleted file mode 100644 index ccf4b2a77..000000000 --- a/xmake/templates/c/module.binary/src/main.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <stdio.h> - -int main(int argc, char **argv) { - printf("hello world!\n"); - return 0; -} diff --git a/xmake/templates/c/module.binary/xmake.lua b/xmake/templates/c/module.binary/xmake.lua deleted file mode 100644 index 7df556cb8..000000000 --- a/xmake/templates/c/module.binary/xmake.lua +++ /dev/null @@ -1,15 +0,0 @@ -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} - |
