2020-09-05 16:02:16 -04:00
|
|
|
#INCLUDES += $(SPIDERMONKEY_CFLAGS)
|
|
|
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS')
|
|
|
|
subdir('spidermonkey')
|
2022-07-31 09:33:22 -04:00
|
|
|
srcs += files('css2xpath.cpp', 'ecmascript.cpp', 'localstorage-db.cpp', 'spidermonkey.cpp')
|
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
|
2022-07-31 09:33:22 -04:00
|
|
|
srcs += files('spidermonkey-shared.cpp')
|
2020-09-05 16:02:16 -04:00
|
|
|
endif
|
|
|
|
|
2022-08-01 15:31:07 -04:00
|
|
|
if conf_data.get('CONFIG_MUJS')
|
|
|
|
subdir('mujs')
|
|
|
|
srcs += files('css2xpath.cpp', 'ecmascript.cpp', 'localstorage-db.cpp', 'mujs.cpp')
|
|
|
|
endif
|
|
|
|
|
2021-10-17 12:17:48 -04:00
|
|
|
if conf_data.get('CONFIG_QUICKJS')
|
|
|
|
subdir('quickjs')
|
2022-07-31 09:33:22 -04:00
|
|
|
srcs += files('css2xpath.cpp', 'ecmascript.cpp', 'localstorage-db.cpp', 'quickjs.cpp')
|
2021-10-17 12:17:48 -04:00
|
|
|
endif
|