Clean up build tags

This commit is contained in:
Hajime Hoshi 2021-10-24 14:49:21 +09:00
parent 878831b842
commit ef62f407d1
13 changed files with 26 additions and 53 deletions

View File

@ -12,11 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || freebsd || linux || windows) && !js && !android && !ios
// +build darwin freebsd linux windows
// +build !js
// +build !android
// +build !ios
//go:build !android && !js && !ios
// +build !android,!js,!ios
package ebitenutil

View File

@ -12,10 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || freebsd || js || linux || windows) && !android && !ios
// +build darwin freebsd js linux windows
// +build !android
// +build !ios
//go:build !android && !ios
// +build !android,!ios
package ebitenutil

View File

@ -818,10 +818,8 @@ func main() {
buildTag = "//go:build !js" +
"\n// +build !js"
case filepath.Join("internal", "uidriver", "glfw", "keys.go"):
buildTag = "//go:build (darwin || freebsd || linux || windows) && !android && !ios" +
"\n// +build darwin freebsd linux windows" +
"\n// +build !android" +
"\n// +build !ios"
buildTag = "//go:build !android && !js && !ios" +
"\n// +build !android,!js,!ios"
}
// NOTE: According to godoc, maps are automatically sorted by key.
if err := tmpl.Execute(f, struct {

View File

@ -12,10 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || freebsd || linux || windows) && !android && !ios
// +build darwin freebsd linux windows
// +build !android
// +build !ios
//go:build !android && !js && !ios
// +build !android,!js,!ios
package opengl

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build freebsd || linux || windows || ebitengl
// +build freebsd linux windows ebitengl
//go:build !android && !js && !ios
// +build !android,!js,!ios
package glfw

View File

@ -12,10 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || freebsd || linux || windows) && !android && !ios
// +build darwin freebsd linux windows
// +build !android
// +build !ios
//go:build !android && !js && !ios
// +build !android,!js,!ios
//go:generate curl --location --remote-name https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
//go:generate file2byteslice -package glfw -input=./gamecontrollerdb.txt -output=./gamecontrollerdb.txt.go -var=gamecontrollerdbTxt

View File

@ -14,10 +14,8 @@
// Code generated by genkeys.go using 'go generate'. DO NOT EDIT.
//go:build (darwin || freebsd || linux || windows) && !android && !ios
// +build darwin freebsd linux windows
// +build !android
// +build !ios
//go:build !android && !js && !ios
// +build !android,!js,!ios
package glfw

View File

@ -12,11 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !ebitensinglethread && (darwin || freebsd || linux || windows) && !android && !ios
// +build !ebitensinglethread
// +build darwin freebsd linux windows
// +build !android
// +build !ios
//go:build !ebitensinglethread && !android && !js && !ios
// +build !ebitensinglethread,!android,!js,!ios
package glfw

View File

@ -12,11 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build ebitensinglethread && (darwin || freebsd || linux || windows) && !android && !ios
// +build ebitensinglethread
// +build darwin freebsd linux windows
// +build !android
// +build !ios
//go:build ebitensinglethread && !android && !js && !ios
// +build ebitensinglethread,!android,!js,!ios
package glfw

View File

@ -12,10 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || freebsd || linux || windows) && !android && !ios
// +build darwin freebsd linux windows
// +build !android
// +build !ios
//go:build !android && !js && !ios
// +build !android,!js,!ios
package glfw

View File

@ -12,9 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (dragonfly || freebsd || linux || netbsd || openbsd || solaris) && !android
// +build dragonfly freebsd linux netbsd openbsd solaris
// +build !android
//go:build !android && !darwin && !js && !ios && !windows
// +build !android,!darwin,!js,!ios,!windows
package glfw

View File

@ -12,10 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || freebsd || linux || windows) && !android && !ios
// +build darwin freebsd linux windows
// +build !android
// +build !ios
//go:build !android && !js && !ios
// +build !android,!js,!ios
package glfw

View File

@ -12,11 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || freebsd || linux || windows) && !android && !ios && !js
// +build darwin freebsd linux windows
// +build !android
// +build !ios
// +build !js
//go:build !android && !js && !ios
// +build !android,!js,!ios
package ebiten