--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/17e64c78-f7ec-49e9-acfe-ae481389432c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TBH, just don't support old NDKs. r10 is ancient and things have improved a lot since then.That information is already on our CMake toolchain file. Look at the top of the file, there's a part where we parse source.properties and save the version to a variable.
On Jun 26, 2017 08:45, "void.pointer" <rcda...@gmail.com> wrote:
So I was digging around and found a file named `source.properties` which can be used to obtain the version of the NDK (14.1 for r14b, etc). However, digging further, it looks like this file only exists from r11 and forward per this commit by Dan Albert:So I can't rely on this pre-r11.So the question is: Is there a "portable" way to query the version of the NDK? The reason I need to do this is so that I can code functionality into CMake to allow the user to query what version of the NDK is being referenced. This will allow enabling/disabling features based on NDK version.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/17e64c78-f7ec-49e9-acfe-ae481389432c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhsQv80RfO0wZ_J3hg8Yuw1Huhyy1MgQAhajNHbWcSPMvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Kenneth Geisshirt, M.Sc., Ph.D.
Majbøl Allé 18, DK-2770 Kastrup, +45 60 62 71 82
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/7df7c144-b3a4-4cf7-8217-fd3517429a74%40googlegroups.com.
no, but i've just looked at https://wiki.openssl.org/index.php/Android
and their "Configure" perl script and i'm horrified. these people
really didn't believe in standalone toolchains!
source_properties="$ndk_path/source.properties"
release_file="$ndk_path/RELEASE.TXT"
# NDK version r11 and later encode NDK version in source.properties.
if [ -s "$source_properties" ]; then
major_version=$(sed -En -e 's/^Pkg.Revision[ \t]*=[ \t]*([0-9a-f]+).*/\1/p' $source_properties)
numerical_minor_version=$(sed -En -e 's/^Pkg.Revision[ \t]*=[ \t]*[0-9a-f]+\.([0-9]+).*/\1/p' $source_properties)
minor_version=$(minor_version_number_to_letter $numerical_minor_version)
elif [ -s "$release_file" ]; then
major_version=$(sed -E 's/r([0-9]{1,2})([a-z]{0,1}).*/\1/' $release_file)
minor_version=$(sed -E 's/r([0-9]{1,2})([a-z]{0,1}).*/\2/' $release_file)
else
echo "NDK unsupported: No RELEASE.TXT or source.properties file" >&2
echo "Unknown"
exit -1
fi