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:
Christian Hergert
2022-07-21 18:35:35 -07:00
parent dc829087d4
commit c3035efd52
4 changed files with 17 additions and 9 deletions

View File

@ -58,7 +58,7 @@ subdir('libsysprof-capture')
if get_option('sysprofd') == 'bundled'
subdir('sysprofd')
endif
if get_option('libsysprof')
if get_option('libsysprof') or get_option('agent')
subdir('libsysprof')
endif
if get_option('gtk') and get_option('libsysprof')