mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Backed out changeset df6f338d6a26 (bug 1820876) for causing build bustages on Android Shippable. CLOSED TREE
This commit is contained in:
parent
aaafd0da16
commit
7c5ebbcf74
@ -139,29 +139,18 @@ def host_dir(host, base_dir):
|
||||
return dir
|
||||
|
||||
|
||||
@depends(host, ndk, "--with-android-toolchain")
|
||||
@checking("for the Android toolchain directory", lambda x: x or "not found")
|
||||
def android_toolchain(host, ndk, toolchain):
|
||||
if not ndk:
|
||||
return
|
||||
if toolchain:
|
||||
return toolchain[0]
|
||||
|
||||
toolchain = host_dir(host, os.path.join(ndk, "toolchains", "llvm", "prebuilt"))
|
||||
if toolchain:
|
||||
return toolchain
|
||||
die("You have to specify --with-android-toolchain=" "/path/to/ndk/toolchain.")
|
||||
|
||||
|
||||
@depends(target, android_toolchain)
|
||||
@depends(ndk, target, host)
|
||||
@checking("for android sysroot directory")
|
||||
@imports(_from="os.path", _import="isdir")
|
||||
def android_sysroot(target, android_toolchain):
|
||||
def android_sysroot(ndk, target, host):
|
||||
if target.os != "Android":
|
||||
return
|
||||
|
||||
search_dirs = [
|
||||
os.path.join(android_toolchain, "sysroot"),
|
||||
os.path.join(
|
||||
host_dir(host, os.path.join(ndk, "toolchains", "llvm", "prebuilt")),
|
||||
"sysroot",
|
||||
),
|
||||
]
|
||||
|
||||
for sysroot_dir in search_dirs:
|
||||
@ -174,6 +163,31 @@ def android_sysroot(target, android_toolchain):
|
||||
)
|
||||
|
||||
|
||||
@depends(target, host, ndk, "--with-android-toolchain")
|
||||
@checking("for the Android toolchain directory", lambda x: x or "not found")
|
||||
def android_toolchain(target, host, ndk, toolchain):
|
||||
if not ndk:
|
||||
return
|
||||
if toolchain:
|
||||
return toolchain[0]
|
||||
else:
|
||||
if target.cpu == "arm" and target.endianness == "little":
|
||||
target_base = "arm-linux-androideabi"
|
||||
elif target.cpu == "x86":
|
||||
target_base = "x86"
|
||||
elif target.cpu == "x86_64":
|
||||
target_base = "x86_64"
|
||||
elif target.cpu == "aarch64" and target.endianness == "little":
|
||||
target_base = "aarch64-linux-android"
|
||||
else:
|
||||
die("Target cpu is not supported.")
|
||||
|
||||
toolchain = host_dir(host, "%s/toolchains/%s-4.9/prebuilt" % (ndk, target_base))
|
||||
if toolchain:
|
||||
return toolchain
|
||||
die("You have to specify --with-android-toolchain=" "/path/to/ndk/toolchain.")
|
||||
|
||||
|
||||
@depends(target, host, ndk, "--with-android-lldb-server")
|
||||
@checking("for the Android LLDB server", lambda x: x or "not found")
|
||||
@imports(_from="os", _import="listdir")
|
||||
|
@ -62,7 +62,7 @@ EOF
|
||||
|
||||
cd ..
|
||||
|
||||
TARGETS="aarch64-linux-gnu arm-linux-gnueabi i686-w64-mingw32"
|
||||
TARGETS="aarch64-linux-gnu i686-w64-mingw32"
|
||||
|
||||
if [ -d $MOZ_FETCHES_DIR/sysroot ]; then
|
||||
# Don't silently use a non-existing directory for C++ headers.
|
||||
|
@ -97,7 +97,6 @@ if CONFIG['MOZ_AAUDIO'] or CONFIG['MOZ_OPENSL']:
|
||||
|
||||
if CONFIG['MOZ_AAUDIO']:
|
||||
SOURCES += ['cubeb_aaudio.cpp']
|
||||
SOURCES['cubeb_aaudio.cpp'].flags += ['-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__']
|
||||
DEFINES['USE_AAUDIO'] = True
|
||||
|
||||
if CONFIG['MOZ_OPENSL']:
|
||||
|
@ -20,7 +20,7 @@ from tqdm import tqdm
|
||||
# variable.
|
||||
from mozboot.bootstrap import MOZCONFIG_SUGGESTION_TEMPLATE
|
||||
|
||||
NDK_VERSION = "r23c"
|
||||
NDK_VERSION = "r21d"
|
||||
CMDLINE_TOOLS_VERSION_STRING = "9.0"
|
||||
CMDLINE_TOOLS_VERSION = "9477386"
|
||||
|
||||
@ -676,14 +676,19 @@ def generate_mozconfig(os_name, artifact_mode=False):
|
||||
|
||||
def android_ndk_url(os_name, ver=NDK_VERSION):
|
||||
# Produce a URL like
|
||||
# 'https://dl.google.com/android/repository/android-ndk-$VER-linux.zip
|
||||
# 'https://dl.google.com/android/repository/android-ndk-$VER-linux-x86_64.zip
|
||||
base_url = "https://dl.google.com/android/repository/android-ndk"
|
||||
|
||||
if os_name == "macosx":
|
||||
# |mach bootstrap| uses 'macosx', but Google uses 'darwin'.
|
||||
os_name = "darwin"
|
||||
|
||||
return "%s-%s-%s.zip" % (base_url, ver, os_name)
|
||||
if sys.maxsize > 2 ** 32:
|
||||
arch = "x86_64"
|
||||
else:
|
||||
arch = "x86"
|
||||
|
||||
return "%s-%s-%s-%s.zip" % (base_url, ver, os_name, arch)
|
||||
|
||||
|
||||
def main(argv):
|
||||
|
@ -46,7 +46,6 @@ job-defaults:
|
||||
toolchain:
|
||||
- android-ndk-linux
|
||||
- android-sdk-linux
|
||||
- linux64-binutils
|
||||
- linux64-jdk
|
||||
- linux64-rust-android
|
||||
- linux64-rust-size
|
||||
|
@ -176,6 +176,26 @@ linux64-rust-macos-1.68:
|
||||
]
|
||||
toolchain-alias: linux64-rust-macos
|
||||
|
||||
linux64-rust-android-1.67:
|
||||
description: "rust repack with android-cross support"
|
||||
treeherder:
|
||||
symbol: TL(rust-android-1.67)
|
||||
run:
|
||||
arguments: [
|
||||
'--channel', '1.67.0',
|
||||
'--host', 'x86_64-unknown-linux-gnu',
|
||||
'--target', 'x86_64-unknown-linux-gnu',
|
||||
'--target', 'armv7-linux-androideabi',
|
||||
'--target', 'thumbv7neon-linux-androideabi',
|
||||
'--target', 'aarch64-linux-android',
|
||||
'--target', 'i686-linux-android',
|
||||
'--target', 'x86_64-linux-android',
|
||||
'--compiler-builtins-hack',
|
||||
]
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-clang-toolchain
|
||||
|
||||
linux64-rust-android-1.68:
|
||||
description: "rust repack with android-cross support"
|
||||
treeherder:
|
||||
|
@ -272,7 +272,7 @@ jobs:
|
||||
- android-system-image-x86_64-linux
|
||||
- android-avd-x86_64-linux
|
||||
- linux64-jdk
|
||||
- linux64-rust-android
|
||||
- linux64-rust-android-1.67
|
||||
- wrench-deps
|
||||
treeherder:
|
||||
platform: android-em-7-0-x86/debug
|
||||
@ -317,7 +317,7 @@ jobs:
|
||||
- android-system-image-x86_64-linux
|
||||
- android-avd-x86_64-linux
|
||||
- linux64-jdk
|
||||
- linux64-rust-android
|
||||
- linux64-rust-android-1.67
|
||||
- wrench-deps
|
||||
treeherder:
|
||||
platform: android-em-7-0-x86/opt
|
||||
|
Loading…
Reference in New Issue
Block a user