meson: Add fru-device-less build configuration
Provide an option that skips building of fru-device. fru-device remains
enabled and built by default.
Change-Id: If927861cf70aaf594844e28e993edc308138ddf2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meson.build b/meson.build
index 74086d5..b53d9ae 100644
--- a/meson.build
+++ b/meson.build
@@ -26,7 +26,9 @@
include_directories: 'subprojects/boost_1_71_0',
)
endif
-i2c = cpp.find_library('i2c')
+if get_option('fru-device')
+ i2c = cpp.find_library('i2c')
+endif
if cpp.has_header('nlohmann/json.hpp')
nlohmann_json = declare_dependency()
else