Added "-j" flag usage for building OpenSSL for android.

This commit is contained in:
Maciej Skrzypkowski 2015-02-02 12:23:55 +01:00
parent 3286d2812a
commit 9befde7be5

View file

@ -86,9 +86,12 @@ class MachCommands(CommandBase):
env = self.build_env() env = self.build_env()
if android: if android:
# Build OpenSSL for android # Build OpenSSL for android
make_cmd = ["make"]
if jobs is not None:
make_cmd += ["-j" + jobs]
with cd(self.android_support_dir()): with cd(self.android_support_dir()):
status = subprocess.call( status = subprocess.call(
["make", "-j4", "-f", "openssl.makefile"], make_cmd + ["-f", "openssl.makefile"],
env=self.build_env()) env=self.build_env())
env['OPENSSL_PATH'] = path.join(self.android_support_dir(), "openssl-1.0.1k") env['OPENSSL_PATH'] = path.join(self.android_support_dir(), "openssl-1.0.1k")