Add a note for including extern-plugininfo.h for plugin developers
This commit is contained in:
parent
ae6a548d68
commit
de5fec5950
@ -153,7 +153,12 @@ int PluginInfoCompiler::compile(const QString &inputFile, const QString &outputF
|
||||
|
||||
QString header;
|
||||
header.append("/* This file is generated by the nymea build system. Any changes to this file will *\n");
|
||||
header.append(" * be lost. If you want to change this file, edit the plugin's json file. */\n");
|
||||
header.append(" * be lost. If you want to change this file, edit the plugin's json file. *\n");
|
||||
header.append(" * *\n");
|
||||
header.append(" * NOTE: This file can be included only once per plugin. If you need to access *\n");
|
||||
header.append(" * definitions from this file in multiple source files, use *\n");
|
||||
header.append(" * #include extern-plugininfo.h *\n");
|
||||
header.append(" * instead and re-run qmake. */\n");
|
||||
write(header);
|
||||
writeExtern(header);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user