pkgconfig: fix pkgconfig error 42/90242/1 accepted/tizen/3.0/ivi/20161011.053519 accepted/tizen/ivi/20160930.043426 submit/tizen/20160930.041528 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_ivi/20161010.000010
authorSangjung Woo <sangjung.woo@samsung.com>
Thu, 29 Sep 2016 06:49:50 +0000 (15:49 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Thu, 29 Sep 2016 06:49:50 +0000 (15:49 +0900)
Current Tizen uses json-c instead of json. However,
automotive-message-broker.pc requires 'json' so error occurs when
building ABM plugin. And Tizen build system gives 'INCLUDE_INSTALL_DIR'
but AMB overwrites this variable without checking its existence. This
patch fixes these bugs.

Change-Id: I5c920cceff2bc96df4e0efd58824ef7541f5ef39
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
CMakeLists.txt
lib/automotive-message-broker.pc.in

index 1eda6d3..36ce973 100644 (file)
@@ -25,7 +25,9 @@ add_definitions(-DPROJECT_SERIES="${PROJECT_SERIES}")
 set (LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
 set (LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}" )
 set (PLUGIN_INSTALL_PATH "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}")
-set (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}")
+if (NOT DEFINED INCLUDE_INSTALL_DIR)
+       set (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}")
+endif()
 set (DOC_INSTALL_DIR "${CMAKE_INSTALL_DOCDIR}/${PROJECT_NAME}/${PROJECT_SERIES}")
 set (PLUGIN_SEGMENT_INSTALL_PATH "${CMAKE_INSTALL_SYSCONFDIR}/ambd/plugins.d")
 
index 2602b31..14c4ece 100644 (file)
@@ -6,6 +6,6 @@ includedir=@INCLUDE_INSTALL_DIR@/amb
 Name: automotive-message-broker
 Description: Message Broker for vehicle data
 Version: @PROJECT_VERSION@
-Requires: gio-2.0 glib-2.0 json
+Requires: gio-2.0 glib-2.0 json-c
 Libs: -L${libdir} -lamb -luuid
 Cflags: -I${includedir}