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
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-01-03 12:09:45 +01:00
parent 2d4ceca8a5
commit 34e221a58b
5 changed files with 18 additions and 15 deletions
+10
View File
@@ -306,3 +306,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'])