xbmc/xbmc — pull request #5572 by Montellese (2014-10-25 19:08:00+00:00)
Title: Binary addons: Multi addons

This work is inspired by @notspiff's work and adds support for addons whose content actually just consist of a list of sub-directories which are addons themselves. The main target are scrapers which are all stored in the same git repository at https://github.com/xbmc/repo-scrapers which a sub-directory for every scraper addon.
This allows us to add such a repository to the list of addons to be built with the addition of a `multi.txt` file containing a line for every actual addon to be copied to the final location. There's no support for intermediate build/compile commands.

I've taken a different approach than @notspiff making use of `ExternalProject_Add()` instead of adding custom commands.

The advantage of this is that we don't have to keep the scraperes in our code and we only have to update one git revision to sync all the default scrapers with the scraper repository.

A disadvantage is that there are no default scrapers (except for `metadata.local`) in our tree anymore so if someone builds and runs/debugs Kodi from a checkout he either doesn't have the default scrapers or he has to copy them to the `addons` directory manually to be able to use them.