From bfef77e3ca0d82253fb70ff178ff5a826c671d55 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Wed, 3 Jun 2015 17:40:47 +0200 Subject: Add public QtWebEngineCore C++ API This patch introduces a new public C++ API layer in preparation to make it possible to integrate with lower level Chromium features related mostly to networking operations like accessing and blocking cookies, custom request headers, etc. This API layer can be used both by Qt Widgets and Qt Quick applications with a small C++ core. It should contatain API to access features that usually run on the IO thread to make it possible to perform heavy tasks that would otherwise require costly context switches to the UI thread. Furthermore for these features a QML API does either not make sense, since they are non-UI-related, or a QML API is simply not feasible, because the API is meant for advanced usecases like web browser development (i.e. custom protocol handlers, network traffic interception cookie syncing, etc.). In the long term this layer could also make it possible to reduce code duplication in the widgets and quick layers by moving common parts to the core layer. The new API is built entirely by qmake as a separate static library which is then linked into the QtWebEngineCore library built by gyp and ninja, to prevent the build options passed to Chromium to break the API layer. As a first step this only contains the global headers for core. Change-Id: Iccf8544587cde7c0d9c6abd462e4766bf9ec81ae Reviewed-by: Pierre Rossi --- src/core/core.pro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core/core.pro') diff --git a/src/core/core.pro b/src/core/core.pro index cf00f39cb..7f19a48ce 100644 --- a/src/core/core.pro +++ b/src/core/core.pro @@ -8,12 +8,16 @@ core_gyp_generator.file = core_gyp_generator.pro gyp_run.file = gyp_run.pro gyp_run.depends = core_gyp_generator +core_api.file = api/core_api.pro +core_api.depends = gyp_run + # This will take the compile output of ninja, and link+deploy the final binary. core_module.file = core_module.pro -core_module.depends = gyp_run +core_module.depends = core_api SUBDIRS += core_gyp_generator \ gyp_run \ + core_api \ core_module !win32 { -- cgit v1.2.3