The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
991 B

gdbus_src = gnome.gdbus_codegen('generated-gdbus-no-docbook', 'com.example.Sample.xml',
interface_prefix : 'com.example.',
namespace : 'Sample',
annotations : [
['com.example.Hello()', 'org.freedesktop.DBus.Deprecated', 'true']
],
)
assert(gdbus_src.length() == 2, 'expected 2 targets')
gdbus_src = gnome.gdbus_codegen('generated-gdbus',
sources : 'com.example.Sample.xml',
interface_prefix : 'com.example.',
namespace : 'Sample',
annotations : [
['com.example.Hello()', 'org.freedesktop.DBus.Deprecated', 'true']
],
docbook : 'generated-gdbus-doc',
install_header : true,
install_dir : get_option('includedir')
)
assert(gdbus_src.length() == 3, 'expected 3 targets')
if not pretend_glib_old and glib.version().version_compare('>=2.51.3')
includes = []
else
includes = include_directories('..')
endif
gdbus_exe = executable('gdbus-test', 'gdbusprog.c',
gdbus_src,
include_directories : includes,
dependencies : giounix)
test('gdbus', gdbus_exe)