diff options
Diffstat (limited to 'src/core/gyp_configure_host.pro')
-rw-r--r-- | src/core/gyp_configure_host.pro | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/gyp_configure_host.pro b/src/core/gyp_configure_host.pro new file mode 100644 index 000000000..e99d1e7c5 --- /dev/null +++ b/src/core/gyp_configure_host.pro @@ -0,0 +1,16 @@ +# Prevent generating a makefile that attempts to create a lib +TEMPLATE = aux + +# Pick up the host toolchain +option(host_build) + +GYPI_CONTENTS = "{" \ + " 'make_global_settings': [" \ + " ['CC.host', '$$which($$QMAKE_CC)']," \ + " ['CXX.host', '$$which($$QMAKE_CXX)']," \ + " ['LD.host', '$$which($$QMAKE_LINK)']," + +GYPI_FILE = $$absolute_path('build/qmake_extras.gypi', $$QTWEBENGINE_ROOT) +!build_pass { + write_file($$GYPI_FILE, GYPI_CONTENTS) +} |