Remove hardcoded path for multiuser support
[platform/framework/web/wrt-plugins-common.git] / CMakeLists.txt
index 8d4b5c7..2f0b87f 100644 (file)
@@ -36,7 +36,8 @@ include_directories(
   ${CMAKE_CURRENT_SOURCE_DIR}/src/plugin-loading
   ${CMAKE_CURRENT_SOURCE_DIR}/src/js-overlay
   ${CMAKE_CURRENT_SOURCE_DIR}/src/wrt-popup/ace/popup-runner
-  ${CMAKE_CURRENT_SOURCE_DIR}/src/plugins_ipc_message)
+  ${CMAKE_CURRENT_SOURCE_DIR}/src/plugins_ipc_message
+  ${CMAKE_CURRENT_SOURCE_DIR}/src/dispatch-event)
 
 ##############################################################################
 # Build type
@@ -56,6 +57,10 @@ SET(CMAKE_CXX_FLAGS_CCOV       "-O0 -std=c++0x -g --coverage")
 
 OPTION(DPL_LOG "DPL logs status" ON)
 OPTION(WITH_TESTS "Build tests" OFF)
+OPTION(X11_SUPPORT "Enable X11" ON)
+IF(X11_SUPPORT)
+    ADD_DEFINITIONS("-DX11")
+ENDIF(X11_SUPPORT)
 
 IF(DPL_LOG AND NOT CMAKE_BUILD_TYPE MATCHES "profiling")
     MESSAGE(STATUS "Logging enabled for DPL")
@@ -147,7 +152,7 @@ endmacro(configure_and_install_pkg)
 configure_and_install_pkg(wrt-plugins-commons-javascript.pc)
 configure_and_install_pkg(wrt-plugins-commons.pc)
 configure_and_install_pkg(wrt-plugins-filesystem.pc)
-configure_and_install_pkg(wrt-plugins-widget-interface-dao.pc)
+configure_and_install_pkg(wrt-plugins-widget-interface.pc)
 configure_and_install_pkg(wrt-plugins-widgetdb.pc)
 configure_and_install_pkg(wrt-plugins-plugin-manager.pc)
 configure_and_install_pkg(wrt-plugin-loading.pc)
@@ -157,6 +162,15 @@ configure_and_install_pkg(wrt-popup-ace-runner.pc)
 configure_and_install_pkg(wrt-popup-wrt-runner.pc)
 configure_and_install_pkg(wrt-plugins-api-support.pc)
 configure_and_install_pkg(wrt-plugins-ipc-message.pc)
+configure_and_install_pkg(wrt-dispatch-event.pc)
+
+################################################################################
+# ld configuration file
+
+CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/${PACKAGE_NAME}.conf.in
+               ${PROJECT_SOURCE_DIR}/${PACKAGE_NAME}.conf @ONLY)
+INSTALL(FILES ${PROJECT_SOURCE_DIR}/${PACKAGE_NAME}.conf DESTINATION /etc/ld.so.conf.d/)
+
 
 ################################################################################
 # Cache