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

index 6d03ef0c67f1b8892857b73587d19454b2c0eb46..39df7eb0826d766595dd966bb44acae1c08325d2 100755 (executable)
@@ -61,6 +61,14 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
 aux_source_directory(src SOURCES)
 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
 
+SET_TARGET_PROPERTIES(${fw_name}
+     PROPERTIES
+     VERSION ${FULLVER}
+     SOVERSION ${MAJORVER}
+     CLEAN_DIRECT_OUTPUT 1
+)
+
+
 TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
 
 INSTALL(TARGETS ${fw_name} DESTINATION lib)
old mode 100644 (file)
new mode 100755 (executable)
index 7b95887..70d79d5
@@ -1,8 +1,10 @@
-capi-media-camera (0.1.0-7) unstable; urgency=low
+capi-media-camera (0.1.0-8) unstable; urgency=low
 
-  * Update version
+  * add so version
+  * Git: slp-source.sec.samsung.net:slp/api/camera
+  * Tag: capi-media-camera_0.1.0-8
 
- -- Seungkeun Lee <sngn.lee@samsung.com>  Thu, 15 Dec 2011 12:52:02 +0900
+ -- Seungkeun Lee <sngn.lee@samsung.com>  Tue, 14 Feb 2012 16:43:04 +0900
 
 capi-media-camera (0.0.1-1) unstable; urgency=low
 
index 989c06666c1fcbb32f43c77c293952795f1ad1a2..1b8f3516db06273991fe54455781e179d8c84123 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