Add to check condition for emulator in spec file submit/tizen/20130830.084259
authorjh0522.choi <jh0522.choi@samsung.com>
Wed, 21 Aug 2013 01:56:41 +0000 (10:56 +0900)
committerjh0522.choi <jh0522.choi@samsung.com>
Wed, 21 Aug 2013 01:56:41 +0000 (10:56 +0900)
packaging/apps.CertificateSelector.spec

index bd58121..df53e95 100644 (file)
@@ -27,8 +27,12 @@ The app-control of the certificate manager
 %build
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %ifarch %{ix86}
+%if 0%{?simulator}
 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
 %else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -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_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
 %endif