Skip to content

Instantly share code, notes, and snippets.

View philip-lamb's full-sized avatar

Philip Lamb philip-lamb

View GitHub Profile
@philip-lamb
philip-lamb / assert_ndk_version.sh
Last active June 8, 2016 00:18 — forked from jorgenpt/assert_ndk_version.sh
Shell script to check for Android NDK version.
#!/bin/bash
# Bash script to assert that the current version of the NDK is at least the
# specified version. Prints 'true' to standard out if it's the right version,
# 'false' if it's not.
#
# Typically used like this, in your jni/Android.mk:
#
# ifneq ($(shell $(LOCAL_PATH)/assert_ndk_version.sh "r5c"),true)
# $(error NDK version r5c or greater required)