2015-10-12 19:40:35 +03:00
|
|
|
#
|
|
|
|
# NetSurf javascript source file inclusion
|
|
|
|
#
|
|
|
|
# Included by javascript/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
javascript/dukky.c: $(OBJROOT)/duktape/binding.h
|
|
|
|
|
|
|
|
BINDINGS := $(wildcard javascript/duktape/*.bnd)
|
|
|
|
|
2015-10-12 22:25:15 +03:00
|
|
|
GBFLAGS:=-D
|
|
|
|
#GBFLAGS+=-g
|
|
|
|
|
2015-10-12 19:40:35 +03:00
|
|
|
$(OBJROOT)/duktape/binding.h $(OBJROOT)/duktape/Makefile: javascript/duktape/netsurf.bnd $(BINDINGS)
|
|
|
|
$(Q)mkdir -p $(OBJROOT)/duktape
|
|
|
|
$(VQ)echo " GENBIND: $<"
|
2015-10-12 22:25:15 +03:00
|
|
|
$(Q)nsgenbind $(GBFLAGS) -I javascript/WebIDL $< $(OBJROOT)/duktape
|
2015-10-12 19:40:35 +03:00
|
|
|
$(VQ)echo " GENBIND: completed"
|
|
|
|
|
|
|
|
# create unimplemented report for doxygen
|
|
|
|
Docs/UnimplementedJavascript.txt: javascript/duktape/netsurf.bnd $(BINDINGS)
|
|
|
|
$(Q)mkdir -p $(OBJROOT)/duktape
|
|
|
|
$(VQ)echo "/** \page unimplemented Unimplemented javascript bindings" > $@
|
|
|
|
$(VQ)echo "This is a list of all the binding methods, getters and setters without an implementation in a binding." >> $@
|
|
|
|
$(VQ)echo "" >> $@
|
|
|
|
$(VQ)echo " GENBIND: $<"
|
|
|
|
$(Q)nsgenbind -Wunimplemented -I javascript/WebIDL $< $(OBJROOT)/duktape 2>&1 >/dev/null | grep "Unimplemented" | cut -d' ' -f4- | sort -k 2 | awk '{print $$0"\\n" }' >> $@
|
|
|
|
$(VQ)echo "*/" >> $@
|
|
|
|
|
|
|
|
ifeq ($(filter $(MAKECMDGOALS),clean test coverage),)
|
|
|
|
-include $(OBJROOT)/duktape/Makefile
|
|
|
|
endif
|
|
|
|
|
|
|
|
S_JAVASCRIPT_BINDING:=$(addprefix $(OBJROOT)/duktape/,$(NSGENBIND_SOURCES))
|
|
|
|
|
|
|
|
$(S_JAVASCRIPT_BINDING): $(BINDINGS)
|
|
|
|
|
|
|
|
S_JAVASCRIPT += content.c duktape/dukky.c duktape/duktape.c
|
|
|
|
|
|
|
|
CFLAGS += -DDUK_OPT_HAVE_CUSTOM_H
|