diff options
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | packaging/libfeedback.spec | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 271bc50..bd6095c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,10 @@ SET(EXEC_PREFIX "\${prefix}") SET(INCLUDEDIR "\${prefix}/include/${PROJECT_NAME}") SET(VERSION 0.1.4) -IF("${PROFILE}" STREQUAL "") - SET(PROFILE "common") +IF(NOT "${PROFILE}" STREQUAL "mobile") + IF(NOT "${PROFILE}" STREQUAL "wearable") + SET(PROFILE "common") + ENDIF() ENDIF() SET(FEEDBACK_PROFILE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${PROFILE}) @@ -30,7 +32,7 @@ IF(NOT "${PROFILE}" STREQUAL "common") ${FEEDBACK_PROFILE_PATH}/include/feedback-ids-${PROFILE}.h) IF("${PROFILE}" STREQUAL "mobile") ADD_DEFINITIONS("-DMOBILE") - ELSEIF("${PROFILE}" STREQIAL "wearable") + ELSEIF("${PROFILE}" STREQUAL "wearable") ADD_DEFINITIONS("-DWEARABLE") ENDIF() ENDIF() diff --git a/packaging/libfeedback.spec b/packaging/libfeedback.spec index 708ae8e..38dea7e 100644 --- a/packaging/libfeedback.spec +++ b/packaging/libfeedback.spec @@ -46,13 +46,7 @@ export CFLAGS+=" -DTIZEN_ENGINEER_MODE" cp %{SOURCE1} . cp %{SOURCE2} . -%if "%{?tizen_profile_name}" == "wearable" -%define PROFILE wearable -%else if "%{?tizen_profile_name}" == "mobile" -%define PROFILE mobile -%endif - -%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPROFILE=%{PROFILE} +%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPROFILE=%{profile} make %install |