Merge "Add to ewk api for setting/getting the User Agent by using system info library...
[framework/web/webkit-efl.git] / Source / cmake / FindCAPI.cmake
index 8273286..f27bcb7 100755 (executable)
@@ -40,6 +40,7 @@ PKG_CHECK_MODULES(PC_CAPI
     capi-system-sensor
     capi-telephony-network-info
     capi-system-power
+    capi-system-info
 )
 
 FIND_PATH(APPFW_APPLICATION_INCLUDE_DIRS NAMES app.h
@@ -84,6 +85,13 @@ FIND_LIBRARY(SYSTEM_POWER_LIBRARIES NAMES capi-system-power
     HINTS ${PC_CAPI_LIBRARY_DIRS} ${PC_CAPI_LIBDIR}
 )
 
+FIND_PATH(SYSTEM_INFO_INCLUDE_DIRS NAMES system_info.h
+    HINTS ${PC_CAPI_INCLUDE_DIRS} ${PC_CAPI_INCLUDEDIR}
+)
+FIND_LIBRARY(SYSTEM_INFO_LIBRARIES NAMES capi-system-info
+    HINTS ${PC_CAPI_LIBRARY_DIRS} ${PC_CAPI_LIBDIR}
+)
+
 SET(CAPI_INCLUDE_DIRS
     ${APPFW_APPLICATION_INCLUDE_DIRS}
     ${NETWORK_CONNECTION_INCLUDE_DIRS}
@@ -91,6 +99,7 @@ SET(CAPI_INCLUDE_DIRS
     ${SYSTEM_SENSOR_INCLUDE_DIRS}
     ${TELEPHONY_NETWORK_INCLUDE_DIRS}
     ${SYSTEM_POWER_INCLUDE_DIRS}
+    ${SYSTEM_INFO_INCLUDE_DIRS}
 )
 SET(CAPI_LIBRARIES
     ${APPFW_APPLICATION_LIBRARIES}
@@ -99,6 +108,7 @@ SET(CAPI_LIBRARIES
     ${SYSTEM_SENSOR_LIBRARIES}
     ${TELEPHONY_NETWORK_LIBRARIES}
     ${SYSTEM_POWER_LIBRARIES}
+    ${SYSTEM_INFO_LIBRARIES}
 )
 
 INCLUDE(FindPackageHandleStandardArgs)