diff --git a/lib/lib.pro b/lib/lib.pro index 6823882178d863f7f352b9e8e23cc3ae76648466..9e51b3c587ac5586646ce415d85b671275212352 100644 --- a/lib/lib.pro +++ b/lib/lib.pro @@ -47,6 +47,7 @@ SOURCES = \ download_manager_delegate_qt.cpp \ chromium_gpu_helper.cpp \ javascript_dialog_manager_qt.cpp \ + process_main.cpp \ render_widget_host_view_qt.cpp \ resource_context_qt.cpp \ url_request_context_getter_qt.cpp \ @@ -67,6 +68,7 @@ HEADERS = \ download_manager_delegate_qt.h \ chromium_gpu_helper.h \ javascript_dialog_manager_qt.h \ + process_main.h \ render_widget_host_view_qt.h \ render_widget_host_view_qt_delegate.h \ resource_context_qt.h \ diff --git a/lib/process_main.cpp b/lib/process_main.cpp new file mode 100644 index 0000000000000000000000000000000000000000..af44ba6001bba61e9e1fe15e87d9d0808a9c4498 --- /dev/null +++ b/lib/process_main.cpp @@ -0,0 +1,52 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the QtWebEngine module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "process_main.h" +#include "content/public/app/content_main.h" + +namespace QtWebEngine { + +int processMain(int argc, const char **argv) +{ + return content::ContentMain(argc, argv, 0); +} + +} diff --git a/lib/process_main.h b/lib/process_main.h new file mode 100644 index 0000000000000000000000000000000000000000..2bd37a336d6f3373cd2deda504ee172bb9cf9261 --- /dev/null +++ b/lib/process_main.h @@ -0,0 +1,48 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the QtWebEngine module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "qtwebenginecoreglobal.h" + +namespace QtWebEngine { + +QWEBENGINE_EXPORT int processMain(int argc, const char **argv); + +} diff --git a/process/main.cpp b/process/main.cpp index 839b626c30d300be6d1b76b70407edff9c0522ca..800dbdcfa318ddf2d0910b8186e1afef3abf266f 100644 --- a/process/main.cpp +++ b/process/main.cpp @@ -39,10 +39,10 @@ ** ****************************************************************************/ -#include "content/public/app/content_main.h" +#include "process_main.h" int main(int argc, const char **argv) { - return content::ContentMain(argc, argv, 0); + return QtWebEngine::processMain(argc, argv); } diff --git a/process/process.pro b/process/process.pro index 11a7880f2fffecaa5c17c768967f9de8cc73d219..8edf22bf2356c0e7862df1ec1a6bb93957b3f68d 100644 --- a/process/process.pro +++ b/process/process.pro @@ -1,11 +1,13 @@ -# This is a dummy .pro file used to extract some aspects of the used configuration and feed them to gyp -# 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 -GYPINCLUDES += ../qtwebengine.gypi - TARGET = $$QTWEBENGINEPROCESS_NAME TEMPLATE = app +macx:LIBPATH = $$getOutDir()/$$getConfigDir() +else:LIBPATH = $$getOutDir()/$$getConfigDir()/lib +LIBS_PRIVATE += -lQt5WebEngineCore -L$$LIBPATH +QMAKE_RPATHDIR += $$LIBPATH + +DESTDIR = $$getOutDir()/$$getConfigDir() + +INCLUDEPATH += ../lib + SOURCES = main.cpp diff --git a/qtwebengine.gyp b/qtwebengine.gyp index a511da461171b0bf86f11003d3daacce94394472..f7cabf26a38dd790892b26c5c36a51d9131ee9f0 100644 --- a/qtwebengine.gyp +++ b/qtwebengine.gyp @@ -5,7 +5,6 @@ 'type': 'none', 'dependencies': [ 'shared/shared.gyp:*', - 'process/process.gyp:*', 'lib/lib.gyp:*', ], } diff --git a/qtwebengine.pro b/qtwebengine.pro index 71396207a3098ed180e0ac3b4e5ee06253b97761..8604551a0d3a8f7534f7f8a04ea299da0b6a4a0b 100644 --- a/qtwebengine.pro +++ b/qtwebengine.pro @@ -9,7 +9,6 @@ qmake_extras.subdir = build/qmake_extras # Phony pro files that generate gyp files. Will be built by ninja. shared.depends = qmake_extras lib.depends = qmake_extras -process.depends = qmake_extras # API libraries webengine_lib.subdir = lib/quick @@ -25,11 +24,12 @@ widgets_lib.subdir = lib/widgets widgets_lib.target = sub-widgets-lib widgets_lib.depends = build +process.depends = build sub_examples.depends = quick_plugin_lib quick_experimental_plugin_lib sub_tests.depends = quick_plugin_lib quick_experimental_plugin_lib # This is where we use the generated gypi files and run gyp_qtwebengine -build.depends = resources shared lib process +build.depends = resources shared lib SUBDIRS += qmake_extras \ resources \