Match # of parallel build processes to number of CPUs for native builds

experimental
shadowislord 10 years ago
parent 08ac64cd63
commit 373eaeae30
  1. 2
      jme3-android-native/decode.gradle
  2. 2
      jme3-android-native/openalsoft.gradle
  3. 2
      jme3-bullet-native-android/build.gradle

@ -65,7 +65,7 @@ task copySourceToBuild(type: Copy, dependsOn:[copyTremorFiles, copyStbiFiles, ge
task buildNativeLib(type: Exec, dependsOn: copySourceToBuild) { task buildNativeLib(type: Exec, dependsOn: copySourceToBuild) {
workingDir decodeBuildDir workingDir decodeBuildDir
executable rootProject.ndkCommandPath executable rootProject.ndkCommandPath
args '-j8' args "-j" + Runtime.runtime.availableProcessors()
} }
task updatePreCompiledLibs(type: Copy, dependsOn: buildNativeLib) { task updatePreCompiledLibs(type: Copy, dependsOn: buildNativeLib) {

@ -86,7 +86,7 @@ task buildOpenAlSoftNativeLib(type: Exec, dependsOn: generateOpenAlSoftHeaders)
// println "ndkCommandPath: " + project.ndkCommandPath // println "ndkCommandPath: " + project.ndkCommandPath
workingDir openalsoftBuildDir workingDir openalsoftBuildDir
executable rootProject.ndkCommandPath executable rootProject.ndkCommandPath
args '-j8' args "-j" + Runtime.runtime.availableProcessors()
} }
task updatePreCompiledOpenAlSoftLibs(type: Copy, dependsOn: buildOpenAlSoftNativeLib) { task updatePreCompiledOpenAlSoftLibs(type: Copy, dependsOn: buildOpenAlSoftNativeLib) {

@ -161,7 +161,7 @@ task buildBulletNativeLib(type: Exec, dependsOn: generateNativeHeaders) {
// println "buildBulletNativeLib rootProject.ndkCommandPath: " + rootProject.ndkCommandPath // println "buildBulletNativeLib rootProject.ndkCommandPath: " + rootProject.ndkCommandPath
workingDir ndkWorkingPath workingDir ndkWorkingPath
executable rootProject.ndkCommandPath executable rootProject.ndkCommandPath
args "-j8" args "-j" + Runtime.runtime.availableProcessors()
} }
//task updatePreCompiledBulletLibs(type: Copy, dependsOn: generateNativeHeaders) { //task updatePreCompiledBulletLibs(type: Copy, dependsOn: generateNativeHeaders) {

Loading…
Cancel
Save