Files
sysprof/src/tools/meson.build
Christian Hergert 5c06845e86 tools: add helper to rewrite a PID
This is mostly useful when troubleshooting PIDs in container namespaces
that don't match the host.
2023-02-20 21:04:21 -08:00

59 lines
1.5 KiB
Meson

tools_deps = [
dependency('glib-2.0'),
libsysprof_capture_dep,
]
tools_cflags = [ '-DSYSPROF_COMPILATION ']
sysprof_cli = executable('sysprof-cli', 'sysprof-cli.c',
dependencies: [libsysprof_static_dep, polkit_dep, polkit_agent_dep],
c_args: tools_cflags,
install_dir: get_option('bindir'),
install: true,
)
sysprof_cat = executable('sysprof-cat', 'sysprof-cat.c',
dependencies: tools_deps,
c_args: tools_cflags,
install: false,
)
if get_option('libsysprof')
sysprof_dump = executable('sysprof-dump', 'sysprof-dump.c',
dependencies: [libsysprof_dep],
c_args: tools_cflags,
install: false,
)
rewrite_pid = executable('rewrite-pid', ['rewrite-pid.c'],
dependencies: [libsysprof_dep],
c_args: tools_cflags,
install: false,
)
endif
if get_option('sysprofd') == 'bundled' or get_option('libsysprof')
sysprof_profiler_ctl = executable('sysprof-profiler-ctl',
[ 'sysprof-profiler-ctl.c', ipc_profiler_src ],
dependencies: [ tools_deps, dependency('gio-unix-2.0', version: glib_req_version) ],
c_args: tools_cflags,
install: false,
)
endif
list_threads = executable('list-threads', ['list-threads.c'],
dependencies: [ tools_deps ],
c_args: tools_cflags,
install: false,
)
if get_option('agent')
sysprof_agent = executable('sysprof-agent',
['sysprof-agent.c', ipc_agent_src],
dependencies: [libsysprof_static_dep],
c_args: tools_cflags,
install_dir: get_option('bindir'),
install: true,
)
endif