Fix settings for building nodejs tests.
Removed the `-node` command line flag. Instead one has to use `-v8 -DBUILDING_NODE_EXTENSION=1`.
This commit is contained in:
parent
be35d94fdb
commit
001f38c6a9
5 changed files with 28 additions and 32 deletions
|
|
@ -88,7 +88,7 @@ ifeq ("node",$(JSENGINE))
|
|||
__setup = \
|
||||
if [ ! -f $(srcdir)/$*/binding.gyp ]; then \
|
||||
sh ./setup_test.sh $*; \
|
||||
$(SWIG) -c++ -javascript -node -o $*/$*_wrap.cxx ../$*.i; \
|
||||
$(SWIG) -c++ -javascript -v8 -DBUILDING_NODE_EXTENSION=1 -I$(top_srcdir)/Examples/test-suite -includeall -o $*/$*_wrap.cxx ../$*.i; \
|
||||
fi
|
||||
|
||||
nodejs_swig_and_compile = \
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@
|
|||
"target_name": "$testcase",
|
||||
"sources":[ "$testcase_wrap.cxx" ],
|
||||
"include_dirs": ["../.."],
|
||||
'defines': [
|
||||
'BUILDING_NODE_EXTENSION=1',
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="mac"',
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue