mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: start on sysprof-analyze library
The goal here is to break up libsysprof into a library for recording profiles (using libsysprof-capture) and a library for analyzing profiles (both used by the sysprof UI).
This commit is contained in:
45
src/libsysprof-analyze/meson.build
Normal file
45
src/libsysprof-analyze/meson.build
Normal file
@ -0,0 +1,45 @@
|
||||
libsysprof_analyze_public_sources = [
|
||||
'sysprof-capture-model.c',
|
||||
'sysprof-capture-frame-object.c',
|
||||
]
|
||||
|
||||
libsysprof_analyze_public_headers = [
|
||||
'sysprof-analyze.h',
|
||||
'sysprof-capture-model.h',
|
||||
'sysprof-capture-frame-object.h',
|
||||
]
|
||||
|
||||
libsysprof_analyze_deps = [
|
||||
dependency('gio-2.0', version: glib_req_version),
|
||||
libsysprof_capture_deps,
|
||||
]
|
||||
|
||||
libsysprof_analyze = library('sysprof-analyze',
|
||||
libsysprof_analyze_public_sources,
|
||||
include_directories: [include_directories('.'),
|
||||
ipc_include_dirs,
|
||||
libsysprof_capture_include_dirs],
|
||||
dependencies: libsysprof_analyze_deps,
|
||||
gnu_symbol_visibility: 'hidden',
|
||||
version: '@0@.0.0'.format(soname_major_version),
|
||||
darwin_versions: '@0@.0'.format(soname_major_version),
|
||||
)
|
||||
|
||||
libsysprof_analyze_dep = declare_dependency(
|
||||
link_with: libsysprof_analyze,
|
||||
dependencies: libsysprof_analyze_deps,
|
||||
include_directories: [include_directories('.'), libsysprof_capture_include_dirs],
|
||||
)
|
||||
meson.override_dependency('sysprof-analyze-@0@'.format(soname_major_version), libsysprof_analyze_dep)
|
||||
|
||||
pkgconfig.generate(libsysprof_analyze,
|
||||
subdirs: [sysprof_header_subdir],
|
||||
description: 'A library for processing and analyzing Sysprof captures',
|
||||
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
||||
requires: ['gio-2.0'],
|
||||
variables: ['datadir=' + datadir_for_pc_file],
|
||||
)
|
||||
|
||||
install_headers(libsysprof_analyze_public_headers, subdir: sysprof_header_subdir)
|
||||
|
||||
subdir('tests')
|
||||
Reference in New Issue
Block a user