| 1 |
# screensaver.pingpong addon for Kodi |
| 2 |
|
| 3 |
This is a [Kodi](https://kodi.tv) screensaver addon. |
| 4 |
|
| 5 |
[](LICENSE.md) |
| 6 |
[](https://github.com/xbmc/screensaver.pingpong/actions/workflows/build.yml) |
| 7 |
[](https://dev.azure.com/teamkodi/binary-addons/_build/latest?definitionId=46&branchName=Nexus) |
| 8 |
[](https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Fscreensaver.pingpong/branches/) |
| 9 |
<!--- [](https://ci.appveyor.com/project/xbmc/screensaver-pingpong?branch=Nexus) --> |
| 10 |
|
| 11 |
## Build instructions |
| 12 |
|
| 13 |
When building the addon you have to use the correct branch depending on which version of Kodi you're building against. |
| 14 |
If you want to build the addon to be compatible with the latest kodi `master` commit, you need to checkout the branch with the current kodi codename. |
| 15 |
Also make sure you follow this README from the branch in question. |
| 16 |
|
| 17 |
### Linux |
| 18 |
|
| 19 |
The following instructions assume you will have built Kodi already in the `kodi-build` directory |
| 20 |
suggested by the README. |
| 21 |
|
| 22 |
1. `git clone --branch master https://github.com/xbmc/xbmc.git` |
| 23 |
2. `git clone https://github.com/xbmc/screensaver.pingpong.git` |
| 24 |
3. `cd screensaver.pingpong && mkdir build && cd build` |
| 25 |
4. `cmake -DADDONS_TO_BUILD=screensaver.pingpong -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/kodi-build/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons` |
| 26 |
5. `make` |
| 27 |
|
| 28 |
The addon files will be placed in `../../xbmc/kodi-build/addons` so if you build Kodi from source and run it directly |
| 29 |
the addon will be available as a system addon. |