|
From: Graham C. <g+o...@co...> - 2009-11-14 09:24:38
|
On Tue, Nov 10, 2009 at 01:46:46AM +0100, Henrik /KaarPoSoft wrote: > Now the question is: Where to put the definition of the C struct and the > wrapping functions? My suggestion would be to put the struct and wrapping functions in a completely separate library (nothing to do with Opensync) which you then use from both the format plugin and the sync plugin. Your new library would, of course, become a dependency of the plugins. I think there would be three options for distributing it: 1) Statically link it and don't distribute it at all. This would require getting Daniel to create you somewhere in the tree to store the library but you wouldn't be shipping the code at all. CMake magic could compile it whenever needed by either plugin. 2) Completely separate it from OpenSync: build it and distribute it separately and just make sure the CMake scripts for the two plugins correctly check for it being installed. A variant of this would be to ask Daniel to still host it in the OpenSync SVN somewhere but build it and distribute it separately (a bit like libsyncml). 3) Have it built and installed as part of the building of your plugins -- so building either your format plugin or your sync plugin would require previously building and installing your new library. Easy enough to do manually although it would be an extra step for anyone who wanted to build your plugins. Graham |