diff options
-rwxr-xr-x | CMakeLists.txt | 8 | ||||
-rwxr-xr-x | debian/changelog | 8 | ||||
-rwxr-xr-x | debian/rules | 5 |
3 files changed, 20 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a75862e..ec9f120 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,14 @@ ADD_LIBRARY(${fw_name} SHARED ${SOURCES}) TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS}) +SET_TARGET_PROPERTIES(${fw_name} + PROPERTIES + VERSION ${FULLVER} + SOVERSION ${MAJORVER} + CLEAN_DIRECT_OUTPUT 1 +) + + INSTALL(TARGETS ${fw_name} DESTINATION lib) INSTALL( DIRECTORY ${INC_DIR}/ DESTINATION include/${service} diff --git a/debian/changelog b/debian/changelog index 9a5bdae..7e0a5a9 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +capi-media-image-util (0.1.0-8) unstable; urgency=low + + * add so version + * Git: slp-source.sec.samsung.net:slp/api/image-util + * Tag: capi-media-image-util_0.1.0-8 + + -- Seungkeun Lee <sngn.lee@samsung.com> Tue, 14 Feb 2012 16:46:24 +0900 + capi-media-image-util (0.1.0-7) unstable; urgency=low * boundary check update diff --git a/debian/rules b/debian/rules index 3aab80d..6da839b 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,8 @@ #!/usr/bin/make -f +FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1) +MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1) + CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) @@ -13,7 +16,7 @@ CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp configure: configure-stamp configure-stamp: dh_testdir - mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. + mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER} touch configure-stamp |