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:
parent
1862f43cfc
commit
bd752ff86b
1 changed files with 5 additions and 0 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue