summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungKeun Lee <sngn.lee@samsung.com>2012-02-15 09:26:22 +0900
committerSeungKeun Lee <sngn.lee@samsung.com>2012-02-15 09:26:22 +0900
commitd4ed0cdfb4c261d54da7f4d5d0159ff7b1207b13 (patch)
tree49d72f6146f7f631f9e3f3dbb6cb8511727c8650
parent9d7310fbe194c33e3ab5bd40890022a1b3872649 (diff)
downloadcamera-d4ed0cdfb4c261d54da7f4d5d0159ff7b1207b13.tar.gz
camera-d4ed0cdfb4c261d54da7f4d5d0159ff7b1207b13.tar.bz2
camera-d4ed0cdfb4c261d54da7f4d5d0159ff7b1207b13.zip
add so version
-rwxr-xr-xCMakeLists.txt8
-rwxr-xr-x[-rw-r--r--]debian/changelog8
-rwxr-xr-xdebian/rules5
3 files changed, 17 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d03ef0..39df7eb 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
diff --git a/debian/changelog b/debian/changelog
index 7b95887..70d79d5 100644..100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -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
diff --git a/debian/rules b/debian/rules
index 989c066..1b8f351 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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