mobile: Exclude non-mobile environments to build

This commit is contained in:
Hajime Hoshi 2019-11-18 02:05:51 +09:00
parent 95d3561a3a
commit c6cc298e0d
7 changed files with 8 additions and 28 deletions

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build android ios
package mobile package mobile
import ( import (

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build android ios
// Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles. // Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles.
// //
// The functions are not intended for public usages. // The functions are not intended for public usages.

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build android ios
package ebitenmobileview package ebitenmobileview
import ( import (

View File

@ -1,28 +0,0 @@
// Copyright 2019 The Ebiten Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// +build !android
// +build !ios
package ebitenmobileview
func update() error {
return nil
}
func UpdateTouchesOnAndroid(action int, id int, x, y int) {
}
func UpdateTouchesOnIOS(phase int, ptr int64, x, y int) {
}

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build android ios
// Package mobile provides functions for mobile platforms (Android and iOS). // Package mobile provides functions for mobile platforms (Android and iOS).
// //
// This package is used when you use `ebitenmobile bind`. // This package is used when you use `ebitenmobile bind`.