summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-14 21:48:44 -0600
committerJeff Carr <[email protected]>2024-11-14 21:48:44 -0600
commitbb3802857b92e760bdc83ca2de63fa727dc7b0db (patch)
tree6051a83739847bc2801a90291d3466266b8aa400
parentc02399708ec1668cd7b3957dbd11fdef8fb82044 (diff)
try adding //go:plugin to golangv0.22.3
-rw-r--r--Makefile14
-rw-r--r--main.go3
2 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ff43e7c..a08be0c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,19 @@
+VERSION = $(shell git describe --tags)
+
all: plugin
ldd ../gocui.so
plugin:
- GO111MODULE=off go build -v -buildmode=plugin -o ../gocui.so
+ GO111MODULE=off go build -v -work -buildmode=plugin -o ../gocui.so
+
+# for testing custom golang
+custom:
+ # GO111MODULE=off go build -v
+ GO111MODULE=off go build -v -work -buildmode=blah
-pluginreal:
- go build -v -buildmode=plugin -o ~/go/lib/toolkits/gocui.so
+official:
+ mkdir -p ~/go/lib/go.wit.com/toolkits/gocui/
+ go build -v -x -buildmode=plugin -o ~/go/lib/go.wit.com/toolkits/gocui/gocui-${VERSION}.so
# Test the README.md & doc.go file
# this runs pkgsite, the binary that does dev.go.dev
diff --git a/main.go b/main.go
index 9ed14ff..50383fa 100644
--- a/main.go
+++ b/main.go
@@ -1,7 +1,10 @@
+//gjcarro:pjcarrlugin
+
// Copyright 2014 The gocui Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+
package main
import (