summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/gn_generator.prf
Commit message (Collapse)AuthorAgeFilesLines
* Add support for qtpdf ios buildsMichal Klocek2020-01-171-1/+6
| | | | | | | | | | Fix platform checks, add initial gn args, use shared library template for gn to get all the linker objects. This is just debug build. Task-number: QTBUG-77931 Change-Id: I9b3f7d3440aec66433ed19f4976e14506fba45dd Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Add QtPdf and QtPdfWidgets modulesMichal Klocek2019-11-251-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds two new modules to qtwebengine repository. New modules do not depend on webengine module, however webengine chromium source code and Chromium "gn" configuration is required to build QtPdf. Adding two unrelated modules to webengine might look crazy: however sharing gn build configuration and Chromium code base with necessary qt adaptations simplifies code maintenance and minimises required code checkouts. Back porting of security patches for Chromium also affects Pdfium. Moreover, Pdfium is no longer a separate project, but integrated into Chromium: therefore moving it out of Chromium source tree would require extra effort. Rename webengine-core feature to build-qtwebengine-core, this makes consistent feature naming with build-qtpdf At the moment two new modules have integrated build, with possible shortcuts: qmake -- --no-build-qtwebengine-core qmake -- --no-build-qtpdf Webengine build is disabled by default now. Change-Id: Iac3d9927d51f3ac316db0148d275eda843dcc19b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Revert "Make .moc files jumbo built"Allan Sandfeld Jensen2019-06-041-23/+12
| | | | | | | | | | | | This reverts commit 87570b4e360ab62ef5791d5c23ddd36aaa07ba05. Reason for revert: Made QTBUG-59769 worse Task-number: QTBUG-59769 Change-Id: I616930145eb6f89d6167f10d5be56b2ae898f29d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Support clang_cl builds on WindowsAllan Jensen2019-05-021-1/+6
| | | | | Change-Id: I1f3e8fc378cfceda92ff17fcc7669c0f5d97c3f7 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Make .moc files jumbo builtAllan Sandfeld Jensen2019-04-161-12/+23
| | | | | | | | Split the moc generated sources to a separate source_set, and make it jumbo. Change-Id: Icdbe9e7fb57cc07d89b766ef9e8efc78ff67bc8b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Enable precompiled headers for qtwebengine corev5.13.0-beta2Allan Sandfeld Jensen2019-04-091-1/+2
| | | | | | | | | | | | | Chromium requires us to add a special config to enable precompiled headers. Note this still depends additionally on that the corresponding GN flag is also set. Changes in 3rdparty: 9401dc18ce02 Add precompiled object files to qmake link output 8ba90427ae5e Improve the issue with long file names on windows Change-Id: I6680232e17a5254d3ca53e5a40e6a15a6b7fc82d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Remove directory parameter from gn_find_mocables.pyJüri Valdmann2019-01-221-2/+2
| | | | | | | | It's very unnecessary: the file parameters are already absolute paths. The script only works because os.path.join(dir, f) == f for absolute f. Change-Id: Iba80d5e743cf8f834ac1b051afe2ab815891c751 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Leave the decision of including RTTI information to the compilerAlexandru Croitor2018-11-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | | This change removes the Chromium default of stripping RTTI information from our own cpp files in QtWebEngineCore. This means RTTI information will be emitted based on the compiler's defaults, which follows the same principle as qtbase, which does not explicitly include or exclude the information. A user can still override this by adding CONFIG+=rtti (or rtti_off), which will propagate correctly to GN (but this only really applies to Windows). DLL size difference on a debug build is only 78KiloBytes. Usecase is that RTTI info is currently required by PySide2 for marshalling various QObjects to and from Python, and identifying dynamic types by means of C++'s typeid(). Change-Id: Idb9dacbd1760dbf5b29736b2f2c731b9f6514885 Fixes: PYSIDE-819 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Cleanup gn-generatorAllan Sandfeld Jensen2018-10-121-40/+41
| | | | | | | | Moves what can be to a config which avoids some boilerplate logic, and fix some other ugly parts in the generated results. Change-Id: Ifc4386009f95acb202f9482fa3a5857500fd5622 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add hack to export our headers to ChromiumMichal Klocek2018-07-031-0/+8
| | | | | | | | | | Add hack to export core headers and move back service_qt to main repo. This change pulls the required change in Chromium Change-Id: I8c73cd20c4358c51911b98b42922e1361bfb28b6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devAllan Sandfeld Jensen2018-01-171-11/+0
|\ | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/webengine/api/qquickwebengineview_p_p.h src/webenginewidgets/api/qwebenginepage_p.h tests/auto/quick/qmltests/data/TestWebEngineView.qml Change-Id: Id2acc92e8d0364bdaaf5a63ea2d2cb9cd533ade3
| * Remove QT_LIBDIR_EGL/GLES2 leftoversMichal Klocek2018-01-021-11/+0
| | | | | | | | | | | | | | | | | | | | Since e812237b69 we do not longer use QT_LIBDIR_EGL and QT_LIBDIR_GLES2 to dynamically load gl libraries. Remove leftovers from gn generator. Task-number: QTBUG-65442 Change-Id: I045242b49be411373d36eb9c333916d27b0f169d Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
* | Merge branch '5.10' into devAllan Sandfeld Jensen2017-10-131-1/+2
|\| | | | | | | Change-Id: I3a411e4019a5ec2f7d1a967b62a00ad7cf92f6f4
| * Add mkspecs include path to the gn buildPeter Varga2017-09-201-1/+2
| | | | | | | | | | | | | | | | | | INCLUDEPATH qmake variable doesn't contain mkspecs include path. Add it explicitly to the include_dirs gn variable in the gn generator. Change-Id: I454aa015794f258f588590b4662a16c04041c8fd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Clean up remote devtools implementationAllan Sandfeld Jensen2017-10-131-17/+19
|/ | | | | | | | | Rename the file after the contents has been refactored being different classes, and switch to using Chromium discover HTML page which we now have available and which works. Change-Id: Ic04a56471be3a49e5d1dd4b1f914eda927272d89 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
* Remove duplicate LC_RPATH values on macOSAlexandru Croitor2017-06-161-2/+1
| | | | | | | | | | | | | | | | | Starting with Qt 5.9, the values in QMAKE_RPATHDIR were passed along to GN, which resulted in both qmake and GN adding rpath linker flags, leading to duplicate rpath values. This lead to the Qt package installer not removing all absolute path rpath values when installing Qt, which subsequently caused issues with code signing Qt applications. The fix is not to pass the rpath values to GN, and rely on the ones generated by qmake. Task-number: QTBUG-61413 Change-Id: Ib27d9c232674534d4b053cb1e12750f5c8bc87a9 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Improve distcleanAllan Sandfeld Jensen2017-05-081-0/+2
| | | | | | | | Remove our manually generated configuration files on make distclean. Task-number: QTBUG-60235 Change-Id: I8b851fa80e1c17ea6ede9efb6ba0d2f108026db8 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Move qmake files to standard locationsAllan Sandfeld Jensen2017-05-021-0/+244
The tools/qmake directory is a left over from webkit where qmake was but one of many buildsystems. This is not necessary for qtwebengine, so we can instead use the standard locations. Change-Id: I3d126d6627295b113b091f3eabeee25f1c1f6183 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>