ardazishvili 2b83d7ca2d Mock sdbus lib, add unit tests of Connection class.
Introduce mock of sdbus library through extracting its interface. Set up unit tests of Connection class through injection of sdbusMock to constructor. Clients of Connections class should use fabrics instead.
2019-03-17 18:02:47 +03:00
2017-11-27 14:13:55 +01:00
2017-11-27 14:13:55 +01:00
2019-01-16 20:01:05 +01:00
2017-11-27 14:13:55 +01:00
2017-11-27 14:13:55 +01:00
2017-11-27 14:13:55 +01:00

sdbus-c++

sdbus-c++ is a C++ API library for D-Bus IPC, based on sd-bus implementation.

Building and installing the library

The library is built using CMake:

$ mkdir build
$ cd build
$ cmake .. ${CONFIGURE_FLAGS_IF_NECESSARY}
$ make
$ sudo make install

By default, the library builds its unit and integration tests. That incorporates downloading and building static libraries of Google Test. Use -DENABLE_TESTS=OFF configure flag if you want to disable building the tests.

By default, the library doesn't build the code generator for adaptor and proxy interfaces. Use -DBUILD_CODE_GEN=ON flag to also build the code generator.

Dependencies

  • C++17 - the library uses C++17 std::uncaught_exceptions() feature. When building sdbus-c++ manually, make sure you use a compiler that supports that feature.
  • libsystemd - systemd library containing sd-bus implementation. Systemd v236 at least is needed for sdbus-c++ to compile.
  • googletest - google unit testing framework, only necessary when building tests, will be downloaded and built automatically

Licensing

The library is distributed under LGPLv2.1 license.

References/documentation

Contributing

Contributions that increase the library quality, functionality, or fix issues are very welcome. To introduce a change, please submit a pull request with a description.

Contact

https://github.com/Kistler-Group/sdbus-cpp

S
Description
High-level C++ D-Bus library for Linux designed to provide easy-to-use yet powerful API in modern C++
Readme
2.6 MiB
Languages
C++ 94.3%
CMake 3.9%
C 1.8%