2020-09-05 16:02:16 -04:00
|
|
|
#INCLUDES += $(SPIDERMONKEY_CFLAGS)
|
|
|
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS')
|
2023-05-05 07:55:40 -04:00
|
|
|
srcs += files('ecmascript.cpp', 'localstorage-db.cpp', 'spidermonkey.cpp', 'timer.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')
|
2023-05-05 07:55:40 -04:00
|
|
|
srcs += files('ecmascript.cpp', 'localstorage-db.cpp', 'mujs.cpp', 'timer.cpp')
|
2022-08-01 15:31:07 -04:00
|
|
|
endif
|
|
|
|
|
2021-10-17 12:17:48 -04:00
|
|
|
if conf_data.get('CONFIG_QUICKJS')
|
2023-05-05 07:55:40 -04:00
|
|
|
srcs += files('ecmascript.cpp', 'localstorage-db.cpp', 'quickjs.cpp', 'timer.cpp')
|
2021-10-17 12:17:48 -04:00
|
|
|
endif
|
2023-03-12 12:29:59 -04:00
|
|
|
|
|
|
|
if conf_data.get('CONFIG_LIBDOM')
|
|
|
|
subdir('libdom')
|
|
|
|
endif
|