| 1 | #! /usr/bin/env python |
| 2 | |
| 3 | import sys |
| 4 | |
| 5 | import pybindgen |
| 6 | from pybindgen import FileCodeSink |
| 7 | from pybindgen.gccxmlparser import ModuleParser |
| 8 | |
| 9 | def my_module_gen(): |
| 10 | module_parser = ModuleParser('a1', '::') |
| 11 | module = module_parser.parse([sys.argv[1]]) |
| 12 | module.add_include('"a.h"') |
| 13 | |
| 14 | module.generate(FileCodeSink(sys.stdout)) |
| 15 | |
| 16 | if __name__ == '__main__': |
| 17 | my_module_gen() |