summaryrefslogtreecommitdiffstats
path: root/authz
diff options
context:
space:
mode:
authorMarc-André Lureau2019-07-15 20:54:34 +0200
committerPaolo Bonzini2020-08-21 12:30:15 +0200
commit5e7fbd25157342b3b983779939419fb328e00f4c (patch)
treebb60d53304fbf9df16eef6febe4f9b2055f31b5c /authz
parentmeson: convert qom directory to Meson (tools part) (diff)
downloadqemu-5e7fbd25157342b3b983779939419fb328e00f4c.tar.gz
qemu-5e7fbd25157342b3b983779939419fb328e00f4c.tar.xz
qemu-5e7fbd25157342b3b983779939419fb328e00f4c.zip
meson: convert authz directory to Meson
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'authz')
-rw-r--r--authz/Makefile.objs7
-rw-r--r--authz/meson.build19
2 files changed, 19 insertions, 7 deletions
diff --git a/authz/Makefile.objs b/authz/Makefile.objs
deleted file mode 100644
index ed7b273596..0000000000
--- a/authz/Makefile.objs
+++ /dev/null
@@ -1,7 +0,0 @@
-authz-obj-y += base.o
-authz-obj-y += simple.o
-authz-obj-y += list.o
-authz-obj-y += listfile.o
-authz-obj-$(CONFIG_AUTH_PAM) += pamacct.o
-
-pamacct.o-libs = -lpam
diff --git a/authz/meson.build b/authz/meson.build
new file mode 100644
index 0000000000..516d71f2e2
--- /dev/null
+++ b/authz/meson.build
@@ -0,0 +1,19 @@
+authz_ss = ss.source_set()
+authz_ss.add(genh)
+authz_ss.add(files(
+ 'base.c',
+ 'list.c',
+ 'listfile.c',
+ 'simple.c',
+))
+
+authz_ss.add(when: ['CONFIG_AUTH_PAM', pam], if_true: files('pamacct.c'))
+
+authz_ss = authz_ss.apply(config_host, strict: false)
+libauthz = static_library('authz', authz_ss.sources() + genh,
+ dependencies: [authz_ss.dependencies()],
+ name_suffix: 'fa',
+ build_by_default: false)
+
+authz = declare_dependency(link_whole: libauthz,
+ dependencies: qom)