Skip to content

Commit

Permalink
IVGCVSW-8372 Fixes for Android OOB tests on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Orlaith Monahan <[email protected]>
Change-Id: Ie473984f3db55d3aa33b529d9e0b570150e22d18
  • Loading branch information
orlmon01 committed Aug 21, 2024
1 parent 5e60b55 commit 515b643
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function AssertZeroExitCode {

BUILD_DIR=build-x86_64
FLATBUFFERS_DIR=$PWD/flatbuffers
CMAKE_DIR=$PWD/cmake-3.22.1

function BuildCmake {
CMAKE_VERSION=3.22.1
Expand Down Expand Up @@ -43,7 +44,7 @@ function BuildCmake {
make || exit 1
make install || exit 1
echo "+++ CMake Successfully Installed in $PWD/${CMAKE_DIST}/"

cd ..
}

function BuildFlatbuffers {
Expand All @@ -56,7 +57,7 @@ function BuildFlatbuffers {
cd $BUILD_DIR

echo "+++ Building Google Flatbufers"
CMD="$PWD/${CMAKE_DIST}/bin/cmake -DFLATBUFFERS_BUILD_FLATC=1 -DCMAKE_INSTALL_PREFIX:PATH=$FLATBUFFERS_DIR .."
CMD="${CMAKE_DIR}/bin/cmake -DFLATBUFFERS_BUILD_FLATC=1 -DCMAKE_INSTALL_PREFIX:PATH=$FLATBUFFERS_DIR .."
# Force -fPIC to allow relocatable linking.
CXXFLAGS="-fPIC" $CMD
AssertZeroExitCode "cmake Google Flatbuffers failed. command was: ${CMD}"
Expand All @@ -76,7 +77,7 @@ if [ ! -d flatbuffers ]; then
curl -LOk https://github.com/google/flatbuffers/archive/${FLATBUFFERS_PKG}
AssertZeroExitCode "Downloading FlatBuffers failed"
mkdir -p flatbuffers
tar xzf $FLATBUFFERS_PKG
tar xzf $FLATBUFFERS_PKG -C flatbuffers --strip-components 1
AssertZeroExitCode "Unpacking FlatBuffers failed"

BuildCmake
Expand Down

0 comments on commit 515b643

Please sign in to comment.