| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 if (is_ios) { | 70 if (is_ios) { |
| 71 rtc_enable_protobuf = false | 71 rtc_enable_protobuf = false |
| 72 } | 72 } |
| 73 | 73 |
| 74 if (current_cpu == "arm" || current_cpu == "arm64") { | 74 if (current_cpu == "arm" || current_cpu == "arm64") { |
| 75 rtc_prefer_fixed_point = true | 75 rtc_prefer_fixed_point = true |
| 76 } | 76 } |
| 77 | 77 |
| 78 # TODO(ljubomir): Unset rtc_use_openmax_dl for mips64el once mips64el gets | 78 if (!is_ios && (current_cpu != "arm" || arm_version >= 7) && |
| 79 # supported in GN (since openmax_dl is not supported for mips64el). | 79 current_cpu != "mips64el") { |
| 80 if (!is_ios && (current_cpu != "arm" || arm_version >= 7)) { | |
| 81 rtc_use_openmax_dl = true | 80 rtc_use_openmax_dl = true |
| 82 } else { | 81 } else { |
| 83 rtc_use_openmax_dl = false | 82 rtc_use_openmax_dl = false |
| 84 } | 83 } |
| 85 | 84 |
| 86 # Determines whether NEON code will be built. | 85 # Determines whether NEON code will be built. |
| 87 rtc_build_with_neon = | 86 rtc_build_with_neon = |
| 88 (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)) || | 87 (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)) || |
| 89 current_cpu == "arm64" | 88 current_cpu == "arm64" |
| 90 | 89 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 116 declare_args() { | 115 declare_args() { |
| 117 # Include the iLBC audio codec? | 116 # Include the iLBC audio codec? |
| 118 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) | 117 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) |
| 119 } | 118 } |
| 120 | 119 |
| 121 # Make it possible to provide custom locations for some libraries (move these | 120 # Make it possible to provide custom locations for some libraries (move these |
| 122 # up into declare_args should we need to actually use them for the GN build). | 121 # up into declare_args should we need to actually use them for the GN build). |
| 123 rtc_libvpx_dir = "//third_party/libvpx" | 122 rtc_libvpx_dir = "//third_party/libvpx" |
| 124 rtc_libyuv_dir = "//third_party/libyuv" | 123 rtc_libyuv_dir = "//third_party/libyuv" |
| 125 rtc_opus_dir = "//third_party/opus" | 124 rtc_opus_dir = "//third_party/opus" |
| OLD | NEW |