Skip to content

Commit

Permalink
updated buildscripts
Browse files Browse the repository at this point in the history
recent changes made it necessary to add new packages to be installed and build options to be adapted
  • Loading branch information
danie1kr authored and AJenbo committed Feb 22, 2023
1 parent 454efdc commit c2c0211
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Packaging/cpi-gamesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DevilutionPage(Page):

_GameName = "devilutionX"
_GamePath = "/home/cpi/games/devilutionX"
_GameExecutable = _GamePath + "/bin/devilutionx"
_GameExecutable = _GamePath + "/build/devilutionx"
_GameExecutableRevision = _GameExecutable + ".rev"
_GameBuildScript = _GamePath + "/Packaging/cpi-gamesh/build.sh -t " + pipes.quote(os.path.dirname(os.path.abspath( __file__ )))
_GamePNG = _GamePath + "/Packaging/cpi-gamesh/Devilution.png"
Expand Down
13 changes: 5 additions & 8 deletions Packaging/cpi-gamesh/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ done
set -- "${POSITIONAL[@]}" # restore positional parameters

install_deps() {
sudo apt install -y cmake libsdl2-dev
sudo apt install -y cmake libsdl2-dev libbz2-dev libsodium-dev
}

main() {
Expand All @@ -47,19 +47,16 @@ main() {
}

build() {
mkdir -p ../../build
cd ../../build
cd ../..
rm -f CMakeCache.txt

This comment has been minimized.

Copy link
@glebm

glebm Feb 23, 2023

Collaborator

This should probably be adjusted to rm -f build/CMakeCache.txt


cmake .. -DTARGET_PLATFORM=cpigamesh
make -j $(getconf _NPROCESSORS_ONLN)
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DTARGET_PLATFORM=cpigamesh -DDISABLE_LTO=ON
cmake --build build -j $(getconf _NPROCESSORS_ONLN)
cd -
}

install() {
mkdir -p /home/cpi/games/devilutionX/bin
cp /home/cpi/games/devilutionX/build/devilutionx /home/cpi/games/devilutionX/bin
git rev-parse HEAD > /home/cpi/games/devilutionX/bin/devilutionx.rev
git rev-parse HEAD > /home/cpi/games/devilutionX/build/devilutionx.rev

if [ -z ${TARGET+x} ]; then
local target_dir="25_devilutionX"
Expand Down
2 changes: 2 additions & 0 deletions Packaging/cpi-gamesh/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Enjoy!

For ClockworkOS v0.5, buster-backports are required to have updated libraries: https://backports.debian.org/Instructions/

## 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.
Expand Down

0 comments on commit c2c0211

Please sign in to comment.