From: Otto W. <ott...@or...> - 2004-07-19 18:59:22
|
> I would like to ask you an advice about component packaging: I > have almost completed some components (wxscript, wxxml2 and > paletteframe) and I would like to allow the programmer who wants to > use them to easily add to his projects... how could I do this: > > - should I config my component as a separated very very small library > (useful when the component has many source files and maybe some > complicated compile-settings...) ? > > - should I distribute my component as an extension of wxWidgets > library; that is, distributing modified wxWidgets makefiles to make my > component part of the final library (useful for my paletteframe > component, for example, which > has the same wxWidgets folder structure [common, generic, msw, gtk, > x11 ...] and thus different compile-setting for > different operating systems...) ? > > - should I just distribute the sources and tell the programmer to > compile & link them together with his source files ? > I haven't found a good way to integrate my components into wxWidgets so I just distribute sources and leave it to the user how to integrate them. Look once at treelistctrl. Only a single source and include file are distributed so it's rather easy for a user. I use it in my wyoEditor where I integrate it via an environment variable $WXCODE which points to the wxCode/components directory. The best is probably if you build your sample like an application outside of wxCode so it's easy for a user to see how to do it. I've just upgraded the treelistctrl sample to use the same structure. O. Wyss -- See a huge pile of work at "http://wyodesktop.sourceforge.net/" |