diff --git a/Readme.md b/Readme.md index b8d56f8f..ec06cd1c 100644 --- a/Readme.md +++ b/Readme.md @@ -2,13 +2,11 @@ ## Linux -Clone the repo and create a build directory +Create and enter a build directory ```shell -git clone https://github.com/kodi-game/peripheral.joystick.git +mkdir peripheral.joystick cd peripheral.joystick -mkdir build -cd build ``` Generate a build environment with config for debugging @@ -21,25 +19,13 @@ cmake -DADDONS_TO_BUILD=peripheral.joystick \ $HOME/workspace/xbmc/project/cmake/addons ``` -If you are developing in Eclipse, you can create a "makefile project with existing code" using `peripheral.joystick/` as the existing code location. To build, enter Properties -> "C/C++ Build" and change the build command to `make -C build`. +The add-on can then be built with `make`. -It is also possible to generate Eclipse project files with cmake - -```shell -cmake -G"Eclipse CDT4 - Unix Makefiles" \ - -D_ECLIPSE_VERSION=4.4 \ - -DADDONS_TO_BUILD=peripheral.joystick \ - -DCMAKE_BUILD_TYPE=Debug \ - -DCMAKE_INSTALL_PREFIX=$HOME/workspace/xbmc/addons \ - -DPACKAGE_ZIP=1 \ - $HOME/workspace/xbmc/project/cmake/addons -``` - -# Building stand-alone +# Building stand-alone (development) Stand-alone builds are closer to "normal" software builds. The build system looks for its dependencies, by default with `/usr` and `/usr/local` prefixes. -To provide these dependencies yourself in a local working directory, build Kodi with an installation prefix +To provide these dependencies yourself in a local working directory (`$HOME/kodi`), build Kodi with an installation prefix ```shell ./configure --prefix=$HOME/kodi @@ -47,8 +33,6 @@ make make install ``` -Alternatively, configure Kodi per usual and install using `make install DESTDIR=$HOME/kodi`. - Clone kodi-platform and create a CMake build directory ```shell