fix make lupdate
This commit is contained in:
parent
1329fab9a6
commit
3bd9759547
@ -24,9 +24,10 @@ QMAKE_EXTRA_TARGETS += licensecheck
|
|||||||
# make lupdate to update .ts files
|
# make lupdate to update .ts files
|
||||||
CORE_TRANSLATIONS += $$files($${top_srcdir}/translations/*.ts, true)
|
CORE_TRANSLATIONS += $$files($${top_srcdir}/translations/*.ts, true)
|
||||||
lupdate.commands = lupdate -recursive -no-obsolete $${top_srcdir} -ts $${CORE_TRANSLATIONS};
|
lupdate.commands = lupdate -recursive -no-obsolete $${top_srcdir} -ts $${CORE_TRANSLATIONS};
|
||||||
|
lupdate.commands += make -C plugins/mock plugininfo;
|
||||||
PLUGIN_TRANSLATIONS += $$files($${top_srcdir}/plugins/mock/translations/*.ts, true)
|
PLUGIN_TRANSLATIONS += $$files($${top_srcdir}/plugins/mock/translations/*.ts, true)
|
||||||
lupdate.commands += lupdate -recursive -no-obsolete $${top_builddir}/plugins/mock/ -ts $${PLUGIN_TRANSLATIONS};
|
lupdate.commands += lupdate -recursive -no-obsolete $${top_builddir}/plugins/mock/ -ts $${PLUGIN_TRANSLATIONS};
|
||||||
lupdate.depends = FORCE
|
lupdate.depends = FORCE qmake_all
|
||||||
TRANSLATIONS = $${CORE_TRANSLATIONS} $${PLUGIN_TRANSLATIONS}
|
TRANSLATIONS = $${CORE_TRANSLATIONS} $${PLUGIN_TRANSLATIONS}
|
||||||
|
|
||||||
# make lrelease to compile .ts to .qm
|
# make lrelease to compile .ts to .qm
|
||||||
|
|||||||
@ -10,28 +10,20 @@ LIBS += -L../../libnymea -lnymea
|
|||||||
HEADERS += plugininfo.h
|
HEADERS += plugininfo.h
|
||||||
|
|
||||||
# Create plugininfo file
|
# Create plugininfo file
|
||||||
JSONFILES = deviceplugin"$$TARGET".json
|
plugininfo.target = plugininfo
|
||||||
plugininfo.target = plugininfo.h
|
plugininfo.commands = $$top_srcdir/plugins/nymea-generateplugininfo \
|
||||||
plugininfo.output = plugininfo.h
|
|
||||||
plugininfo.CONFIG = no_link
|
|
||||||
plugininfo.input = JSONFILES
|
|
||||||
plugininfo.commands = touch ${QMAKE_FILE_OUT}; $$top_srcdir/plugins/nymea-generateplugininfo \
|
|
||||||
--filetype i \
|
--filetype i \
|
||||||
--jsonfile ${QMAKE_FILE_NAME} \
|
--jsonfile $$PWD/$$TARGET/deviceplugin"$$TARGET".json \
|
||||||
--output ${QMAKE_FILE_OUT} \
|
--output plugininfo.h \
|
||||||
--builddir $$OUT_PWD;
|
--builddir $$OUT_PWD; \
|
||||||
|
$$top_srcdir/plugins/nymea-generateplugininfo \
|
||||||
externplugininfo.target = extern-plugininfo.h
|
|
||||||
externplugininfo.output = extern-plugininfo.h
|
|
||||||
externplugininfo.CONFIG = no_link
|
|
||||||
externplugininfo.input = JSONFILES
|
|
||||||
externplugininfo.commands = touch ${QMAKE_FILE_OUT}; $$top_srcdir/plugins/nymea-generateplugininfo \
|
|
||||||
--filetype e \
|
--filetype e \
|
||||||
--jsonfile ${QMAKE_FILE_NAME} \
|
--jsonfile $$PWD/$$TARGET/deviceplugin"$$TARGET".json \
|
||||||
--output ${QMAKE_FILE_OUT} \
|
--output extern-plugininfo.h \
|
||||||
--builddir $$OUT_PWD;
|
--builddir $$OUT_PWD;
|
||||||
PRE_TARGETDEPS += compiler_plugininfo_make_all compiler_externplugininfo_make_all
|
QMAKE_EXTRA_TARGETS += plugininfo
|
||||||
QMAKE_EXTRA_COMPILERS += plugininfo externplugininfo
|
|
||||||
|
PRE_TARGETDEPS += plugininfo
|
||||||
|
|
||||||
# Install plugin
|
# Install plugin
|
||||||
target.path = $$[QT_INSTALL_LIBS]/nymea/plugins/
|
target.path = $$[QT_INSTALL_LIBS]/nymea/plugins/
|
||||||
|
|||||||
Reference in New Issue
Block a user