Skip to content

Commit

Permalink
build: fix install path for switchboard plug (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
worldofpeace authored and danirabbit committed Aug 23, 2019
1 parent 7476c5c commit e351534
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ i18n.merge_file(
input: 'io.elementary.switchboard.mouse-touchpad.appdata.xml.in',
output: 'io.elementary.switchboard.mouse-touchpad.appdata.xml',
po_dir: join_paths(meson.source_root (), 'po', 'extra'),
install_dir: join_paths(get_option('datadir'), 'metainfo'),
install_dir: join_paths(datadir, 'metainfo'),
install: true
)
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ gettext_name = meson.project_name() + '-plug'
gnome = import('gnome')
i18n = import('i18n')

prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
libdir = join_paths(prefix, get_option('libdir'))

add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(gettext_name),
language:'c'
Expand Down
3 changes: 2 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plug_files = files(
)

switchboard_dep = dependency('switchboard-2.0')
switchboard_plugsdir = switchboard_dep.get_pkgconfig_variable('plugsdir', define_variable: ['libdir', libdir])

shared_module(
meson.project_name(),
Expand All @@ -23,5 +24,5 @@ shared_module(
switchboard_dep
],
install: true,
install_dir : join_paths(switchboard_dep.get_pkgconfig_variable('plugsdir'), 'hardware')
install_dir : join_paths(switchboard_plugsdir, 'hardware')
)

0 comments on commit e351534

Please sign in to comment.