-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathbuild-ios-framework.sh
More file actions
executable file
·27 lines (23 loc) · 1.31 KB
/
build-ios-framework.sh
File metadata and controls
executable file
·27 lines (23 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
. ./utils/build-apple-framework.sh
if [ ! -d destroot/Library/Frameworks/universal/hermes.xcframework ]; then
mac_deployment_target=$(get_mac_deployment_target)
ios_deployment_target=$(get_ios_deployment_target)
visionos_deployment_target=$(get_visionos_deployment_target)
tvos_deployment_target=$(get_tvos_deployment_target)
build_apple_framework "macosx" "x86_64;arm64" "$mac_deployment_target"
build_apple_framework "iphoneos" "arm64" "$ios_deployment_target"
build_apple_framework "iphonesimulator" "x86_64;arm64" "$ios_deployment_target"
build_apple_framework "catalyst" "x86_64;arm64" "$ios_deployment_target"
build_apple_framework "xros" "arm64" "$visionos_deployment_target"
build_apple_framework "xrsimulator" "arm64" "$visionos_deployment_target"
build_apple_framework "appletvos" "arm64" "$tvos_deployment_target"
build_apple_framework "appletvsimulator" "x86_64;arm64" "$tvos_deployment_target"
create_universal_framework "macosx" "iphoneos" "iphonesimulator" "catalyst" "xros" "xrsimulator" "appletvos" "appletvsimulator"
else
echo "Skipping; Clean \"destroot\" to rebuild".
fi