xref: /openbmc/qemu/authz/meson.build (revision 64ed6f92)
1authz_ss = ss.source_set()
2authz_ss.add(genh)
3authz_ss.add(files(
4  'base.c',
5  'list.c',
6  'listfile.c',
7  'simple.c',
8))
9
10authz_ss.add(when: ['CONFIG_AUTH_PAM', pam], if_true: files('pamacct.c'))
11
12authz_ss = authz_ss.apply(config_host, strict: false)
13libauthz = static_library('authz', authz_ss.sources() + genh,
14                          dependencies: [authz_ss.dependencies()],
15                          name_suffix: 'fa',
16                          build_by_default: false)
17
18authz = declare_dependency(link_whole: libauthz,
19                           dependencies: qom)
20