if [[ -d "${DIST_DIR}" ]]; then echo"${DIST_DIR} folder already exists. Skipping build."
exit 0 fi
if [[ "${ARCH}" == "x86_64" ]]; then
OS_COMPILER="iPhoneSimulator"
TARGET="x86_64-apple-darwin"
GYP_ARCH="x64"
EXTRA_TARGET="x86_64-apple-ios-simulator" elif [[ "${ARCH}" == "arm64" ]]; then
OS_COMPILER="iPhoneOS"
TARGET="aarch64-apple-darwin"
GYP_ARCH="arm64"
EXTRA_TARGET="arm64-apple-ios" elif [[ "${ARCH}" == "arm64-sim" ]]; then # We need to build nss for M1 sims ahead of time
OS_COMPILER="iPhoneSimulator"
TARGET="aarch64-apple-darwin"
GYP_ARCH="arm64" # ARCH is used further down the line, but arm64-sim doesn't exist so we swap it back # to the original
ARCH="arm64"
EXTRA_TARGET="arm64-apple-ios-simulator" else echo"Unsupported architecture"
exit 1 fi
# NSS 3.121 gcm.gyp sets HAVE_PLATFORM_GCM for x86_64 iOS # simulator because 'target_arch=="x64" and OS!="win"' matches iOS. # `intel-gcm-wrap` is not built for iOS and no lib provides # platform_gcm_support for this target, causing a linker error. # Until Bug 2019090 is fixed upstream, this will patch `gcm.gyp` to exclude iOS.
sed -i '' \ 's/target_arch=="x64" and OS!="win"/target_arch=="x64" and OS!="win" and OS!="ios"/g' \ "${NSS_SRC_DIR}/nss/lib/freebl/gcm.gyp"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.