From cfdad284c65f39594bdba8bae4260ac2d21ade82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 19 Dec 2017 19:06:56 +0100 Subject: Move gcrypt-util to basic/ We were including gcrypt-util.[ch] by hand in the few places where it was used. Create a convenience library to avoid compiling the same files multiple times. v2: - use a separate static library instead of mergin into libbasic --- src/basic/meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/basic/meson.build') diff --git a/src/basic/meson.build b/src/basic/meson.build index 78aba8257..d4f0503a0 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -461,3 +461,13 @@ libbasic = static_library( libselinux], c_args : ['-fvisibility=default'], install : false) + +# A convenience library that is separate from libbasic to avoid +# unnecessary linking to libgcrypt. +libbasic_gcrypt = static_library( + 'basic-gcrypt', + 'gcrypt-util.c', + 'gcrypt-util.h', + include_directories : includes, + dependencies : [libgcrypt], + c_args : ['-fvisibility=default']) -- cgit v1.2.3