From 5d31735c1e5e2cfac581ebaf82442b1449aa18b8 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 27 Jan 2022 12:30:42 -0800 Subject: modules/gnome: Allow gdbus_annotations to take an empty list again This was allows up to 0.61.0 (including with the initial type annotations), but was accidentally broken by fixes for other bugs in 0.61.1. Fixes: #9883 --- test cases/frameworks/7 gnome/gdbus/meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test cases/frameworks') diff --git a/test cases/frameworks/7 gnome/gdbus/meson.build b/test cases/frameworks/7 gnome/gdbus/meson.build index a786d24..682abff 100644 --- a/test cases/frameworks/7 gnome/gdbus/meson.build +++ b/test cases/frameworks/7 gnome/gdbus/meson.build @@ -6,6 +6,16 @@ gdbus_src = gnome.gdbus_codegen('generated-gdbus-no-docbook', ['com.example.Hello()', 'org.freedesktop.DBus.Deprecated', 'true'] ], ) + +# check that empty annotations work +gdbus_src2 = gnome.gdbus_codegen( + 'generated-gdbus-no-docbook2', + 'data/com.example.Sample.xml', + interface_prefix : 'com.example.', + namespace : 'Sample', + annotations : [], +) + assert(gdbus_src.length() == 2, 'expected 2 targets') assert(gdbus_src[0].full_path().endswith('.c'), 'expected 1 c source file') assert(gdbus_src[1].full_path().endswith('.h'), 'expected 1 c header file') -- cgit v1.1