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:
@ -166,6 +166,7 @@ libsysprof_static_dep = declare_dependency(
|
||||
include_directories: [include_directories('.'), libsysprof_capture_include_dirs],
|
||||
)
|
||||
|
||||
if get_option('libsysprof')
|
||||
libsysprof = shared_library('sysprof-@0@'.format(libsysprof_api_version),
|
||||
dependencies: libsysprof_deps + [libsysprof_static_dep],
|
||||
install: true,
|
||||
@ -191,5 +192,6 @@ pkgconfig.generate(
|
||||
)
|
||||
|
||||
install_headers(libsysprof_public_headers, subdir: sysprof_header_subdir)
|
||||
endif
|
||||
|
||||
subdir('preload')
|
||||
|
||||
Reference in New Issue
Block a user