build: make polkit optional again for sysprof-cli

This commit is contained in:
Christian Hergert
2020-11-16 14:57:04 -08:00
parent 6e4413d3aa
commit 04eacbcfe2
5 changed files with 26 additions and 14 deletions

View File

@ -7,9 +7,7 @@ tools_deps = [
tools_cflags = [ '-DSYSPROF_COMPILATION ']
if get_option('libsysprof') and host_machine.system() == 'linux'
polkit_agent_dep = dependency('polkit-agent-1')
polkit_dep = dependency('polkit-gobject-1', version: polkit_req_version, required: false)
if get_option('libsysprof')
sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c',
dependencies: tools_deps + [libsysprof_dep, polkit_dep, polkit_agent_dep],
c_args: tools_cflags,