app/internal: add FreeBSD support

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-30 11:06:26 +00:00
parent 1cc1fb1c72
commit 3425b25ecc
17 changed files with 59 additions and 23 deletions
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
// +build !android
// +build linux,!android freebsd
// Package xkb implements a Go interface for the X Keyboard Extension library.
package xkb
@@ -9,6 +9,8 @@ import "gioui.org/io/event"
/*
#cgo LDFLAGS: -lxkbcommon
#cgo freebsd CFLAGS: -I/usr/local/include
#cgo freebsd LDFLAGS: -L/usr/local/lib
#include <stdlib.h>
#include <xkbcommon/xkbcommon.h>