From: Sungmin Kwak Date: Sat, 9 May 2015 08:12:54 +0000 (+0900) Subject: Exclude tv profile build and add macros for mobile and wearable profile X-Git-Tag: submit/tizen/20150626.000206~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20d1fccad8216cb45a5dd2bdcecddaaaf70406ca;p=platform%2Fcore%2Fuifw%2Finputmethod-setting.git Exclude tv profile build and add macros for mobile and wearable profile Change-Id: Ia06688c9bcdad7df17d2e0c95e85e050aacbaa4f --- diff --git a/packaging/org.tizen.input-method-setting.spec b/packaging/org.tizen.input-method-setting.spec index 8fed84a..31858d1 100644 --- a/packaging/org.tizen.input-method-setting.spec +++ b/packaging/org.tizen.input-method-setting.spec @@ -9,7 +9,7 @@ Group: System Environment/Libraries License: Apache License, Version 2.0 Source0: %{name}-%{version}.tar.gz -%if "%{?tizen_profile_name}" == "wearable" +%if "%{?tizen_profile_name}" == "tv" ExcludeArch: %{arm} %ix86 x86_64 %endif @@ -40,6 +40,16 @@ export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" +%if "%{?tizen_profile_name}" == "mobile" +CFLAGS+=" -D_MOBILE"; +CXXFLAGS+=" -D_MOBILE"; +%endif + +%if "%{?tizen_profile_name}" == "wearable" +CFLAGS+=" -D_WEARABLE"; +CXXFLAGS+=" -D_WEARABLE"; +%endif + rm -rf CMakeFiles rm -rf CMakeCache.txt