From: Lukasz Bardeli Date: Thu, 21 Dec 2017 11:19:32 +0000 (+0100) Subject: [SPEC] Fix to build plugins with specific profile and disable some plugins X-Git-Tag: submit/tizen/20180115.103658^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc5892aa1e8c90a62fc920e7a48e805d94d6ed15;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [SPEC] Fix to build plugins with specific profile and disable some plugins [Verification] Code compiles without error Change-Id: I62ca497792f02b2240f66b3b66cb9a88edc6792c Signed-off-by: Lukasz Bardeli --- diff --git a/packaging/webapi-plugins.spec b/packaging/webapi-plugins.spec index e3bc1f2b..0ff1d179 100644 --- a/packaging/webapi-plugins.spec +++ b/packaging/webapi-plugins.spec @@ -719,6 +719,9 @@ GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_mobile_feature_pp ninja -C out/Default %{?_smp_mflags} pushd out mv Default bin_mobile +%if "%{?profile}" == "mobile" +ln -sf bin_mobile Default +%endif popd # mobile-extension-emulator @@ -806,6 +809,9 @@ GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_mobile_feature_pp ninja -C out/Default %{?_smp_mflags} pushd out mv Default bin_mobile_emulator +%if "%{?profile}" == "mobile" +ln -sf bin_mobile_emulator Default +%endif popd %endif # mobile-extension-emulator %endif # MOBILE @@ -874,6 +880,9 @@ GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_wearable_feature_ ninja -C out/Default %{?_smp_mflags} pushd out mv Default bin_wearable +%if "%{?profile}" == "wearable" +ln -sf bin_wearable Default +%endif popd # wearable-extension-emulator @@ -956,6 +965,9 @@ GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_wearable_feature_ ninja -C out/Default %{?_smp_mflags} pushd out mv Default bin_wearable_emulator +%if "%{?profile}" == "wearable" +ln -sf bin_wearable_emulator Default +%endif popd %endif # wearable-extension-emulator %endif # WEARABLE @@ -1024,11 +1036,14 @@ GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_tv_feature_ppm_su ninja -C out/Default %{?_smp_mflags} pushd out mv Default bin_tv +%if "%{?profile}" == "tv" +ln -sf bin_tv Default +%endif popd %endif # TV -%if "%{?unified_build}" == "1" || "%{?profile}" == "common" || "%{?profile}" != "ivi" +%if "%{?unified_build}" == "1" || "%{?profile}" == "common" || "%{?profile}" == "ivi" # UNIFIED / COMMON or IVI GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=common -Dprivilege_engine=%{tizen_common_privilege_engine}"