Generate common.hpp for internal interface

The sdbus++-gen-meson has a new version, which is
generating server.hpp which needs common.hpp.
Update the build script to generate common.hpp

Change-Id: I2e8b1ff4fec916695c0adb95e778e96f33105e69
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/meson.build b/meson.build
index aee5da1..da757e6 100644
--- a/meson.build
+++ b/meson.build
@@ -166,6 +166,7 @@
         'elog_watch.cpp',
         errors_map_hpp,
         server_hpp,
+        common_hpp,
         server_cpp,
         'watch.cpp',
         'bmc_dump_entry.cpp',
diff --git a/xyz/openbmc_project/Dump/Internal/Create/meson.build b/xyz/openbmc_project/Dump/Internal/Create/meson.build
index a34e7c3..dae32f3 100644
--- a/xyz/openbmc_project/Dump/Internal/Create/meson.build
+++ b/xyz/openbmc_project/Dump/Internal/Create/meson.build
@@ -28,3 +28,18 @@
                 capture : true,
                 output : 'server.cpp'
             )
+
+common_hpp = custom_target(
+                'common.hpp',
+                command : [
+                    sdbusplusplus_prog, '-r', meson.project_source_root(),
+                    'interface',
+                    'common-header',
+                    'xyz.openbmc_project.Dump.Internal.Create',
+                ],
+                input : '../Create.interface.yaml',
+                capture : true,
+                output : 'common.hpp',
+                install : true,
+                install_dir: get_option('includedir') / 'xyz/openbmc_project/Dump/Internal/Create'
+            )