Browse Source

updated buildscripts

recent changes made it necessary to add new packages to be installed and build options to be adapted
pull/5831/head
danie1kr 3 years ago committed by Anders Jenbo
parent
commit
c2c0211ad8
  1. 2
      Packaging/cpi-gamesh/__init__.py
  2. 13
      Packaging/cpi-gamesh/build.sh
  3. 2
      Packaging/cpi-gamesh/readme.md

2
Packaging/cpi-gamesh/__init__.py

@ -23,7 +23,7 @@ class DevilutionPage(Page):
_GameName = "devilutionX" _GameName = "devilutionX"
_GamePath = "/home/cpi/games/devilutionX" _GamePath = "/home/cpi/games/devilutionX"
_GameExecutable = _GamePath + "/bin/devilutionx" _GameExecutable = _GamePath + "/build/devilutionx"
_GameExecutableRevision = _GameExecutable + ".rev" _GameExecutableRevision = _GameExecutable + ".rev"
_GameBuildScript = _GamePath + "/Packaging/cpi-gamesh/build.sh -t " + pipes.quote(os.path.dirname(os.path.abspath( __file__ ))) _GameBuildScript = _GamePath + "/Packaging/cpi-gamesh/build.sh -t " + pipes.quote(os.path.dirname(os.path.abspath( __file__ )))
_GamePNG = _GamePath + "/Packaging/cpi-gamesh/Devilution.png" _GamePNG = _GamePath + "/Packaging/cpi-gamesh/Devilution.png"

13
Packaging/cpi-gamesh/build.sh

@ -37,7 +37,7 @@ done
set -- "${POSITIONAL[@]}" # restore positional parameters set -- "${POSITIONAL[@]}" # restore positional parameters
install_deps() { install_deps() {
sudo apt install -y cmake libsdl2-dev sudo apt install -y cmake libsdl2-dev libbz2-dev libsodium-dev
} }
main() { main() {
@ -47,19 +47,16 @@ main() {
} }
build() { build() {
mkdir -p ../../build cd ../..
cd ../../build
rm -f CMakeCache.txt rm -f CMakeCache.txt
cmake .. -DTARGET_PLATFORM=cpigamesh cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DTARGET_PLATFORM=cpigamesh -DDISABLE_LTO=ON
make -j $(getconf _NPROCESSORS_ONLN) cmake --build build -j $(getconf _NPROCESSORS_ONLN)
cd - cd -
} }
install() { install() {
mkdir -p /home/cpi/games/devilutionX/bin git rev-parse HEAD > /home/cpi/games/devilutionX/build/devilutionx.rev
cp /home/cpi/games/devilutionX/build/devilutionx /home/cpi/games/devilutionX/bin
git rev-parse HEAD > /home/cpi/games/devilutionX/bin/devilutionx.rev
if [ -z ${TARGET+x} ]; then if [ -z ${TARGET+x} ]; then
local target_dir="25_devilutionX" local target_dir="25_devilutionX"

2
Packaging/cpi-gamesh/readme.md

@ -14,6 +14,8 @@ When the compile is finished and the diabdat.mpq is in place at '/home/cpi/.loca
- For the Polish voice pack download https://github.com/diasurgical/devilutionx-assets/releases/download/v1/pl.mpq. - For the Polish voice pack download https://github.com/diasurgical/devilutionx-assets/releases/download/v1/pl.mpq.
Enjoy! Enjoy!
For ClockworkOS v0.5, buster-backports are required to have updated libraries: https://backports.debian.org/Instructions/
## Play devilutionX on the CPi GameShell ## Play devilutionX on the CPi GameShell
When the game is compiled and the mpq files are in place, you can press "A" in the devilutionX menu to play. When the game is compiled and the mpq files are in place, you can press "A" in the devilutionX menu to play.

Loading…
Cancel
Save