meson: add basic meson

Since we don't have a CI for standard Make repositories anymore,
this repository has no CI.  Begin a simple meson conversion to
enable some CI for the bare minimum aspects of the repository still
being used in openbmc/openbmc.

    - libopenbmc_intf
    - op-pwrctl
    - pgood_wait
    - op-hostctl

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I598e91c08b5ad607b68c18bfa9a870603df19397
diff --git a/libopenbmc_intf/meson.build b/libopenbmc_intf/meson.build
new file mode 100644
index 0000000..8ca726f
--- /dev/null
+++ b/libopenbmc_intf/meson.build
@@ -0,0 +1,31 @@
+gnome = import('gnome')
+
+openbmc_intf_src = gnome.gdbus_codegen(
+    'openbmc_intf',
+    sources: 'openbmc_intf.xml',
+    interface_prefix: 'org.openbmc',
+    object_manager: true,
+)
+
+libopenbmc_intf = library(
+    'libopenbmc_intf',
+    'gpio.c',
+    'gpio_configs.c',
+    'gpio_json.c',
+    openbmc_intf_src,
+    # The gdbus generated code cannot be compiled with -Wpedantic.
+    c_args : '-Wno-pedantic',
+    dependencies: [cjson_dep, gio_unix_dep, glib_dep],
+    version: meson.project_version(),
+    install: true,
+)
+
+libopenbmc_intf_includes = include_directories('.')
+
+import('pkgconfig').generate(
+    libopenbmc_intf,
+    name: 'libopenbmc_intf',
+    version: meson.project_version(),
+    requires: [gio_unix_dep, glib_dep],
+    description: '[deprecated] OpenBMC interface library from skeleton',
+)