In example Makefiles for v8 forward to CPP target.

As v8 is C++ it is not possible to build wrappers in C.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Oliver Buchtala 2012-09-08 01:09:18 +00:00
commit bd752ff86b

View file

@ -559,10 +559,15 @@ endif
# Build a javascript dynamically loadable module (C)
# ----------------------------------------------------------------
# Note: for v8 there is no C support, so forwarding to javascript_cpp
ifeq (,$(V8))
javascript: $(SRCS)
$(SWIGJS) $(SWIGOPT) $(INTERFACEPATH)
$(CC) -c $(CCSHARED) $(JSCFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(JS_INCLUDE)
$(JSLDSHARED) $(CCSHARED) $(JSCFLAGS) $(OBJS) $(IOBJS) $(JS_DLNK) $(LIBS) -o $(JS_LIBPREFIX)$(TARGET)$(JSSO)
else
javascript: $(SRCS) javascript_cpp
endif
# ----------------------------------------------------------------
# Build a javascript dynamically loadable module (C++)