2024-01-03 16:53:18 -06:00
|
|
|
.PHONY: debian nocui gocui andlabs
|
2024-01-01 16:11:54 -06:00
|
|
|
|
|
|
|
all:
|
|
|
|
# reset
|
|
|
|
@echo
|
|
|
|
@echo This Requires working IPv6
|
|
|
|
@echo
|
|
|
|
ifeq ($(GO111MODULE),)
|
|
|
|
@echo
|
|
|
|
@echo If you are compiling this here, you probably want to set GO111MODULE
|
|
|
|
@echo
|
|
|
|
@echo Setting GO111MODULE means that the version you are compiling has plugins
|
|
|
|
@echo that get compiled against this current running version of the code
|
|
|
|
@echo Otherwise, the GO language plugins can complain about being compiled against
|
|
|
|
@echo mis-matched versions
|
|
|
|
@echo
|
|
|
|
@echo export GO111MODULE=off
|
|
|
|
@echo
|
|
|
|
sleep 3
|
|
|
|
endif
|
|
|
|
make nocui gocui andlabs
|
|
|
|
|
|
|
|
nocui:
|
|
|
|
go build -C nocui -v -buildmode=plugin -o ../nocui.so
|
|
|
|
|
|
|
|
gocui:
|
|
|
|
go build -C gocui -v -buildmode=plugin -o ../gocui.so
|
|
|
|
|
|
|
|
andlabs:
|
|
|
|
go build -C andlabs -v -buildmode=plugin -o ../andlabs.so
|
|
|
|
|
|
|
|
something:
|
|
|
|
ifeq (,$(wildcard go.mod))
|
|
|
|
go mod init gui
|
|
|
|
go mod tidy
|
|
|
|
endif
|
|
|
|
make clean
|
|
|
|
make plugins
|
|
|
|
|
|
|
|
build-dep:
|
|
|
|
apt install -f libgtk-3-dev
|
|
|
|
|
|
|
|
# should update every go dependancy (?)
|
|
|
|
update:
|
|
|
|
git pull
|
|
|
|
go get -v -t -u ./...
|
|
|
|
|
2024-01-03 16:53:18 -06:00
|
|
|
debian:
|
2024-01-01 16:11:54 -06:00
|
|
|
cd debian && make
|
2024-01-03 17:40:10 -06:00
|
|
|
dpkg-deb -c go-gui-toolkit*.deb
|
2024-01-01 16:11:54 -06:00
|
|
|
-wit mirrors
|
|
|
|
|
|
|
|
examples: \
|
|
|
|
all \
|
|
|
|
examples-helloworld \
|
|
|
|
examples-buttons \
|
|
|
|
examples-console-ui-helloworld
|
|
|
|
|
|
|
|
# this is the most basic one. This syntax should always work
|
|
|
|
examples-helloworld:
|
|
|
|
make -C examples/helloworld
|
|
|
|
|
|
|
|
examples-buttons:
|
|
|
|
make -C examples/buttons
|
|
|
|
|
|
|
|
examples-console-ui-helloworld:
|
|
|
|
make -C examples/console-ui-helloworld
|
|
|
|
|
|
|
|
# sync repo to the github backup
|
|
|
|
# git remote add github git@github.com:witorg/gui.git
|
|
|
|
# git remote add github2 git@github.com:wit-go/gui.git
|
|
|
|
github:
|
|
|
|
git push origin master
|
|
|
|
git push origin devel
|
|
|
|
git push origin --tags
|
|
|
|
git push github master
|
|
|
|
git push github devel
|
|
|
|
git push github --tags
|
|
|
|
@echo
|
|
|
|
@echo check https://github.com/wit-go/gui
|
|
|
|
@echo
|
|
|
|
|
|
|
|
doc:
|
|
|
|
godoc -v
|
|
|
|
|
|
|
|
goget:
|
|
|
|
go get -v -t -u
|
|
|
|
make -C toolkit/gocui goget
|
|
|
|
make -C toolkit/andlabs goget
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.so
|
2024-01-03 16:53:18 -06:00
|
|
|
cd debian && make clean
|
2024-01-01 16:11:54 -06:00
|
|
|
|
|
|
|
plugins: plugins-gocui plugins-andlabs
|
|
|
|
|
|
|
|
plugins-gocui:
|
|
|
|
go build -C toolkit/gocui -v -buildmode=plugin -o ../gocui.so
|
|
|
|
go build -C toolkit/nocui -v -buildmode=plugin -o ../nocui.so
|
|
|
|
|
|
|
|
plugins-andlabs:
|
|
|
|
go build -C toolkit/andlabs -v -buildmode=plugin -o ../andlabs.so
|
|
|
|
|
|
|
|
objdump:
|
|
|
|
objdump -t toolkit/andlabs.so |less
|
|
|
|
|
|
|
|
log:
|
|
|
|
reset
|
|
|
|
tail -f /tmp/witgui.* /tmp/guilogfile
|
|
|
|
|
|
|
|
submit-to-docs:
|
|
|
|
GOPROXY=https://proxy.golang.org GO111MODULE=on go get go.wit.com/gui@v1.0.0
|