blob: aa328850ee308d8efeb825020a2ca7d77ca2b646 [file] [log] [blame]
cdata = configuration_data()
parts = meson.project_version().split('.')
cdata.set('FOO_MAJOR_VERSION', parts[0])
cdata.set('FOO_MINOR_VERSION', parts[1])
cdata.set('FOO_MICRO_VERSION', parts[2])
configure_file(input : 'foo-version.h.in',
output : 'foo-version.h',
configuration : cdata,
install : true,
install_dir : get_option('includedir'))
generate_enums_docbook = find_program('generate-enums-docbook.py')
docbook = custom_target('enum-docbook',
output : 'bar.xml',
command : [generate_enums_docbook, '@OUTPUT@', 'BAR', 'BAR_TYPE', 'BAR_FOO'],
build_by_default : true)