mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Otherwise, using libsysprof-ui will usually fail because <dazzle.h> is not added to the search path. Resolves: https://gitlab.gnome.org/GNOME/sysprof/-/issues/49 Signed-off-by: Simon McVittie <smcv@debian.org>
78 lines
2.3 KiB
Meson
78 lines
2.3 KiB
Meson
libsysprof_capture_headers = files([
|
|
'sysprof-address.h',
|
|
'sysprof-clock.h',
|
|
'sysprof-capture-condition.h',
|
|
'sysprof-capture-cursor.h',
|
|
'sysprof-capture-reader.h',
|
|
'sysprof-capture-types.h',
|
|
'sysprof-capture-writer.h',
|
|
'sysprof-collector.h',
|
|
'sysprof-macros.h',
|
|
'sysprof-platform.h',
|
|
'sysprof-capture.h',
|
|
'sysprof-version-macros.h',
|
|
])
|
|
|
|
if not meson.is_subproject()
|
|
install_headers(libsysprof_capture_headers, subdir: sysprof_header_subdir)
|
|
endif
|
|
|
|
libsysprof_capture_sources = files([
|
|
'mapped-ring-buffer.c',
|
|
'sysprof-address.c',
|
|
'sysprof-capture-condition.c',
|
|
'sysprof-capture-cursor.c',
|
|
'sysprof-capture-reader.c',
|
|
'sysprof-capture-util.c',
|
|
'sysprof-capture-writer.c',
|
|
'sysprof-capture-writer-cat.c',
|
|
'sysprof-collector.c',
|
|
'sysprof-clock.c',
|
|
'sysprof-platform.c',
|
|
])
|
|
|
|
configure_file(
|
|
input: 'sysprof-version.h.in',
|
|
output: 'sysprof-version.h',
|
|
configuration: sysprof_version_conf,
|
|
install_dir: join_paths(get_option('includedir'), sysprof_header_subdir),
|
|
install: not meson.is_subproject(),
|
|
)
|
|
|
|
libsysprof_capture_deps = [
|
|
dependency('threads'),
|
|
]
|
|
|
|
libsysprof_capture = static_library(
|
|
'sysprof-capture-@0@'.format(libsysprof_api_version),
|
|
libsysprof_capture_sources,
|
|
|
|
dependencies: libsysprof_capture_deps,
|
|
c_args: [ '-DSYSPROF_CAPTURE_COMPILATION' ],
|
|
install_dir: get_option('libdir'),
|
|
install: not meson.is_subproject(),
|
|
gnu_symbol_visibility: 'hidden',
|
|
)
|
|
|
|
libsysprof_capture_include_dirs = include_directories('.')
|
|
|
|
libsysprof_capture_dep = declare_dependency(
|
|
link_whole: libsysprof_capture,
|
|
dependencies: libsysprof_capture_deps,
|
|
include_directories: libsysprof_capture_include_dirs,
|
|
)
|
|
|
|
if not meson.is_subproject()
|
|
pkgconfig.generate(
|
|
libsysprof_capture,
|
|
subdirs: [ sysprof_header_subdir ],
|
|
version: meson.project_version(),
|
|
name: 'sysprof-capture-@0@'.format(libsysprof_api_version),
|
|
filebase: 'sysprof-capture-@0@'.format(libsysprof_api_version),
|
|
description: 'The static capture library for tools that generate profiling capture data',
|
|
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
|
variables: [ 'datadir=' + datadir_for_pc_file ],
|
|
requires_private: libsysprof_capture_deps,
|
|
)
|
|
endif
|