From: Mu-Woong Lee Date: Wed, 5 Apr 2017 07:43:15 +0000 (+0900) Subject: Fix the build script typos and nonconventional so symlink packaging X-Git-Tag: submit/tizen/20170411.062105~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b59ecb23e7febca65ffaa25d00923638e240833b;p=platform%2Fcore%2Fapi%2Fmotion.git Fix the build script typos and nonconventional so symlink packaging Change-Id: Ic9d6bcf3ea55a8d1bbf38a1252f7ee42bbdd4687 Signed-off-by: Mu-Woong Lee --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d8f80d9..16f3895 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ INCLUDE_DIRECTORIES( ) ADD_DEFINITIONS(-O2 -Wall -fPIC -flto -fdata-sections -ffunction-sections -fvisibility=hidden) -SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-section -Wl,--print-gc-section") +SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-sections -Wl,--print-gc-sections") # Build pkg_check_modules(pkgs REQUIRED ${dependency}) @@ -43,12 +43,11 @@ INSTALL( SET(VERSION ${FULLVER}) SET(PC_PREFIX ${CMAKE_INSTALL_PREFIX}) SET(PC_NAME ${PROJECT_NAME}) -SET(PC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") +SET(PC_LIBDIR "${CMAKE_INSTALL_LIBDIR}") SET(PC_INCLUDE "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/${inc_subdir}") -SET(PC_DESCRIPTION "Tizen Native Motion Recognition API") +SET(PC_DESCRIPTION "Tizen C Native Motion Recognition API") SET(PC_REQUIRED ${dependency}) SET(PC_LDFLAGS -l${target}) -SET(PC_CFLAGS -I\${includedir}/${inc_subdir}) CONFIGURE_FILE( ${PROJECT_NAME}.pc.in diff --git a/packaging/capi-context-motion.spec b/packaging/capi-context-motion.spec index 1c3da8b..3f925dd 100644 --- a/packaging/capi-context-motion.spec +++ b/packaging/capi-context-motion.spec @@ -52,7 +52,7 @@ ln -s lib%{name}.so.%{version} %{buildroot}/%{_libdir}/libcore-context-manager.s %files %manifest packaging/%{name}.manifest -%{_libdir}/*.so* +%{_libdir}/*.so.* %license LICENSE %package devel @@ -65,4 +65,5 @@ Tizen Native Motion Recognition API (Development) %files devel %{_includedir}/*/*.h +%{_libdir}/*.so %{_libdir}/pkgconfig/*.pc