mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: add mapped_ring_buffer_sources for inclusion
We use this in various places but it relies on some static API in the libsysprof-capture. Make it available to the other libraries.
This commit is contained in:
@ -19,8 +19,11 @@ if not meson.is_subproject()
|
||||
install_headers(libsysprof_capture_headers, subdir: sysprof_header_subdir)
|
||||
endif
|
||||
|
||||
libsysprof_capture_sources = files([
|
||||
mapped_ring_buffer_sources = files([
|
||||
'mapped-ring-buffer.c',
|
||||
])
|
||||
|
||||
libsysprof_capture_sources = files([
|
||||
'sysprof-address.c',
|
||||
'sysprof-capture-condition.c',
|
||||
'sysprof-capture-cursor.c',
|
||||
@ -47,7 +50,8 @@ libsysprof_capture_deps = [
|
||||
|
||||
libsysprof_capture = static_library(
|
||||
'sysprof-capture-@0@'.format(libsysprof_api_version),
|
||||
libsysprof_capture_sources,
|
||||
(libsysprof_capture_sources +
|
||||
mapped_ring_buffer_sources),
|
||||
|
||||
dependencies: libsysprof_capture_deps,
|
||||
c_args: [ '-DSYSPROF_CAPTURE_COMPILATION' ],
|
||||
|
||||
@ -32,8 +32,9 @@ libsysprof_profile_deps = [
|
||||
|
||||
libsysprof_profile_static = static_library(
|
||||
'sysprof-profile-@0@'.format(soname_major_version),
|
||||
libsysprof_profile_public_sources +
|
||||
libsysprof_profile_private_sources,
|
||||
(libsysprof_profile_public_sources +
|
||||
libsysprof_profile_private_sources +
|
||||
mapped_ring_buffer_sources),
|
||||
|
||||
include_directories: [include_directories('.'),
|
||||
ipc_include_dirs,
|
||||
|
||||
@ -150,7 +150,9 @@ endif
|
||||
|
||||
libsysprof_static = static_library(
|
||||
'sysprof',
|
||||
libsysprof_public_sources + libsysprof_private_sources,
|
||||
(libsysprof_public_sources +
|
||||
libsysprof_private_sources +
|
||||
mapped_ring_buffer_sources),
|
||||
|
||||
include_directories: [include_directories('.'),
|
||||
ipc_include_dirs,
|
||||
|
||||
Reference in New Issue
Block a user