Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Useful options/flags are the same as in build_ut.py script

Clang-format

Before the commit code has to be formatted. To do that, execute those commands:

Code Block
languageshell
titleFormatting the code
find . -name "*.h" -not -path "./build/*" | xargs clang-format-18 -i --style=file
find . -name "*.cpp" -not -path "./build/*" | xargs clang-format-18 -i --style=file

It will modify your local files to meet Rialto Coding Standards.

Cpplint

To check, if there are no Cpplint errors, execute this command:

Code Block
languageshell
titleRunning Cpplint
python3 scripts/cpplint/cpplint.py --recursive .

Cppcheck

To run Cppcheck, execute this command:

Code Block
languageshell
titleRunning Cppcheck
cppcheck -q -ibuild --enable=all --output-file=cppcheck_report.txt --std=c++17 --suppress-xml=cppcheck_suppressions.xml --library=googletest .

Native build

To build Rialto for x86-64 Linux machine, execute those commands:

Code Block
languageshell
titleNative Rialto build
cmake . -B build -DNATIVE_BUILD=ON -DRIALTO_BUILD_TYPE="Debug"make -C build


Rialto-Gstreamer

tbd

Rialto-Ocdm

...