2020-06-22 00:00:00 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-23 20:04:04 -04:00
|
|
|
if [ "${SKIP_PACKAGING}" = "Y" ]; then exit 0; fi
|
|
|
|
|
2020-06-22 00:00:00 -04:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export MVK_EXT_LIB_DST_PATH="${PROJECT_DIR}/External/build/"
|
|
|
|
|
|
|
|
# Assign symlink to Latest
|
|
|
|
ln -sfn "${CONFIGURATION}" "${MVK_EXT_LIB_DST_PATH}/Latest"
|
|
|
|
|
2023-10-23 20:04:04 -04:00
|
|
|
# Remove the large Intermediates directory if no longer needed
|
|
|
|
if [ "${KEEP_CACHE}" != "Y" ]; then
|
|
|
|
echo Removing Intermediates library at "${MVK_EXT_LIB_DST_PATH}/Intermediates"
|
|
|
|
rm -rf "${MVK_EXT_LIB_DST_PATH}/Intermediates"
|
|
|
|
fi
|
|
|
|
|
2020-06-22 00:00:00 -04:00
|
|
|
# Clean MoltenVK to ensure the next MoltenVK build will use the latest external library versions.
|
|
|
|
make --quiet clean
|
|
|
|
|