Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: dmoore on May 29, 2007, 10:45:36 pm

Title: easy way to switch C::B contrib plugins dependency from wx2.8 -> wx2.6 ??
Post by: dmoore on May 29, 2007, 10:45:36 pm
currently (for MSW builds), the required wx lib is hardcoded into every project under linker options. this suggests a need for workspace custom variables or some other convenient way of changing dependencies that affect multiple projects.

for now, i ran "replace in files"* on all of the contrib plugins project files replacing "wxmsw28" with "wxmsw$(#wx.ver)" then created a user-defined field for variable "wx": ver = 26 (or 28)

I put up a patch for this fix (in case there aren't any better solutions) - I'll link to it as soon as belios sorts its shit out. (EDIT: so I don't lose it, I'm attaching the patch here)


* well... actually I didn't because replace in files seems to be buggy...

[attachment deleted by admin]
Title: Re: easy way to switch C::B contrib plugins dependency from wx2.8 -> wx2.6 ??
Post by: killerbot on May 29, 2007, 11:02:45 pm
very good idea, I once brought it up myself. But our Don will bring another solution though scripting.
So all we need do to is be patient a bit more ;-)
Title: Re: easy way to switch C::B contrib plugins dependency from wx2.8 -> wx2.6 ??
Post by: dmoore on May 30, 2007, 12:23:45 am
good stuff.