making a shared library works.
This commit is contained in:
parent
320f281ed3
commit
4feec08273
1 changed files with 1 additions and 3 deletions
|
|
@ -8,13 +8,11 @@ phpenv.Append(CPPPATH = ['../../', '/usr/include/php5', '/usr/include/php5/main'
|
|||
phpenv.Append(CCFLAGS = ['-fpic', '-DSWIG', '-Wno-all', '-Wno-extra', '-Wno-error'])
|
||||
phpenv.Append(LIBS = ['hammer'])
|
||||
phpenv.Append(LIBPATH = ['../../'])
|
||||
#phpenv.Append(SWIGFLAGS = ['-DHAMMER_INTERNAL__NO_STDARG_H', '-Isrc/', '-php'])
|
||||
|
||||
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 = ['hammer.i']
|
||||
#libhammer_php = phpenv.SharedLibrary('hammer', swig)
|
||||
phpenv.SharedLibrary('hammer', ['hammer_wrap.c'])
|
||||
|
||||
#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