"pike -x module" with cmod's. The documentation is extremly spase. I know because I tried to find and use it this Saturday instead of my usual method of building by cloning a module inside Pikes source tree.
I don't know of if anyone used the SWIG stuff, ever.