Merge PR #353: Add a note for including extern-plugininfo.h for plugin developers

pull/175/head
Jenkins nymea 2020-12-21 18:00:46 +01:00
commit 873b1bdfcc
1 changed files with 6 additions and 1 deletions

View File

@ -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);