I'm trying to wrap a C library (the Xerox finite state tools, here for more) with SWIG, and after a certain amount of trial and error (structs with the same name as structs in the Perl headers, dead functions in the headers), I've gotten the basics running. Now I wonder if there are some best practices I should keep in mind while the project is still in its infancy, and some other bits and pieces related to making a "real" module:
- ATM I'm using MakeMaker and Makefile.PL to create the Makefile, but I have to admit I don't really understand all of what's going on. Should I use Module::Build instead?
- I assume I shouldn't ask an end-user to run swig to create the wrapper code. How do I best separate the developer and user parts of the workflow?
- Are there any (relatively) simple wrapper modules I can look at for examples?