Generate external file first.

pull/160/head
Michael Zanetti 2019-05-13 18:13:19 +02:00
parent 4c34bcefd5
commit e1ff0a4ee1
1 changed files with 5 additions and 5 deletions

View File

@ -15,14 +15,14 @@ plugininfo.input = JSONFILE
plugininfo.output = plugininfo.h
plugininfo.CONFIG = no_link target_predeps
plugininfo.commands = $$top_srcdir/plugins/nymea-generateplugininfo \
--filetype i \
--jsonfile $$PWD/$$TARGET/deviceplugin"$$TARGET".json \
--output plugininfo.h \
--builddir $$OUT_PWD; \
$$top_srcdir/plugins/nymea-generateplugininfo \
--filetype e \
--jsonfile $$PWD/$$TARGET/deviceplugin"$$TARGET".json \
--output extern-plugininfo.h \
--builddir $$OUT_PWD; \
$$top_srcdir/plugins/nymea-generateplugininfo \
--filetype i \
--jsonfile $$PWD/$$TARGET/deviceplugin"$$TARGET".json \
--output plugininfo.h \
--builddir $$OUT_PWD;
# Add it as a compiler, so it will be called before building like moc
QMAKE_EXTRA_COMPILERS += plugininfo