Unverified Commit c5a10ae1 authored by Marius's avatar Marius

Support plugindir argument in meson.build.

parent ff5da0f2
...@@ -13,6 +13,11 @@ prefix = get_option('prefix') ...@@ -13,6 +13,11 @@ prefix = get_option('prefix')
datadir = get_option('datadir') datadir = get_option('datadir')
metainfodir = join_paths(datadir, 'metainfo') metainfodir = join_paths(datadir, 'metainfo')
desktopdir = join_paths(datadir, 'applications') desktopdir = join_paths(datadir, 'applications')
if get_option('plugindir') == ''
plugindir = zathura.get_pkgconfig_variable('plugindir')
else
plugindir = get_option('plugindir')
endif
# required dependencies # required dependencies
zathura = dependency('zathura', version: '>=0.3.9') zathura = dependency('zathura', version: '>=0.3.9')
...@@ -61,7 +66,7 @@ pdf = shared_module('pdf-mupdf', ...@@ -61,7 +66,7 @@ pdf = shared_module('pdf-mupdf',
dependencies: build_dependencies, dependencies: build_dependencies,
c_args: defines + flags, c_args: defines + flags,
install: true, install: true,
install_dir: zathura.get_pkgconfig_variable('plugindir') install_dir: plugindir
) )
subdir('data') subdir('data')
option('plugindir',
type: 'string', value: '',
description: 'Install to a different location than Zathuras plugin directory')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment