Add meson build
This commit is to add meson build.
And later, we will remove Autotools and replace it with meson build.
In addition, fixed Layout::LedAction construct parameter error in test
file.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I58c9a2c9de928db288e77ca2d6aa807d36e70144
diff --git a/gen/meson.build b/gen/meson.build
new file mode 100644
index 0000000..50bb831
--- /dev/null
+++ b/gen/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+sdbuspp_gen_meson_ver = run_command(
+ sdbuspp_gen_meson_prog,
+ '--version',
+).stdout().strip().split('\n')[0]
+
+if sdbuspp_gen_meson_ver != 'sdbus++-gen-meson version 1'
+ warning('Generated meson files from wrong version of sdbus++-gen-meson.')
+ warning(
+ 'Expected "sdbus++-gen-meson version 1", got:',
+ sdbuspp_gen_meson_ver
+ )
+endif
+
diff --git a/gen/xyz/meson.build b/gen/xyz/meson.build
new file mode 100644
index 0000000..e4991ad
--- /dev/null
+++ b/gen/xyz/meson.build
@@ -0,0 +1,2 @@
+# Generated file; do not modify.
+subdir('openbmc_project')
diff --git a/gen/xyz/openbmc_project/Led/Fru/Monitor/meson.build b/gen/xyz/openbmc_project/Led/Fru/Monitor/meson.build
new file mode 100644
index 0000000..5339b24
--- /dev/null
+++ b/gen/xyz/openbmc_project/Led/Fru/Monitor/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Led/Fru/Monitor__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Led/Fru/Monitor.errors.yaml', ],
+ output: [ 'error.cpp', 'error.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Led/Fru/Monitor',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Led/Fru/meson.build b/gen/xyz/openbmc_project/Led/Fru/meson.build
new file mode 100644
index 0000000..f5310fb
--- /dev/null
+++ b/gen/xyz/openbmc_project/Led/Fru/meson.build
@@ -0,0 +1,16 @@
+# Generated file; do not modify.
+subdir('Monitor')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Led/Fru/Monitor__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Led/Fru/Monitor.errors.yaml', ],
+ output: [ 'Monitor.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Led/Fru/Monitor',
+ ],
+ build_by_default: true,
+)
+
diff --git a/gen/xyz/openbmc_project/Led/Mapper/meson.build b/gen/xyz/openbmc_project/Led/Mapper/meson.build
new file mode 100644
index 0000000..89f0354
--- /dev/null
+++ b/gen/xyz/openbmc_project/Led/Mapper/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Led/Mapper__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Led/Mapper.errors.yaml', ],
+ output: [ 'error.cpp', 'error.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Led/Mapper',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Led/meson.build b/gen/xyz/openbmc_project/Led/meson.build
new file mode 100644
index 0000000..ce0db60
--- /dev/null
+++ b/gen/xyz/openbmc_project/Led/meson.build
@@ -0,0 +1,17 @@
+# Generated file; do not modify.
+subdir('Fru')
+subdir('Mapper')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Led/Mapper__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Led/Mapper.errors.yaml', ],
+ output: [ 'Mapper.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Led/Mapper',
+ ],
+ build_by_default: true,
+)
+
diff --git a/gen/xyz/openbmc_project/meson.build b/gen/xyz/openbmc_project/meson.build
new file mode 100644
index 0000000..597580b
--- /dev/null
+++ b/gen/xyz/openbmc_project/meson.build
@@ -0,0 +1,2 @@
+# Generated file; do not modify.
+subdir('Led')