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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 if (rtc_build_ssl == 0) { | 85 if (rtc_build_ssl == 0) { |
86 config("external_ssl_library") { | 86 config("external_ssl_library") { |
87 assert(rtc_ssl_root != "", | 87 assert(rtc_ssl_root != "", |
88 "You must specify rtc_ssl_root when rtc_build_ssl==0.") | 88 "You must specify rtc_ssl_root when rtc_build_ssl==0.") |
89 include_dirs = [ rtc_ssl_root ] | 89 include_dirs = [ rtc_ssl_root ] |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 # The subset of rtc_base approved for use outside of libjingle. | 93 # The subset of rtc_base approved for use outside of libjingle. |
94 static_library("rtc_base_approved") { | 94 static_library("rtc_base_approved") { |
| 95 defines = [] |
95 deps = [] | 96 deps = [] |
96 configs += [ "..:common_config" ] | 97 configs += [ "..:common_config" ] |
97 public_configs = [ "..:common_inherited_config" ] | 98 public_configs = [ "..:common_inherited_config" ] |
98 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] | 99 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] |
99 | 100 |
100 sources = [ | 101 sources = [ |
101 "array_view.h", | 102 "array_view.h", |
102 "atomicops.h", | 103 "atomicops.h", |
103 "bind.h", | 104 "bind.h", |
104 "bitbuffer.cc", | 105 "bitbuffer.cc", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 "safe_conversions_impl.h", | 147 "safe_conversions_impl.h", |
147 "scoped_ptr.h", | 148 "scoped_ptr.h", |
148 "scoped_ref_ptr.h", | 149 "scoped_ref_ptr.h", |
149 "stringencode.cc", | 150 "stringencode.cc", |
150 "stringencode.h", | 151 "stringencode.h", |
151 "stringutils.cc", | 152 "stringutils.cc", |
152 "stringutils.h", | 153 "stringutils.h", |
153 "swap_queue.h", | 154 "swap_queue.h", |
154 "systeminfo.cc", | 155 "systeminfo.cc", |
155 "systeminfo.h", | 156 "systeminfo.h", |
| 157 "task_queue.h", |
| 158 "task_queue_gcd.cc", |
| 159 "task_queue_libevent.cc", |
| 160 "task_queue_posix.cc", |
| 161 "task_queue_posix.h", |
| 162 "task_queue_win.cc", |
156 "template_util.h", | 163 "template_util.h", |
157 "thread_annotations.h", | 164 "thread_annotations.h", |
158 "thread_checker.h", | 165 "thread_checker.h", |
159 "thread_checker_impl.cc", | 166 "thread_checker_impl.cc", |
160 "thread_checker_impl.h", | 167 "thread_checker_impl.h", |
161 "timeutils.cc", | 168 "timeutils.cc", |
162 "timeutils.h", | 169 "timeutils.h", |
163 "trace_event.h", | 170 "trace_event.h", |
164 ] | 171 ] |
165 | 172 |
166 if (build_with_chromium) { | 173 if (build_with_chromium) { |
167 # Dependency on chromium's logging (in //base). | 174 # Dependency on chromium's logging (in //base). |
168 deps += [ "//base:base" ] | 175 deps += [ "//base:base" ] |
169 sources += [ | 176 sources += [ |
170 "../../webrtc_overrides/webrtc/base/logging.cc", | 177 "../../webrtc_overrides/webrtc/base/logging.cc", |
171 "../../webrtc_overrides/webrtc/base/logging.h", | 178 "../../webrtc_overrides/webrtc/base/logging.h", |
172 ] | 179 ] |
173 include_dirs = [ "../../webrtc_overrides" ] | 180 include_dirs = [ "../../webrtc_overrides" ] |
174 } else { | 181 } else { |
175 sources += [ | 182 sources += [ |
176 "logging.cc", | 183 "logging.cc", |
177 "logging.h", | 184 "logging.h", |
178 "logging_mac.mm", | 185 "logging_mac.mm", |
179 ] | 186 ] |
180 } | 187 } |
| 188 |
| 189 if (!is_win && !is_mac && !is_ios) { |
| 190 deps += [ "//base/third_party/libevent" ] |
| 191 defines += [ "WEBRTC_BUILD_LIBEVENT" ] |
| 192 } |
| 193 |
| 194 if (is_mac || is_ios || is_win) { |
| 195 sources -= [ "task_queue_libevent.cc" ] |
| 196 } |
| 197 |
| 198 if (is_linux || is_android || is_win) { |
| 199 sources -= [ "task_queue_gcd.cc" ] |
| 200 } |
181 } | 201 } |
182 | 202 |
183 static_library("rtc_base") { | 203 static_library("rtc_base") { |
184 cflags = [] | 204 cflags = [] |
185 cflags_cc = [] | 205 cflags_cc = [] |
186 libs = [] | 206 libs = [] |
187 deps = [ | 207 deps = [ |
188 "..:webrtc_common", | 208 "..:webrtc_common", |
189 ] | 209 ] |
190 public_deps = [ | 210 public_deps = [ |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 defines += [ "timezone=_timezone" ] | 615 defines += [ "timezone=_timezone" ] |
596 sources -= [ "ifaddrs_converter.cc" ] | 616 sources -= [ "ifaddrs_converter.cc" ] |
597 } | 617 } |
598 } | 618 } |
599 | 619 |
600 source_set("gtest_prod") { | 620 source_set("gtest_prod") { |
601 sources = [ | 621 sources = [ |
602 "gtest_prod_util.h", | 622 "gtest_prod_util.h", |
603 ] | 623 ] |
604 } | 624 } |
OLD | NEW |