Changeset 1117 for applications/python
- Timestamp:
- 06/28/10 18:04:54 (14 years ago)
- Location:
- applications/python
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/python/CMakeLists.txt
r808 r1117 16 16 link_directories (${BDM_SOURCE_DIR}/bdm) 17 17 18 add_library(itpp_ext SHARED itpp_ext.cpp)19 TARGET_LINK_LIBRARIES(itpp_ext boost_python-mt itpp)18 #add_library(itpp_ext SHARED itpp_ext.cpp) 19 #TARGET_LINK_LIBRARIES(itpp_ext boost_python-mt itpp) 20 20 21 21 22 #add_library(sqmat_ext SHARED sqmat_ext.cpp)23 #TARGET_LINK_LIBRARIES(sqmat_ext bdm boost_python-mt itpp)22 add_library(sqmat_ext SHARED sqmat_ext.cpp) 23 TARGET_LINK_LIBRARIES(sqmat_ext bdm boost_python itpp ${lapack_libs}) -
applications/python/bind_itpp.py
r808 r1117 5 5 6 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/ system/linux/itpp/itbase.h"]7 mb = module_builder.module_builder_t( [r"/home/smidl/work/git/mixpp/library/bdm/base/itpp/itbase.h"] 8 8 , gccxml_path=r"" 9 9 , working_directory=r"/home/smidl/work" 10 , include_paths=['/home/smidl/work/git/mixpp/library/ system/linux/itpp/base', '/home/smidl/work/git/mixpp/library/system/linux']10 , include_paths=['/home/smidl/work/git/mixpp/library/bdm/base/itpp/base','/home/smidl/work/git/mixpp/library/bdm/base/'] 11 11 , define_symbols=[] ) 12 12 mb.decls( lambda decl: 'Array' in decl.name ).exclude() -
applications/python/build_bindings.py
r808 r1117 8 8 , gccxml_path=r"" 9 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']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'] 11 11 , define_symbols=[] ) 12 12 13 #mb.free_function( 'ltuinv' ).call_policies = call_policies.return_arg( 2 ) 14 #mb.member_function( '_M' ).call_policies = call_policies.return_self() 13 15 14 16 #Well, don't you want to see what is going on? 15 mb.print_declarations()17 #mb.print_declarations() 16 18 17 19 #Creating code creator. After this step you should not modify/customize declarations.