diff options
author | Ed Tanous <edtanous@google.com> | 2022-06-28 22:12:03 +0300 |
---|---|---|
committer | Ed Tanous <edtanous@google.com> | 2023-05-30 23:56:15 +0300 |
commit | f8ca6d79390b7f7fac5dbb82635dd6384810c668 (patch) | |
tree | ff1c55362a74f5a43d1c05d5d3924ab4d255f948 /meson_options.txt | |
parent | 86a5ac983f9715f7b1a0f8dee355906ac648e1d3 (diff) | |
download | bmcweb-f8ca6d79390b7f7fac5dbb82635dd6384810c668.tar.xz |
Allow async resolver to be optional
This commit adds a meson option to allow selecting which dns resolver
bmcweb uses. There are use cases, like Open Compute Project Inband
Management Agent, that would require not using dbus, which would require
us to fall back to the asio resolver. This commit makes the existing
asio resolver constructor, and async_resolve methods match the
equivalents in asio (which we intended to do anyway), then adds a macro
and configure option for being able to select which resolver backend to
rely on.
Tested: Code can now compile without sdbusplus.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I3220214367179f131a60082bdfaf7e725d35c125
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 8a440f98c9..3c2d3f78dd 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -236,6 +236,17 @@ option( ) option( + 'dns-resolver', + type: 'combo', + choices: ['systemd-dbus', 'asio'], + value: 'systemd-dbus', + description: '''Sets which DNS resolver backend should be used. + systemd-dbus uses the Systemd ResolveHostname on dbus, but requires dbus + support. asio relies on boost::asio::tcp::resolver, but cannot resolve + names when boost threading is disabled.''' +) + +option( 'redfish-aggregation', type: 'feature', value: 'disabled', |