FYI:
I am working on the CB Plugin wizard code; trying to get it to do the right thing for PCH Builds under Windows.
Any know bugs that needs fixed in the CB Plugin wizard?
Things I am already working on include these
1. Rename the default target name to "use_pch"
2. Add a second target called "no_pch" that does NOT define WX_PRECOMP and CB_PRECOMP.
3. Get CB Plugin Wizard to use PCH version of sdk.h
4. Add a third target called something like "nightly" for linking to the nightly build like in these directions http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build (http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build)
I have finished the first two steps except for final testing.
All the above will be done for the Windows part of the Wizard; do any of them make sense for non-windows systems?
Can anybody help testing the changes on non-windows systems?
Tim S.
I am now in alpha stage of the CB Plugin Wizard Script.
If someone wishes to see the script look here.
https://github.com/stahta01/codeblocks/tree/PCH/CB_Scripts/plugins (https://github.com/stahta01/codeblocks/tree/PCH/CB_Scripts/plugins)
ONLY Tested partly under Windows; no testing at all under other OSes.
Testing has only consisted of running the script and building the CB Project.
I still have NOT tried to use the plugins.
Plan to review the script changes before doing any more testing.
Tim S.
Patch that get rid of the Install Plugin error on Windows; after 2 hours of trying semi-random stuff I found a fix.
Error message was "One or more plugins were not installed successfully".
Tim S.
Index: src/sdk/pluginmanager.cpp
===================================================================
--- src/sdk/pluginmanager.cpp (revision 9653)
+++ src/sdk/pluginmanager.cpp (working copy)
@@ -282,7 +282,7 @@
settingsOnName.Remove(0, 3);
if (!platform::windows && settingsOffName.StartsWith(_T("lib")))
settingsOffName.Remove(0, 3);
- wxString pluginFilename = pluginDir + _T('/') + localName;
+ wxString pluginFilename = UnixFilename(pluginDir + _T('/') + localName);
// Manager::Get()->GetLogManager()->DebugLog(F(_T("Plugin filename: ") + pluginFilename));
// Manager::Get()->GetLogManager()->DebugLog(F(_T("Plugin resources: ") + ConfigManager::GetDataFolder() + _T('/') + resourceName));