diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-02-09 12:00:15 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-03-01 16:05:00 +0000 |
commit | edd8f2840d85e35bbec905440b0b524d7e0d108e (patch) | |
tree | 14f453473b6c1cc0cfec1e1ff8a5b572e4c8de77 /src/buildtools/buildtools.pro | |
parent | 5c42809274288811b386b3cb3cd08000777e37c8 (diff) |
Support cross-builds and alternative compilers with GN
Adds GN versions of the gyp_configure targets, to create custom
toolchains we can use to override compilers used by GN.
Change-Id: Ic3a9cb7e83f845180396faff632f72f9c24f3365
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/buildtools/buildtools.pro')
-rw-r--r-- | src/buildtools/buildtools.pro | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/buildtools/buildtools.pro b/src/buildtools/buildtools.pro index 4ca21768e..bbf8bd610 100644 --- a/src/buildtools/buildtools.pro +++ b/src/buildtools/buildtools.pro @@ -8,3 +8,17 @@ use?(gn) { gn.depends = ninja SUBDIRS += gn } + +linux { + # configure_host.pro and configure_target.pro are phony pro files that + # extract things like compiler and linker from qmake. + # Only used on Linux as it is only important for cross-building and alternative compilers. + configure_host.file = configure_host.pro + configure_target.file = configure_target.pro + configure_target.depends = configure_host + + use?(gn) { + gn.depends += configure_target + } + SUBDIRS += configure_host configure_target +} |