mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-06 04:28:16 +02:00
build: Expose powerprofilesctl script and load it using files
This commit is contained in:
parent
1ca46967b2
commit
7cd764c075
1 changed files with 3 additions and 4 deletions
|
|
@ -104,15 +104,14 @@ executable('power-profiles-daemon',
|
|||
install_dir: libexecdir
|
||||
)
|
||||
|
||||
script = 'powerprofilesctl'
|
||||
install_data(script,
|
||||
powerprofilesctl = files('powerprofilesctl')
|
||||
install_data(powerprofilesctl,
|
||||
install_dir: get_option('bindir')
|
||||
)
|
||||
script = join_paths(meson.current_source_dir(), script)
|
||||
if get_option('pylint')
|
||||
test('pylint-powerprofilesctl',
|
||||
pylint,
|
||||
args: pylint_flags + [ script ],
|
||||
args: pylint_flags + [ powerprofilesctl ],
|
||||
env: nomalloc,
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue