diff options
author | ByungWoo Lee <bw1212.lee@samsung.com> | 2012-02-15 11:41:15 +0900 |
---|---|---|
committer | ByungWoo Lee <bw1212.lee@samsung.com> | 2012-02-15 11:41:15 +0900 |
commit | 0ed1b013e7bb03e4ee448d62c0b1f69e05953963 (patch) | |
tree | 61918be4c638088ad234558a03d08ac4e9e8a085 | |
parent | 06f235fd19f4a7b7ca8116bd1efff4762865feff (diff) | |
download | connection-0ed1b013e7bb03e4ee448d62c0b1f69e05953963.tar.gz connection-0ed1b013e7bb03e4ee448d62c0b1f69e05953963.tar.bz2 connection-0ed1b013e7bb03e4ee448d62c0b1f69e05953963.zip |
Add versioning of library
-rw-r--r-- | CMakeLists.txt | 7 | ||||
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | debian/rules | 4 |
3 files changed, 18 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c2483d..9c795c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,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 777e386..aba5877 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +capi-network-connection (0.1.0-16) unstable; urgency=low + + * Add versioning of library + * Git: api/connection + * Tag: capi-network-connection_0.1.0-16 + + -- ByungWoo Lee <bw1212.lee@samsung.com> Tue, 14 Feb 2012 17:23:56 +0900 + capi-network-connection (0.1.0-15) unstable; urgency=low * Fix bugs diff --git a/debian/rules b/debian/rules index 06ff135..678a339 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 |