diff options
author | jh0522.choi <jh0522.choi@samsung.com> | 2013-08-21 10:56:08 +0900 |
---|---|---|
committer | jh0522.choi <jh0522.choi@samsung.com> | 2013-08-21 10:56:08 +0900 |
commit | d30033c1b8455411eb74f06ee0d60f41fc584eb9 (patch) | |
tree | 38992c9a12df1fd0ba09dbb33864d8fce0bab84b | |
parent | 83cfd9fd7768a394ab211b5b0f5993d38e829850 (diff) | |
download | app-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.spec | 4 |
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 |