Update Compilation Guide authored by Marvin Scholz's avatar Marvin Scholz
...@@ -22,5 +22,26 @@ cd build ...@@ -22,5 +22,26 @@ cd build
ninja ninja
``` ```
## Run tests
To run the tests, such as checkasm, use the meson test subcommand from the build dir:
```
meson test -v
```
## Compilation options
The dav1d build has some options to change aspects of the build, additionally meson provides a number of convenient options too. These options can either be set on an already configure build by invoking `meson configure -Doption_name=value` in the build dir or by passing them on the initial meson command that configures the build dir.
Running `meson configure` in the build dir shows the current configuration state. After changing a value, meson will automatically reconfigure as necessary on next ninja invocation.
Some useful meson options:
- `buildtype`: Change the build type (`debug`, `debugoptimized`, `release`)
- `prefix`: Change the prefix where dav1d will be installed
- `b_sanitize`: Enable a sanitizer (`none`, `address`, `thread`, `undefined`, `memory`, `address`, `undefined`)
- `default_library`: Change if a `shared` or `static` library should be built or `both`.
[meson]: https://mesonbuild.com [meson]: https://mesonbuild.com
[ninja]: https://ninja-build.org [ninja]: https://ninja-build.org
\ No newline at end of file