cmd/gomobile/release.go: add NDK r10e
Note that darwin/386 is no longer released by the Android NDK. Change-Id: Ie9d5105884db45a10716637980e8352c855293a0 Reviewed-on: https://go-review.googlesource.com/12121 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
8f20c3e9d3
commit
fa6f31145f
|
@ -26,7 +26,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ndkVersion = "ndk-r10d"
|
const ndkVersion = "ndk-r10e"
|
||||||
|
|
||||||
type version struct {
|
type version struct {
|
||||||
os string
|
os string
|
||||||
|
@ -34,7 +34,6 @@ type version struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var hosts = []version{
|
var hosts = []version{
|
||||||
{"darwin", "x86"},
|
|
||||||
{"darwin", "x86_64"},
|
{"darwin", "x86_64"},
|
||||||
{"linux", "x86"},
|
{"linux", "x86"},
|
||||||
{"linux", "x86_64"},
|
{"linux", "x86_64"},
|
||||||
|
@ -181,8 +180,8 @@ func mkpkg(host version) (err error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// The NDK is unpacked into tmpdir/linux-x86_64-src/android-ndk-r10d.
|
// The NDK is unpacked into tmpdir/linux-x86_64-src/android-{{ndkVersion}}.
|
||||||
// Move the files we want into tmpdir/linux-x86_64-dst/android-ndk-r10d.
|
// Move the files we want into tmpdir/linux-x86_64-dst/android-{{ndkVersion}}.
|
||||||
// We preserve the same file layout to make the full NDK interchangable
|
// We preserve the same file layout to make the full NDK interchangable
|
||||||
// with the cut down file.
|
// with the cut down file.
|
||||||
usr := "android-" + ndkVersion + "/platforms/android-15/arch-arm/usr"
|
usr := "android-" + ndkVersion + "/platforms/android-15/arch-arm/usr"
|
||||||
|
@ -207,7 +206,7 @@ func mkpkg(host version) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the tarball.
|
// Build the tarball.
|
||||||
f, err := os.Create("gomobile-ndk-r10d-" + host.os + "-" + host.arch + ".tar.gz")
|
f, err := os.Create("gomobile-" + ndkVersion + "-" + host.os + "-" + host.arch + ".tar.gz")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue