Skip to content

Commit

Permalink
Merge pull request #4242 from sdassow/develop
Browse files Browse the repository at this point in the history
Support building with mobile tag on OpenBSD
  • Loading branch information
Jacalz committed Sep 13, 2023
2 parents be6cd7b + 08282ac commit bff233b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/driver/mobile/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build freebsd || linux || darwin || windows
// +build freebsd linux darwin windows
//go:build freebsd || linux || darwin || windows || openbsd
// +build freebsd linux darwin windows openbsd

package app

Expand Down
4 changes: 2 additions & 2 deletions internal/driver/mobile/app/x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build (linux && !android) || freebsd
// +build linux,!android freebsd
//go:build (linux && !android) || freebsd || openbsd
// +build linux,!android freebsd openbsd

#include "_cgo_export.h"
#include <EGL/egl.h>
Expand Down
5 changes: 3 additions & 2 deletions internal/driver/mobile/app/x11.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build (linux && !android) || freebsd
// +build linux,!android freebsd
//go:build (linux && !android) || freebsd || openbsd
// +build linux,!android freebsd openbsd

package app

Expand All @@ -16,6 +16,7 @@ than screens with touch panels.
/*
#cgo LDFLAGS: -lEGL -lGLESv2 -lX11
#cgo freebsd CFLAGS: -I/usr/local/include/
#cgo openbsd CFLAGS: -I/usr/X11R6/include/
void createWindow(void);
void processEvents(void);
Expand Down

0 comments on commit bff233b

Please sign in to comment.