mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
This is a program that can be communicated with over private D-Bus using pipes to control a process. It is useful in an automated fashion from tooling such as Builder. This allows, when installed into SDKs like GNOMEs, to profile from inside the container rather than from the outside. Such is useful when you need to ensure you have access to LD_PRELOAD/etc within the context.
76 lines
2.2 KiB
Meson
76 lines
2.2 KiB
Meson
sysprof_header_subdir = 'sysprof-@0@'.format(libsysprof_api_version)
|
|
sysprof_ui_header_subdir = 'sysprof-ui-@0@'.format(libsysprof_ui_api_version)
|
|
|
|
sysprof_version_conf = configuration_data()
|
|
sysprof_version = meson.project_version().split('.')
|
|
sysprof_version_conf.set('MAJOR_VERSION', sysprof_version[0])
|
|
sysprof_version_conf.set('MINOR_VERSION', sysprof_version[1])
|
|
sysprof_version_conf.set('MICRO_VERSION', sysprof_version[2])
|
|
sysprof_version_conf.set('VERSION', meson.project_version())
|
|
|
|
if get_option('sysprofd') == 'bundled' or get_option('libsysprof')
|
|
ipc_profiler_src = gnome.gdbus_codegen('ipc-profiler',
|
|
sources: 'org.gnome.Sysprof3.Profiler.xml',
|
|
interface_prefix: 'org.gnome.Sysprof3.',
|
|
namespace: 'Ipc',
|
|
)
|
|
|
|
ipc_service_src = gnome.gdbus_codegen('ipc-service',
|
|
sources: 'org.gnome.Sysprof3.Service.xml',
|
|
interface_prefix: 'org.gnome.Sysprof3.',
|
|
namespace: 'Ipc',
|
|
)
|
|
|
|
ipc_legacy_src = gnome.gdbus_codegen('ipc-legacy',
|
|
sources: 'org.gnome.Sysprof2.xml',
|
|
interface_prefix: 'org.gnome.',
|
|
namespace: 'IpcLegacy',
|
|
)
|
|
|
|
ipc_agent_src = gnome.gdbus_codegen('ipc-agent',
|
|
sources: 'org.gnome.Sysprof.Agent.xml',
|
|
interface_prefix: 'org.gnome.Sysprof.',
|
|
namespace: 'Ipc',
|
|
)
|
|
|
|
install_data(['org.gnome.Sysprof3.Service.xml',
|
|
'org.gnome.Sysprof2.xml',
|
|
'org.gnome.Sysprof.Agent.xml'],
|
|
install_dir: join_paths(datadir, 'dbus-1/interfaces'),
|
|
)
|
|
endif
|
|
|
|
org_gnome_Sysprof3_Profiler_xml = files(['org.gnome.Sysprof3.Profiler.xml'])
|
|
|
|
if get_option('libsysprof')
|
|
install_data(org_gnome_Sysprof3_Profiler_xml,
|
|
install_dir: join_paths(datadir, 'dbus-1/interfaces'),
|
|
)
|
|
endif
|
|
|
|
ipc_include_dirs = include_directories('.')
|
|
|
|
stackstash_sources = files('stackstash.c')
|
|
|
|
helpers_sources = files('helpers.c')
|
|
|
|
subdir('libsysprof-capture')
|
|
if get_option('sysprofd') == 'bundled'
|
|
subdir('sysprofd')
|
|
endif
|
|
if get_option('libsysprof')
|
|
subdir('libsysprof')
|
|
endif
|
|
if get_option('gtk') and get_option('libsysprof')
|
|
subdir('libsysprof-ui')
|
|
endif
|
|
if get_option('gtk') and get_option('libsysprof')
|
|
subdir('sysprof')
|
|
endif
|
|
if get_option('tools')
|
|
subdir('tools')
|
|
endif
|
|
if get_option('tests')
|
|
subdir('tests')
|
|
endif
|