Update wrt-plugins-common_0.3.53
[framework/web/wrt-plugins-common.git] / CMakeLists.txt
index 8217e67..54639ef 100644 (file)
@@ -30,15 +30,22 @@ include_directories(
   ${dpl_INCLUDE_DIRS}
 )
 
+
+
 ##############################################################################
+# Build type
+IF(NOT CMAKE_BUILD_TYPE)
+    SET(CMAKE_BUILD_TYPE "Release")
+ENDIF(NOT CMAKE_BUILD_TYPE)
+
 # Compiler flags
-SET(CMAKE_BUILD_TYPE Release)
 SET(CMAKE_C_FLAGS_PROFILING    "-O0 -g -pg")
 SET(CMAKE_CXX_FLAGS_PROFILING  "-O0 -std=c++0x -g -pg")
 SET(CMAKE_C_FLAGS_DEBUG        "-O0 -g")
 SET(CMAKE_CXX_FLAGS_DEBUG      "-O0 -std=c++0x -g")
 SET(CMAKE_C_FLAGS_RELEASE      "-O2 -g")
 SET(CMAKE_CXX_FLAGS_RELEASE    "-O2 -std=c++0x -g")
+SET(CMAKE_CXX_FLAGS_CCOV       "-O0 -std=c++0x -g --coverage")
 ####
 
 OPTION(DPL_LOG "DPL logs status" ON)
@@ -49,6 +56,7 @@ ELSE(DPL_LOG)
     MESSAGE(STATUS "Logging disabled for DPL")
 ENDIF(DPL_LOG)
 
+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
 ADD_DEFINITIONS("-DEXPORT_API=")
@@ -56,15 +64,10 @@ ADD_DEFINITIONS("-Wall")
 #ADD_DEFINITIONS("-Werror")
 ADD_DEFINITIONS("-Wextra")
 ADD_DEFINITIONS("-Wno-deprecated")
-ADD_DEFINITIONS("-DSEPARATED_SINGLETON_IMPLEMENTATION")
-#ADD_DEFINITIONS("-DW3C_TEST")
 #ADD_DEFINITIONS("-DDEVPKG")
 
 ##############################################################################
 # CMake flags
-IF (W3C_TEST)
-    SET(W3C_TEST "ON")
-ENDIF(W3C_TEST)
 IF (DEVPKG)
     SET(DEVPKG "ON")
 ENDIF(DEVPKG)
@@ -80,6 +83,7 @@ set(DESTINATION_HEADER_PREFIX include/${PROJECT_NAME})
 
 set(DESTINATION_HEADERS_NON_JS ${DESTINATION_HEADER_PREFIX}/Commons)
 set(DESTINATION_HEADERS_JS ${DESTINATION_HEADER_PREFIX}/CommonsJavaScript)
+set(DESTINATION_HEADERS_JS_OVERLAY ${DESTINATION_HEADER_PREFIX}/js-overlay)
 
 ################################################################################
 # Target platform
@@ -128,6 +132,8 @@ configure_and_install_pkg(wrt-plugins-cpu.pc)
 configure_and_install_pkg(wrt-plugins-widget-interface-dao.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)
+configure_and_install_pkg(wrt-plugin-js-overlay.pc)
 
 ################################################################################
 # Cache
@@ -141,4 +147,3 @@ set(CMAKE_CONFIG_FILE_NAME "${CMAKE_CONFIG_FILE_NAME}" CACHE
 # Summary
 
 message(STATUS "PLATFORM = ${PLATFORM}")
-message(STATUS "W3C_TEST = ${W3C_TEST}")