Il ven 28 ago 2020, 10:08 Gerd Hoffmann <kra...@redhat.com> ha scritto:

>
> +u2f = dependency('u2f-emu', required: get_option('u2f'), static:
> enable_static,
> +                 include_type: 'system')
> +if u2f.found()
> +  u2f = declare_dependency(dependencies: u2f)
> +endif
>

Better:

u2f = not_found
if have_system
  u2f = dependency('u2f-emu', required: get_option('u2f'), static:
enable_static)
endif

The declare_dependency afterwards is not needed.

  +config_host_data.set('CONFIG_U2F', u2f.found())
>

Not needed is there no #ifdef CONFIG_U2F.

Paolo

Reply via email to