diff options
| author | Jeff Carr <[email protected]> | 2022-11-13 08:53:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-11-13 08:53:03 -0600 |
| commit | 207cf7ea16f1da8fa9f893504d77a2856298cc22 (patch) | |
| tree | 54d513b83ce797be75268f7d8867e0b01ab8f23e /Makefile | |
| parent | ed382bec55be25039e4dcf020d1512139855c9bb (diff) | |
Massive refactor to use go plugins. This is neat.
update README.md
set xterm title. make os.Exit() default on window close
add a toolkit.Widget to the node structure
remove 'Greeter' symbol mapping scheme
removed the testing greeter code
plugins:
attempt to load plugins in a sensible order
andlabs/ui:
working andlabs/ui plugin (andlabs2)
buttons work in andlabs plugin
TODO: re-implement non-plugin version for Windows
mswindows doesn't support go plugins yet
gocui:
put the gocui console so file in the binary
does a full init of gocui plugin
Button() and Group() working very well with gogui
cleanly exit gocui
technically you can load two toolkits at the same time
kinda both working at the same time. esoteric
two working plugins at the same time
give up working on two gui's at the same time
this is fun, but _not interesting
wow. this actually works. NewButton() from both toolkits
examples:
all the examples run again
remove early helloplugin example
buttonplugin example cmd code
buttonplugin runs and ldd is minimum
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -2,10 +2,11 @@ all: README.md @echo - @echo "make cmds # will run all the cmds" - @echo "make update # full git update" + @echo "make cmds # will run all the Example demos and commands" + @echo "make update # full git update of all the dependencies" @echo - make -C cmds/helloworld + #make -C cmds/helloworld + make plugins # should update every go dependancy (?) update: @@ -33,6 +34,9 @@ cmds-textbox: github: git push origin master git push github master + @echo + @echo check https://github.com/witorg/gui + @echo doc: GO111MODULE="off" godoc -v @@ -45,6 +49,14 @@ README.md: doc.go clean: rm -f toolkit/*.so -plugins: - # GO111MODULE="off" go build -buildmode=plugin -o toolkit/test.so toolkit/gocui/*.go +plugins: plugins-gocui plugins-andlabs2 + +plugins-gocui: make -C toolkit/gocui + +plugins-andlabs2: + cd toolkit/andlabs2/ && GO111MODULE="off" go build -buildmode=plugin -o ../andlabs2.so + # make -C toolkit/andlabs2 + +objdump: + objdump -t toolkit/andlabs.so |less |
