root/applications/python/bind_itpp.py

Revision 1117, 1.4 kB (checked in by smidl, 14 years ago)

python bindings work again... functions _L _D and _M must be removed...

Line 
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3import os
4from pyplusplus import module_builder
5
6#Creating an instance of class that will help you to expose your declarations
7mb = module_builder.module_builder_t( [r"/home/smidl/work/git/mixpp/library/bdm/base/itpp/itbase.h"]
8                                      , gccxml_path=r"" 
9                                      , working_directory=r"/home/smidl/work"
10                                      , include_paths=['/home/smidl/work/git/mixpp/library/bdm/base/itpp/base','/home/smidl/work/git/mixpp/library/bdm/base/']
11                                      , define_symbols=[] )
12mb.decls( lambda decl: 'Array' in decl.name ).exclude()
13mb.decls( lambda decl: 'Sparse' in decl.name ).exclude()
14mb.decls( lambda decl: 'AR1' in decl.name ).exclude()
15mb.decls( lambda decl: '<short>' in decl.name ).exclude()
16mb.decls( lambda decl: '<float>' in decl.name ).exclude()
17mb.decls( lambda decl: '<unsigned char>' in decl.name ).exclude()
18
19mb.decls( lambda decl: '_data' in decl.name ).exclude()
20mb.decls( lambda decl: 'GF2' in decl.name ).exclude()
21mb.decls( lambda decl: 'bifstream' in decl.name ).exclude()
22mb.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.
29mb.build_code_creator( module_name='itpp_ext' )
30
31#Writing code to file.
32mb.write_module( './itpp_ext.cpp' )
Note: See TracBrowser for help on using the browser.