Blame SOURCES/0104-libfprint-Introduce-libfprint_private-static-library.patch

73b847
From 763492d5c2f5b042a3fa3cb7307e8221cc57e50b Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Thu, 5 Dec 2019 14:27:33 +0100
73b847
Subject: [PATCH 104/181] libfprint: Introduce libfprint_private static library
73b847
73b847
Split the library into a private part with all the symbols that we can use
73b847
for unit-test all the fpi functions.
73b847
---
73b847
 libfprint/meson.build | 13 ++++++++++---
73b847
 1 file changed, 10 insertions(+), 3 deletions(-)
73b847
73b847
diff --git a/libfprint/meson.build b/libfprint/meson.build
73b847
index f73aba3..1e98e2d 100644
73b847
--- a/libfprint/meson.build
73b847
+++ b/libfprint/meson.build
73b847
@@ -4,6 +4,9 @@ libfprint_sources = [
73b847
     'fp-image.c',
73b847
     'fp-print.c',
73b847
     'fp-image-device.c',
73b847
+]
73b847
+
73b847
+libfprint_private_sources = [
73b847
     'fpi-assembling.c',
73b847
     'fpi-ssm.c',
73b847
     'fpi-usb-transfer.c',
73b847
@@ -200,15 +203,19 @@ libnbis = static_library('nbis',
73b847
     ]),
73b847
     install: false)
73b847
 
73b847
+libfprint_private = static_library('fprint-private',
73b847
+    sources: libfprint_private_sources + fpi_enums,
73b847
+    dependencies: deps,
73b847
+    install: false)
73b847
+
73b847
 libfprint = library('fprint',
73b847
-    libfprint_sources + fp_enums + fpi_enums +
73b847
-        drivers_sources + other_sources,
73b847
+    sources: libfprint_sources + fp_enums + drivers_sources + other_sources,
73b847
     soversion: soversion,
73b847
     version: libversion,
73b847
     c_args: drivers_cflags,
73b847
     link_args : vflag,
73b847
     link_depends : mapfile,
73b847
-    link_with: libnbis,
73b847
+    link_with: [libnbis, libfprint_private],
73b847
     dependencies: deps,
73b847
     install: true)
73b847
 
73b847
-- 
73b847
2.24.1
73b847