updates to make plugins load
This commit is contained in:
parent
0db3c44b86
commit
10b80332d6
17
Makefile
17
Makefile
|
@ -4,7 +4,7 @@ BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
all: build
|
all: build
|
||||||
./basicwindow
|
./basicwindow
|
||||||
|
|
||||||
build:
|
build: goimports vet
|
||||||
GO111MODULE=off go build -v -x \
|
GO111MODULE=off go build -v -x \
|
||||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
|
@ -17,25 +17,20 @@ install:
|
||||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f gadgetwindow
|
-rm -f basicwindow go.*
|
||||||
|
|
||||||
# embed the toolkit plugins in the binary
|
# embed the toolkit plugins in the binary
|
||||||
embed:
|
embed:
|
||||||
-rm resources/*.so
|
-rm resources/*.so
|
||||||
touch resources/blank.so
|
touch resources/blank.so
|
||||||
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
|
cp -a ~/go/src/go.wit.com/toolkits/*/*.so resources/
|
||||||
|
|
||||||
gocui:
|
gocui:
|
||||||
./basicwindow --gui gocui
|
./basicwindow --gui gocui
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
goimports -w *.go
|
goimports -w *.go
|
||||||
# // to globally reset paths:
|
|
||||||
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
|
|
||||||
|
|
||||||
redomod:
|
|
||||||
rm -f go.*
|
|
||||||
goimports -w *.go
|
|
||||||
GO111MODULE= go mod init
|
|
||||||
GO111MODULE= go mod tidy
|
|
||||||
|
|
||||||
|
vet:
|
||||||
|
@GO111MODULE=off go vet
|
||||||
|
@echo this go binary package builds okay
|
||||||
|
|
Loading…
Reference in New Issue