xbmc
README
Kodi logo

Kodi add-ons CMake based buildsystem

This directory contains the cmake-based buildsystem for Kodi add-ons. It looks into the directory pointed to by the ADDONS_DEFINITION_DIR option (which defaults to the addons sub-directory) and parses all *.txt files recursively. Each add-on must have its own <addon-id>.txt file in a separate sub-directory that must follow one of the defined formats:

where

Reserved filenames

List of platforms to build an add-on for (or all). Negating platforms is supported using a leading exclamation mark, e.g. !windows.

Available platforms are: linux, windows, osx, ios, android and freebsd.

Attention

If no add-on definitions could be found, the buildsystem assumes that the bootstrapping of the add-on definition repositories hasn't been performed yet and automatically executes the add-on bootstrapping buildsystem located in the bootstrap sub-directory with the default settings (i.e. all add-ons from all pre-defined add-on definition repositories are bootstrapped into the directory pointed to by the ADDONS_DEFINITION_DIR option).

Buildsystem variables

The buildsystem uses the following addon-related variables (which can be passed into it when executing cmake with the -D<variable-name>=<value> format) to manipulate the build process:

Deprecated buildsystem variables

Buildsystem will print a warning if you use any of the below-listed variables. For now they still work but you should adapt your workflow to the new variables.

Building

The buildsystem makes some assumptions about the environment which must be met by whoever uses it: