Skip to content

Commit a8fcf73

Browse files
committed
mobile: limit app/font/gl packages to linux/darwin.
They don't make sense for other platforms yet. See golang/go#9603 Change-Id: I2ed269a00b1e1961aadf0a47fc95bbe3cd230113 Reviewed-on: https://go-review.googlesource.com/2902 Reviewed-by: David Crawshaw <[email protected]>
1 parent bf371f4 commit a8fcf73

File tree

8 files changed

+12
-1
lines changed

8 files changed

+12
-1
lines changed

app/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build linux darwin
6+
57
package app
68

79
import (

font/font.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build linux darwin
6+
57
// Package font provides platform independent access to system fonts.
68
package font
79

gl/gendebug.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ package main
1111

1212
import (
1313
"bytes"
14-
"fmt"
1514
"flag"
15+
"fmt"
1616
"go/ast"
1717
"go/format"
1818
"go/parser"
@@ -221,6 +221,7 @@ const preamble = `// Copyright 2014 The Go Authors. All rights reserved.
221221
// Generated from gl.go using go generate. DO NOT EDIT.
222222
// See doc.go for details.
223223
224+
// +build linux darwin
224225
// +build gldebug
225226
226227
package gl

gl/gl.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build linux darwin
56
// +build !gldebug
67

78
package gl

gl/gldebug.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Generated from gl.go using go generate. DO NOT EDIT.
66
// See doc.go for details.
77

8+
// +build linux darwin
89
// +build gldebug
910

1011
package gl

gl/types_common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build linux darwin
6+
57
package gl
68

79
// This file contains GL Types and their methods that are independent of the

gl/types_debug.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build linux darwin
56
// +build gldebug
67

78
package gl

gl/types_prod.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build linux darwin
56
// +build !gldebug
67

78
package gl

0 commit comments

Comments
 (0)