Skip to content

Latest commit

 

History

History
92 lines (65 loc) · 2.55 KB

README.md

File metadata and controls

92 lines (65 loc) · 2.55 KB

attn-server

Build Status Build status codecov

Attestation Server for XRPL Sidechains

Table of contents

Dependencies

conan inclusion

This project depends on conan to build it's dependencies. See https://conan.io/ to install conan.

Once conan is installed, the following can be used to build the project:

  1. Create a build directory. For example: build/gcc.release
  2. Change to that directory.
  3. Run conan. The command I use is:
conan install -b missing --settings build_type=Debug ../..

(Note: the exact command I use is as follows, but this assumes gcc 12 is used and a gcc12 conan profile is present):

CC=$(which gcc) CXX=$(which g++) conan install -b missing --profile gcc12 --settings build_type=Debug ../..
  1. Create a build file (replace [path to project root] with the appropriate directory):
cmake -DCMAKE_BUILD_TYPE=Debug -GNinja -Dunity=Off [path to project root]

(Note: the exact command I use is as follows, but this is specific to my setup:)

CC=$(which gcc) CXX=$(which g++) cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -GNinja ..
  1. Build the project:
ninja

Other dependencies

Build and run

For linux and other unix-like OSes, run the following commands (see note above about adding CMAKE_PREFIX_PATH as needed):

$ cd ${ATTN_SERVER_DIRECTORY}
$ mkdir -p build/gcc.release
$ cd build/gcc.release
$ cmake -DCMAKE_BUILD_TYPE=Release ../..
$ cmake --build .
$ ./attn_server

For 64-bit Windows, open a MSBuild Command Prompt for Visual Studio and run the following commands:

> cd %ATTN_SERVER_DIRECTORY%
> mkdir build
> cd build
> cmake ..
> cmake --build . --config Release
> .\Release\attn_server.exe

32-bit Windows builds are not supported.

Guide

Attestation Server Documentation