From 1324f1efdbc9b34a6821be26a45c152d8afea614 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 8 Dec 2025 21:14:18 +0100 Subject: Add Meson build system Meson as a general purpose build system is mightier than what the Go tool can provide. Furthermore it makes it possible to unify build, run and other workflows across projects with different languages. --- meson.build | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..d264c35 --- /dev/null +++ b/meson.build @@ -0,0 +1,27 @@ +project('sia-server') + +go = find_program('go', required : true) + +sia_server = custom_target( + input : [ + meson.current_source_dir() / 'main.go', + ], + output : 'sia-server', + command : [ + go, + 'build', + '-o', + '@OUTPUT@', + '@INPUT@', + ], + depend_files : [ + ], + build_by_default : true, +) + +run_target( + 'run', + command : [ + sia_server, + ], +) -- cgit v1.2.3-70-g09d2