- clang-format
- Latest C++ compiler(Clang/GCC), supporting C++20
- CMake
- Ninja
- CCache (optional but recommended)
pip install -r requirements.txt
to download conan, cmake-format and compdb- For setting up the build folder, run
bash setup_build.sh
, this will fetch the dependencies and create a build folder. If we want to use non default compiler, runCC=<C compiler> CXX=<C++ Compiler> bash setup_build.sh --build -s compiler=<Compiler Name> -s compiler.version=<Version>
cd build
cmake -G Ninja ..
. We can provide extra build flags while running this. For example to generate release build, runcmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
. To specify alternate compiler prefix byCC=<C Compiler> CXX=<C++ Compiler>
-DDEBUG=ON
if you want to set define DEBUG in the code inside. Useful for debugging-DBUILD_PROJECT="no_tests"
to build just frontend and backend-DBUILD_PROJECT="frontend"
to build just frontend-DBUILD_PROJECT="backedn"
to build just backendninja