From 6848796fb3f9bd549c41a9123ed5399c9fceb45b Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Sun, 15 Jun 2025 00:02:51 +0300 Subject: [PATCH] test1 --- .vscode/settings.json | 4 ++++ meson.build | 19 +++++++++++++++++++ src/main.c | 5 +++++ src/main.h | 5 +++++ 4 files changed, 33 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 meson.build create mode 100644 src/main.c create mode 100644 src/main.h diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e99a0f7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild", + "C_Cpp.default.compileCommands": "/home/thek0tyara/Documents/projects/c/builddir/compile_commands.json" +} \ No newline at end of file diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..d844142 --- /dev/null +++ b/meson.build @@ -0,0 +1,19 @@ +project( + 'thread_tree', + 'C', + version: '0.0.1', + default_options: [ 'warning_level=3' ] +) + +cmd = run_command('/usr/bin/find', 'src', '-name', '*.c') +c_files = cmd.stdout().splitlines() +cmd = run_command('/usr/bin/find', 'src', '-name', '*.h') +h_files = cmd.stdout().splitlines() + +executable( + 'thread_tree', + sources: [ + c_files, + h_files + ] +) \ No newline at end of file diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..87f6699 --- /dev/null +++ b/src/main.c @@ -0,0 +1,5 @@ +#include "main.h" + +int main(int argc, char *argv[]) { + return 0; +} diff --git a/src/main.h b/src/main.h new file mode 100644 index 0000000..f3a729f --- /dev/null +++ b/src/main.h @@ -0,0 +1,5 @@ +#ifndef __main_h__ +#define __main_h__ + +#include +#endif \ No newline at end of file