Commit Graph

3 Commits

Author SHA1 Message Date
Sameer Agarwal 753ada79ea Fix a bug in assert_ndk_version.sh
The version parsing code was hard coding the fact that the
desired version is of the form

r + NUMERIC_MAJOR_VERSION + ALPHABETIC_MINOR_VERSION

r10 release of the NDK does not have a minor version an it breaks
the logic.

The fix is to make the version extraction be more robust to the
optional presence of the minor version.

Change-Id: Iace13ae7cad8cbd93ed635ecf7f1dce3a3ae15d5
2014-07-07 11:11:55 -07:00
Sameer Agarwal bb5baea725 Improve NDK version detection.
The script assert_ndk_version.sh used to require that the user
either define ANDROID_NDK_ROOT or ndk-build be in the path
so that ANDROID_NDK_ROOT can be inferred.

But since we are always calling this script from within an
Android.mk file, ndk-build already defines a variable called
NDK_ROOT, which we can pass to the script, thereby simplifying it
and making it more robust.

Change-Id: I31d66529a36a93e760e0dd0f17cfe61428fbac55
2014-06-05 12:18:23 -07:00
Alex Stewart 52bad6223b Adding assert_ndk_version for Android from Jørgen Tjernø.
- Ceres now requires Android NDK version >= r9d to compile, Jørgen's
  script allows a clean way to verify this condition is met before
  trying to compile for Android.
- Note that this is a modified version of the original script, which
  adds support for versions >= 10, and fixes extraction of the version
  number now that the architecture is also included.

Change-Id: Icd7ffd25407bcf29af007e30b5da5d18eb799adf
2014-06-03 23:25:56 +01:00