From 4d9b599ed69e0d5a99c7e883dbc21414fe3eaf41 Mon Sep 17 00:00:00 2001 From: Jonghoon Lim Date: Thu, 16 Feb 2012 17:19:54 +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 741feb3..41556fd 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,3 @@ - CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(fw_name "capi-social-calendar") @@ -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 1b32aaf..e79a5ae --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,8 @@ -capi-social-calendar (0.1.1-30) unstable; urgency=low +capi-social-calendar (0.1.1-32) unstable; urgency=low * Multiple calendar feature added * Git: api/calendar - * Tag: capi-social-calendar_0.1.1-30 + * Tag: capi-social-calendar_0.1.1-32 -- Jonghoon Lim Fri, 10 Feb 2012 15:31:07 +0900 diff --git a/debian/rules b/debian/rules index a463aa1..fb887f6 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