PCSX-rearmed game add-on for Kodi
Create and enter a build directory
mkdir game.libretro.pcsx-rearmed
cd game.libretro.pcsx-rearmed
Generate a build environment with config for debugging
cmake -DADDONS_TO_BUILD=game.libretro.pcsx-rearmed \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/workspace/xbmc/addons \
-DPACKAGE_ZIP=1 \
$HOME/workspace/xbmc/project/cmake/addons
The add-on can then be built with make
.
Kodi's build system will fetch the add-on from the GitHub URL and git hash specified in game.libretro.pcsx-rearmed.txt.
Configure Kodi using ./configure --prefix=$HOME/kodi
. Then run make
and make install
.
Build the add-on
make -C tools/depends/target/binary-addons PREFIX=$HOME/kodi ADDONS="game.libretro.pcsx-rearmed"
The compiled .so can be found at
$HOME/kodi/lib/kodi/addons/game.libretro.pcsx-rearmed/game.libretro.pcsx-rearmed.so
To rebuild the add-on or compile a different one, clean the build directory
make -C tools/depends/target/binary-addons clean
We will use CMake to generate a kodi-addons.sln
Visual Studio solution and project files. Add-ons can be built individually through their specific project, or all at once by building the solution.
First, download and install CMake and MinGW. Add the MinGW bin
folder to your path (e.g. C:\MinGW\bin
).
Run the script from PR 6658 to create Visual Studio project files
tools\windows\prepare-binary-addons-dev.bat
The generated solution can be found at
project\cmake\addons\build\kodi-addons.sln
No source code is downloaded at the CMake stage; when the project is built, the add-on's source will be downloaded and compiled.
Per README.osx, enter the tools/depends
directory and make the add-on:
cd tools/depends
make -C target/binary-addons ADDONS="game.libretro.pcsx-rearmed"
To rebuild the add-on or compile a different one, clean the build directory
make -C target/binary-addons clean