From: jh0522.choi Date: Wed, 21 Aug 2013 01:57:16 +0000 (+0900) Subject: Add to check condition for emulator in spec file X-Git-Tag: 2.2.1_release~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=671f859a012dfdd77b45a17c3fb72fede131db21;p=framework%2Fosp%2Fenv-config.git Add to check condition for emulator in spec file --- diff --git a/packaging/osp-env-config.spec b/packaging/osp-env-config.spec index f19ae7f..d6b37b1 100644 --- a/packaging/osp-env-config.spec +++ b/packaging/osp-env-config.spec @@ -29,8 +29,12 @@ osp application environment cofiguration serivce (devel) %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %ifarch %{ix86} x86_64 +%if 0%{?simulator} CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_ -D_SECURE_LOG" %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %else +CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_SECURE_LOG" %cmake . -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_OSP_ARMEL_ -D_SECURE_LOG" %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %endif