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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 # TODO(ljubomir): Unset rtc_use_openmax_dl for mips64el once mips64el gets | 71 # TODO(ljubomir): Unset rtc_use_openmax_dl for mips64el once mips64el gets |
72 # supported in GN (since openmax_dl is not supported for mips64el). | 72 # supported in GN (since openmax_dl is not supported for mips64el). |
73 if (!is_ios && (current_cpu != "arm" || arm_version >= 7)) { | 73 if (!is_ios && (current_cpu != "arm" || arm_version >= 7)) { |
74 rtc_use_openmax_dl = true | 74 rtc_use_openmax_dl = true |
75 } else { | 75 } else { |
76 rtc_use_openmax_dl = false | 76 rtc_use_openmax_dl = false |
77 } | 77 } |
78 | 78 |
79 # Determines whether NEON code will be built. | 79 # Determines whether NEON code will be built. |
80 rtc_build_with_neon = | 80 rtc_build_with_neon = |
81 (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)) || | 81 (current_cpu == "arm" && arm_use_neon) || current_cpu == "arm64" |
82 current_cpu == "arm64" | |
83 | 82 |
84 # Enable this to use HW H.264 encoder/decoder on iOS PeerConnections. | 83 # Enable this to use HW H.264 encoder/decoder on iOS PeerConnections. |
85 # Enabling this may break interop with Android clients that support H264. | 84 # Enabling this may break interop with Android clients that support H264. |
86 rtc_use_objc_h264 = false | 85 rtc_use_objc_h264 = false |
87 | 86 |
88 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on | 87 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on |
89 # all platforms except Android and iOS. Because FFmpeg can be built | 88 # all platforms except Android and iOS. Because FFmpeg can be built |
90 # with/without H.264 support, |ffmpeg_branding| has to separately be set to a | 89 # with/without H.264 support, |ffmpeg_branding| has to separately be set to a |
91 # value that includes H.264, for example "Chrome". If FFmpeg is built without | 90 # value that includes H.264, for example "Chrome". If FFmpeg is built without |
92 # H.264, compilation succeeds but |H264DecoderImpl| fails to initialize. See | 91 # H.264, compilation succeeds but |H264DecoderImpl| fails to initialize. See |
(...skipping 16 matching lines...) Expand all Loading... |
109 declare_args() { | 108 declare_args() { |
110 # Include the iLBC audio codec? | 109 # Include the iLBC audio codec? |
111 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) | 110 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) |
112 } | 111 } |
113 | 112 |
114 # Make it possible to provide custom locations for some libraries (move these | 113 # Make it possible to provide custom locations for some libraries (move these |
115 # up into declare_args should we need to actually use them for the GN build). | 114 # up into declare_args should we need to actually use them for the GN build). |
116 rtc_libvpx_dir = "//third_party/libvpx" | 115 rtc_libvpx_dir = "//third_party/libvpx" |
117 rtc_libyuv_dir = "//third_party/libyuv" | 116 rtc_libyuv_dir = "//third_party/libyuv" |
118 rtc_opus_dir = "//third_party/opus" | 117 rtc_opus_dir = "//third_party/opus" |
OLD | NEW |