Skip to content

Commit a652206

Browse files
authored
Add tvOS, xrOS.
1 parent ddfd773 commit a652206

File tree

1 file changed

+101
-3
lines changed

1 file changed

+101
-3
lines changed

build/xcframework_dynamic_build.sh

Lines changed: 101 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,100 @@ fi
2626

2727
echo "xcframework_dynamic_build.sh: MODE=$MODE, DEBUG=$DEBUG"
2828

29+
gn gen $OUT_DIR/tvOS-arm64-device --root="src" --args="
30+
target_os = \"ios\"
31+
ios_enable_code_signing = false
32+
is_component_build = false
33+
target_environment = \"appletv\"
34+
target_cpu = \"arm64\"
35+
ios_deployment_target = \"17.0\"
36+
use_goma = false
37+
rtc_enable_symbol_export = true
38+
rtc_libvpx_build_vp9 = true
39+
rtc_include_tests = false
40+
rtc_build_examples = false
41+
rtc_use_h264 = false
42+
rtc_enable_protobuf = false
43+
enable_libaom = true
44+
rtc_include_dav1d_in_internal_decoder_factory = true
45+
use_rtti = true
46+
is_debug = $DEBUG
47+
enable_dsyms = $DEBUG
48+
enable_stripping = true" --ide=xcode
49+
50+
ninja -C $OUT_DIR/tvOS-arm64-device ios_framework_bundle -j 10
51+
52+
gn gen $OUT_DIR/tvOS-arm64-simulator --root="src" --args="
53+
target_os = \"ios\"
54+
ios_enable_code_signing = false
55+
is_component_build = false
56+
target_environment = \"appletvsimulator\"
57+
target_cpu = \"arm64\"
58+
ios_deployment_target = \"17.0\"
59+
use_goma = false
60+
rtc_enable_symbol_export = true
61+
rtc_libvpx_build_vp9 = true
62+
rtc_include_tests = false
63+
rtc_build_examples = false
64+
rtc_use_h264 = false
65+
rtc_enable_protobuf = false
66+
enable_libaom = true
67+
rtc_include_dav1d_in_internal_decoder_factory = true
68+
use_rtti = true
69+
is_debug = $DEBUG
70+
enable_dsyms = $DEBUG
71+
enable_stripping = true" --ide=xcode
72+
73+
ninja -C $OUT_DIR/tvOS-arm64-simulator ios_framework_bundle -j 10
74+
75+
gn gen $OUT_DIR/xrOS-arm64-device --root="src" --args="
76+
treat_warnings_as_errors = false
77+
target_os = \"ios\"
78+
ios_enable_code_signing = false
79+
is_component_build = false
80+
target_environment = \"xrdevice\"
81+
target_cpu = \"arm64\"
82+
ios_deployment_target = \"1.1.0\"
83+
use_goma = false
84+
rtc_enable_symbol_export = true
85+
rtc_libvpx_build_vp9 = true
86+
rtc_include_tests = false
87+
rtc_build_examples = false
88+
rtc_use_h264 = false
89+
rtc_enable_protobuf = false
90+
enable_libaom = true
91+
rtc_include_dav1d_in_internal_decoder_factory = true
92+
use_rtti = true
93+
is_debug = $DEBUG
94+
enable_dsyms = $DEBUG
95+
enable_stripping = true" --ide=xcode
96+
97+
ninja -C $OUT_DIR/xrOS-arm64-device ios_framework_bundle -j 10
98+
99+
gn gen $OUT_DIR/xrOS-arm64-simulator --root="src" --args="
100+
treat_warnings_as_errors = false
101+
target_os = \"ios\"
102+
ios_enable_code_signing = false
103+
is_component_build = false
104+
target_environment = \"xrsimulator\"
105+
target_cpu = \"arm64\"
106+
ios_deployment_target = \"1.1.0\"
107+
use_goma = false
108+
rtc_enable_symbol_export = true
109+
rtc_libvpx_build_vp9 = true
110+
rtc_include_tests = false
111+
rtc_build_examples = false
112+
rtc_use_h264 = false
113+
rtc_enable_protobuf = false
114+
enable_libaom = true
115+
rtc_include_dav1d_in_internal_decoder_factory = true
116+
use_rtti = true
117+
is_debug = $DEBUG
118+
enable_dsyms = $DEBUG
119+
enable_stripping = true" --ide=xcode
120+
121+
ninja -C $OUT_DIR/xrOS-arm64-simulator ios_framework_bundle -j 10
122+
29123
gn gen $OUT_DIR/catalyst-arm64 --root="src" --args="
30124
treat_warnings_as_errors = false
31125
target_os = \"ios\"
@@ -150,7 +244,7 @@ gn gen $OUT_DIR/macOS-x64 --root="src" --args="
150244
treat_warnings_as_errors = false
151245
target_os=\"mac\"
152246
target_cpu=\"x64\"
153-
mac_deployment_target=\"10.15\"
247+
mac_deployment_target=\"10.14\"
154248
is_component_build = false
155249
target_cpu = \"x64\"
156250
use_goma = false
@@ -172,7 +266,7 @@ gn gen $OUT_DIR/macOS-arm64 --root="src" --args="
172266
treat_warnings_as_errors = false
173267
target_os=\"mac\"
174268
target_cpu=\"x64\"
175-
mac_deployment_target=\"10.15\"
269+
mac_deployment_target=\"10.14\"
176270
is_component_build = false
177271
target_cpu = \"arm64\"
178272
use_goma = false
@@ -213,6 +307,10 @@ xcodebuild -create-xcframework \
213307
-framework $OUT_DIR/iOS-simulator-lib/WebRTC.framework \
214308
-framework $OUT_DIR/catalyst-lib/WebRTC.framework \
215309
-framework $OUT_DIR/macOS-lib/WebRTC.framework \
310+
-framework $OUT_DIR/xrOS-arm64-device/WebRTC.framework \
311+
-framework $OUT_DIR/xrOS-arm64-simulator/WebRTC.framework \
312+
-framework $OUT_DIR/tvOS-arm64-device/WebRTC.framework \
313+
-framework $OUT_DIR/tvOS-arm64-simulator/WebRTC.framework \
216314
-output $OUT_DIR/WebRTC.xcframework
217315

218316
cp ./src/LICENSE $OUT_DIR/WebRTC.xcframework/
@@ -229,5 +327,5 @@ cd ../../../
229327
zip --symlinks -9 -r WebRTC.xcframework.zip WebRTC.xcframework
230328

231329
# hash
232-
shasum -a 256 WebRTC.xcframework.zip >WebRTC.xcframework.zip.shasum
330+
shasum -a 256 WebRTC.xcframework.zip > WebRTC.xcframework.zip.shasum
233331
cat WebRTC.xcframework.zip.shasum

0 commit comments

Comments
 (0)