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

index f3274c8..ecb1bcf 100755 (executable)
@@ -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}
index 3abd1b2..033b3ba 100644 (file)
@@ -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 <bw1212.lee@samsung.com>  Tue, 14 Feb 2012 17:22:41 +0900
+
 capi-telephony-sim (0.1.0-8) unstable; urgency=low
 
   * Update version
index 561d7e5..4ca47e4 100755 (executable)
@@ -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