summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/meson.build15
-rw-r--r--tools/websocket.go9
2 files changed, 24 insertions, 0 deletions
diff --git a/tools/meson.build b/tools/meson.build
new file mode 100644
index 0000000..1322ce0
--- /dev/null
+++ b/tools/meson.build
@@ -0,0 +1,15 @@
+websocket_linux_amd64 = custom_target(
+ input : [
+ meson.current_source_dir() / 'websocket.go',
+ ],
+ output : 'websocket-linux-amd64',
+ env : {'GOOS': 'linux', 'GOARCH': 'amd64'},
+ command : [
+ go,
+ 'build',
+ '-o',
+ '@OUTPUT@',
+ '@INPUT@',
+ ],
+ build_by_default : true,
+)
diff --git a/tools/websocket.go b/tools/websocket.go
new file mode 100644
index 0000000..e429a6d
--- /dev/null
+++ b/tools/websocket.go
@@ -0,0 +1,9 @@
+package main
+
+import (
+ "fmt"
+)
+
+func main() {
+ fmt.Println("Websockets are cool.")
+}