add so version
authorSeungKeun Lee <sngn.lee@samsung.com>
Wed, 15 Feb 2012 00:36:46 +0000 (09:36 +0900)
committerSeungKeun Lee <sngn.lee@samsung.com>
Wed, 15 Feb 2012 00:36:46 +0000 (09:36 +0900)
CMakeLists.txt
debian/changelog [changed mode: 0644->0755]
debian/rules

index 14a04781a37c28cec34d3488a176850298d1fc3f..19f4344b096ad97defd3ed6f850a60630730fca2 100755 (executable)
@@ -62,6 +62,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}
old mode 100644 (file)
new mode 100755 (executable)
index 26fd843..2c8d9ed
@@ -1,3 +1,11 @@
+capi-media-recorder (0.1.0-5) unstable; urgency=low
+
+  * add so version
+  * Git: slp-source.sec.samsung.net:slp/api/recorder
+  * Tag: capi-media-recorder_0.1.0-5
+
+ -- Seungkeun Lee <sngn.lee@samsung.com>  Tue, 14 Feb 2012 16:51:44 +0900
+
 capi-media-recorder (0.1.0-4) unstable; urgency=low
 
   * Update version
index dba96d08df97dc5424836f0ee7d4f1444b5f8452..4c376acdb84b75fb3f1489757d887228b0a45460 100755 (executable)
@@ -2,6 +2,10 @@
 
 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
 else
@@ -13,7 +17,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