Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
run: |
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
. ./macports-ci install --remove-brew --version=2.11.5 --sync=rsync
sudo port install gsl gmp mpfr libmpc libiconv bison flex gsed texinfo autoconf automake libtool md5sha1sum wget curl
sudo port install gsl gmp mpfr libmpc libiconv bison flex gsed texinfo autoconf automake libtool md5sha1sum wget curl cmake

- name: Install MSYS2 packages
if: startsWith(matrix.os.runs-on, 'windows')
Expand All @@ -105,7 +105,7 @@ jobs:
base-devel git make texinfo flex bison patch binutils mpc-devel tar wget curl
autotools gettext gettext-devel
mingw-w64-i686-readline mingw-w64-i686-gcc mingw-w64-i686-cmake
mingw-w64-i686-make mingw-w64-i686-libogg
mingw-w64-i686-make mingw-w64-i686-libogg mingw-w64-i686-libgnurx
update: true

- name: Runs all the stages in the shell
Expand Down
6 changes: 6 additions & 0 deletions config/ps2toolchain-dvp-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
PS2TOOLCHAIN_DVP_BINUTILS_REPO_URL="https://github.com/ps2dev/binutils-gdb.git"
PS2TOOLCHAIN_DVP_BINUTILS_DEFAULT_REPO_REF="dvp-v2.45.1"

PS2TOOLCHAIN_DVP_MASP_REPO_URL="https://github.com/ps2dev/masp.git"
PS2TOOLCHAIN_DVP_MASP_DEFAULT_REPO_REF="v0.1.16"

PS2TOOLCHAIN_DVP_OPENVCL_REPO_URL="https://github.com/ps2dev/openvcl.git"
PS2TOOLCHAIN_DVP_OPENVCL_DEFAULT_REPO_REF="v0.4.0"

if test -f "$PS2DEV_CONFIG_OVERRIDE"; then
source "$PS2DEV_CONFIG_OVERRIDE"
fi
42 changes: 42 additions & 0 deletions scripts/002-masp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
# 002-masp.sh by ps2dev developers

## Exit with code 1 when any command executed returns a non-zero exit code.
onerr()
{
exit 1;
}
trap onerr ERR

## Read information from the configuration file.
source "$(dirname "$0")/../config/ps2toolchain-dvp-config.sh"

## Download the source code.
REPO_URL="$PS2TOOLCHAIN_DVP_MASP_REPO_URL"
REPO_REF="$PS2TOOLCHAIN_DVP_MASP_DEFAULT_REPO_REF"
REPO_FOLDER="$(s="$REPO_URL"; s=${s##*/}; printf "%s" "${s%.*}")"

# Checking if a specific Git reference has been passed in parameter $1
if test -n "$1"; then
REPO_REF="$1"
printf 'Using specified repo reference %s\n' "$REPO_REF"
fi

if test ! -d "$REPO_FOLDER"; then
git clone --depth 1 -b "$REPO_REF" "$REPO_URL" "$REPO_FOLDER"
else
git -C "$REPO_FOLDER" remote set-url origin "$REPO_URL"
git -C "$REPO_FOLDER" fetch origin "$REPO_REF" --depth=1
git -C "$REPO_FOLDER" checkout -f "$REPO_REF"
fi

## Determine the maximum number of processes that Make can work with.
PROC_NR=$(getconf _NPROCESSORS_ONLN)

## Configure, build, and install.
cmake -S "$REPO_FOLDER" -B "$REPO_FOLDER/build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$PS2DEV" \
-DBUILD_TESTING=OFF
cmake --build "$REPO_FOLDER/build" -j "$PROC_NR"
cmake --install "$REPO_FOLDER/build"
42 changes: 42 additions & 0 deletions scripts/003-openvcl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
# 003-openvcl.sh by ps2dev developers

## Exit with code 1 when any command executed returns a non-zero exit code.
onerr()
{
exit 1;
}
trap onerr ERR

## Read information from the configuration file.
source "$(dirname "$0")/../config/ps2toolchain-dvp-config.sh"

## Download the source code.
REPO_URL="$PS2TOOLCHAIN_DVP_OPENVCL_REPO_URL"
REPO_REF="$PS2TOOLCHAIN_DVP_OPENVCL_DEFAULT_REPO_REF"
REPO_FOLDER="$(s="$REPO_URL"; s=${s##*/}; printf "%s" "${s%.*}")"

# Checking if a specific Git reference has been passed in parameter $1
if test -n "$1"; then
REPO_REF="$1"
printf 'Using specified repo reference %s\n' "$REPO_REF"
fi

if test ! -d "$REPO_FOLDER"; then
git clone --depth 1 -b "$REPO_REF" "$REPO_URL" "$REPO_FOLDER"
else
git -C "$REPO_FOLDER" remote set-url origin "$REPO_URL"
git -C "$REPO_FOLDER" fetch origin "$REPO_REF" --depth=1
git -C "$REPO_FOLDER" checkout -f "$REPO_REF"
fi

## Determine the maximum number of processes that Make can work with.
PROC_NR=$(getconf _NPROCESSORS_ONLN)

## Configure, build, and install.
cmake -S "$REPO_FOLDER" -B "$REPO_FOLDER/build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$PS2DEV" \
-DBUILD_TESTING=OFF
cmake --build "$REPO_FOLDER/build" -j "$PROC_NR"
cmake --install "$REPO_FOLDER/build"
Loading