Skip to content

Commit

Permalink
[readme] Add "Building stand-alone" section from game.libretro readme
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Apr 1, 2015
1 parent d9f0676 commit 8b1ba25
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,44 @@ cmake -G"Eclipse CDT4 - Unix Makefiles" \
$HOME/workspace/xbmc/project/cmake/addons
```

# Building stand-alone

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

```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
git clone https://github.com/xbmc/kodi-platform.git
cd kodi-platform
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/kodi \
..
make
make install
```

With these dependencies in place, the add-on can be built. Point CMake to the add-on's build system instead of `$HOME/workspace/xbmc/project/cmake/addons`

```shell
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/workspace/xbmc/addons \
-DCMAKE_PREFIX_PATH=$HOME/kodi \
-DPACKAGE_ZIP=1 \
..
```

# Building in-tree (cross-compiling)

Kodi's build system will fetch the add-on from the GitHub URL and git hash specified in [peripheral.joystick.txt](https://github.com/garbear/xbmc/blob/retroplayer-15alpha2/project/cmake/addons/addons/peripheral.joystick/peripheral.joystick.txt).
Expand Down

0 comments on commit 8b1ba25

Please sign in to comment.