mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
tools: add -Dagent=true option
This also builds the agent statically with libsysprof_static_dep since we'd need that to avoid installing libsysprof when that isn't wanted. It also ensures the LD_PRELOAD libraries are installed for use by the agent.
This commit is contained in:
@ -12,14 +12,6 @@ if get_option('libsysprof')
|
||||
install_dir: get_option('bindir'),
|
||||
install: true,
|
||||
)
|
||||
|
||||
sysprof_agent = executable('sysprof-agent',
|
||||
['sysprof-agent.c', ipc_agent_src],
|
||||
dependencies: [libsysprof_dep],
|
||||
c_args: tools_cflags,
|
||||
install_dir: get_option('bindir'),
|
||||
install: true,
|
||||
)
|
||||
endif
|
||||
|
||||
sysprof_cat = executable('sysprof-cat', 'sysprof-cat.c',
|
||||
@ -48,3 +40,13 @@ list_threads = executable('list-threads', ['list-threads.c'],
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user