From 4b809ff5a1d3062ef71a1612d56c4d9050bf01fc Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Sat, 8 Jun 2019 17:28:04 +0200
Subject: [PATCH] refactor(card10): Deduplicate dependencies

Signed-off-by: Rahix <rahix@rahix.de>
---
 lib/card10/meson.build | 25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)

diff --git a/lib/card10/meson.build b/lib/card10/meson.build
index 9d343368..28980932 100644
--- a/lib/card10/meson.build
+++ b/lib/card10/meson.build
@@ -9,11 +9,7 @@ sources = files(
   'pmic.c',
 )
 
-lib = static_library(
-  'card10',
-  sources,
-  include_directories: includes,
-  dependencies: [
+deps = [
     bhy1,
     bma400,
     bme680,
@@ -21,20 +17,17 @@ lib = static_library(
     libgfx,
     max77650,
     periphdriver,
-  ],
+]
+
+lib = static_library(
+  'card10',
+  sources,
+  include_directories: includes,
+  dependencies: deps,
 )
 
 libcard10 = declare_dependency(
   include_directories: includes,
   link_with: lib,
-  dependencies: [
-    bhy1,
-    bma400,
-    bme680,
-    board_card10,
-    libgfx,
-    max32665_rt,
-    max77650,
-    periphdriver,
-  ],
+  dependencies: deps + [max32665_rt],
 )
-- 
GitLab