test1
This commit is contained in:
commit
6848796fb3
4 changed files with 33 additions and 0 deletions
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild",
|
||||
"C_Cpp.default.compileCommands": "/home/thek0tyara/Documents/projects/c/builddir/compile_commands.json"
|
||||
}
|
||||
19
meson.build
Normal file
19
meson.build
Normal file
|
|
@ -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
|
||||
]
|
||||
)
|
||||
5
src/main.c
Normal file
5
src/main.c
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include "main.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
return 0;
|
||||
}
|
||||
5
src/main.h
Normal file
5
src/main.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#ifndef __main_h__
|
||||
#define __main_h__
|
||||
|
||||
#include <threads.h>
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue