Improve clean mechanism for plugininfo
This commit is contained in:
parent
9a631a1e2b
commit
a3583cf861
14
plugins.pri
14
plugins.pri
@ -17,8 +17,7 @@ snappy{
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Make the device plugin json file visible in the Qt Creator
|
# Make the device plugin json file visible in the Qt Creator
|
||||||
OTHER_FILES+=$$PWD/$${TARGET}/deviceplugin"$$TARGET".json
|
OTHER_FILES += $$PWD/$${TARGET}/deviceplugin"$$TARGET".json
|
||||||
|
|
||||||
|
|
||||||
# NOTE: if the code includes "plugininfo.h", it would fail if we only give it a compiler for $$OUT_PWD/plugininfo.h
|
# NOTE: if the code includes "plugininfo.h", it would fail if we only give it a compiler for $$OUT_PWD/plugininfo.h
|
||||||
# Let's add a dummy target with the plugininfo.h file without any path to allow the developer to just include it like that.
|
# Let's add a dummy target with the plugininfo.h file without any path to allow the developer to just include it like that.
|
||||||
@ -40,14 +39,9 @@ extern_plugininfo_dummy.commands = $$extern_plugininfo.commands
|
|||||||
QMAKE_EXTRA_TARGETS += extern_plugininfo extern_plugininfo_dummy
|
QMAKE_EXTRA_TARGETS += extern_plugininfo extern_plugininfo_dummy
|
||||||
|
|
||||||
# Clean up autogenerated plugin info files
|
# Clean up autogenerated plugin info files
|
||||||
clean_plugininfo.commands = \
|
plugininfo_clean.commands = rm -fv $$OUT_PWD/plugininfo.h $$OUT_PWD/extern-plugininfo.h
|
||||||
rm -fv $${OUT_PWD}/$${TARGET}/plugininfo.h; \
|
clean.depends = plugininfo_clean
|
||||||
rm -fv $${PWD}/$${TARGET}/plugininfo.h;
|
QMAKE_EXTRA_TARGETS += clean plugininfo_clean
|
||||||
clean_extern_plugininfo.commands = \
|
|
||||||
rm -fv $${OUT_PWD}/$${TARGET}/extern-plugininfo.h; \
|
|
||||||
rm -fv $${PWD}/$${TARGET}/extern-plugininfo.h;
|
|
||||||
clean.depends = clean_plugininfo clean_extern_plugininfo
|
|
||||||
QMAKE_EXTRA_TARGETS += clean clean_plugininfo clean_extern_plugininfo
|
|
||||||
|
|
||||||
# Install translation files
|
# Install translation files
|
||||||
TRANSLATIONS *= $$files($${PWD}/$${TARGET}/translations/*ts, true)
|
TRANSLATIONS *= $$files($${PWD}/$${TARGET}/translations/*ts, true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user