(NOTE: This section is in preparation and will be updated when Blend2D beta version is released)
Blend2D C++ engine and other projects are available under blend2d organization on github.
Blend2D C++ engine is called b2d and it's the primary project from all projects covered by Blend2D. It's the core engine written in C++ exposing high-level C++ API.
AsmJit is the only external dependency of Blend2D library. It allows Blend2D to generate JIT code at runtime and to execute it. AsmJit is not bundled with Blend2D so it has to be downloaded separately. However, you don't have to build asmjit yourself as Blend2D embeds this library and builds it together with Blend2D.
Blend2D requires only AsmJit as a dependency, which it expects by default at the same directory level as Blend2D itself. If you wish to use a different directory you would have to specify it through
ASMJIT_DIR cmake definition. The simplest way to download and compile the latest Blend2D library with a statically compiled AsmJit is by using cmake:
By default only
b2d library is built. The following build options are available:
ASMJIT_DIR- Where to find AsmJit library (default "../asmjit").
ASMJIT_EMBED- Whether to embed AsmJit library (default true).
B2D_BUILD_TEST- Whether to build Blend2D samples and unit tests (default false).
B2D_BUILD_EMBED- Whether to embed Blend2D library, can only be used if you include Blend2D CMakeLists.txt from your own build script (default false).
CMAKE_BUILD_TYPE- Don't forget to set it to "Release" in order to create a release build as cmake builds debug by default.