refactor SWIG PHP definitions into their own file
This commit is contained in:
parent
8c074420f7
commit
42b25f4784
3 changed files with 232 additions and 242 deletions
|
|
@ -10,10 +10,10 @@ phpenv.Append(CCFLAGS = ['-fpic', '-DSWIG', '-Wno-all', '-Wno-extra', '-Wno-erro
|
|||
phpenv.Append(LIBS = ['hammer'])
|
||||
phpenv.Append(LIBPATH = ['../../'])
|
||||
|
||||
swig_src = phpenv.Command("hammer.i", "../swig/hammer.i", Copy("$TARGET", "$SOURCE"))
|
||||
bindings_src = phpenv.Command(['hammer.php', 'hammer_wrap.c', 'php_hammer.h'], 'hammer.i', 'swig -php -DHAMMER_INTERNAL__NO_STDARG_H -Isrc/ $SOURCE')
|
||||
swig = ['hammer.i']
|
||||
bindings_src = phpenv.Command(['hammer.php', 'hammer_wrap.c', 'php_hammer.h'], swig, 'swig -php -DHAMMER_INTERNAL__NO_STDARG_H -Isrc/ $SOURCE')
|
||||
libhammer_php = phpenv.SharedLibrary('hammer', ['hammer_wrap.c'])
|
||||
Default(swig_src, bindings_src, libhammer_php)
|
||||
Default(swig, bindings_src, libhammer_php)
|
||||
|
||||
phptestenv = phpenv.Clone()
|
||||
phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue