meson: add clang configuration

Boost requires a couple special flags to build with clang or run
clang-tidy.  sdbusplus does not build with clang-17, so we'll use
clang-18 as our baseline for support.  Tested by building and running
the unit tests with clang.

Change-Id: Iaf4c81f4aeebcf2337691f88ce80daf03ce5e88b
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>
1 file changed
tree: 665f2fcaa6eec0023c06ff0e1c65734497b7fd1d
  1. fail-monitor/
  2. libmapper/
  3. src/
  4. subprojects/
  5. .clang-format
  6. .gitignore
  7. LICENSE
  8. meson.build
  9. meson.options
  10. OWNERS
  11. README.md
README.md

The Mapper

This repository contains the mapper, which assists in finding things on D-Bus. There is documentation about it in the docs repository.

Prerequisites

Non-OpenBMC build dependencies are:

  • meson/ninja
  • boost
  • libsystemd
  • systemd
  • tinyxml2

Build

meson build && ninja -C build

Run Unit Tests

meson build && ninja -C build test

Clean the repository

rm -rf build