Skip to content

Commit

Permalink
Adding compile scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
EPICGameGuy committed Dec 30, 2023
1 parent f216649 commit a480635
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
37 changes: 36 additions & 1 deletion compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,39 @@

# sudo apt install build-essential binutils-dev git cmake genisoimage libassimp-dev

make deploy_iso -j16
echo "------Compiling egg-library------"
pushd dependencies/egg-library && ./compile.sh; popd
echo "------Compiling ps2-manifest-generator------"
pushd tools/ps2-manifest-generator && ./compile.sh; popd
echo "------Compiling ps2-mesh-converter------"
pushd tools/ps2-mesh-converter && ./compile.sh; popd

# OpenVCL/Masp
if [ ! -d "dependencies/openvcl" ]; then
echo "------Cloning OpenVCL/Masp------"
git clone https://github.com/nicholas477/openvcl.git dependencies/openvcl
fi
echo "------Compiling Masp------"
pushd dependencies/openvcl/contrib/masp
if [ ! -f "Makefile" ]; then
chmod +x ./configure
./configure
fi
sudo -E make install -j$(nproc)
popd

echo "------Compiling OpenVCL------"
pushd dependencies/openvcl
sudo -E make install -j$(nproc)
popd

# PS2GL
if [ ! -d "dependencies/ps2gl" ]; then
echo "------Cloning ps2gl------"
git clone https://github.com/nicholas477/ps2gl.git dependencies/ps2gl
fi
echo "------Compiling ps2gl------"
pushd dependencies/ps2gl && make install -j$(nproc); popd

echo "------Compiling ps2-engine------"
make deploy_iso -j$(nproc)
4 changes: 3 additions & 1 deletion dependencies/egg-library/compile.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
make install -j16 && pushd build && sudo make install -j16; popd
#!/usr/bin/bash

make install -j$(nproc) && pushd build && sudo make install -j$(nproc); popd
3 changes: 3 additions & 0 deletions tools/ps2-manifest-generator/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/bash

mkdir -p build && pushd build && cmake .. && sudo make install -j$(nproc); popd
3 changes: 3 additions & 0 deletions tools/ps2-mesh-converter/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/bash

mkdir -p build && pushd build && cmake .. && sudo make install -j$(nproc); popd

0 comments on commit a480635

Please sign in to comment.