diff options
author | ByungWoo Lee <bw1212.lee@samsung.com> | 2012-02-15 11:36:10 +0900 |
---|---|---|
committer | ByungWoo Lee <bw1212.lee@samsung.com> | 2012-02-15 11:36:10 +0900 |
commit | 11408da32eecfefbeb878511e824dafdac385cd6 (patch) | |
tree | a3aa8550a25d1999ac50a18f3a95ddf0863625cb | |
parent | 58096913d22ae8883e1a702443e40e1bcf99b218 (diff) | |
download | bluetooth-11408da32eecfefbeb878511e824dafdac385cd6.tar.gz bluetooth-11408da32eecfefbeb878511e824dafdac385cd6.tar.bz2 bluetooth-11408da32eecfefbeb878511e824dafdac385cd6.zip |
Add versioning of library
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | debian/rules | 5 |
3 files changed, 19 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b34ac4..bebbb55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,3 @@ - CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(fw_name "capi-network-bluetooth") @@ -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/network diff --git a/debian/changelog b/debian/changelog index 5439c17..b06d571 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +capi-network-bluetooth (0.1.0-11) unstable; urgency=low + + * Add versioning of library + * Git: api/bluetooth + * Tag: capi-network-bluetooth_0.1.0-11 + + -- ByungWoo Lee <bw1212.lee@samsung.com> Tue, 14 Feb 2012 17:09:56 +0900 + capi-network-bluetooth (0.1.0-10) unstable; urgency=low * Correct typos diff --git a/debian/rules b/debian/rules index 4a0f519..9736f8b 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 |