Revision 808, 1.0 kB
(checked in by smidl, 14 years ago)
|
python bindings...
|
Rev | Line | |
---|
[808] | 1 | #!/usr/bin/python |
---|
| 2 | # -*- coding: utf-8 -*- |
---|
| 3 | import os |
---|
| 4 | from pyplusplus import module_builder |
---|
| 5 | |
---|
| 6 | #Creating an instance of class that will help you to expose your declarations |
---|
| 7 | mb = module_builder.module_builder_t( [r"/home/smidl/work/git/mixpp/library/bdm/math/square_mat.h"] |
---|
| 8 | , gccxml_path=r"" |
---|
| 9 | , working_directory=r"/home/smidl/work/git/mixpp/library/bdm/math" |
---|
| 10 | , include_paths=['/home/smidl/work/git/mixpp/library/system/linux/itpp/base', '/home/smidl/work/git/mixpp/library/system/linux', '/home/smidl/work/git/mixpp/library/bdm/math'] |
---|
| 11 | , define_symbols=[] ) |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | #Well, don't you want to see what is going on? |
---|
| 15 | mb.print_declarations() |
---|
| 16 | |
---|
| 17 | #Creating code creator. After this step you should not modify/customize declarations. |
---|
| 18 | mb.build_code_creator( module_name='sqmat_ext' ) |
---|
| 19 | |
---|
| 20 | #Writing code to file. |
---|
| 21 | mb.write_module( './sqmat_ext.cpp' ) |
---|