Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

New plugin: Library finder

(1/3) > >>

byo:
Hi,

I've created plugin which may ease setting up libraries to be used inside C::B.
Base idea is to set-up global variables is such way that if one want to use library settings, only following project options must be added:

* $(#GV.include) in include path
* $(#GV.lib) in library path
* $(#GV.obj) in resource path
* $(#GV.cflags) to other compiler options
* $(#GV.lflags) to other linker options(where GV is name of global variable - f.ex. WX for wxWidgets, CB for Code::Blocks SDK etc, etc)

Maybe this list isn't too short but it will be same for all libraries and perhaps it should be done automatically ;).

Currently it support only wxWidgets (2.6 MONOLITHIC DLL version), C::B SDK, glfw but this list can be easily extendedd through xml settings (see libfinder/README.txt in attached source for deetails).

If You want to compile plugin, extract files from attached archive into C::B/src/plugins/contrib directory and simply compile (maybe some project settings will have to be changed).

This plugin also assumes that library can use multiple paths. Because C::B Global Variables allow only one path in category, other will be simulated through -I<include_path> and -L<include_path> paths. Maybe it's good point for feature request ;)

And one more thing - target platform for this plugin was Windows since there are common paths for libraries and there's no need to find them ;)

[attachment deleted by admin]

MortenMacFly:
Nice job. In case you haven't alreay noticed, may I point to: http://wiki.codeblocks.org/index.php?title=Announcement_for_plugins/patches. It would be nice if you could add the plugin there, too. If you don't have the time I can do it for you... for the sake of completness...  ;-)
Morten.

byo:

--- Quote from: MortenMacFly on January 03, 2006, 03:19:35 pm ---Nice job. In case you haven't alreay noticed, may I point to: http://wiki.codeblocks.org/index.php?title=Announcement_for_plugins/patches. It would be nice if you could add the plugin there, too. If you don't have the time I can do it for you... for the sake of completness...  ;-)
Morten.


--- End quote ---

If You could add it I would really appreciate that :). Since I have thousands of things on my mind I've almost forgot about this little project ;)

MortenMacFly:

--- Quote from: byo on January 03, 2006, 05:02:54 pm ---If You could add it I would really appreciate that.

--- End quote ---
Done. I set the state to "beta", I hope you don't mind. I've also attached an updated version of the project file that make it easier to compile the plugin with the new build system of the C::B SVN trunk. (It assumes the lib_finder is in the plugins/contrib folder.)
Best regards, Morten.

[attachment deleted by admin]

byo:
Big THX :)

Navigation

[0] Message Index

[#] Next page

Go to full version