Author Topic: Working on Scripted wizard patch for Building CB Plugins  (Read 6985 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Working on Scripted wizard patch for Building CB Plugins
« on: February 13, 2014, 09:40:07 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Working on Scripted wizard patch for Building CB Plugins
« Reply #1 on: February 15, 2014, 07:27:56 am »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Working on Scripted wizard patch for Building CB Plugins
« Reply #2 on: February 15, 2014, 06:54:23 pm »
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.

Code
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));
 
« Last Edit: February 15, 2014, 07:15:09 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org