diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-02-15 22:14:42 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2018-02-21 21:30:10 +0000 |
commit | c9398266d804d570f305590df9481028c9880175 (patch) | |
tree | a3346850881f789f274f277ff046161e267a361e /src/qmldevtools/qmldevtools.pro | |
parent | e4bea7805a229d3625f110f844d908e2abe790b5 (diff) |
Move the QML_COMPILE_HASH macro definition from the command-line
If it's in the command-line, it is added to the precompiled header,
which won't be regenerated if the macro changed. Instead, let's create a
header that can be #included only in the file it needs to.
Since qmldevtools compiles the file that has this new #include, we need
to ensure it was created before the module is compiled.
Change-Id: I940917d6763842499b18fffd1513b9c64cd98387
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qmldevtools/qmldevtools.pro')
-rw-r--r-- | src/qmldevtools/qmldevtools.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmldevtools/qmldevtools.pro b/src/qmldevtools/qmldevtools.pro index 5ee97776b8..23b7cf651e 100644 --- a/src/qmldevtools/qmldevtools.pro +++ b/src/qmldevtools/qmldevtools.pro @@ -4,6 +4,7 @@ QT = core-private CONFIG += minimal_syncqt internal_module qmldevtools_build MODULE_INCNAME = QtQml +INCLUDEPATH += $$OUT_PWD/../qml # 2415: variable "xx" of static storage duration was declared but never referenced # unused variable 'xx' [-Werror,-Wunused-const-variable] |