diff options
-rw-r--r-- | meson.build | 10 | ||||
-rw-r--r-- | meson_options.txt | 2 |
2 files changed, 12 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 diff --git a/meson_options.txt b/meson_options.txt index 068c37b..0f59683 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1 +1,3 @@ option('static', type : 'boolean', value : false, description: 'Build the pre-packaged lua file into the executable.') +option('install_plugin', type : 'boolean', value : false, description: 'Install the Lite-XL plugin for lpm') +option('lite_datadir', type : 'string', value : '', description: 'Path to the Lite-XL data directory, usually \'share/lite-xl\'') |