ENDIF(NOT CMAKE_BUILD_TYPE)
OPTION(DPL_LOG "DPL logs status" ON)
-
+OPTION(WITH_TESTS "Build tests" OFF)
+#enable csp policy support
+OPTION(CSP_SUPPORT "Support for csp policy" ON)
+IF(CSP_SUPPORT)
+ ADD_DEFINITIONS("-DCSP_ENABLED")
+ENDIF(CSP_SUPPORT)
# logs can be only enabled in debug mode
-IF(CMAKE_BUILD_TYPE MATCHES "Debug" AND DPL_LOG)
+IF(CMAKE_BUILD_TYPE MATCHES "Profiling" AND DPL_LOG)
+ MESSAGE(STATUS "Logging disabled for DPL")
+ELSE(CMAKE_BUILD_TYPE MATCHES "Profiling" AND DPL_LOG)
ADD_DEFINITIONS("-DDPL_LOGS_ENABLED")
MESSAGE(STATUS "Logging enabled for DPL")
-ELSE(CMAKE_BUILD_TYPE MATCHES "Debug" AND DPL_LOG)
- MESSAGE(STATUS "Logging disabled for DPL")
-ENDIF(CMAKE_BUILD_TYPE MATCHES "Debug" AND DPL_LOG)
+ENDIF(CMAKE_BUILD_TYPE MATCHES "Profiling" AND DPL_LOG)
+MESSAGE(STATUS "WITH_TESTS: " ${WITH_TESTS})
MESSAGE(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
OPTION(PROFILING "Profiling status" OFF)
IF(CMAKE_BUILD_TYPE MATCHES "Profiling")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/default_icon_wac.png
DESTINATION share/wrt-engine/
)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/images/icon_left_arrow.png
- DESTINATION /usr/etc/wrt/
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE
- )
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/images/icon_refresh.png
- DESTINATION /usr/etc/wrt/
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE
- )
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/images/icon_right_arrow.png
- DESTINATION /usr/etc/wrt/
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE
- )
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/images/mp_stop.png
- DESTINATION /usr/etc/wrt/
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE
- )
INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/userAgentProfile.xml
DESTINATION share/wrt-engine/
)
DESTINATION share/wrt-engine/
)
ADD_CUSTOM_COMMAND(
- OUTPUT ${PROJECT_SOURCE_DIR}/data/communicationBox.edj
- COMMAND edje_cc
- ARGS ${PROJECT_SOURCE_DIR}/data/communicationBox.edc
- ${PROJECT_SOURCE_DIR}/data/communicationBox.edj
- DEPENDS ${PROJECT_SOURCE_DIR}/data/communicationBox.edc
- )
-ADD_CUSTOM_COMMAND(
OUTPUT ${PROJECT_SOURCE_DIR}/data/wrt_theme.edj
COMMAND edje_cc -id ${PROJECT_SOURCE_DIR}/data/images
ARGS ${PROJECT_SOURCE_DIR}/data/wrt_theme.edc
${PROJECT_SOURCE_DIR}/data/Platform.edj
DEPENDS ${PROJECT_SOURCE_DIR}/data/Platform.edc
)
-ADD_CUSTOM_TARGET( ACE_EDJES ALL DEPENDS
- ${PROJECT_SOURCE_DIR}/data/communicationBox.edj
- )
ADD_CUSTOM_TARGET( WRT_THEME_EDJES ALL DEPENDS
${PROJECT_SOURCE_DIR}/data/wrt_theme.edj
)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/data/generic_popup.edj
DESTINATION share/edje/ace/
)
-INSTALL(FILES ${PROJECT_SOURCE_DIR}/data/communicationBox.edj
- DESTINATION share/edje/ace/
- )
INSTALL(FILES ${PROJECT_SOURCE_DIR}/data/wrt_theme.edj
DESTINATION share/edje/wrt/
)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(po)
-set(PKGCONFIG_DIR ${PROJECT_SOURCE_DIR}/pkgconfig)
+SET(WRT_API_NEW_INCLUDES
+ "${PROJECT_SOURCE_DIR}/src/api_new/"
+ "${PROJECT_SOURCE_DIR}/src/domain/"
+ "${PROJECT_SOURCE_DIR}/src/view/")
+
+SET(PKGCONFIG_DIR ${PROJECT_SOURCE_DIR}/pkgconfig)
CONFIGURE_FILE(${PKGCONFIG_DIR}/wrt-core.pc.in
${PKGCONFIG_DIR}/wrt-core.pc @ONLY)
INSTALL(FILES ${PKGCONFIG_DIR}/wrt-core.pc DESTINATION lib/pkgconfig)
+IF(WITH_TESTS)
+ add_subdirectory(tests)
+ENDIF(WITH_TESTS)
+