Allow to specify V8 version, for example

V8_VERSION=0x031511 ENGINE=v8 make check-javascript-examples
This commit is contained in:
Richard 2014-08-11 12:27:32 -05:00
commit 19d2976962

View file

@ -7,12 +7,18 @@ else
JSENGINE=node JSENGINE=node
endif endif
ifneq (, $(V8_VERSION))
JSV8_VERSION=$(V8_VERSION)
else
JSV8_VERSION=0x031110
endif
EXAMPLES_TOP=../.. EXAMPLES_TOP=../..
SWIG_TOP=../../.. SWIG_TOP=../../..
SWIG = $(SWIG_TOP)/preinst-swig SWIG = $(SWIG_TOP)/preinst-swig
TARGET = example TARGET = example
INTERFACE = example.i INTERFACE = example.i
SWIGOPT=-$(JSENGINE) SWIGOPT=-$(JSENGINE) -DV8_VERSION=$(JSV8_VERSION)
check: build check: build
$(MAKE) -f $(EXAMPLES_TOP)/Makefile SRCDIR='$(SRCDIR)' JSENGINE='$(JSENGINE)' TARGET='$(TARGET)' javascript_run $(MAKE) -f $(EXAMPLES_TOP)/Makefile SRCDIR='$(SRCDIR)' JSENGINE='$(JSENGINE)' TARGET='$(TARGET)' javascript_run