summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/core.pro23
-rwxr-xr-xtools/buildscripts/gyp_qtwebengine4
2 files changed, 18 insertions, 9 deletions
diff --git a/src/core/core.pro b/src/core/core.pro
index 02a707f21..927f8bab4 100644
--- a/src/core/core.pro
+++ b/src/core/core.pro
@@ -4,26 +4,31 @@ TEMPLATE = subdirs
# to generate our main .gyp file
core_gyp_generator.file = core_gyp_generator.pro
-# gyp_configure_host.pro and gyp_configure_target.pro are phony pro files that
-# extract things like compiler and linker from qmake
-gyp_configure_host.file = gyp_configure_host.pro
-gyp_configure_target.file = gyp_configure_target.pro
-gyp_configure_target.depends = gyp_configure_host
-
# gyp_run.pro calls gyp through gyp_qtwebengine on the qmake step, and ninja on the make step.
gyp_run.file = gyp_run.pro
-gyp_run.depends = core_gyp_generator gyp_configure_host gyp_configure_target
+gyp_run.depends = core_gyp_generator
# 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
SUBDIRS += core_gyp_generator \
- gyp_configure_host \
- gyp_configure_target \
gyp_run \
core_module
+!win32 {
+ # gyp_configure_host.pro and gyp_configure_target.pro are phony pro files that
+ # extract things like compiler and linker from qmake
+ # Do not use them on Windows, where Qt already expects the toolchain to be
+ # selected through environment varibles.
+ gyp_configure_host.file = gyp_configure_host.pro
+ gyp_configure_target.file = gyp_configure_target.pro
+ gyp_configure_target.depends = gyp_configure_host
+
+ gyp_run.depends += gyp_configure_host gyp_configure_target
+ SUBDIRS += gyp_configure_host gyp_configure_target
+}
+
REPACK_DIR = $$OUT_PWD/$$getConfigDir()/gen/repack
locales.files = "$$REPACK_DIR/qtwebengine_locales/*"
locales.CONFIG += no_check_exist
diff --git a/tools/buildscripts/gyp_qtwebengine b/tools/buildscripts/gyp_qtwebengine
index 864506f8a..3cdacd184 100755
--- a/tools/buildscripts/gyp_qtwebengine
+++ b/tools/buildscripts/gyp_qtwebengine
@@ -147,6 +147,10 @@ if __name__ == '__main__':
# Tweak the output location and format (hardcode ninja for now if not set)
args.extend(['--generator-output', os.path.abspath(output_dir)])
args.extend(['-Goutput_dir='+ os.path.abspath(output_dir)])
+
+ # Tell gyp not to try finding cl.exe on Windows, Qt already requires the env to be set prior to the build.
+ args.extend(['-G', 'ninja_use_custom_environment_files'])
+
if not os.environ.get('GYP_GENERATORS'):
args.extend(['--format=ninja'])
if "QTWEBENGINE_GYP_DEBUG" in os.environ: