libsysprof-analyze: build static library for testing internals

Otherwise we can't test our private API which very much will need it to
ensure correctness.
This commit is contained in:
Christian Hergert
2023-05-12 14:11:17 -07:00
parent 582986f5c9
commit 3a8471906f

View File

@ -62,13 +62,27 @@ libsysprof_analyze_deps = [
libsysprof_capture_dep, libsysprof_capture_dep,
] ]
libsysprof_analyze = library('sysprof-analyze-@0@'.format(soname_major_version), libsysprof_analyze_static = static_library(
libsysprof_analyze_public_sources + 'sysprof-analyze-@0@'.format(soname_major_version),
libsysprof_analyze_private_sources, libsysprof_analyze_public_sources +
libsysprof_analyze_private_sources,
include_directories: [include_directories('.'), include_directories: [include_directories('.'),
ipc_include_dirs, ipc_include_dirs,
libsysprof_capture_include_dirs], libsysprof_capture_include_dirs],
dependencies: libsysprof_analyze_deps, dependencies: libsysprof_analyze_deps,
gnu_symbol_visibility: 'hidden',
)
libsysprof_analyze_static_dep = declare_dependency(
link_with: libsysprof_analyze_static,
dependencies: libsysprof_analyze_deps,
include_directories: [include_directories('.'),
libsysprof_capture_include_dirs],
)
libsysprof_analyze = library('sysprof-analyze-@0@'.format(soname_major_version),
dependencies: [libsysprof_analyze_static_dep],
gnu_symbol_visibility: 'hidden', gnu_symbol_visibility: 'hidden',
version: '@0@.0.0'.format(soname_major_version), version: '@0@.0.0'.format(soname_major_version),
darwin_versions: '@0@.0'.format(soname_major_version), darwin_versions: '@0@.0'.format(soname_major_version),