mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 10:42:36 +03:00
Move javascript content handler as appropriate for updated source format
This commit is contained in:
parent
9754539e22
commit
042fcb82b8
@ -679,8 +679,8 @@ INPUT = frontends/amiga \
|
||||
content/fetchers \
|
||||
content/handlers/image \
|
||||
content/handlers/css \
|
||||
javascript \
|
||||
javascript/jsapi \
|
||||
content/handlers/javascript \
|
||||
content/handlers/javascript/duktape \
|
||||
utils \
|
||||
utils/http \
|
||||
Docs/UnimplementedJavascript.txt
|
||||
|
@ -630,7 +630,6 @@ getter HTMLElement::onerror(user);\n
|
||||
setter HTMLElement::onerror(user);\n
|
||||
getter HTMLElement::spellcheck(boolean);\n
|
||||
setter HTMLElement::spellcheck(boolean);\n
|
||||
getter HTMLElement::style(user);\n
|
||||
getter HTMLElement::tabIndex(long);\n
|
||||
setter HTMLElement::tabIndex(long);\n
|
||||
getter HTMLElement::translate(boolean);\n
|
||||
|
15
Makefile
15
Makefile
@ -596,17 +596,11 @@ include utils/http/Makefile
|
||||
# Desktop sources
|
||||
include desktop/Makefile
|
||||
|
||||
# Javascript source
|
||||
include javascript/Makefile
|
||||
|
||||
# S_COMMON are sources common to all builds
|
||||
S_COMMON := $(S_CONTENT) $(S_FETCHERS) $(S_CSS) $(S_RENDER) $(S_UTILS) \
|
||||
$(S_HTTP) $(S_DESKTOP) $(S_JAVASCRIPT)
|
||||
S_COMMON := $(S_CONTENT) $(S_FETCHERS) $(S_RENDER) $(S_UTILS) $(S_HTTP) \
|
||||
$(S_DESKTOP) $(S_JAVASCRIPT_BINDING)
|
||||
|
||||
|
||||
# Include directory flags
|
||||
IFLAGS = $(addprefix -I,$(INCLUDE_DIRS))
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Message targets
|
||||
# ----------------------------------------------------------------------------
|
||||
@ -630,7 +624,7 @@ MESSAGES += $$(MESSAGES_TARGET)/$(1)/Messages
|
||||
|
||||
endef
|
||||
|
||||
# geenrate the message file rules
|
||||
# generate the message file rules
|
||||
$(eval $(foreach LANG,$(MESSAGES_LANGUAGES), \
|
||||
$(call split_messages,$(LANG))))
|
||||
|
||||
@ -653,6 +647,9 @@ endif
|
||||
|
||||
OBJECTS := $(sort $(addprefix $(OBJROOT)/,$(subst /,_,$(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(patsubst %.m,%.o,$(patsubst %.s,%.o,$(SOURCES))))))))
|
||||
|
||||
# Include directory flags
|
||||
IFLAGS = $(addprefix -I,$(INCLUDE_DIRS))
|
||||
|
||||
$(EXETARGET): $(OBJECTS) $(RESOURCES) $(MESSAGES)
|
||||
$(VQ)echo " LINK: $(EXETARGET)"
|
||||
ifneq ($(TARGET)$(SUBTARGET),riscos-elf)
|
||||
|
@ -8,10 +8,11 @@ ifeq ($(NETSURF_FS_BACKING_STORE),YES)
|
||||
S_CONTENT += fs_backing_store.c
|
||||
endif
|
||||
|
||||
S_CONTENT := $(addprefix content/,$(S_CONTENT))
|
||||
|
||||
# Content fetchers sources
|
||||
include content/fetchers/Makefile
|
||||
|
||||
# Content handlers
|
||||
include content/handlers/Makefile
|
||||
|
||||
S_CONTENT := $(addprefix content/,$(S_CONTENT))
|
||||
|
@ -6,6 +6,11 @@ S_IMAGE := $(addprefix content/handlers/image/,$(S_IMAGE))
|
||||
# CSS sources
|
||||
include content/handlers/css/Makefile
|
||||
|
||||
S_CSS := $(addprefix content/handlers/css/,$(S_CSS))
|
||||
S_CONTENT += $(addprefix handlers/css/,$(S_CSS))
|
||||
|
||||
# Javascript source
|
||||
include content/handlers/javascript/Makefile
|
||||
|
||||
S_CONTENT += $(addprefix handlers/javascript/,$(S_JAVASCRIPT))
|
||||
|
||||
INCLUDE_DIRS += content/handlers
|
||||
|
18
content/handlers/javascript/Makefile
Normal file
18
content/handlers/javascript/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# NetSurf javascript source file inclusion
|
||||
#
|
||||
# Included by Makefile
|
||||
#
|
||||
|
||||
S_JAVASCRIPT_BINDING:=
|
||||
|
||||
ifeq ($(NETSURF_USE_DUKTAPE),YES)
|
||||
# Duktape
|
||||
include content/handlers/javascript/duktape/Makefile
|
||||
else
|
||||
# None
|
||||
include content/handlers/javascript/none/Makefile
|
||||
endif
|
||||
|
||||
# Fetcher for javascript scheme is always required
|
||||
S_JAVASCRIPT += fetcher.c
|
@ -4,27 +4,27 @@
|
||||
# Included by javascript/Makefile
|
||||
#
|
||||
|
||||
javascript/dukky.c: $(OBJROOT)/duktape/binding.h
|
||||
content/handlers/javascript/dukky.c: $(OBJROOT)/duktape/binding.h
|
||||
|
||||
BINDINGS := $(wildcard javascript/duktape/*.bnd)
|
||||
BINDINGS := $(wildcard content/handlers/javascript/duktape/*.bnd)
|
||||
|
||||
# ensure genbind generates debugging files
|
||||
GBFLAGS+=-D
|
||||
|
||||
$(OBJROOT)/duktape/binding.h $(OBJROOT)/duktape/Makefile: javascript/duktape/netsurf.bnd $(BINDINGS)
|
||||
$(OBJROOT)/duktape/binding.h $(OBJROOT)/duktape/Makefile: content/handlers/javascript/duktape/netsurf.bnd $(BINDINGS)
|
||||
$(Q)mkdir -p $(OBJROOT)/duktape
|
||||
$(VQ)echo " GENBIND: $<"
|
||||
$(Q)nsgenbind $(GBFLAGS) -I javascript/WebIDL $< $(OBJROOT)/duktape
|
||||
$(Q)nsgenbind $(GBFLAGS) -I content/handlers/javascript/WebIDL $< $(OBJROOT)/duktape
|
||||
$(VQ)echo " GENBIND: completed"
|
||||
|
||||
# create unimplemented report for doxygen
|
||||
Docs/UnimplementedJavascript.txt: javascript/duktape/netsurf.bnd $(BINDINGS)
|
||||
Docs/UnimplementedJavascript.txt: content/handlers/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 $(GBFLAGS) -Wunimplemented -I javascript/WebIDL $< $(OBJROOT)/duktape 2>&1 >/dev/null | grep "Unimplemented" | cut -d' ' -f4- | sort -k 2 | awk '{print $$0"\\n" }' >> $@
|
||||
$(Q)nsgenbind $(GBFLAGS) -Wunimplemented -I content/handlers/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),)
|
@ -1,34 +0,0 @@
|
||||
#
|
||||
# NetSurf javascript source file inclusion
|
||||
#
|
||||
# Included by Makefile
|
||||
#
|
||||
|
||||
# Check if jsapi is required
|
||||
ifeq ($(NETSURF_USE_JS),YES)
|
||||
WANT_JS_SOURCE := YES
|
||||
else
|
||||
ifeq ($(NETSURF_USE_MOZJS),YES)
|
||||
WANT_JS_SOURCE := YES
|
||||
endif
|
||||
endif
|
||||
|
||||
S_JAVASCRIPT_BINDING:=
|
||||
|
||||
ifeq ($(WANT_JS_SOURCE),YES)
|
||||
# JSAPI (spidemonkey)
|
||||
include javascript/jsapi/Makefile
|
||||
else
|
||||
ifeq ($(NETSURF_USE_DUKTAPE),YES)
|
||||
# Duktape
|
||||
include javascript/duktape/Makefile
|
||||
else
|
||||
# None
|
||||
include javascript/none/Makefile
|
||||
endif
|
||||
endif
|
||||
|
||||
# Fetcher for javascript scheme is always required
|
||||
S_JAVASCRIPT += fetcher.c
|
||||
|
||||
S_JAVASCRIPT := $(addprefix javascript/,$(S_JAVASCRIPT)) $(S_JAVASCRIPT_BINDING)
|
Loading…
Reference in New Issue
Block a user