From 5047a94da2d17afb92841aee7f98710cde5bb217 Mon Sep 17 00:00:00 2001 From: Jonghoon Lim Date: Thu, 16 Feb 2012 17:21:23 +0900 Subject: [PATCH] versioning updated --- CMakeLists.txt | 8 +++++++- debian/changelog | 4 ++-- debian/rules | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) mode change 100644 => 100755 debian/changelog diff --git a/CMakeLists.txt b/CMakeLists.txt index 687a539..5b9d103 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,3 @@ - CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(fw_name "capi-social-call-log") @@ -35,6 +34,13 @@ 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/social diff --git a/debian/changelog b/debian/changelog old mode 100644 new mode 100755 index 6f24713..c6fc159 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,8 @@ -capi-social-call-log (0.1.1-22) unstable; urgency=low +capi-social-call-log (0.1.1-24) unstable; urgency=low * version updated * Git: api/call-log - * Tag: capi-social-call-log_0.1.1-22 + * Tag: capi-social-call-log_0.1.1-24 -- Jonghoon Lim Thu, 15 Dec 2011 13:48:29 +0900 diff --git a/debian/rules b/debian/rules index 3321e61..2ea9eae 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/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 +15,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 -- 2.7.4