2015-10-27, 19:12
(2015-10-27, 04:10)dschoppe Wrote:Code:cmake -DADDONS_TO_BUILD=../peripheral.joystick -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=~/code/kodi/xbmc-retroplayer/addons/ -DPACKAGE_ZIP=1 ~/code/kodi/xbmc-retroplayer/project/cmake/addons/
first, change ADDONS_TO_BUILD to the add-on ID(s) or regex you wish to build, e.g.
Code:
-DADDONS_TO_BUILD="peripheral.joystick game.libretro.2048"
I should mention in the readme, cloning the repo isn't necessary. nothing in the cmake command points to ../peripheral.joystick. Instead, the cmake target ~/code/kodi/xbmc-retroplayer/project/cmake/addons/ contains a cmake project that will download the add-ons and their dependencies from github or a specified zip.
after the cmake command, run "make" and "make install". The make step will download the add-ons and depends and build them, the install step will copy the add-ons to CMAKE_INSTALL_PREFIX.
wsnipex gave you the build steps for a standalone build. This is what I do, because i'm developing add-ons. The easiest way to download, compile and install all add-ons is pointing cmake to the provided cmake project in project/cmake/addons/