From: jh0522.choi Date: Wed, 21 Aug 2013 01:59:42 +0000 (+0900) Subject: Add to check condition for emulator in spec file X-Git-Tag: submit/tizen_2.2/20131107.062229~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=906599160d9d24baf04122b9408d384eed773531;p=framework%2Fosp%2Fweb.git Add to check condition for emulator in spec file --- diff --git a/packaging/osp-web.spec b/packaging/osp-web.spec index cf9b7e7..1e16129 100755 --- a/packaging/osp-web.spec +++ b/packaging/osp-web.spec @@ -82,8 +82,12 @@ osp web library (DEV) %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} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %else +CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} +%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} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %endif