diff --git a/compile.sh b/compile.sh index bcf2c19..54b8f22 100755 --- a/compile.sh +++ b/compile.sh @@ -2,4 +2,39 @@ # sudo apt install build-essential binutils-dev git cmake genisoimage libassimp-dev -make deploy_iso -j16 \ No newline at end of file +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) \ No newline at end of file diff --git a/dependencies/egg-library/compile.sh b/dependencies/egg-library/compile.sh index 9227e01..50d8374 100755 --- a/dependencies/egg-library/compile.sh +++ b/dependencies/egg-library/compile.sh @@ -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 diff --git a/tools/ps2-manifest-generator/compile.sh b/tools/ps2-manifest-generator/compile.sh new file mode 100755 index 0000000..ebaf9c4 --- /dev/null +++ b/tools/ps2-manifest-generator/compile.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +mkdir -p build && pushd build && cmake .. && sudo make install -j$(nproc); popd \ No newline at end of file diff --git a/tools/ps2-mesh-converter/compile.sh b/tools/ps2-mesh-converter/compile.sh new file mode 100755 index 0000000..ebaf9c4 --- /dev/null +++ b/tools/ps2-mesh-converter/compile.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +mkdir -p build && pushd build && cmake .. && sudo make install -j$(nproc); popd \ No newline at end of file