1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[meson] sm-scripting and (quickjs or mujs) cannot be both enabled. Refs #272

This commit is contained in:
Witold Filipczyk 2023-11-21 14:25:30 +01:00
parent 64343791dd
commit 67caccd017

View File

@ -111,6 +111,15 @@ if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') or conf_data.get('CONFIG_ECMAS
else else
conf_data.set('CONFIG_ECMASCRIPT', false) conf_data.set('CONFIG_ECMASCRIPT', false)
endif endif
if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') and conf_data.get('CONFIG_QUICKJS')
error('quickjs and sm-scripting cannot be both enabled')
endif
if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') and conf_data.get('CONFIG_MUJS')
error('mujs and sm-scripting cannot be both enabled')
endif
conf_data.set('CONFIG_ECMASCRIPT_SMJS_HEARTBEAT', true) conf_data.set('CONFIG_ECMASCRIPT_SMJS_HEARTBEAT', true)
conf_data.set('CONFIG_SCRIPTING', true) conf_data.set('CONFIG_SCRIPTING', true)