26
26
27
27
echo " xcframework_dynamic_build.sh: MODE=$MODE , DEBUG=$DEBUG "
28
28
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
+
29
123
gn gen $OUT_DIR /catalyst-arm64 --root=" src" --args="
30
124
treat_warnings_as_errors = false
31
125
target_os = \" ios\"
@@ -150,7 +244,7 @@ gn gen $OUT_DIR/macOS-x64 --root="src" --args="
150
244
treat_warnings_as_errors = false
151
245
target_os=\" mac\"
152
246
target_cpu=\" x64\"
153
- mac_deployment_target=\" 10.15 \"
247
+ mac_deployment_target=\" 10.14 \"
154
248
is_component_build = false
155
249
target_cpu = \" x64\"
156
250
use_goma = false
@@ -172,7 +266,7 @@ gn gen $OUT_DIR/macOS-arm64 --root="src" --args="
172
266
treat_warnings_as_errors = false
173
267
target_os=\" mac\"
174
268
target_cpu=\" x64\"
175
- mac_deployment_target=\" 10.15 \"
269
+ mac_deployment_target=\" 10.14 \"
176
270
is_component_build = false
177
271
target_cpu = \" arm64\"
178
272
use_goma = false
@@ -213,6 +307,10 @@ xcodebuild -create-xcframework \
213
307
-framework $OUT_DIR /iOS-simulator-lib/WebRTC.framework \
214
308
-framework $OUT_DIR /catalyst-lib/WebRTC.framework \
215
309
-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 \
216
314
-output $OUT_DIR /WebRTC.xcframework
217
315
218
316
cp ./src/LICENSE $OUT_DIR /WebRTC.xcframework/
@@ -229,5 +327,5 @@ cd ../../../
229
327
zip --symlinks -9 -r WebRTC.xcframework.zip WebRTC.xcframework
230
328
231
329
# hash
232
- shasum -a 256 WebRTC.xcframework.zip > WebRTC.xcframework.zip.shasum
330
+ shasum -a 256 WebRTC.xcframework.zip > WebRTC.xcframework.zip.shasum
233
331
cat WebRTC.xcframework.zip.shasum
0 commit comments