From 8c38d73a7e1e950386b74bcfd3120bf0d6580176 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Tue, 2 Aug 2016 18:42:16 +0900 Subject: [PATCH] tizen: Introduce speedpython macro to speedup build revise build time Change-Id: I674157a6b446c8fad54cb7c8a2a937007f04db8a Author: Youngjae Shin Origin: https://review.tizen.org/gerrit/#/c/82272/3 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/12051 Tested-by: jenkins-iotivity Reviewed-by: Ashwini Kumar Reviewed-by: jihwan seo Reviewed-by: Ziran Sun (cherry picked from commit ae5114229c8dd6759795a7f545c4699909bdd5b7) Reviewed-on: https://gerrit.iotivity.org/gerrit/12221 --- tools/tizen/iotivity.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/tizen/iotivity.spec b/tools/tizen/iotivity.spec index 831bf85..517cbd3 100644 --- a/tools/tizen/iotivity.spec +++ b/tools/tizen/iotivity.spec @@ -24,7 +24,9 @@ BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(sqlite3) Requires(postun): /sbin/ldconfig Requires(post): /sbin/ldconfig - +%if 0%{?speedpython} +%en_speedpython +%endif ## If tizen 2.x, RELEASE follows tizen_build_binary_release_type_eng. ## ## and if tizen 3.0, RELEASE follows tizen_build_devel_mode. ## @@ -127,7 +129,13 @@ cp %{SOURCE1001} ./%{name}-test.manifest %define RPM_ARCH "x86" %endif -scons -j2 --prefix=%{_prefix} \ +%define JOB "-j4" + +%if 0%{?speedpython} +%define JOB %{?_smp_mflags} +%endif + +scons %{JOB} --prefix=%{_prefix} \ VERBOSE=%{VERBOSE} \ TARGET_OS=tizen TARGET_ARCH=%{RPM_ARCH} TARGET_TRANSPORT=%{TARGET_TRANSPORT} \ RELEASE=%{RELEASE} SECURED=%{SECURED} WITH_TCP=%{WITH_TCP} WITH_CLOUD=%{WITH_CLOUD} WITH_MQ=%{WITH_MQ} LOGGING=%{LOGGING} ROUTING=%{ROUTING} \ -- 2.7.4