2
0
mirror of synced 2025-02-23 23:08:14 +00:00

cmd/gomobile: don't ignore -openal if no NDK was found

Updates golang/go#20902

Change-Id: I523c0b7a205e620c143f2ba9c7cdbe30865a9c59
Reviewed-on: https://go-review.googlesource.com/101136
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Elias Naur 2018-03-16 11:40:31 +01:00
parent 5d852261b1
commit 2a86fdcad0

View File

@ -170,9 +170,13 @@ func installNDKToolchains(gomobilepath string) error {
}
func installOpenAL(gomobilepath string) error {
if initNDK == "" || initOpenAL == "" {
if initOpenAL == "" {
return nil
}
if !hasNDK() {
return errors.New("The Android NDK is needed to build OpenAL but it was not found. Please run gomobile init with the ndk-bundle installed through the Android SDK manager or with the -ndk flag set.")
}
var cmake string
if buildN {
cmake = "cmake"