fyne/Makefile

40 lines
988 B
Makefile
Raw Permalink Normal View History

2024-12-06 01:51:39 -06:00
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
2025-02-14 18:25:28 -06:00
all: clean goimports plugin
#ldd fyne.so
2024-02-27 02:21:00 -06:00
2025-02-14 18:25:28 -06:00
deps:
sudo apt install libxxf86vm-dev libxxf86vm1
2024-02-27 02:21:00 -06:00
plugin:
2025-02-14 18:25:28 -06:00
# LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ GO111MODULE=off go build -v -x -buildmode=plugin -o fyne.so
GO111MODULE=off go build -v -x -buildmode=plugin -o fyne.so
2024-02-27 02:21:00 -06:00
2024-12-06 01:51:39 -06:00
install: clean
go build -v -buildmode=plugin -o ~/go/lib/fyne-${VERSION}.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
cd ~/go/lib && ln -f -s fyne-${VERSION}.so fyne.so
clean:
2025-01-20 04:37:08 -06:00
rm -f fyne fyne.so
2024-12-04 03:15:35 -06:00
2024-12-04 02:26:58 -06:00
binary:
go build -v -x
non-plugin:
go build -v -x
./fyne
2024-02-27 02:21:00 -06:00
check-git-clean:
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
# Test the README.md & doc.go file
# this runs pkgsite, the binary that does dev.go.dev
# go install golang.org/x/pkgsite/cmd/pkgsite@latest
pkgsite:
pkgsite
goimports:
goimports -w *.go