SWIG python bindings, has same typemap problem as PHP
This commit is contained in:
parent
551645e980
commit
c58a722aef
2 changed files with 15 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# -*- python -*-
|
||||
Import('env')
|
||||
|
||||
bindings = []
|
||||
bindings = ['python']
|
||||
|
||||
dist_headers = [
|
||||
"hammer.h",
|
||||
|
|
|
|||
14
src/bindings/python/SConscript
Normal file
14
src/bindings/python/SConscript
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# -*- python -*-
|
||||
Import('env')
|
||||
|
||||
pythonenv = env.Clone()
|
||||
|
||||
pythonenv.Append(CPPPATH = ['../../', '/usr/include/python2.7'])
|
||||
pythonenv.Append(CCFLAGS = ['-fpic', '-DSWIG', '-Wno-all', '-Wno-extra', '-Wno-error'])
|
||||
pythonenv.Append(SWIGFLAGS = ['-DHAMMER_INTERNAL__NO_STDARG_H', '-Isrc/', '-python'])
|
||||
|
||||
pythonenv.Command("hammer.i", "../swig/hammer.i", Copy("$TARGET", "$SOURCE"))
|
||||
|
||||
swig = ['hammer.i']
|
||||
|
||||
libhammer_python = pythonenv.SharedLibrary('hammer', swig)
|
||||
Loading…
Add table
Add a link
Reference in a new issue