Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arm platform support #199

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* darwin/amd64
* linux/386
* linux/amd64
* linux/arm (only tested on a Raspberry Pi 2)
* windows/386
* windows/amd64

Expand Down
Binary file added libui_linux_arm.a
Binary file not shown.
14 changes: 14 additions & 0 deletions link_linux_arm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// +build !windows
// +build !darwin

// 14 Oct 2016

package ui

// #cgo LDFLAGS: ${SRCDIR}/libui_linux_arm.a -lm -ldl
// #cgo pkg-config: gtk+-3.0
import "C"

func ensureMainThread() {
// do nothing; GTK+ doesn't care which thread we're on so long as we don't change it after starting
}