2012-10-24 22:00:24 +04:00
|
|
|
#
|
|
|
|
# NetSurf javascript source file inclusion
|
|
|
|
#
|
2015-10-12 19:40:35 +03:00
|
|
|
# Included by Makefile
|
2012-10-24 22:00:24 +04:00
|
|
|
#
|
|
|
|
|
2015-10-12 19:40:35 +03:00
|
|
|
# Check if jsapi is required
|
2012-10-24 22:00:24 +04:00
|
|
|
ifeq ($(NETSURF_USE_JS),YES)
|
2012-11-03 03:03:20 +04:00
|
|
|
WANT_JS_SOURCE := YES
|
2015-10-12 19:40:35 +03:00
|
|
|
else
|
2012-11-03 03:03:20 +04:00
|
|
|
ifeq ($(NETSURF_USE_MOZJS),YES)
|
|
|
|
WANT_JS_SOURCE := YES
|
|
|
|
endif
|
2015-08-09 14:27:13 +03:00
|
|
|
endif
|
|
|
|
|
2015-10-12 19:40:35 +03:00
|
|
|
S_JAVASCRIPT_BINDING:=
|
|
|
|
|
|
|
|
ifeq ($(WANT_JS_SOURCE),YES)
|
|
|
|
# JSAPI (spidemonkey)
|
|
|
|
include javascript/jsapi/Makefile
|
2015-08-09 14:27:13 +03:00
|
|
|
else
|
|
|
|
ifeq ($(NETSURF_USE_DUKTAPE),YES)
|
2015-10-12 19:40:35 +03:00
|
|
|
# Duktape
|
|
|
|
include javascript/duktape/Makefile
|
2012-10-24 22:00:24 +04:00
|
|
|
else
|
2015-10-12 19:40:35 +03:00
|
|
|
# None
|
|
|
|
include javascript/none/Makefile
|
2012-10-24 22:00:24 +04:00
|
|
|
endif
|
2015-08-09 14:27:13 +03:00
|
|
|
endif
|
2013-03-11 21:50:12 +04:00
|
|
|
|
2015-10-12 19:40:35 +03:00
|
|
|
# Fetcher for javascript scheme is always required
|
|
|
|
S_JAVASCRIPT += fetcher.c
|
|
|
|
|
|
|
|
S_JAVASCRIPT := $(addprefix javascript/,$(S_JAVASCRIPT)) $(S_JAVASCRIPT_BINDING)
|