summaryrefslogtreecommitdiffstats
path: root/src/buildtools/gn.pro
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-02-09 12:00:15 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-01 16:05:00 +0000
commitedd8f2840d85e35bbec905440b0b524d7e0d108e (patch)
tree14f453473b6c1cc0cfec1e1ff8a5b572e4c8de77 /src/buildtools/gn.pro
parent5c42809274288811b386b3cb3cd08000777e37c8 (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/gn.pro')
-rw-r--r--src/buildtools/gn.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildtools/gn.pro b/src/buildtools/gn.pro
index e9383bc3f..092888e0e 100644
--- a/src/buildtools/gn.pro
+++ b/src/buildtools/gn.pro
@@ -1,6 +1,8 @@
TEMPLATE = aux
CONFIG += release
+option(host_build)
+
defineReplace(buildGn) {
gn_args = $$1
out = $$gnPath()