From e93185c87114f8293149f5f1c935dace9a487d8f Mon Sep 17 00:00:00 2001 From: Nishizaki Date: Sun, 26 May 2024 21:13:26 +0900 Subject: [PATCH] =?UTF-8?q?meson=20init=E3=81=97=E3=81=A6=E4=BD=9C?= =?UTF-8?q?=E6=88=90=E3=81=95=E3=82=8C=E3=81=9F=E3=83=87=E3=83=BC=E3=82=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c_meson/c_meson.c | 12 ++++++++++++ c_meson/meson.build | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 c_meson/c_meson.c create mode 100644 c_meson/meson.build diff --git a/c_meson/c_meson.c b/c_meson/c_meson.c new file mode 100644 index 0000000..60ef69c --- /dev/null +++ b/c_meson/c_meson.c @@ -0,0 +1,12 @@ +#include + +#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; +} diff --git a/c_meson/meson.build b/c_meson/meson.build new file mode 100644 index 0000000..5bfb639 --- /dev/null +++ b/c_meson/meson.build @@ -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)