
In addition to the above it can sometimes be useful to debug only C and C++ code. Simply set the IDE project configuration to Debug to allow for stepping through the code. For single configuration generators like the Unix Makefiles generator, setting CMAKE_BUILD_TYPE to Debug is sufficient: $ cmake path/to/aom -DCMAKE_BUILD_TYPE=Debugįor Xcode, mainly because configuration controls for Xcode builds are buried two configuration windows deep and must be set for each subproject within the Xcode IDE individually, CMAKE_CONFIGURATION_TYPES should be set to Debug: $ cmake path/to/aom -G Xcode -DCMAKE_CONFIGURATION_TYPES=Debugįor Visual Studio the in-IDE configuration controls should be used. Debuggingĭepending on the generator used there are multiple ways of going about debugging AV1 components. This is currently only supported on non-Windows targets. Dylib buildsĪ dylib (shared object) build of the AV1 codec library can be enabled via the CMake built in variable BUILD_SHARED_LIBS: $ cmake path/to/aom -DBUILD_SHARED_LIBS=1 Build system configuration options can be found at the top of the CMakeLists.txt file found in the root of the AV1 repository, and AV1 codec configuration options can currently be found in the file build/cmake/aom_config_defaults.cmake. The available configuration options are too numerous to list here. The following example enables ccache and disables the AV1 encoder: $ cmake path/to/aom -DENABLE_CCACHE=1 -DCONFIG_AV1_ENCODER=0

These have the form CONFIG_FEATURE.īoth types of options are set at the time CMake is run. The AV1 codec library has a great many configuration options. The compiler chosen varies by host platform, but a general rule applies: On systems where cc and c++ are present in $PATH at the time CMake is run the generated build will use cc and c++ by default. The above will generate a makefile build that produces the AV1 library and applications for the current host system after the make step completes successfully. The basic form of a makefile build is the following: $ cmake path/to/aom For most systems the default generator is Unix Makefiles.

Running CMake will produce configuration and build files for the currently selected CMake generator. # By default, the above command stores the source in the aom directory:ĬMake replaces the configure step typical of many projects.

The AV1 library source code is stored in the Alliance for Open Media Git repository: $ git clone

