title: Limit CPU cores for ndkBuild with Cmake and Ninja
body: <p>Before, when I was using ndkBuld for building native code on Android I was able to pass an argument to <em>make</em> to define a number of CPU cores to be used. If I wanted to utilize 4 cores I could add something like this</p>
  
  <pre><code>externalNativeBuild {
      ndkBuild {
          arguments "-j4", "APP_SHORT_COMMANDS=true"
          abiFilters "armeabi-v7a"
      }
  }
  </code></pre>
  
  <p>Can somebody give an advice how can I do something similar with Cmake and Ninja? Is there some equivalent parameter for cmake configuration? </p>
  
  <pre><code>externalNativeBuild {
      cmake {
          arguments "-DANDROID_STL=c++_static"
          abiFilters getAbis()
      }
  }
  </code></pre>
  
  <p>Thanks.</p>