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:
Oliver Buchtala 2013-09-10 13:29:16 +03:00
commit 001f38c6a9
5 changed files with 28 additions and 32 deletions

View file

@ -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 = \

View file

@ -4,6 +4,9 @@
"target_name": "$testcase",
"sources":[ "$testcase_wrap.cxx" ],
"include_dirs": ["../.."],
'defines': [
'BUILDING_NODE_EXTENSION=1',
],
'conditions': [
['OS=="mac"',
{