From d4ed0cdfb4c261d54da7f4d5d0159ff7b1207b13 Mon Sep 17 00:00:00 2001 From: SeungKeun Lee Date: Wed, 15 Feb 2012 09:26:22 +0900 Subject: add so version --- CMakeLists.txt | 8 ++++++++ debian/changelog | 8 +++++--- debian/rules | 5 ++++- 3 files changed, 17 insertions(+), 4 deletions(-) mode change 100644 => 100755 debian/changelog diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d03ef0..39df7eb 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,14 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") aux_source_directory(src SOURCES) ADD_LIBRARY(${fw_name} SHARED ${SOURCES}) +SET_TARGET_PROPERTIES(${fw_name} + PROPERTIES + VERSION ${FULLVER} + SOVERSION ${MAJORVER} + CLEAN_DIRECT_OUTPUT 1 +) + + TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS}) INSTALL(TARGETS ${fw_name} DESTINATION lib) diff --git a/debian/changelog b/debian/changelog old mode 100644 new mode 100755 index 7b95887..70d79d5 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,10 @@ -capi-media-camera (0.1.0-7) unstable; urgency=low +capi-media-camera (0.1.0-8) unstable; urgency=low - * Update version + * add so version + * Git: slp-source.sec.samsung.net:slp/api/camera + * Tag: capi-media-camera_0.1.0-8 - -- Seungkeun Lee Thu, 15 Dec 2011 12:52:02 +0900 + -- Seungkeun Lee Tue, 14 Feb 2012 16:43:04 +0900 capi-media-camera (0.0.1-1) unstable; urgency=low diff --git a/debian/rules b/debian/rules index 989c066..1b8f351 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 -- cgit v1.2.3