title: How to add cpufeatures to android jni cmake gradle build?
body: <p>If I have a build.gradle for an application:</p>
  
  <pre><code>android {
      compileSdkVersion 24
      buildToolsVersion "25.0.2"
      defaultConfig {
          applicationId "com.ndkcmaketest.headwayent.ndkcmaketest"
          minSdkVersion 19
          targetSdkVersion 24
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  
          externalNativeBuild {
  
              cmake {
                  cppFlags "-frtti -fexceptions"
                  arguments "-DANDROID_ARM_NEON=TRUE", "-DANDROID_TOOLCHAIN=gcc"//, "-DANDROID_ALLOW_UNDEFINED_SYMBOLS=TRUE"
  
              }
          }
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  
  
  
      externalNativeBuild {
          cmake {
              path "CMakeLists.txt"
          }
      }
  }
  </code></pre>
  
  <p>How do I add cpufeatures as ldlibs? Adding ldLibs.addAll(["cpufeatures"]) in externalNativeBuild does not work. And neither adding in an ndk block.</p>