summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build27
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,
+ ],
+)