From: Mu-Woong Date: Mon, 29 Jun 2015 12:07:03 +0000 (+0900) Subject: Cleanup the build script X-Git-Tag: submit/tizen_mobile/20150630.143244~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07a636eb5a6c74f424a3dfe8032bfa380f6acfe1;p=platform%2Fcore%2Fcontext%2Fcontext-service.git Cleanup the build script Change-Id: I33269379c50adc6bf9e57b4a9c36e414fd7ee0e5 Signed-off-by: Mu-Woong --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5acec26..6028a35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,22 +27,6 @@ SET(DEPS place-context-provider ) -# Dependencies regarding profiles -IF("${PROFILE}" STREQUAL "mobile") - ADD_DEFINITIONS("-D_MOBILE") -ENDIF("${PROFILE}" STREQUAL "mobile") - -IF("${PROFILE}" STREQUAL "wearable") - ADD_DEFINITIONS("-D_WEARABLE") -ENDIF("${PROFILE}" STREQUAL "wearable") - -# Target vs Emulator -IF("${ARCH}" STREQUAL "arm") - ADD_DEFINITIONS("-D_TARGET") -ELSE("${ARCH}" STREQUAL "arm") - ADD_DEFINITIONS("-D_EMULATOR") -ENDIF("${ARCH}" STREQUAL "arm") - IF("${MAINLOOP}" STREQUAL "ecore") ADD_DEFINITIONS("-D_USE_ECORE_MAIN_LOOP_") SET(DEPS diff --git a/packaging/context-service.spec b/packaging/context-service.spec index fbafe42..596873c 100644 --- a/packaging/context-service.spec +++ b/packaging/context-service.spec @@ -1,6 +1,6 @@ Name: context-service Summary: Context-Service -Version: 0.4.4 +Version: 0.5.0 Release: 1 Group: System/Service License: Apache-2.0 @@ -42,12 +42,6 @@ Requires(post): /usr/bin/systemctl Requires(post): /usr/bin/sqlite3 Requires(postun): /usr/bin/systemctl -%ifarch %{arm} -%define ARCH arm -%else -%define ARCH i586 -%endif - %description Context-Service @@ -71,7 +65,7 @@ export CFLAGS+=" -DTIZEN_ENGINEER_MODE" export CXXFLAGS+=" -DTIZEN_ENGINEER_MODE" export FFLAGS+=" -DTIZEN_ENGINEER_MODE" -cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCH=%{ARCH} -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DPROFILE=%{?tizen_profile_name} -DMAINLOOP=%{MAINLOOP} +cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DMAINLOOP=%{MAINLOOP} make %{?jobs:-j%jobs} %install