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 = [] | |
96 deps = [] | 95 deps = [] |
97 configs += [ "..:common_config" ] | 96 configs += [ "..:common_config" ] |
98 public_configs = [ "..:common_inherited_config" ] | 97 public_configs = [ "..:common_inherited_config" ] |
99 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] | 98 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] |
100 | 99 |
101 sources = [ | 100 sources = [ |
102 "array_view.h", | 101 "array_view.h", |
103 "atomicops.h", | 102 "atomicops.h", |
104 "bind.h", | 103 "bind.h", |
105 "bitbuffer.cc", | 104 "bitbuffer.cc", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 "safe_conversions_impl.h", | 146 "safe_conversions_impl.h", |
148 "scoped_ptr.h", | 147 "scoped_ptr.h", |
149 "scoped_ref_ptr.h", | 148 "scoped_ref_ptr.h", |
150 "stringencode.cc", | 149 "stringencode.cc", |
151 "stringencode.h", | 150 "stringencode.h", |
152 "stringutils.cc", | 151 "stringutils.cc", |
153 "stringutils.h", | 152 "stringutils.h", |
154 "swap_queue.h", | 153 "swap_queue.h", |
155 "systeminfo.cc", | 154 "systeminfo.cc", |
156 "systeminfo.h", | 155 "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", | |
163 "template_util.h", | 156 "template_util.h", |
164 "thread_annotations.h", | 157 "thread_annotations.h", |
165 "thread_checker.h", | 158 "thread_checker.h", |
166 "thread_checker_impl.cc", | 159 "thread_checker_impl.cc", |
167 "thread_checker_impl.h", | 160 "thread_checker_impl.h", |
168 "timeutils.cc", | 161 "timeutils.cc", |
169 "timeutils.h", | 162 "timeutils.h", |
170 "trace_event.h", | 163 "trace_event.h", |
171 ] | 164 ] |
172 | 165 |
173 if (build_with_chromium) { | 166 if (build_with_chromium) { |
174 # Dependency on chromium's logging (in //base). | 167 # Dependency on chromium's logging (in //base). |
175 deps += [ "//base:base" ] | 168 deps += [ "//base:base" ] |
176 sources += [ | 169 sources += [ |
177 "../../webrtc_overrides/webrtc/base/logging.cc", | 170 "../../webrtc_overrides/webrtc/base/logging.cc", |
178 "../../webrtc_overrides/webrtc/base/logging.h", | 171 "../../webrtc_overrides/webrtc/base/logging.h", |
179 ] | 172 ] |
180 include_dirs = [ "../../webrtc_overrides" ] | 173 include_dirs = [ "../../webrtc_overrides" ] |
181 } else { | 174 } else { |
182 sources += [ | 175 sources += [ |
183 "logging.cc", | 176 "logging.cc", |
184 "logging.h", | 177 "logging.h", |
185 "logging_mac.mm", | 178 "logging_mac.mm", |
186 ] | 179 ] |
187 } | 180 } |
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 } | |
201 } | 181 } |
202 | 182 |
203 static_library("rtc_base") { | 183 static_library("rtc_base") { |
204 cflags = [] | 184 cflags = [] |
205 cflags_cc = [] | 185 cflags_cc = [] |
206 libs = [] | 186 libs = [] |
207 deps = [ | 187 deps = [ |
208 "..:webrtc_common", | 188 "..:webrtc_common", |
209 ] | 189 ] |
210 public_deps = [ | 190 public_deps = [ |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 defines += [ "timezone=_timezone" ] | 595 defines += [ "timezone=_timezone" ] |
616 sources -= [ "ifaddrs_converter.cc" ] | 596 sources -= [ "ifaddrs_converter.cc" ] |
617 } | 597 } |
618 } | 598 } |
619 | 599 |
620 source_set("gtest_prod") { | 600 source_set("gtest_prod") { |
621 sources = [ | 601 sources = [ |
622 "gtest_prod_util.h", | 602 "gtest_prod_util.h", |
623 ] | 603 ] |
624 } | 604 } |
OLD | NEW |