2020-09-05 16:02:16 -04:00
|
|
|
#INCLUDES += $(SPIDERMONKEY_CFLAGS)
|
|
|
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS')
|
|
|
|
subdir('spidermonkey')
|
2021-10-25 11:43:07 -04:00
|
|
|
srcs += files('css2xpath.c', 'ecmascript.c', 'localstorage-db.c', 'spidermonkey.c')
|
2020-09-05 16:02:16 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS')
|
|
|
|
CONFIG_ANY_SPIDERMONKEY = true
|
|
|
|
elif conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY')
|
|
|
|
CONFIG_ANY_SPIDERMONKEY = true
|
|
|
|
else
|
|
|
|
CONFIG_ANY_SPIDERMONKEY = false
|
|
|
|
endif
|
|
|
|
|
|
|
|
if CONFIG_ANY_SPIDERMONKEY
|
2020-10-05 14:14:55 -04:00
|
|
|
srcs += files('spidermonkey-shared.c', 'empty.cpp')
|
2020-09-05 16:02:16 -04:00
|
|
|
endif
|
|
|
|
|
2021-10-17 12:17:48 -04:00
|
|
|
if conf_data.get('CONFIG_QUICKJS')
|
|
|
|
subdir('quickjs')
|
2021-10-29 16:06:39 -04:00
|
|
|
srcs += files('css2xpath.c', 'ecmascript.c', 'localstorage-db.c', 'quickjs.c', 'empty.cpp')
|
2021-10-17 12:17:48 -04:00
|
|
|
endif
|