Remove redundant dependency calls

- In the current state, the build system has too many
  dependency calls, because of which meson tries to find
  the same dependendency mutiple times & prints a trace
  on the console.This would have been an ideal solution
  when all the subdirectories are subprojects in meson but
  in the current context it is not.

- Even though meson uses the cached dependency objects
  rather than fetching them every time, it might not
  give any added advantage on the performance front.

- But checking for the same dependency mutiple times gives
  a false impression to the users & this can be avoided by
  re-using the dependency objects across subdirectories.

Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: Ic428b2ab1897e4dc4a0024164c07fd416c927da1
diff --git a/softoff/meson.build b/softoff/meson.build
index 753375b..0ef11f1 100644
--- a/softoff/meson.build
+++ b/softoff/meson.build
@@ -1,9 +1,9 @@
 deps = [
     libpldm,
     libpldmutils,
-    dependency('sdeventplus'),
-    dependency('sdbusplus'),
-    dependency('phosphor-dbus-interfaces'),
+    sdeventplus,
+    sdbusplus,
+    phosphor_dbus_interfaces,
     ]
 
 source = ['main.cpp','softoff.cpp']
@@ -14,7 +14,6 @@
            install: true,
            install_dir: get_option('bindir'))
 
-systemd = dependency('systemd')
 servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
 
 configure_file(input: 'services/pldmSoftPowerOff.service',