summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/build/toolchain/ios/BUILD.gn
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/libwebrtc/build/toolchain/ios/BUILD.gn
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/build/toolchain/ios/BUILD.gn')
-rw-r--r--third_party/libwebrtc/build/toolchain/ios/BUILD.gn113
1 files changed, 113 insertions, 0 deletions
diff --git a/third_party/libwebrtc/build/toolchain/ios/BUILD.gn b/third_party/libwebrtc/build/toolchain/ios/BUILD.gn
new file mode 100644
index 0000000000..4c9cc586d2
--- /dev/null
+++ b/third_party/libwebrtc/build/toolchain/ios/BUILD.gn
@@ -0,0 +1,113 @@
+# Copyright 2021 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/ios/ios_sdk.gni")
+import("//build/toolchain/apple/toolchain.gni")
+
+# Specialisation of the apple_toolchain template to declare the toolchain
+# and its tools to build target for iOS platform.
+template("ios_toolchain") {
+ assert(defined(invoker.toolchain_args),
+ "Toolchains must declare toolchain_args")
+
+ apple_toolchain(target_name) {
+ forward_variables_from(invoker, "*", [ "toolchain_args" ])
+
+ sdk_developer_dir = ios_sdk_developer_dir
+ deployment_target = ios_deployment_target
+ sdk_name = ios_sdk_name
+ bin_path = ios_bin_path
+ strip_with_lipo = true
+
+ toolchain_args = {
+ forward_variables_from(invoker.toolchain_args, "*")
+ current_os = "ios"
+ }
+ }
+}
+
+ios_toolchain("ios_clang_arm64") {
+ toolchain_args = {
+ target_cpu = "arm64"
+ }
+}
+
+ios_toolchain("ios_clang_arm64_13_0") {
+ toolchain_args = {
+ target_cpu = "arm64"
+ ios_deployment_target = "13.0"
+ }
+}
+
+ios_toolchain("ios_clang_arm64_14_0") {
+ toolchain_args = {
+ target_cpu = "arm64"
+ ios_deployment_target = "14.0"
+ }
+}
+
+ios_toolchain("ios_clang_arm64_fat_arm") {
+ toolchain_args = {
+ target_cpu = "arm"
+ is_fat_secondary_toolchain = true
+ primary_fat_toolchain_name = "//build/toolchain/ios:ios_clang_arm64"
+ }
+}
+
+ios_toolchain("ios_clang_arm") {
+ toolchain_args = {
+ target_cpu = "arm"
+ }
+}
+
+ios_toolchain("ios_clang_x64") {
+ toolchain_args = {
+ target_cpu = "x64"
+ }
+}
+
+ios_toolchain("ios_clang_x64_fat_arm64") {
+ toolchain_args = {
+ target_cpu = "arm64"
+ is_fat_secondary_toolchain = true
+ primary_fat_toolchain_name = "//build/toolchain/ios:ios_clang_x64"
+ }
+}
+
+ios_toolchain("ios_clang_x64_13_0") {
+ toolchain_args = {
+ target_cpu = "x64"
+ ios_deployment_target = "13.0"
+ }
+}
+
+ios_toolchain("ios_clang_x64_14_0") {
+ toolchain_args = {
+ target_cpu = "x64"
+ ios_deployment_target = "14.0"
+ }
+}
+
+ios_toolchain("ios_clang_x64_14_0_fat_arm64") {
+ toolchain_args = {
+ target_cpu = "arm64"
+ ios_deployment_target = "14.0"
+ is_fat_secondary_toolchain = true
+ primary_fat_toolchain_name = "//build/toolchain/ios:ios_clang_x64_14_0"
+ }
+}
+
+ios_toolchain("ios_clang_x64_fat_x86") {
+ toolchain_args = {
+ target_cpu = "x86"
+ is_fat_secondary_toolchain = true
+ primary_fat_toolchain_name = "//build/toolchain/ios:ios_clang_x64"
+ }
+}
+
+ios_toolchain("ios_clang_x86") {
+ toolchain_args = {
+ target_cpu = "x86"
+ }
+}