News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Working on Scripted wizard patch for Building CB Plugins

Started by stahta01, February 13, 2014, 09:40:07 PM

Previous topic - Next topic

stahta01

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

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

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

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#2
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));

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]