Skip to content

Commit

Permalink
meson initして作成されたデータ
Browse files Browse the repository at this point in the history
  • Loading branch information
steelpipe75 committed May 26, 2024
1 parent 09eec84 commit e93185c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions c_meson/c_meson.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>

#define PROJECT_NAME "c_meson"

int main(int argc, char **argv) {
if(argc != 1) {
printf("%s takes no arguments.\n", argv[0]);
return 1;
}
printf("This is project %s.\n", PROJECT_NAME);
return 0;
}
8 changes: 8 additions & 0 deletions c_meson/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project('c_meson', 'c',
version : '0.1',
default_options : ['warning_level=3'])

exe = executable('c_meson', 'c_meson.c',
install : true)

test('basic', exe)

0 comments on commit e93185c

Please sign in to comment.