| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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", | 150 "task_queue.h", |
| 151 "task_queue_gcd.cc", | |
| 152 "task_queue_libevent.cc", | |
| 153 "task_queue_posix.cc", | |
| 154 "task_queue_posix.h", | 151 "task_queue_posix.h", |
| 155 "task_queue_win.cc", | |
| 156 "template_util.h", | 152 "template_util.h", |
| 157 "thread_annotations.h", | 153 "thread_annotations.h", |
| 158 "thread_checker.h", | 154 "thread_checker.h", |
| 159 "thread_checker_impl.cc", | 155 "thread_checker_impl.cc", |
| 160 "thread_checker_impl.h", | 156 "thread_checker_impl.h", |
| 161 "timeutils.cc", | 157 "timeutils.cc", |
| 162 "timeutils.h", | 158 "timeutils.h", |
| 163 "trace_event.h", | 159 "trace_event.h", |
| 164 ] | 160 ] |
| 165 | 161 |
| 166 if (build_with_chromium) { | 162 if (build_with_chromium) { |
| 167 # Dependency on chromium's logging (in //base). | 163 # Dependency on chromium's logging (in //base). |
| 168 deps += [ "//base:base" ] | 164 deps += [ "//base:base" ] |
| 169 sources += [ | 165 sources += [ |
| 170 "../../webrtc_overrides/webrtc/base/logging.cc", | 166 "../../webrtc_overrides/webrtc/base/logging.cc", |
| 171 "../../webrtc_overrides/webrtc/base/logging.h", | 167 "../../webrtc_overrides/webrtc/base/logging.h", |
| 172 ] | 168 ] |
| 173 include_dirs = [ "../../webrtc_overrides" ] | 169 include_dirs = [ "../../webrtc_overrides" ] |
| 174 } else { | 170 } else { |
| 175 sources += [ | 171 sources += [ |
| 176 "logging.cc", | 172 "logging.cc", |
| 177 "logging.h", | 173 "logging.h", |
| 178 "logging_mac.mm", | 174 "logging_mac.mm", |
| 179 ] | 175 ] |
| 180 } | 176 } |
| 181 | 177 |
| 182 if (!is_win && !is_mac && !is_ios && !is_nacl) { | 178 if (rtc_build_libevent) { |
| 183 deps += [ "//base/third_party/libevent" ] | 179 deps += [ "//base/third_party/libevent" ] |
| 184 defines += [ "WEBRTC_BUILD_LIBEVENT" ] | |
| 185 } | 180 } |
| 186 | 181 if (rtc_enable_libevent) { |
| 187 if (is_mac || is_ios || is_win || is_nacl) { | 182 sources += [ |
| 188 sources -= [ "task_queue_libevent.cc" ] | 183 "task_queue_libevent.cc", |
| 189 } | 184 "task_queue_posix.cc", |
| 190 | 185 ] |
| 191 if (is_linux || is_android || is_win || is_nacl) { | 186 } else { |
| 192 sources -= [ "task_queue_gcd.cc" ] | 187 # If not libevent, fall back to the other task queues. |
| 193 } | 188 if (is_mac || is_ios) { |
| 194 | 189 sources += [ |
| 195 if (is_nacl) { | 190 "task_queue_gcd.cc", |
| 196 sources -= [ "task_queue_posix.cc" ] | 191 "task_queue_posix.cc", |
| 192 ] |
| 193 } |
| 194 if (is_win) { |
| 195 sources += [ "task_queue_win.cc" ] |
| 196 } |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 | 199 |
| 200 static_library("rtc_base") { | 200 static_library("rtc_base") { |
| 201 cflags = [] | 201 cflags = [] |
| 202 cflags_cc = [] | 202 cflags_cc = [] |
| 203 libs = [] | 203 libs = [] |
| 204 deps = [ | 204 deps = [ |
| 205 "..:webrtc_common", | 205 "..:webrtc_common", |
| 206 ] | 206 ] |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 defines += [ "timezone=_timezone" ] | 611 defines += [ "timezone=_timezone" ] |
| 612 sources -= [ "ifaddrs_converter.cc" ] | 612 sources -= [ "ifaddrs_converter.cc" ] |
| 613 } | 613 } |
| 614 } | 614 } |
| 615 | 615 |
| 616 source_set("gtest_prod") { | 616 source_set("gtest_prod") { |
| 617 sources = [ | 617 sources = [ |
| 618 "gtest_prod_util.h", | 618 "gtest_prod_util.h", |
| 619 ] | 619 ] |
| 620 } | 620 } |
| OLD | NEW |