From 3df572fc37f4febdbe50cf1493da6ae966a5050c Mon Sep 17 00:00:00 2001 From: Artem Senichev Date: Fri, 31 Jul 2026 10:23:33 +0300 Subject: [PATCH] meson: Add ability to select used Lua library Resolves #546. Signed-off-by: Artem Senichev --- meson.build | 2 +- meson.options | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a2cf48c3..6510d39c 100644 --- meson.build +++ meson.build @@ -35,7 +35,7 @@ xkb = dependency('xkbcommon') fontconfig = dependency('fontconfig') freetype = dependency('freetype2') threads = dependency('threads') -lua = dependency('luajit') +lua = dependency(get_option('liblua')) # wayland support wl_protocols = [] diff --git a/meson.options b/meson.options index 9a9b6088..36c60b4c 100644 --- meson.options +++ meson.options @@ -110,6 +110,14 @@ option( description: 'Enable DRM (Direct Rendering Manager) support', ) +# Libabry used for Lua +option( + 'liblua', + type: 'string', + value: 'luajit', + description: 'Library used for Lua (lua or luajit)', +) + # extra files to install option( 'bash',