build: initial Meson setup

This commit is contained in:
Bruno BELANYI 2020-12-21 14:40:20 +01:00
commit f02ab2f8fd
2 changed files with 26 additions and 0 deletions

19
meson.build Normal file
View file

@ -0,0 +1,19 @@
project(
'sudoku',
'c',
version : '0.1',
default_options : [
'warning_level=3',
'c_std=c99',
],
)
sources = [
'src/main.c',
]
executable(
'sudoku',
sources : sources,
c_args : '-D_POSIX_C_SOURCE=200809L',
)

7
src/main.c Normal file
View file

@ -0,0 +1,7 @@
#include <stdio.h>
int main(void) {
puts("Hello world");
return 0;
}