2020-09-05 22:02:16 +02:00
|
|
|
#INCLUDES += $(SPIDERMONKEY_CFLAGS)
|
|
|
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS')
|
|
|
|
subdir('spidermonkey')
|
2021-10-25 17:43:07 +02:00
|
|
|
srcs += files('css2xpath.c', 'ecmascript.c', 'localstorage-db.c', 'spidermonkey.c')
|
2020-09-05 22:02:16 +02: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 20:14:55 +02:00
|
|
|
srcs += files('spidermonkey-shared.c', 'empty.cpp')
|
2020-09-05 22:02:16 +02:00
|
|
|
endif
|
|
|
|
|
2021-10-17 18:17:48 +02:00
|
|
|
if conf_data.get('CONFIG_QUICKJS')
|
|
|
|
subdir('quickjs')
|
2021-10-25 18:43:39 +02:00
|
|
|
srcs += files('ecmascript.c', 'localstorage-db.c', 'quickjs.c', 'empty.cpp')
|
2021-10-17 18:17:48 +02:00
|
|
|
endif
|