Giter VIP home page Giter VIP logo

mtxclient's Introduction

mtxclient

Build Status Build status codecov experimental

Client API library for the Matrix protocol, built on top of Boost.Asio.

Build instructions

Dependencies

  • Boost 1.70 (includes Boost.Beast and makes the strand interface usable)
  • OpenSSL
  • C++ 17 compiler
  • CMake 3.15 or greater (lower versions can work, but they tend to mess up linking the right boost libraries)
  • Google Test (for testing)

If you are missing some or all of those above dependencies, you can add -DHUNTER_ENABLED=ON to the cmake configure command to use bundled dependencies. You can finetune them with the following variables. They default to ON, if Hunter is enabled and to OFF otherwise.

cmake flag description
USE_BUNDLED_BOOST Use the bundled version of Boost.
USE_BUNDLED_SPDLOG Use the bundled version of spdlog.
USE_BUNDLED_OLM Use the bundled version of libolm.
USE_BUNDLED_GTEST Use the bundled version of Google Test.
USE_BUNDLED_JSON Use the bundled version of nlohmann json.
USE_BUNDLED_OPENSSL Use the bundled version of OpenSSL.

Below is an example which will build the library along with the tests & examples.

Linux

cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug
cmake --build build

macOS

You will need to pass as argument (-DOPENSSL_ROOT_DIR) the installation root of openssl.

cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl
cmake --build build

You can toggle off the tests & examples by passing -DBUILD_LIB_TESTS=OFF & -DBUILD_LIB_EXAMPLES=OFF respectively.

Running the tests

In order to run the integration tests you'll need a local synapse instance. You can start an instance with docker by running the following

make synapse

then run the test suite

make test 

mtxclient's People

Contributors

deepbluev7 avatar mujx avatar redsky17 avatar kamathmanu avatar trilene avatar chethan2k1 avatar ajberchek avatar heirecka avatar jevolk avatar xvitaly avatar christarazi avatar rnhmjoj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.