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/crypto.gni") | 9 import("//build/config/crypto.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 "safe_conversions.h", | 140 "safe_conversions.h", |
141 "safe_conversions_impl.h", | 141 "safe_conversions_impl.h", |
142 "scoped_ref_ptr.h", | 142 "scoped_ref_ptr.h", |
143 "stringencode.cc", | 143 "stringencode.cc", |
144 "stringencode.h", | 144 "stringencode.h", |
145 "stringutils.cc", | 145 "stringutils.cc", |
146 "stringutils.h", | 146 "stringutils.h", |
147 "swap_queue.h", | 147 "swap_queue.h", |
148 "systeminfo.cc", | 148 "systeminfo.cc", |
149 "systeminfo.h", | 149 "systeminfo.h", |
150 "task_queue.h", | |
151 "task_queue_posix.h", | |
152 "template_util.h", | 150 "template_util.h", |
153 "thread_annotations.h", | 151 "thread_annotations.h", |
154 "thread_checker.h", | 152 "thread_checker.h", |
155 "thread_checker_impl.cc", | 153 "thread_checker_impl.cc", |
156 "thread_checker_impl.h", | 154 "thread_checker_impl.h", |
157 "timeutils.cc", | 155 "timeutils.cc", |
158 "timeutils.h", | 156 "timeutils.h", |
159 "trace_event.h", | 157 "trace_event.h", |
160 ] | 158 ] |
161 | 159 |
162 if (build_with_chromium) { | 160 if (build_with_chromium) { |
163 # Dependency on chromium's logging (in //base). | 161 # Dependency on chromium's logging (in //base). |
164 deps += [ "//base:base" ] | 162 deps += [ "//base:base" ] |
165 sources += [ | 163 sources += [ |
166 "../../webrtc_overrides/webrtc/base/logging.cc", | 164 "../../webrtc_overrides/webrtc/base/logging.cc", |
167 "../../webrtc_overrides/webrtc/base/logging.h", | 165 "../../webrtc_overrides/webrtc/base/logging.h", |
168 ] | 166 ] |
169 include_dirs = [ "../../webrtc_overrides" ] | 167 include_dirs = [ "../../webrtc_overrides" ] |
170 } else { | 168 } else { |
171 sources += [ | 169 sources += [ |
172 "logging.cc", | 170 "logging.cc", |
173 "logging.h", | 171 "logging.h", |
174 "logging_mac.mm", | 172 "logging_mac.mm", |
175 ] | 173 ] |
176 } | 174 } |
| 175 } |
| 176 |
| 177 static_library("rtc_task_queue") { |
| 178 public_deps = [ ":rtc_base_approved" ] |
| 179 configs += [ "..:common_config" ] |
| 180 |
| 181 sources = [ |
| 182 "task_queue.h", |
| 183 "task_queue_posix.h", |
| 184 ] |
177 | 185 |
178 if (rtc_build_libevent) { | 186 if (rtc_build_libevent) { |
179 deps += [ "//base/third_party/libevent" ] | 187 deps = [ "//base/third_party/libevent" ] |
180 } | 188 } |
| 189 |
181 if (rtc_enable_libevent) { | 190 if (rtc_enable_libevent) { |
182 sources += [ | 191 sources += [ |
183 "task_queue_libevent.cc", | 192 "task_queue_libevent.cc", |
184 "task_queue_posix.cc", | 193 "task_queue_posix.cc", |
185 ] | 194 ] |
186 } else { | 195 } else { |
187 # If not libevent, fall back to the other task queues. | |
188 if (is_mac || is_ios) { | 196 if (is_mac || is_ios) { |
189 sources += [ | 197 sources += [ |
190 "task_queue_gcd.cc", | 198 "task_queue_gcd.cc", |
191 "task_queue_posix.cc", | 199 "task_queue_posix.cc", |
192 ] | 200 ] |
193 } | 201 } |
194 if (is_win) { | 202 if (is_win) { |
195 sources += [ "task_queue_win.cc" ] | 203 sources += [ "task_queue_win.cc" ] |
196 } | 204 } |
197 } | 205 } |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 defines += [ "timezone=_timezone" ] | 619 defines += [ "timezone=_timezone" ] |
612 sources -= [ "ifaddrs_converter.cc" ] | 620 sources -= [ "ifaddrs_converter.cc" ] |
613 } | 621 } |
614 } | 622 } |
615 | 623 |
616 source_set("gtest_prod") { | 624 source_set("gtest_prod") { |
617 sources = [ | 625 sources = [ |
618 "gtest_prod_util.h", | 626 "gtest_prod_util.h", |
619 ] | 627 ] |
620 } | 628 } |
OLD | NEW |