From 0fefc5cda2929d8cb8a383f2c6d0bff1e7fcfb2b Mon Sep 17 00:00:00 2001 From: "jh0522.choi" Date: Wed, 21 Aug 2013 10:59:38 +0900 Subject: [PATCH] Add to check condition for emulator in spec file --- packaging/osp-vision.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/osp-vision.spec b/packaging/osp-vision.spec index dc9ae39..9dd638d 100644 --- a/packaging/osp-vision.spec +++ b/packaging/osp-vision.spec @@ -62,8 +62,12 @@ osp vision 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} -DARCH=x86 %else +CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86 +%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} -DARCH=arm %endif -- 2.7.4