build plug-in table only when needed. this also fixes warnings when using something like makensis.exe /X"OutFile bla.exe" /XSection /XSectionEnd
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3236 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
774f3d50de
commit
7bfcfac3c2
4 changed files with 16 additions and 11 deletions
|
@ -372,6 +372,7 @@ CEXEBuild::CEXEBuild()
|
|||
|
||||
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
|
||||
build_plugin_unload=0;
|
||||
plugins_processed=0;
|
||||
#endif
|
||||
|
||||
last_used_lang=MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US);
|
||||
|
@ -3093,6 +3094,10 @@ void CEXEBuild::notify(int code, char *data)
|
|||
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
|
||||
void CEXEBuild::build_plugin_table(void)
|
||||
{
|
||||
if (plugins_processed)
|
||||
return;
|
||||
plugins_processed=1;
|
||||
|
||||
plugin_used = false;
|
||||
uninst_plugin_used = false;
|
||||
char* nsisdir = definedlist.find("NSISDIR");
|
||||
|
@ -3102,8 +3107,9 @@ void CEXEBuild::build_plugin_table(void)
|
|||
if (searchPath)
|
||||
{
|
||||
wsprintf(searchPath,"%s\\plugins",nsisdir);
|
||||
INFO_MSG("\nProcessing plugin dlls: \"%s\\*.dll\"\n",searchPath);
|
||||
INFO_MSG("Processing plugin dlls: \"%s\\*.dll\"\n",searchPath);
|
||||
m_plugins.FindCommands(searchPath,display_info?true:false);
|
||||
INFO_MSG("\n");
|
||||
delete[] searchPath;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue