Skip to content

Commit

Permalink
[readme] Update build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Apr 4, 2015
1 parent f24de03 commit 66721f1
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,34 +19,20 @@ 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
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
Expand Down

0 comments on commit 66721f1

Please sign in to comment.