build: move all shared_library/module to library with version suffix

The version suffix will create `.so`, `.so.0`, and `.so.0.1` and will be
compatiable with existing bitbake setup for phosphor-ipmi-host.

Also moved the dbus-sdr library output the `dbus-sdr` folder since the
shared module depends on libipmi20, but it can't find it due to the it
being in a different folder. Moving it to the same meson file fixes that
issue.

Also removed all unused declare_dependency. Built fine without it.

Tested:
dbus-sdr works now
```
ipmitool sdr
cpu0             | disabled          | ns
cpu0_core0       | disabled          | ns
cpu0_core1       | disabled          | ns
cpu0_core2       | disabled          | ns
...
```

Change-Id: Ib13a79c1b27a7c122c5a29237716898cd2e29b4c
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/dbus-sdr/meson.build b/dbus-sdr/meson.build
index cbed418..bfdbde1 100644
--- a/dbus-sdr/meson.build
+++ b/dbus-sdr/meson.build
@@ -17,16 +17,7 @@
   ])
 
 dbus_sdr_src = [
-  'sdrutils.cpp',
-  'sensorcommands.cpp',
-  'storagecommands.cpp'
+  'dbus-sdr/sdrutils.cpp',
+  'dbus-sdr/sensorcommands.cpp',
+  'dbus-sdr/storagecommands.cpp'
 ]
-
-shared_module(
-  'dynamiccmds',
-  dbus_sdr_src,
-  implicit_include_directories: false,
-  dependencies: dbus_sdr_pre,
-  install: true,
-  install_dir: get_option('libdir') / 'ipmid-providers')
-