Port to meson
Similar to ports done elsewhere, port this repo to meson.
Change-Id: I8be9f36b55eb52d085958919cd6c853b46b93674
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..3eca793
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,37 @@
+project(
+ 'phosphor-ipmi-bt',
+ 'c',
+ version : '1.0',
+ meson_version: '>=1.1.1',
+ default_options: [
+ 'b_lto_mode=default',
+ 'b_lto_threads=0',
+ 'b_lto=true',
+ 'b_ndebug=if-release',
+ 'warning_level=3',
+ 'werror=true',
+ ]
+)
+
+systemd = dependency('systemd')
+libsystemd = dependency('libsystemd')
+systemd_system_unit_dir = systemd.get_variable(
+ pkgconfig: 'systemdsystemunitdir'
+)
+
+executable(
+ 'btbridged',
+ 'btbridged.c',
+ dependencies: [
+ libsystemd,
+ ],
+ install: true,
+)
+
+configure_file(
+ input: 'btbridged.service',
+ output: 'org.openbmc.HostIpmi.service',
+ install: true,
+ install_dir: systemd_system_unit_dir,
+ copy: true,
+)