summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjh0522.choi <jh0522.choi@samsung.com>2013-08-21 10:59:01 +0900
committerjh0522.choi <jh0522.choi@samsung.com>2013-08-21 10:59:01 +0900
commit6b76cc373c9d889503902c1f00bf4afa6345f34a (patch)
tree9130d6ac967a62003a8135e1c6a11c34dc42ddba /packaging
parent6f143a99eda02e40c99dc3e7af27097cbf513d27 (diff)
downloadsocial-6b76cc373c9d889503902c1f00bf4afa6345f34a.tar.gz
social-6b76cc373c9d889503902c1f00bf4afa6345f34a.tar.bz2
social-6b76cc373c9d889503902c1f00bf4afa6345f34a.zip
Add to check condition for emulator in spec file
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/osp-social.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/osp-social.spec b/packaging/osp-social.spec
index 424c4d6..4c4fa73 100755
--- a/packaging/osp-social.spec
+++ b/packaging/osp-social.spec
@@ -61,8 +61,12 @@ osp social 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} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
%endif