From 2a36d05bc04cbf9949aed126148d7491ef7b8d61 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 10 Nov 2024 21:58:06 +0100 Subject: Add option to install Lite-XL plugin (#138) --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 9625d01..9a35ec1 100644 --- a/meson.build +++ b/meson.build @@ -72,3 +72,13 @@ lpm_exe = executable('lpm', c_args: cflags, install: true, ) + +if (get_option('install_plugin')) + lite_datadir = get_option('lite_datadir') + if lite_datadir == '' + # No path given, assume a default + lite_datadir = get_option('datadir') + '/lite-xl' + endif + + install_subdir('plugins', install_dir : lite_datadir) +endif -- cgit v1.2.3