From 373eaeae301355c08f5b3c17ffcc22bb5f040713 Mon Sep 17 00:00:00 2001 From: shadowislord Date: Tue, 9 Dec 2014 18:07:38 -0500 Subject: [PATCH] Match # of parallel build processes to number of CPUs for native builds --- jme3-android-native/decode.gradle | 2 +- jme3-android-native/openalsoft.gradle | 2 +- jme3-bullet-native-android/build.gradle | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-android-native/decode.gradle b/jme3-android-native/decode.gradle index 65a92ef4f..b26a34b6d 100644 --- a/jme3-android-native/decode.gradle +++ b/jme3-android-native/decode.gradle @@ -65,7 +65,7 @@ task copySourceToBuild(type: Copy, dependsOn:[copyTremorFiles, copyStbiFiles, ge task buildNativeLib(type: Exec, dependsOn: copySourceToBuild) { workingDir decodeBuildDir executable rootProject.ndkCommandPath - args '-j8' + args "-j" + Runtime.runtime.availableProcessors() } task updatePreCompiledLibs(type: Copy, dependsOn: buildNativeLib) { diff --git a/jme3-android-native/openalsoft.gradle b/jme3-android-native/openalsoft.gradle index a7dd2e005..e64c9dd54 100644 --- a/jme3-android-native/openalsoft.gradle +++ b/jme3-android-native/openalsoft.gradle @@ -86,7 +86,7 @@ task buildOpenAlSoftNativeLib(type: Exec, dependsOn: generateOpenAlSoftHeaders) // println "ndkCommandPath: " + project.ndkCommandPath workingDir openalsoftBuildDir executable rootProject.ndkCommandPath - args '-j8' + args "-j" + Runtime.runtime.availableProcessors() } task updatePreCompiledOpenAlSoftLibs(type: Copy, dependsOn: buildOpenAlSoftNativeLib) { diff --git a/jme3-bullet-native-android/build.gradle b/jme3-bullet-native-android/build.gradle index ebacea74b..30fdd44b5 100644 --- a/jme3-bullet-native-android/build.gradle +++ b/jme3-bullet-native-android/build.gradle @@ -161,7 +161,7 @@ task buildBulletNativeLib(type: Exec, dependsOn: generateNativeHeaders) { // println "buildBulletNativeLib rootProject.ndkCommandPath: " + rootProject.ndkCommandPath workingDir ndkWorkingPath executable rootProject.ndkCommandPath - args "-j8" + args "-j" + Runtime.runtime.availableProcessors() } //task updatePreCompiledBulletLibs(type: Copy, dependsOn: generateNativeHeaders) {