-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-tvos.sh
More file actions
executable file
·28 lines (23 loc) · 982 Bytes
/
build-tvos.sh
File metadata and controls
executable file
·28 lines (23 loc) · 982 Bytes
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) shogo4405 and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD 3-Clause License found in the
# LICENSE file in the root directory of this source tree.
srt_tvos() {
OPENSSL=$(pwd)/OpenSSL/$1
mkdir -p ./build/tvos/$2
pushd ./build/tvos/$2
../../../srt/configure --cmake-prefix-path=$OPENSSL --visionos-platform=$2 --visionos-arch=arm64 --cmake-toolchain-file=scripts/tvOS.cmake --USE_OPENSSL_PC=off
make
popd
}
# visionOS
export TVOS_DEPLOYMENT_TARGET=13.0
cp tvOS.cmake srt/scripts
srt_tvos appletvsimulator SIMULATOR
srt_tvos appletvos OS
mkdir -p ./build/tvos/_SIMULATOR
libtool -static -o ./build/tvos/_SIMULATOR/libsrt.a ./build/tvos/SIMULATOR/libsrt.a ./OpenSSL/appletvsimulator/lib/libcrypto.a ./OpenSSL/appletvsimulator/lib/libssl.a
mkdir -p ./build/tvos/_OS
libtool -static -o ./build/tvos/_OS/libsrt.a ./build/tvos/OS/libsrt.a ./OpenSSL/appletvos/lib/libcrypto.a ./OpenSSL/appletvos/lib/libssl.a