root/applications/python/build_bindings.py @ 914

Revision 808, 1.0 kB (checked in by smidl, 15 years ago)

python bindings...

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/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?
15mb.print_declarations()
16
17#Creating code creator. After this step you should not modify/customize declarations.
18mb.build_code_creator( module_name='sqmat_ext' )
19
20#Writing code to file.
21mb.write_module( './sqmat_ext.cpp' )
Note: See TracBrowser for help on using the browser.