and now bindings=php works as a target too
This commit is contained in:
parent
0963a9d550
commit
43253c1664
1 changed files with 3 additions and 3 deletions
|
|
@ -9,10 +9,10 @@ phpenv.Append(CCFLAGS = ['-fpic', '-DSWIG', '-Wno-all', '-Wno-extra', '-Wno-erro
|
|||
phpenv.Append(LIBS = ['hammer'])
|
||||
phpenv.Append(LIBPATH = ['../../'])
|
||||
|
||||
phpenv.Command("hammer.i", "../swig/hammer.i", Copy("$TARGET", "$SOURCE"))
|
||||
phpenv.Command(['hammer.php', 'hammer_wrap.c', 'php_hammer.h'], 'hammer.i', 'swig -php -DHAMMER_INTERNAL__NO_STDARG_H -Isrc/ $SOURCE')
|
||||
|
||||
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')
|
||||
libhammer_php = phpenv.SharedLibrary('hammer', ['hammer_wrap.c'])
|
||||
Default(swig_src, bindings_src, libhammer_php)
|
||||
|
||||
#phptestenv = phpenv.Clone()
|
||||
#phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhamm#er_shared[0]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue