* Git (for checking out sources)
* Python 2.7.x (all recent versions in 2.x should work, 3.x is not supported)
- * CMake 2.8 (3.2 for Android builds) or newer
+ * CMake 2.8 (3.2 for Android NDK r15 builds) or newer
### Win32
### Android
- * Android NDK r15
+ * Android NDK r11c (NDK r15 support is experimental)
* Android SDK with: SDK Tools, SDK Platform-tools, SDK Build-tools, and API 22
* Java Development Kit (JDK)
* Windows: either NMake or Ninja in PATH
Certain tests, for example tests for VK_ANDROID_external_memory_android_hardware_buffer, may
require more recent API levels. A required API level may be supplied using --native-api command line option.
-Recommended build command for Android 8.0.0 is:
-
- python scripts/android/build_apk.py --native-api=26 --sdk <path to Android SDK> --ndk <path to Android NDK>
-
The package can be installed by either running:
python scripts/android/install_apk.py
if not NDKEnv.isHostOsSupported(self.env.ndk.hostOsName):
raise Exception("NDK '%s' is not supported on this machine" % self.env.ndk.hostOsName)
- supportedNDKVersion = [15]
+ supportedNDKVersion = [11, 15]
if self.env.ndk.version[0] not in supportedNDKVersion:
raise Exception("Android NDK version %d is not supported; build requires NDK version %s" % (self.env.ndk.version[0], supportedNDKVersion))
+ # https://gitlab.khronos.org/Tracker/vk-gl-cts/issues/723
+ if self.env.ndk.version[0] == 15:
+ if "armeabi-v7a" in self.abis:
+ raise Exception("dEQP is incompatible with NDK r15 for armeabi-v7a")
+ else:
+ print >> sys.stderr, "WARNING: Support for NDK r15 is experimental; NDK r11c is recommended for official submissions"
+
if self.env.sdk.buildToolsVersion == (0,0,0):
raise Exception("No build tools directory found at %s" % os.path.join(self.env.sdk.path, "build-tools"))