Update Android NDK to r19
This commit is contained in:
Родитель
981c13d471
Коммит
c76d2b2f6c
|
@ -46,7 +46,7 @@ ldflags=(
|
||||||
"-Wl,--whole-archive"
|
"-Wl,--whole-archive"
|
||||||
"-Wl,--no-whole-archive"
|
"-Wl,--no-whole-archive"
|
||||||
"-lc"
|
"-lc"
|
||||||
"-lstdc++"
|
"-lc++_static"
|
||||||
"-lm"
|
"-lm"
|
||||||
"-Wl,-z,noexecstack"
|
"-Wl,-z,noexecstack"
|
||||||
"-Wl,-z,relro"
|
"-Wl,-z,relro"
|
||||||
|
|
|
@ -44,7 +44,7 @@ ldflags=(
|
||||||
"-Wl,--whole-archive"
|
"-Wl,--whole-archive"
|
||||||
"-Wl,--no-whole-archive"
|
"-Wl,--no-whole-archive"
|
||||||
"-lc"
|
"-lc"
|
||||||
"-lstdc++"
|
"-lc++_static"
|
||||||
"-lm"
|
"-lm"
|
||||||
"-Wl,-z,noexecstack"
|
"-Wl,-z,noexecstack"
|
||||||
"-Wl,-z,relro"
|
"-Wl,-z,relro"
|
||||||
|
|
|
@ -49,7 +49,7 @@ ldflags=(
|
||||||
"-Wl,--whole-archive"
|
"-Wl,--whole-archive"
|
||||||
"-Wl,--no-whole-archive"
|
"-Wl,--no-whole-archive"
|
||||||
"-lc"
|
"-lc"
|
||||||
"-lstdc++"
|
"-lc++_static"
|
||||||
"-lm"
|
"-lm"
|
||||||
"-Wl,--no-undefined"
|
"-Wl,--no-undefined"
|
||||||
"-ldl"
|
"-ldl"
|
||||||
|
|
|
@ -9,7 +9,7 @@ use File::Spec qw(rel2abs);
|
||||||
use lib File::Spec->rel2abs(dirname(__FILE__)) . '/perl';
|
use lib File::Spec->rel2abs(dirname(__FILE__)) . '/perl';
|
||||||
use PrepareAndroidSDK;
|
use PrepareAndroidSDK;
|
||||||
|
|
||||||
PrepareAndroidSDK::GetAndroidSDK('android-21', undef, 'r16b');
|
PrepareAndroidSDK::GetAndroidSDK('android-21', undef, 'r19');
|
||||||
|
|
||||||
die('ANDROID_NDK_ROOT environment variable is not set') unless $ENV{ANDROID_NDK_ROOT};
|
die('ANDROID_NDK_ROOT environment variable is not set') unless $ENV{ANDROID_NDK_ROOT};
|
||||||
chdir(File::Spec->rel2abs(dirname(__FILE__)));
|
chdir(File::Spec->rel2abs(dirname(__FILE__)));
|
||||||
|
|
|
@ -181,6 +181,12 @@ our $ndks =
|
||||||
"macosx" => "android-ndk-r17-darwin-x86_64.zip",
|
"macosx" => "android-ndk-r17-darwin-x86_64.zip",
|
||||||
"linux" => "android-ndk-r17-linux-x86_64.zip",
|
"linux" => "android-ndk-r17-linux-x86_64.zip",
|
||||||
},
|
},
|
||||||
|
"r19" =>
|
||||||
|
{
|
||||||
|
"windows" => "android-ndk-r19-windows-x86_64.zip",
|
||||||
|
"macosx" => "android-ndk-r19-darwin-x86_64.zip",
|
||||||
|
"linux" => "android-ndk-r19-linux-x86_64.zip",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
our $sourcePropVersions =
|
our $sourcePropVersions =
|
||||||
|
@ -188,6 +194,7 @@ our $sourcePropVersions =
|
||||||
"13.1.3345770" => "r13b (64-bit)",
|
"13.1.3345770" => "r13b (64-bit)",
|
||||||
"16.1.4479499" => "r16b (64-bit)",
|
"16.1.4479499" => "r16b (64-bit)",
|
||||||
"17.0.4754217" => "r17 (64-bit)",
|
"17.0.4754217" => "r17 (64-bit)",
|
||||||
|
"19.0.5232133" => "r19 (64-bit)",
|
||||||
};
|
};
|
||||||
|
|
||||||
our ($HOST_ENV, $TMP, $HOME, $WINZIP);
|
our ($HOST_ENV, $TMP, $HOME, $WINZIP);
|
||||||
|
@ -587,7 +594,7 @@ sub PrepareNDK
|
||||||
die("Unknown NDK release '$ndk' (for $HOST_ENV)") if (!$archive);
|
die("Unknown NDK release '$ndk' (for $HOST_ENV)") if (!$archive);
|
||||||
|
|
||||||
print "\tDownloading '$ndk' to '$ndk_root'\n";
|
print "\tDownloading '$ndk' to '$ndk_root'\n";
|
||||||
if ($ndk =~ m/r13/ or $ndk =~ m/r16/ or $ndk =~ m/r17/)
|
if ($ndk =~ m/r13/ or $ndk =~ m/r16/ or $ndk =~ m/r17/ or $ndk =~ m/r19/)
|
||||||
{
|
{
|
||||||
DownloadAndUnpackArchive($BASE_URL_SDK . $archive, $ndk_root);
|
DownloadAndUnpackArchive($BASE_URL_SDK . $archive, $ndk_root);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче