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/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 Loading... |
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 Loading... |
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 } |
OLD | NEW |