mirror of
https://github.com/servo/servo.git
synced 2025-07-08 07:53:40 +01:00
Check if the NDK version is 12
This commit is contained in:
parent
86b9e7d7d6
commit
3cdba605af
1 changed files with 8 additions and 0 deletions
|
@ -261,7 +261,15 @@ class MachCommands(CommandBase):
|
||||||
os.makedirs(openssl_dir)
|
os.makedirs(openssl_dir)
|
||||||
shutil.copy(path.join(self.android_support_dir(), "openssl.makefile"), openssl_dir)
|
shutil.copy(path.join(self.android_support_dir(), "openssl.makefile"), openssl_dir)
|
||||||
shutil.copy(path.join(self.android_support_dir(), "openssl.sh"), openssl_dir)
|
shutil.copy(path.join(self.android_support_dir(), "openssl.sh"), openssl_dir)
|
||||||
|
|
||||||
|
# Check if the NDK version is 12
|
||||||
env["ANDROID_NDK_ROOT"] = env["ANDROID_NDK"]
|
env["ANDROID_NDK_ROOT"] = env["ANDROID_NDK"]
|
||||||
|
with open(path.join(env["ANDROID_NDK"], 'source.properties')) as ndk_properties:
|
||||||
|
lines = ndk_properties.readlines()
|
||||||
|
if lines[1].split(' = ')[1].split('.')[0] != '12':
|
||||||
|
print("Currently only support NDK 12.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
env["RUST_TARGET"] = target
|
env["RUST_TARGET"] = target
|
||||||
with cd(openssl_dir):
|
with cd(openssl_dir):
|
||||||
status = call(
|
status = call(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue