diff options
author | Chris Hutten-Czapski <chutten@blackberry.com> | 2013-10-09 10:42:35 -0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-29 16:26:57 +0100 |
commit | f21cb5bc6fca478541d804d24ca0b60a96d82e8f (patch) | |
tree | 66922b25198677290112d735f7ec131a586283aa /lib/lib.pro | |
parent | eabac4c9ca887b86bcebbfd2d2afd77ed8cc1a6a (diff) |
QtWebEngine Dev Tools (Web Inspector)
To implement the Web Inspector we need a delegate to handle the http
server and devtools connections, a landing page, a ContentClient to
tell the devtools server where to find its frontend resources, those
frontend resources, and an API for embedders to turn on inspectability
in WebEngineViews.
The frontend resources are build by the chromium build and are copied
over as part of lib's build.
The landing page was taken directly from content_shell. This
should be replaced by either a new one for all QtWebEngine embedders or
by a mechanism for embedders to supply their own (or both).
Change-Id: Id4076d5ede34a91abf8dba443aed4dca4be1b3e5
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'lib/lib.pro')
-rw-r--r-- | lib/lib.pro | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/lib.pro b/lib/lib.pro index cbbb84a4a..a0f4116fe 100644 --- a/lib/lib.pro +++ b/lib/lib.pro @@ -2,7 +2,7 @@ # We want the gyp generation step to happen after all the other config steps. For that we need to prepend # our gyp_generator.prf feature to the CONFIG variable since it is processed backwards CONFIG = gyp_generator $$CONFIG -GYPDEPENDENCIES += ../shared/shared.gyp:qtwebengine_shared +GYPDEPENDENCIES += ../shared/shared.gyp:qtwebengine_shared <(chromium_src_dir)/content/browser/devtools/devtools_resources.gyp:devtools_resources GYPINCLUDES += ../qtwebengine.gypi TEMPLATE = lib @@ -13,6 +13,9 @@ QT += qml quick QT_PRIVATE += qml-private quick-private gui-private core-private qtHaveModule(v8): QT_PRIVATE += v8-private +COPY_FILES = <(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak +COPY_DESTINATIONS = ../resources/ + # Defining keywords such as 'signal' clashes with the chromium code base. DEFINES += QT_NO_KEYWORDS \ Q_FORWARD_DECLARE_OBJC_CLASS=QT_FORWARD_DECLARE_CLASS @@ -23,7 +26,7 @@ PER_CONFIG_DEFINES = QTWEBENGINEPROCESS_PATH=\\\"$$getOutDir()/%config/$$QTWEBEN # Keep Skia happy CONFIG(release, debug|release): DEFINES += NDEBUG -RESOURCES += lib_resources.qrc +RESOURCES += lib_resources.qrc devtools.qrc # We need this to find the include files generated for the .pak resource files. INCLUDEPATH += $$absolute_path(../resources, $$PWD) @@ -32,7 +35,9 @@ INCLUDEPATH += $$[QT_INSTALL_HEADERS] SOURCES = \ backing_store_qt.cpp \ + content_client_qt.cpp \ content_browser_client_qt.cpp \ + dev_tools_http_handler_delegate_qt.cpp \ download_manager_delegate_qt.cpp \ javascript_dialog_manager_qt.cpp \ render_widget_host_view_qt.cpp \ @@ -48,7 +53,9 @@ SOURCES = \ HEADERS = \ backing_store_qt.h \ browser_context_qt.h \ + content_client_qt.h \ content_browser_client_qt.h \ + dev_tools_http_handler_delegate_qt.h \ download_manager_delegate_qt.h \ javascript_dialog_manager_qt.h \ render_widget_host_view_qt.h \ |