1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/src/ecmascript/meson.build
2023-05-05 13:55:40 +02:00

29 lines
759 B
Meson

#INCLUDES += $(SPIDERMONKEY_CFLAGS)
if conf_data.get('CONFIG_ECMASCRIPT_SMJS')
srcs += files('ecmascript.cpp', 'localstorage-db.cpp', 'spidermonkey.cpp', 'timer.cpp')
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
srcs += files('spidermonkey-shared.cpp')
endif
if conf_data.get('CONFIG_MUJS')
srcs += files('ecmascript.cpp', 'localstorage-db.cpp', 'mujs.cpp', 'timer.cpp')
endif
if conf_data.get('CONFIG_QUICKJS')
srcs += files('ecmascript.cpp', 'localstorage-db.cpp', 'quickjs.cpp', 'timer.cpp')
endif
if conf_data.get('CONFIG_LIBDOM')
subdir('libdom')
endif