aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2024-11-10 21:58:06 +0100
committerGitHub <noreply@github.com>2024-11-10 15:58:06 -0500
commit2a36d05bc04cbf9949aed126148d7491ef7b8d61 (patch)
tree8c4a3f0194af588da356e77edd30adce89dcce47 /meson.build
parent0d38d45a5654ffba4d7fe979b18e2b68cd691989 (diff)
downloadlite-xl-plugin-manager-2a36d05bc04cbf9949aed126148d7491ef7b8d61.tar.gz
lite-xl-plugin-manager-2a36d05bc04cbf9949aed126148d7491ef7b8d61.zip
Add option to install Lite-XL plugin (#138)
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 10 insertions, 0 deletions
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