Skip to content

Commit

Permalink
perimeter - Switch to vcpkg (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan authored Aug 2, 2023
1 parent e910a1e commit 9e74d45
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions engines/perimeter/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# CLONE PHASE
git clone https://github.com/IonAgorria/Perimeter.git source
pushd source
git checkout -f 48e3d63
git checkout -f 3b06a6f
git submodule update --init --recursive
popd

# BUILD PHASE
pushd "source"
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOPTION_LINKER_LLD=OFF -DCMAKE_PREFIX_PATH="$pfx" -DCMAKE_INSTALL_PREFIX="$pfx"
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOPTION_LINKER_LLD=OFF -DCMAKE_PREFIX_PATH="$pfx;$VCPKG_INSTALLED_PATH" -DCMAKE_INSTALL_PREFIX="$pfx"
ninja dependencies
ninja
cd Source/dxvk-prefix/src/dxvk-build
Expand All @@ -23,5 +23,6 @@ mkdir -p "$diststart/common/dist/lib"

cp -rfv "$pfx/lib"/*.so* "$diststart/common/dist/lib"
cp -rfv "$pfx/usr/local/lib/x86_64-linux-gnu"/*.so* "$diststart/common/dist/lib"

cp -rfv source/build/Source/perimeter "$diststart/common/dist/"
cp -rfv assets/* "$diststart/common/dist/"
3 changes: 1 addition & 2 deletions engines/perimeter/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

export STEAM_APP_ID_LIST="289440 289240"
export LICENSE_PATH="./source/LICENSE"
export LIBRARIES="yasm ffmpeg"
export COMMON_PACKAGE="1"
export APT_LIBRARIES="libboost-dev"
export APT_LIBRARIES="libboost-dev nasm"
6 changes: 6 additions & 0 deletions engines/perimeter/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
"ffmpeg"
]
}
4 changes: 2 additions & 2 deletions metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8532,7 +8532,7 @@
},
{
"engine_link": "https://github.com/IonAgorria/Perimeter",
"version": "48e3d63",
"version": "3b06a6f",
"author": "d10sfan",
"author_link": "https://github.com/d10sfan",
"license": "GPLv3",
Expand Down Expand Up @@ -9280,4 +9280,4 @@
"value": "Supports steam achivements."
}
]
}
}

0 comments on commit 9e74d45

Please sign in to comment.