summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjh0522.choi <jh0522.choi@samsung.com>2013-08-21 10:56:08 +0900
committerjh0522.choi <jh0522.choi@samsung.com>2013-08-21 10:56:08 +0900
commitd30033c1b8455411eb74f06ee0d60f41fc584eb9 (patch)
tree38992c9a12df1fd0ba09dbb33864d8fce0bab84b
parent83cfd9fd7768a394ab211b5b0f5993d38e829850 (diff)
downloadapp-service-d30033c1b8455411eb74f06ee0d60f41fc584eb9.tar.gz
app-service-d30033c1b8455411eb74f06ee0d60f41fc584eb9.tar.bz2
app-service-d30033c1b8455411eb74f06ee0d60f41fc584eb9.zip
Add to check condition for emulator in spec file
-rw-r--r--packaging/osp-app-service.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/osp-app-service.spec b/packaging/osp-app-service.spec
index e48f96d..fe03dbc 100644
--- a/packaging/osp-app-service.spec
+++ b/packaging/osp-app-service.spec
@@ -85,8 +85,12 @@ osp application service
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
+%if 0%{?simulator}
CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
%else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+%endif
+%else
CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
%endif