[EFL] Share resources installed for inspector
[WebKit.git] / Source / cmake / OptionsEfl.cmake
index b2771e9..e929d23 100644 (file)
@@ -157,6 +157,12 @@ IF (ENABLE_WEBGL)
   FIND_PACKAGE(OpenGL REQUIRED)
 ENDIF ()
 
+IF (ENABLE_INSPECTOR)
+    SET(WEB_INSPECTOR_DIR "${DATA_INSTALL_DIR}/inspector")
+    ADD_DEFINITIONS(-DWEB_INSPECTOR_DIR=\"${CMAKE_BINARY_DIR}/${WEB_INSPECTOR_DIR}\")
+    ADD_DEFINITIONS(-DWEB_INSPECTOR_INSTALL_DIR=\"${CMAKE_INSTALL_PREFIX}/${WEB_INSPECTOR_DIR}\")
+ENDIF ()
+
 SET(CPACK_SOURCE_GENERATOR TBZ2)
 
 IF (WTF_USE_TILED_BACKING_STORE)