Skip to content

Commit

Permalink
Get rc_path from openrc pkgconfig
Browse files Browse the repository at this point in the history
We updated openrc to stick its path in the `rc_path` pkgconfig variable.

Now that a release contains this change we can query it at build time
rather than needing to guess.
  • Loading branch information
Kangie committed Sep 10, 2024
1 parent f28263f commit 54883a7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ project(
'plymouth-openrc-plugin',
'c',
version: '0.2.0',
default_options: [
'prefix=/usr',
],
)

dependencies = [
dependency('einfo', required: true),
dependency('openrc', required: true),
]
einfo = dependency('einfo', required: true)
openrc = dependency('openrc', version: '>=0.55', required: true )

dependencies = [einfo, openrc]

conf = configuration_data()
conf.set('DEBUG', get_option('debug'))
Expand All @@ -25,5 +28,5 @@ plugin = shared_library(
dependencies: dependencies,
name_prefix: '',
install: true,
install_dir: join_paths(get_option('libdir'), 'rc' / 'plugins'),
install_dir: openrc.get_pkgconfig_variable('rc_path') / 'plugins',
)

0 comments on commit 54883a7

Please sign in to comment.