From 7129677ac2dceb7fea5145060def0b2144366c16 Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com> Date: Sun, 17 Nov 2013 19:49:38 -0600 Subject: [PATCH] scons now puts php binding support files in the correct place --- src/bindings/php/SConscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bindings/php/SConscript b/src/bindings/php/SConscript index 9962264e..66946024 100644 --- a/src/bindings/php/SConscript +++ b/src/bindings/php/SConscript @@ -5,8 +5,10 @@ phpenv = env.Clone() phpenv.Append(CPPPATH = ['../../', '/usr/include/php5', '/usr/include/php5/main', '/usr/include/php5/Zend', '/usr/include/php5/TSRM']) phpenv.Append(CCFLAGS = ['-fpic', '-DSWIG', '-Wno-unused-variable', '-Wno-unused-label', '-Wno-unused-function', '-Wno-missing-field-initializers']) -phpenv.Append(SWIGFLAGS = '-DHAMMER_INTERNAL__NO_STDARG_H -Isrc/ -php') +phpenv.Append(SWIGFLAGS = ['-DHAMMER_INTERNAL__NO_STDARG_H', '-Isrc/', '-php', '-outdir', 'build/$VARIANT/src/bindings/php/']) -swig = ['../swig/hammer.i'] +phpenv.Command("hammer.i", "../swig/hammer.i", Copy("$TARGET", "$SOURCE")) + +swig = ['hammer.i'] libhammer_php = phpenv.SharedLibrary('hammer', swig) \ No newline at end of file -- GitLab