Revision 1117, 1.1 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 |
---|
| 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" |
---|
[1117] | 10 | , include_paths=['/home/smidl/work/git/mixpp/library/bdm/base/','/home/smidl/work/git/mixpp/library/bdm/base/itpp/base/', '/home/smidl/work/git/mixpp/library/bdm/math'] |
---|
[808] | 11 | , define_symbols=[] ) |
---|
| 12 | |
---|
[1117] | 13 | #mb.free_function( 'ltuinv' ).call_policies = call_policies.return_arg( 2 ) |
---|
| 14 | #mb.member_function( '_M' ).call_policies = call_policies.return_self() |
---|
[808] | 15 | |
---|
| 16 | #Well, don't you want to see what is going on? |
---|
[1117] | 17 | #mb.print_declarations() |
---|
[808] | 18 | |
---|
| 19 | #Creating code creator. After this step you should not modify/customize declarations. |
---|
| 20 | mb.build_code_creator( module_name='sqmat_ext' ) |
---|
| 21 | |
---|
| 22 | #Writing code to file. |
---|
| 23 | mb.write_module( './sqmat_ext.cpp' ) |
---|