mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: Only run gdbus-codegen if building components which need it
This is to avoid running `gdbus-codegen` when building sysprof as a subproject underneath libglib, as by that point in the GLib build process, `gdbus-codegen` is not yet available. The interfaces generated by these `gdbus-codegen` invocations are only needed for `sysprofd` and libsysprof, not for the libraries like `libsysprof-capture`. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@ -7,25 +7,25 @@ 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())
|
||||
|
||||
ipc_profiler_src = gnome.gdbus_codegen('ipc-profiler',
|
||||
sources: 'org.gnome.Sysprof3.Profiler.xml',
|
||||
interface_prefix: 'org.gnome.Sysprof3.',
|
||||
namespace: 'Ipc',
|
||||
)
|
||||
if get_option('with_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_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_legacy_src = gnome.gdbus_codegen('ipc-legacy',
|
||||
sources: 'org.gnome.Sysprof2.xml',
|
||||
interface_prefix: 'org.gnome.',
|
||||
namespace: 'IpcLegacy',
|
||||
)
|
||||
|
||||
if get_option('with_sysprofd') == 'bundled'
|
||||
install_data(['org.gnome.Sysprof3.Service.xml',
|
||||
'org.gnome.Sysprof2.xml'],
|
||||
install_dir: join_paths(datadir, 'dbus-1/interfaces'),
|
||||
|
||||
@ -28,12 +28,14 @@ sysprof_dump = executable('sysprof-dump', 'sysprof-dump.c',
|
||||
install: false,
|
||||
)
|
||||
|
||||
sysprof_profiler_ctl = executable('sysprof-profiler-ctl',
|
||||
[ 'sysprof-profiler-ctl.c', ipc_profiler_src ],
|
||||
dependencies: [ tools_deps, dependency('gio-unix-2.0', version: glib_req_version) ],
|
||||
c_args: tools_cflags,
|
||||
install: false,
|
||||
)
|
||||
if get_option('with_sysprofd') == 'bundled' or get_option('libsysprof')
|
||||
sysprof_profiler_ctl = executable('sysprof-profiler-ctl',
|
||||
[ 'sysprof-profiler-ctl.c', ipc_profiler_src ],
|
||||
dependencies: [ tools_deps, dependency('gio-unix-2.0', version: glib_req_version) ],
|
||||
c_args: tools_cflags,
|
||||
install: false,
|
||||
)
|
||||
endif
|
||||
|
||||
list_threads = executable('list-threads', ['list-threads.c'],
|
||||
dependencies: [ tools_deps ],
|
||||
|
||||
Reference in New Issue
Block a user