File tree Expand file tree Collapse file tree 6 files changed +541
-0
lines changed Expand file tree Collapse file tree 6 files changed +541
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,27 @@ jobs:
156
156
- name : iOS Simulator Runner
157
157
run : ./scripts/ci/ios-simulator-runner.sh
158
158
159
+ aws-lc-rs-tvos-aarch64 :
160
+ if : github.repository_owner == 'aws'
161
+ name : tvOS aarch64 cross-platform build
162
+ runs-on : macos-latest
163
+ env :
164
+ TVOS_FORCE_TEST : 1
165
+ steps :
166
+ - uses : actions/checkout@v3
167
+ with :
168
+ submodules : " recursive"
169
+ - run : |
170
+ brew install llvm
171
+ - uses : dtolnay/rust-toolchain@master
172
+ with :
173
+ toolchain : nightly
174
+ components : rust-src
175
+ - name : Install bash, coreutils
176
+ run : brew install bash coreutils
177
+ - name : tvOS Simulator Runner
178
+ run : ./scripts/ci/tvos-simulator-runner.sh
179
+
159
180
aws-lc-rs-ios-x86_64 :
160
181
if : github.repository_owner == 'aws'
161
182
name : iOS x86-64 cross-platform build
Original file line number Diff line number Diff line change @@ -249,6 +249,14 @@ impl CmakeBuilder {
249
249
cmake_cfg. define ( "CMAKE_SYSTEM_NAME" , "Darwin" ) ;
250
250
cmake_cfg. define ( "CMAKE_OSX_SYSROOT" , "macosx" ) ;
251
251
}
252
+ if target_os ( ) . trim ( ) == "tvos" {
253
+ cmake_cfg. define ( "CMAKE_SYSTEM_NAME" , "tvOS" ) ;
254
+ if effective_target ( ) . ends_with ( "-tvos-sim" ) || target_arch ( ) == "x86_64" {
255
+ cmake_cfg. define ( "CMAKE_OSX_SYSROOT" , "appletvsimulator" ) ;
256
+ } else {
257
+ cmake_cfg. define ( "CMAKE_OSX_SYSROOT" , "appletvos" ) ;
258
+ }
259
+ }
252
260
}
253
261
254
262
if target_os ( ) == "windows" {
Original file line number Diff line number Diff line change @@ -744,6 +744,7 @@ fn invoke_external_bindgen(
744
744
if let Some ( prefix_str) = & options. build_prefix {
745
745
sym_prefix = if target_os ( ) . to_lowercase ( ) == "macos"
746
746
|| target_os ( ) . to_lowercase ( ) == "ios"
747
+ || target_os ( ) . to_lowercase ( ) == "tvos"
747
748
|| ( target_os ( ) . to_lowercase ( ) == "windows" && target_arch ( ) == "x86" )
748
749
{
749
750
format ! ( "_{prefix_str}_" )
Original file line number Diff line number Diff line change @@ -200,6 +200,14 @@ impl CmakeBuilder {
200
200
cmake_cfg. define ( "CMAKE_SYSTEM_NAME" , "Darwin" ) ;
201
201
cmake_cfg. define ( "CMAKE_OSX_SYSROOT" , "macosx" ) ;
202
202
}
203
+ if target_os ( ) . trim ( ) == "tvos" {
204
+ cmake_cfg. define ( "CMAKE_SYSTEM_NAME" , "tvOS" ) ;
205
+ if effective_target ( ) . ends_with ( "-tvos-sim" ) || target_arch ( ) == "x86_64" {
206
+ cmake_cfg. define ( "CMAKE_OSX_SYSROOT" , "appletvsimulator" ) ;
207
+ } else {
208
+ cmake_cfg. define ( "CMAKE_OSX_SYSROOT" , "appletvos" ) ;
209
+ }
210
+ }
203
211
}
204
212
205
213
if target_os ( ) == "android" {
Original file line number Diff line number Diff line change @@ -942,6 +942,7 @@ fn invoke_external_bindgen(
942
942
if let Some ( prefix_str) = prefix {
943
943
sym_prefix = if target_os ( ) . to_lowercase ( ) == "macos"
944
944
|| target_os ( ) . to_lowercase ( ) == "ios"
945
+ || target_os ( ) . to_lowercase ( ) == "tvos"
945
946
|| ( target_os ( ) . to_lowercase ( ) == "windows" && target_arch ( ) == "x86" )
946
947
{
947
948
format ! ( "_{prefix_str}_" )
You can’t perform that action at this time.
0 commit comments