meson: Fixes for dbus modules
v7 cover meson: Fixes for dbus modules
I found it was failing to build dbus modules when --enable-dbus so here are fixes.
---
Changes in v7:
- Reverted to v2.
- Dropped patch "Move dbus-display1 out of ui".
- Rebased.
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- Dropped patch "audio: Do not include ui/dbus.h" (Marc-André Lureau).
- Rebased.
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- Fixed docs/interop/dbus-display.rst.
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Moved dbus_display1 to util.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Merged dbus_display1_lib into libqemuutil.
- Added patch "audio: Do not include ui/dbus.h".
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Updated MAINTAINERS.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Akihiko Odaki (3):
audio: Depend on dbus_display1_dep
meson: Explicitly specify dbus-display1.h dependency tests/qtest: Depend on dbus_display1_dep
audio/meson.build | 3 ++- tests/qtest/meson.build | 2 +- ui/meson.build | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-)
---
base-commit: 5005aed8a7e728d028efb40e243ecfc2b4f3df3a
change-id: 20231215-dbus-86876ecb7b09
Best regards,
Signature · 1 line
Akihiko Odaki <[email protected]>
PATCH v7 1/3 audio: Depend on dbus_display1_dep
dbusaudio needs dbus_display1_dep.
--- audio/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
audio/meson.build +2 -1
@@ -30,7 +30,8 @@ endforeach if dbus_display module_ss = ss.source_set() - module_ss.add(when: [gio, pixman], if_true: files('dbusaudio.c')) + module_ss.add(when: [gio, dbus_display1_dep, pixman], + if_true: files('dbusaudio.c')) audio_modules += {'dbus': module_ss} endif
Signature · 1 line
2.43.0
PATCH v7 2/3 meson: Explicitly specify dbus-display1.h dependency
In reply to Akihiko OdakiExplicitly specify dbus-display1.h as a dependency so that files depending on it will not get compiled too early.
--- ui/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ui/meson.build +1 -1
@@ -91,7 +91,7 @@ if dbus_display '--c-namespace', 'QemuDBus', '--generate-c-code', '@BASENAME@']) dbus_display1_lib = static_library('dbus-display1', dbus_display1, dependencies: gio) - dbus_display1_dep = declare_dependency(link_with: dbus_display1_lib, include_directories: include_directories('.')) + dbus_display1_dep = declare_dependency(link_with: dbus_display1_lib, sources: dbus_display1[0]) dbus_ss.add(when: [gio, dbus_display1_dep], if_true: [files( 'dbus-chardev.c',
Signature · 1 line
2.43.0
PATCH v7 3/3 tests/qtest: Depend on dbus_display1_dep
In reply to Akihiko OdakiIt ensures dbus-display1.c will not be recompiled.
--- tests/qtest/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/meson.build +1 -1
@@ -344,7 +344,7 @@ if vnc.found() endif if dbus_display - qtests += {'dbus-display-test': [dbus_display1, gio]} + qtests += {'dbus-display-test': [dbus_display1_dep, gio]} endif qtest_executables = {}
Signature · 1 line
2.43.0