From: ByungWoo Lee Date: Wed, 15 Feb 2012 02:52:39 +0000 (+0900) Subject: Add versioning of library X-Git-Tag: 2.0_alpha~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fef864de7b5f98fb59da72dd73db349c5fd1d2be;p=framework%2Fapi%2Fsim.git Add versioning of library --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f3274c8..ecb1bcf 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,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/${service} diff --git a/debian/changelog b/debian/changelog index 3abd1b2..033b3ba 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +capi-telephony-sim (0.1.0-9) unstable; urgency=low + + * Add versioning of library + * Git: api/sim + * Tag: capi-telephony-sim_0.1.0-9 + + -- ByungWoo Lee Tue, 14 Feb 2012 17:22:41 +0900 + capi-telephony-sim (0.1.0-8) unstable; urgency=low * Update version diff --git a/debian/rules b/debian/rules index 561d7e5..4ca47e4 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,8 @@ #!/usr/bin/make -f CFLAGS = -Wall -g +FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1) +MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1) ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -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