Skip to content

Commit

Permalink
meson: add "filter_names" in features when needed
Browse files Browse the repository at this point in the history
When filter_names option is enabled we now see that in the output of
 "pcscd --version".

Thanks to leuthold-at-ehex-de for the bug report
" pcscd build feature "filter" not reported #202 "
#202
  • Loading branch information
LudovicRousseau committed Aug 12, 2024
1 parent 78c0832 commit daf1d93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ conf_data = configuration_data({
'PCSCLITE_HP_DROPDIR' : '"' + get_option('usbdropdir') + '"',
'HAVE_NANOSLEEP' : true,
'NO_LOG' : get_option('embedded'),
'FILTER_NAMES' : get_option('filter_names'),
})
# for generated files from .in templates
sbindir = join_paths(get_option('prefix') , get_option('sbindir'))
Expand Down Expand Up @@ -56,6 +55,11 @@ if get_option('serial')
features += 'serial'
endif

if get_option('filter_names')
conf_data.set('FILTER_NAMES', true)
features += 'filter_names'
endif

# flex generator
gen_flex = generator(find_program('flex'),
output : '@BASENAME@.c',
Expand Down

0 comments on commit daf1d93

Please sign in to comment.