diff options
author | Sam James <sam@gentoo.org> | 2022-12-07 13:18:09 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-07 13:18:19 +0000 |
commit | bef75fb8291b3871894d8ffe19f7242448cdb4a8 (patch) | |
tree | d577ec5e37a607a03d7ec2d65040c0d26ebf1f02 | |
parent | d319c6e52cab30486a2ade71e65048c5f1fe814d (diff) | |
download | polkit-bef75fb8291b3871894d8ffe19f7242448cdb4a8.tar.gz |
meson.build: fix install with libs_only
Bug: https://bugs.gentoo.org/884701
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | meson.build | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/meson.build b/meson.build index f7aa03d..ba8f5b0 100644 --- a/meson.build +++ b/meson.build @@ -360,14 +360,17 @@ configure_file( configuration: config_h, ) -meson.add_install_script( - 'meson_post_install.py', - get_option('bindir'), - pk_pkgdatadir, - pk_libprivdir, - pk_pkgsysconfdir, - polkitd_user, -) + +if not libs_only + meson.add_install_script( + 'meson_post_install.py', + get_option('bindir'), + pk_pkgdatadir, + pk_libprivdir, + pk_pkgsysconfdir, + polkitd_user, + ) +endif output = '\n ' + meson.project_name() + ' ' + meson.project_version() + '\n' output += ' ============\n\n' |