X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=CMakeLists.txt;h=8d4b5c75777c5cacd561a871a4228d8f0f1df247;hb=41f29fee9907304eb6536147682ae2eaa5a2a3d5;hp=2b454dce3ec2b09aefb68a3465808b6c51a66d90;hpb=e1cbc2a2f2deb13b008ff13e7aefbf1a0cc9f339;p=platform%2Fframework%2Fweb%2Fwrt-plugins-common.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b454dc..8d4b5c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ STRING(REGEX MATCH "([^.]*)" CMAKE_PROJECT_API_VERSION "${CMAKE_PROJECT_VERSION} include(FindPkgConfig) pkg_search_module(dpl REQUIRED dpl-efl>=0.2.21) +pkg_search_module(wrt-commons-custom-handler-dao-ro REQUIRED wrt-commons-custom-handler-dao-ro) include_directories( ${dpl_INCLUDE_DIRS} @@ -34,7 +35,8 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/src/CommonsJavaScript ${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/wrt-popup/ace/popup-runner + ${CMAKE_CURRENT_SOURCE_DIR}/src/plugins_ipc_message) ############################################################################## # Build type @@ -63,7 +65,8 @@ ELSE(DPL_LOG AND NOT CMAKE_BUILD_TYPE MATCHES "profiling") ENDIF(DPL_LOG AND NOT CMAKE_BUILD_TYPE MATCHES "profiling") MESSAGE(STATUS "WITH_TESTS: " ${WITH_TESTS}) - +MESSAGE( "wrt-commons-custom-handler-dao-ro_CFLAGS_OTHER : ${wrt-commons-custom-handler-dao-ro_CFLAGS_OTHER}") +ADD_DEFINITIONS("${wrt-commons-custom-handler-dao-ro_CFLAGS_OTHER}") ADD_DEFINITIONS("-fPIC") ADD_DEFINITIONS("-fvisibility=default") # mark all exported symbols as visible ADD_DEFINITIONS("-fPIC") # If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding @@ -76,6 +79,8 @@ ADD_DEFINITIONS("-Wno-deprecated") # GCC 4.7 changes the scheme of name lookup. Guide: http://gcc.gnu.org/gcc-4.7/porting_to.html ADD_DEFINITIONS("-fpermissive") +ADD_DEFINITIONS("-DLIBDIR_PREFIX=\"${LIB_INSTALL_DIR}\"") + ############################################################################## # CMake flags IF (DEVPKG) @@ -88,7 +93,7 @@ ENDIF(DEVPKG) set(CONFIG_FILE_NAME "config.cmake") set(LIBS_COMMONS ${dpl_LDFLAGS} ) -set(DESTINATION_LIB_PREFIX lib) +set(DESTINATION_LIB_PREFIX ${LIB_INSTALL_DIR}) set(DESTINATION_HEADER_PREFIX include/${PROJECT_NAME}) set(DESTINATION_HEADERS_NON_JS ${DESTINATION_HEADER_PREFIX}/Commons) @@ -136,7 +141,7 @@ set(PKGCONFIG_DIR ${PROJECT_SOURCE_DIR}/pkgconfigs) macro(configure_and_install_pkg PKG_FILE) CONFIGURE_FILE(${PKGCONFIG_DIR}/${PKG_FILE}.in ${PKGCONFIG_DIR}/${PKG_FILE} @ONLY) - INSTALL(FILES ${PKGCONFIG_DIR}/${PKG_FILE} DESTINATION lib/pkgconfig) + INSTALL(FILES ${PKGCONFIG_DIR}/${PKG_FILE} DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) endmacro(configure_and_install_pkg) configure_and_install_pkg(wrt-plugins-commons-javascript.pc) @@ -151,6 +156,7 @@ configure_and_install_pkg(wrt-popup-runner.pc) 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) ################################################################################ # Cache @@ -159,6 +165,14 @@ set(PLATFORM "${PLATFORM}" CACHE STRING "Target platform" FORCE) set(CMAKE_CONFIG_FILE_NAME "${CMAKE_CONFIG_FILE_NAME}" CACHE STRING "CMake configuration file name." FORCE) +################################################################################ +# SMACK rule + +INSTALL(FILES ${CMAKE_SOURCE_DIR}/wrt-popup-ace-runtime.rule DESTINATION /etc/smack/accesses2.d) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/wrt-popup-wrt-runtime.rule DESTINATION /etc/smack/accesses2.d) +# temp for smack branch +INSTALL(FILES ${CMAKE_SOURCE_DIR}/accesses.d/wrt-popup-ace-runtime.rule DESTINATION /opt/etc/smack/accesses.d) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/accesses.d/wrt-popup-wrt-runtime.rule DESTINATION /opt/etc/smack/accesses.d) ################################################################################ # Summary