Move repository to meson

The time has come to move this over to meson as automake is not building
properly with the latest c++ and the OpenBMC project has made it a
requirement that all repos move to meson.

Tested:
- Confirmed p10bmc now builds with appropriate recipe updates on top
  of latest sdbusplus bump

Change-Id: I303731f1b5b7c617ecb1140b22bac6dbd27acbc0
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/org/open_power/OCC/Metrics/meson.build b/org/open_power/OCC/Metrics/meson.build
new file mode 100644
index 0000000..40504c1
--- /dev/null
+++ b/org/open_power/OCC/Metrics/meson.build
@@ -0,0 +1,34 @@
+sdbuspp_prog = find_program('sdbus++')
+
+domain = 'org.open_power.OCC.Metrics'
+md_yaml_file = files('../Metrics.metadata.yaml')
+
+md_cpp = custom_target(
+    'error.cpp',
+    output: 'error.cpp',
+    input: md_yaml_file,
+    capture: true,
+    command: [sdbuspp_prog, '-r', root, 'error', 'exception-cpp', domain],
+    install: true,
+    install_dir: get_option('includedir') / 'org/open_power/OCC/Metrics',
+)
+
+md_hpp = custom_target(
+    'error.hpp',
+    output: 'error.hpp',
+    input: md_yaml_file,
+    capture: true,
+    command: [sdbuspp_prog, '-r', root, 'error', 'exception-header', domain],
+    install: true,
+    install_dir: get_option('includedir') / 'org/open_power/OCC/Metrics',
+)
+
+occmetrics_dbus_deps = [
+    dependency('phosphor-dbus-interfaces'),
+    dependency('sdbusplus'),
+]
+
+occmetrics_dbus = declare_dependency(
+    dependencies: occmetrics_dbus_deps,
+    sources: [md_cpp, md_hpp],
+)