Add ctx.Windows()

Replace ctx.Os() == android.Windows with ctx.Windows()

Test: builds
Change-Id: I7c24c39bcf54a51ad152b21c0021e40a0c07f189
This commit is contained in:
Colin Cross
2017-04-04 12:59:48 -07:00
parent ac01ff5447
commit 3edeee113a
5 changed files with 10 additions and 5 deletions

View File

@@ -57,6 +57,7 @@ type androidBaseContext interface {
Host() bool
Device() bool
Darwin() bool
Windows() bool
Debug() bool
PrimaryArch() bool
Proprietary() bool
@@ -611,6 +612,10 @@ func (a *androidBaseContextImpl) Darwin() bool {
return a.target.Os == Darwin
}
func (a *androidBaseContextImpl) Windows() bool {
return a.target.Os == Windows
}
func (a *androidBaseContextImpl) Debug() bool {
return a.debug
}