diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2018-10-09 16:38:19 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2018-10-11 07:34:13 +0000 |
commit | 3e29bf47c350237863b37410dba465a6b3e44f71 (patch) | |
tree | 3ced581d1ad127d0bef3f7be3b37acd08429f8b2 /qmake-features | |
parent | d3e805681744b1156edeb3264292d757ea7368f8 (diff) | |
download | qtapplicationmanager-3e29bf47c350237863b37410dba465a6b3e44f71.tar.gz |
Really fix the "Undefined interface" error
The problem comes from generating the DBus adaptors via a custom compiler:
the code for that was copied from the official dbusadaptors.prf file in Qt,
but the moc custom-compiler step in this prf file messes with the
INCLUDEPATH.
This problem is actually related to the order in which qmake is loading the
prf features from the CONFIG variable: if we prepend the dbus-adaptor-xml
feature, it will load the moc.prf feature in the right state.
Change-Id: I3a735fafc24792c0a6bfa5b291640ba09f6844a8
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'qmake-features')
-rw-r--r-- | qmake-features/dbus-adaptors-xml.prf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qmake-features/dbus-adaptors-xml.prf b/qmake-features/dbus-adaptors-xml.prf index 529954a6..01e5a47b 100644 --- a/qmake-features/dbus-adaptors-xml.prf +++ b/qmake-features/dbus-adaptors-xml.prf @@ -10,6 +10,8 @@ adaptors_header.variable_out = dbus_adaptor_headers adaptors_header.input = ADAPTORS_XML adaptors_header.CONFIG += target_predep +QMAKE_EXTRA_COMPILERS += adaptors_header + adaptors_moc.commands = $$moc_header.commands adaptors_moc.depends += $$QMAKE_MOC_EXE adaptors_moc.output = $$moc_header.output @@ -17,4 +19,4 @@ adaptors_moc.input = dbus_adaptor_headers adaptors_moc.variable_out = GENERATED_SOURCES adaptors_moc.name = DBUS adaptor MOC headers -QMAKE_EXTRA_COMPILERS += adaptors_header adaptors_moc +QMAKE_EXTRA_COMPILERS += adaptors_moc |