build: DRY dependencies

Nearly everything uses 'sdbusplus' and 'nlohmann-json'.  Since
'nlohmann-json' is a header-only library there is no issue with
excessively including it as a dependency.  DRY up the dependency
specification by creating a 'default_deps' array that can contain
these.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Iad72eeda9b3cbd688eca5dee7df5ebc5dbe3878a
diff --git a/meson.build b/meson.build
index 90ce161..296eddf 100644
--- a/meson.build
+++ b/meson.build
@@ -60,23 +60,28 @@
     pkgconfig_define: ['prefix', get_option('prefix')])
 threads = dependency('threads')
 
+default_deps = [
+    nlohmann_json,
+    sdbusplus,
+]
+
 thresholds_a = static_library(
     'thresholds_a',
     'src/Thresholds.cpp',
-    dependencies: [ sdbusplus, nlohmann_json ],
+    dependencies: default_deps,
     implicit_include_directories: false,
     include_directories: 'include',
 )
 
 thresholds_dep = declare_dependency(
     link_with: [ thresholds_a ],
-    dependencies: [ nlohmann_json ],
+    dependencies: default_deps,
 )
 
 utils_a = static_library(
     'utils_a',
     ['src/Utils.cpp', 'src/SensorPaths.cpp'],
-    dependencies: [ sdbusplus ],
+    dependencies: default_deps,
     implicit_include_directories: false,
     include_directories: 'include',
 )
@@ -89,14 +94,14 @@
 pwmsensor_a = static_library(
     'pwmsensor_a',
     'src/PwmSensor.cpp',
-    dependencies: [ sdbusplus, thresholds_dep ],
+    dependencies: [ default_deps, thresholds_dep ],
     implicit_include_directories: false,
     include_directories: 'include',
 )
 
 pwmsensor_dep = declare_dependency(
     link_with: [ pwmsensor_a ],
-    dependencies: [ sdbusplus, thresholds_dep ],
+    dependencies: [ default_deps, thresholds_dep ],
 )
 
 subdir('include')