Revision 1117, 1.4 kB
(checked in by smidl, 14 years ago)
|
python bindings work again... functions _L _D and _M must be removed...
|
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 |
---|
[1117] | 7 | mb = module_builder.module_builder_t( [r"/home/smidl/work/git/mixpp/library/bdm/base/itpp/itbase.h"] |
---|
[808] | 8 | , gccxml_path=r"" |
---|
| 9 | , working_directory=r"/home/smidl/work" |
---|
[1117] | 10 | , include_paths=['/home/smidl/work/git/mixpp/library/bdm/base/itpp/base','/home/smidl/work/git/mixpp/library/bdm/base/'] |
---|
[808] | 11 | , define_symbols=[] ) |
---|
| 12 | mb.decls( lambda decl: 'Array' in decl.name ).exclude() |
---|
| 13 | mb.decls( lambda decl: 'Sparse' in decl.name ).exclude() |
---|
| 14 | mb.decls( lambda decl: 'AR1' in decl.name ).exclude() |
---|
| 15 | mb.decls( lambda decl: '<short>' in decl.name ).exclude() |
---|
| 16 | mb.decls( lambda decl: '<float>' in decl.name ).exclude() |
---|
| 17 | mb.decls( lambda decl: '<unsigned char>' in decl.name ).exclude() |
---|
| 18 | |
---|
| 19 | mb.decls( lambda decl: '_data' in decl.name ).exclude() |
---|
| 20 | mb.decls( lambda decl: 'GF2' in decl.name ).exclude() |
---|
| 21 | mb.decls( lambda decl: 'bifstream' in decl.name ).exclude() |
---|
| 22 | mb.decls( lambda decl: 'file_old' in decl.name ).exclude() |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | #Well, don't you want to see what is going on? |
---|
| 26 | #mb.print_declarations() |
---|
| 27 | |
---|
| 28 | #Creating code creator. After this step you should not modify/customize declarations. |
---|
| 29 | mb.build_code_creator( module_name='itpp_ext' ) |
---|
| 30 | |
---|
| 31 | #Writing code to file. |
---|
| 32 | mb.write_module( './itpp_ext.cpp' ) |
---|