Export manifest parser utils 17/52917/2
authorLukasz Wysocki <l.wysocki@samsung.com>
Fri, 27 Nov 2015 10:38:19 +0000 (11:38 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Mon, 30 Nov 2015 13:49:21 +0000 (05:49 -0800)
This change is required by following change:
https://review.tizen.org/gerrit/#/c/50502/
and should be merged before that change.

Change-Id: I72c1037071b30b698152603b18f1fac0cc911aec

src/manifest_parser/manifest-parser.pc.in
src/utils/CMakeLists.txt
src/utils/manifest-parser-utils.pc.in [new file with mode: 0644]

index 3ff132842b21c2a76ec53f68b94f51ff2d9ec206..a12ee765a6bba206547a0cf4c9155dc46b92dd62 100644 (file)
@@ -6,6 +6,6 @@ includedir=@INCLUDEDIR@
 Name: manifest-parser
 Description: Universal manifest parser
 Version: @VERSION@
-Requires: libiri libxml-2.0 pkgmgr-info pkgmgr-parser vconf
+Requires: libiri libxml-2.0 pkgmgr-info pkgmgr-parser vconf manifest-parser-utils
 Libs: -L${libdir} -lmanifest-parser
 Cflags: -I${includedir}
index 3fa79c40c6f00b952e6ddc68cd976b586be94e40..0786ef0f28fea72f72a08897301e341b453eba85 100644 (file)
@@ -23,3 +23,12 @@ SET_TARGET_PROPERTIES(${TARGET_LIBNAME_UTILS} PROPERTIES SOVERSION ${VERSION_MAJ
 
 # Install
 INSTALL(TARGETS ${TARGET_LIBNAME_UTILS} DESTINATION ${LIB_INSTALL_DIR})
+
+# Install includes
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${INCLUDEDIR}/manifest_parser
+        FILES_MATCHING PATTERN "*.h")
+
+# Configure and install pkgconfig file
+SET(PKG_FILE manifest-parser-utils.pc)
+CONFIGURE_FILE(${PKG_FILE}.in ${PKG_FILE} @ONLY)
+INSTALL(FILES ${PKG_FILE} DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
diff --git a/src/utils/manifest-parser-utils.pc.in b/src/utils/manifest-parser-utils.pc.in
new file mode 100644 (file)
index 0000000..e448e0a
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=@PREFIX@
+libdir=@LIBDIR@
+includedir=@INCLUDEDIR@
+
+Name: manifest-parser-utils
+Description: Universal manifest parser utils
+Version: @VERSION@
+Requires: libiri
+Libs: -L${libdir} -lmanifest-parser-utils
+Cflags: -I${includedir}