From f90d7063abc00edf0dc17e69cb4bd75e3c7368d1 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 21 Nov 2023 15:27:17 +0100 Subject: [PATCH] [meson] More configuration conflict checks --- meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meson.build b/meson.build index 95c96740..8700e899 100644 --- a/meson.build +++ b/meson.build @@ -120,6 +120,18 @@ if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') and conf_data.get('CONFIG_MUJS error('mujs and sm-scripting cannot be both enabled') endif +if conf_data.get('CONFIG_ECMASCRIPT_SMJS') and conf_data.get('CONFIG_QUICKJS') + error('quickjs and spidermonkey cannot be both enabled') +endif + +if conf_data.get('CONFIG_ECMASCRIPT_SMJS') and conf_data.get('CONFIG_MUJS') + error('mujs and spidermonkey cannot be both enabled') +endif + +if conf_data.get('CONFIG_QUICKJS') and conf_data.get('CONFIG_MUJS') + error('mujs and quickjs cannot be both enabled') +endif + conf_data.set('CONFIG_ECMASCRIPT_SMJS_HEARTBEAT', true) conf_data.set('CONFIG_SCRIPTING', true)