Files
sysprof/src/meson.build
Christian Hergert 1fba250444 build: drop legacy v2 service and simplify build system
This removes -Dagent and just uses -Dtools as it only affects sysprof-cli
and sysprof-agent. We still need to patch sysprof-cli for recent changes
as we did for sysprof-agent though.

Additionally, we haven't used the v2 service in forever, so drop that as
I can't imagine anyone has been using it.
2023-07-17 15:11:10 -07:00

48 lines
1.1 KiB
Meson

sysprof_header_subdir = 'sysprof-@0@'.format(libsysprof_api_version)
sysprof_version_conf = configuration_data()
sysprof_version = meson.project_version().split('.')
if sysprof_version[1] in ['alpha', 'beta', 'rc']
sysprof_version = [sysprof_version[0], 0, 0]
endif
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 install_service_files
install_data([
'org.gnome.Sysprof2.xml',
'org.gnome.Sysprof3.Profiler.xml',
'org.gnome.Sysprof3.Service.xml',
],
install_dir: join_paths(datadir, 'dbus-1/interfaces'),
)
endif
if need_libsysprof_capture
subdir('libsysprof-capture')
endif
if need_libsysprof_analyze
subdir('libsysprof-analyze')
endif
if need_libsysprof_profile
subdir('libsysprof-profile')
subdir('preload')
endif
if get_option('sysprofd') == 'bundled'
subdir('sysprofd')
endif
if get_option('gtk')
subdir('sysprof')
endif
if get_option('tools')
subdir('sysprof-agent')
subdir('sysprof-cli')
endif