netsurf/javascript/Makefile

35 lines
636 B
Makefile
Raw Normal View History

2012-10-24 22:00:24 +04:00
#
# NetSurf javascript source file inclusion
#
# Included by Makefile
2012-10-24 22:00:24 +04:00
#
# Check if jsapi is required
2012-10-24 22:00:24 +04:00
ifeq ($(NETSURF_USE_JS),YES)
WANT_JS_SOURCE := YES
else
ifeq ($(NETSURF_USE_MOZJS),YES)
WANT_JS_SOURCE := YES
endif
2015-08-09 14:27:13 +03:00
endif
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)
# Duktape
include javascript/duktape/Makefile
2012-10-24 22:00:24 +04:00
else
# None
include javascript/none/Makefile
2012-10-24 22:00:24 +04:00
endif
2015-08-09 14:27:13 +03:00
endif
# Fetcher for javascript scheme is always required
S_JAVASCRIPT += fetcher.c
S_JAVASCRIPT := $(addprefix javascript/,$(S_JAVASCRIPT)) $(S_JAVASCRIPT_BINDING)