diff options
| author | xengineering <me@xengineering.eu> | 2025-12-08 21:14:18 +0100 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2025-12-08 21:14:18 +0100 |
| commit | 1324f1efdbc9b34a6821be26a45c152d8afea614 (patch) | |
| tree | 576e472303ba8c80931a4003fe8b76863205774e | |
| parent | 661a5b240af93e14cad722525a746e3f46370515 (diff) | |
| download | sia-server-1324f1efdbc9b34a6821be26a45c152d8afea614.tar sia-server-1324f1efdbc9b34a6821be26a45c152d8afea614.tar.zst sia-server-1324f1efdbc9b34a6821be26a45c152d8afea614.zip | |
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.
| -rw-r--r-- | meson.build | 27 |
1 files changed, 27 insertions, 0 deletions
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, + ], +) |
