Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: webrtc/system_wrappers/BUILD.gn

Issue 1820133002: Implement CPU feature detection for ARM Linux. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: GN correction, dead file removal, formatting, stricter string structure test for AT_PLATFORM. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/system_wrappers/cpu_features_webrtc.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("../build/webrtc.gni") 10 import("../build/webrtc.gni")
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 defines += [ "WEBRTC_THREAD_RR" ] 101 defines += [ "WEBRTC_THREAD_RR" ]
102 102
103 deps += [ ":cpu_features_android" ] 103 deps += [ ":cpu_features_android" ]
104 104
105 libs += [ "log" ] 105 libs += [ "log" ]
106 } 106 }
107 107
108 if (is_linux) { 108 if (is_linux) {
109 defines += [ "WEBRTC_THREAD_RR" ] 109 defines += [ "WEBRTC_THREAD_RR" ]
110 110
111 if (!build_with_chromium) {
112 deps += [ ":cpu_features_linux" ]
113 }
114
111 libs += [ "rt" ] 115 libs += [ "rt" ]
112 } 116 }
113 117
114 if (!is_mac && !is_ios) { 118 if (!is_mac && !is_ios) {
115 sources += [ "source/atomic32_posix.cc" ] 119 sources += [ "source/atomic32_posix.cc" ]
116 } 120 }
117 121
118 if (is_ios || is_mac) { 122 if (is_ios || is_mac) {
119 defines += [ "WEBRTC_THREAD_RR" ] 123 defines += [ "WEBRTC_THREAD_RR" ]
120 } 124 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 "source/cpu_features_android.c", 175 "source/cpu_features_android.c",
172 ] 176 ]
173 177
174 configs += [ "..:common_config" ] 178 configs += [ "..:common_config" ]
175 public_configs = [ "..:common_inherited_config" ] 179 public_configs = [ "..:common_inherited_config" ]
176 deps = [ 180 deps = [
177 "//third_party/android_tools:cpu_features", 181 "//third_party/android_tools:cpu_features",
178 ] 182 ]
179 } 183 }
180 } 184 }
185
186 if (is_linux) {
187 source_set("cpu_features_linux") {
188 sources = [
189 "source/cpu_features_linux.c",
190 ]
191
192 configs += [ "..:common_config" ]
193 public_configs = [ "..:common_inherited_config" ]
194 }
195 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/system_wrappers/cpu_features_webrtc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698