Add versioning of library
authorByungWoo Lee <bw1212.lee@samsung.com>
Wed, 15 Feb 2012 02:36:10 +0000 (11:36 +0900)
committerByungWoo Lee <bw1212.lee@samsung.com>
Wed, 15 Feb 2012 02:36:10 +0000 (11:36 +0900)
CMakeLists.txt
debian/changelog
debian/rules

index 0b34ac4..bebbb55 100644 (file)
@@ -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
index 5439c17..b06d571 100644 (file)
@@ -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
index 4a0f519..9736f8b 100755 (executable)
@@ -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