-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* merge (cherry picked from commit 3112874ca3722ff38b9fb7157a72b91018d9f433) * Apothecary Fix missing Metal * Apothecary fix load cache * Metal Angle fixed depends * Build ID 2 * Kiss - missing build_id * Fix cache * MetalANGLE cleanup include * Fix cache issue * Actions output export config for cmake / pkg files * debug vs artifact
- Loading branch information
Showing
39 changed files
with
652 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# libssh2 | ||
|
||
# Define the version | ||
FORMULA_TYPES=( "vs" "osx" "ios" "android" ) | ||
|
||
FORMULA_DEPENDS=( "zlib" "openssl" ) | ||
|
||
VER=1.11.0-dev | ||
GIT_URL=https://github.com/libssh2/libssh2.git | ||
|
||
DEFS="" | ||
|
||
function download() { | ||
. "$DOWNLOADER_SCRIPT" | ||
FILE_NAME=libssh2-$VER | ||
|
||
if [ -d $FILE_NAME ]; then | ||
echo "Directory $FILE_NAME already exists. Pulling latest changes." | ||
cd $FILE_NAME | ||
git pull origin master | ||
cd .. | ||
else | ||
git clone --depth=1 --branch master $GIT_URL $FILE_NAME | ||
fi | ||
} | ||
|
||
function prepare() { | ||
apothecaryDependencies download | ||
echo "Preparation complete" | ||
} | ||
|
||
function build() { | ||
LIBS_ROOT=$(realpath $LIBS_DIR) | ||
|
||
mkdir -p "build_${TYPE}_${PLATFORM}" | ||
cd "build_${TYPE}_${PLATFORM}" | ||
|
||
cmake .. \ | ||
-DCMAKE_C_FLAGS="${DEFS}" \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=Release | ||
|
||
cmake --build . --config Release --target install | ||
cd .. | ||
|
||
fi | ||
} | ||
|
||
function copy() { | ||
mkdir -p $1/include | ||
mkdir -p $1/lib/$TYPE | ||
mkdir -p $1/lib/$TYPE/$PLATFORM/ | ||
|
||
cp -v "build_${TYPE}_${PLATFORM}/Release/lib/libssh2.a" $1/lib/$TYPE/$PLATFORM/libssh2.a | ||
cp -Rv "build_${TYPE}_${PLATFORM}/Release/include" $1/ | ||
cp -v LICENSE $1/license/ | ||
} | ||
|
||
function clean() { | ||
if [ -d "build_${TYPE}_${PLATFORM}" ]; then | ||
rm -r build_${TYPE}_${PLATFORM} | ||
fi | ||
} | ||
|
||
function save() { | ||
. "$SAVE_SCRIPT" | ||
savestatus ${TYPE} "libssh2" ${ARCH} ${VER} true "${SAVE_FILE}" | ||
} | ||
|
||
function load() { | ||
. "$LOAD_SCRIPT" | ||
LOAD_RESULT=$(loadsave ${TYPE} "libssh2" ${ARCH} ${VER} "$LIBS_DIR_REAL/$1/lib/$TYPE/$PLATFORM" ${BUILD_ID} ) | ||
PREBUILT=$(echo "$LOAD_RESULT" | tail -n 1) | ||
if [ "$PREBUILT" -eq 1 ]; then | ||
echo 1 | ||
else | ||
echo 0 | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.