meson: Move generated source to fpi- prefix and use more readable code

Instead of concatenating strings, use an array of strings and finally join
them using newline.
This commit is contained in:
Marco Trevisan (Treviño)
2019-12-04 13:44:08 +01:00
parent a176fa1d34
commit b2e55308d6
2 changed files with 15 additions and 8 deletions

View File

@@ -172,11 +172,11 @@ fpi_enums = gnome.mkenums_simple('fpi-enums',
fpi_enums_h = fpi_enums[1]
drivers_sources += configure_file(input: 'empty_file',
output: 'fp-drivers.c',
output: 'fpi-drivers.c',
capture: true,
command: [
'echo',
drivers_type_list + '\n\n' + drivers_type_func
'\n'.join(drivers_type_list + [] + drivers_type_func)
])
mapfile = 'libfprint.ver'