diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-07-13 21:25:12 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-12-19 19:22:06 +0000 |
commit | 73b8769730701736cd0d05f904b69f2e7e35de1d (patch) | |
tree | ec7fd0220f492df0306bd8f1596f61f2ba755101 /configure.json | |
parent | b6cd5fdc6b7c799a80126659f35801af9a26601a (diff) |
configure: enable inline tests to contain auxiliary files
... and use that to migrate the pch test.
Change-Id: I2ce884442cab6124c37142f571cf6f82191ee4f5
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'configure.json')
-rw-r--r-- | configure.json | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.json b/configure.json index 2a717daf9a..9fce6d039e 100644 --- a/configure.json +++ b/configure.json @@ -324,7 +324,21 @@ "precompile_header": { "label": "precompiled header support", "type": "compile", - "test": "common/pch" + "test": { + "files": { + "header.h": "#define HEADER_H" + }, + "tail": [ + "#ifndef HEADER_H", + "#error no go", + "#endif" + ], + "qmake": [ + "CONFIG += precompile_header", + "PRECOMPILED_DIR = .pch", + "PRECOMPILED_HEADER = header.h" + ] + } }, "use_gold_linker": { "label": "gold linker", |