diff options
author | Michal Klocek <michal.klocek@qt.io> | 2019-08-14 12:38:32 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-09-07 19:53:32 +0000 |
commit | 19a73086082bdf99f6f7b3b389c5e3f0703de449 (patch) | |
tree | 1980b72be2356d0da96e7911c2cfe606346a3630 /src/buildtools/config/functions.pri | |
parent | 8684373c08a774a7ed23682a358de991b8775ddd (diff) |
Move gn configs out of core
Change-Id: Ib047e35191faa627211c759bff4e81bfaec3d685
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/buildtools/config/functions.pri')
-rw-r--r-- | src/buildtools/config/functions.pri | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buildtools/config/functions.pri b/src/buildtools/config/functions.pri new file mode 100644 index 000000000..8c11faa16 --- /dev/null +++ b/src/buildtools/config/functions.pri @@ -0,0 +1,8 @@ +defineReplace(qtwebengine_extractCFlag) { + CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS + OPTION = $$find(CFLAGS, $$1) + OPTION = $$split(OPTION, =) + PARAM = $$member(OPTION, 1) + !isEmpty(PARAM): return ($$PARAM) + return ($$OPTION) +} |