From 67caccd01775fafe805009235f0d6db4b01a0b87 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 21 Nov 2023 14:25:30 +0100 Subject: [PATCH] [meson] sm-scripting and (quickjs or mujs) cannot be both enabled. Refs #272 --- meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meson.build b/meson.build index 98dc9cf0..95c96740 100644 --- a/meson.build +++ b/meson.build @@ -111,6 +111,15 @@ if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') or conf_data.get('CONFIG_ECMAS else conf_data.set('CONFIG_ECMASCRIPT', false) 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_SCRIPTING', true)