fe64e00997
Originally this started as a bump to r18, the latest stable release. That's why each packages goes up two versions, from r17 -> r18 -> r19-beta2. But our ASAN bots started failing with r18, and despite quite a bit of investigating, I've been unable to find anything wrong with our code. Luckily, r19 is coming soon, and it looks like its beta2 works fine. I think we should just skip r18. Original change's description: > bump NDK packages to r18 > > Newer Clang, GCC is gone. > > Clang now supports half-float math on ARMv8, which is pretty neat. > > They've dropped support for everything below NDK version 16, > which happens to be what we target for 32-bit ARM. > > Change-Id: Idd1b1b557c5ecaabec4040026fd2ad5adfee5ee7 > Reviewed-on: https://skia-review.googlesource.com/157260 > Reviewed-by: Derek Sollenberger <djsollen@google.com> > Commit-Queue: Mike Klein <mtklein@google.com> Cq-Include-Trybots: skia.primary:Test-Android-Clang-Pixel-CPU-Snapdragon821-arm64-Release-All-Android_ASAN Change-Id: I0736558fc9b732113854b1b295642e1708b04581 Reviewed-on: https://skia-review.googlesource.com/c/157761 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
40 lines
910 B
Python
Executable File
40 lines
910 B
Python
Executable File
#!/usr/bin/env python
|
|
#
|
|
# Copyright 2016 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
|
|
"""Create the asset."""
|
|
|
|
|
|
import argparse
|
|
import glob
|
|
import os.path
|
|
import shutil
|
|
import subprocess
|
|
|
|
NDK_VER = "android-ndk-r19-beta2"
|
|
NDK_URL = \
|
|
"https://dl.google.com/android/repository/%s-linux-x86_64.zip" % NDK_VER
|
|
|
|
def create_asset(target_dir):
|
|
"""Create the asset."""
|
|
subprocess.check_call(["curl", NDK_URL, "-o", "ndk.zip"])
|
|
subprocess.check_call(["unzip", "ndk.zip", "-d", target_dir])
|
|
for f in glob.glob(os.path.join(target_dir, NDK_VER, "*")):
|
|
shutil.move(f, target_dir)
|
|
subprocess.check_call(["rm", "ndk.zip"])
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('--target_dir', '-t', required=True)
|
|
args = parser.parse_args()
|
|
create_asset(args.target_dir)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|