Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: webrtc/base/BUILD.gn

Issue 2153563003: Move WEBRTC_BUILD_LIBEVENT definition to base/BUILD.gn and base/base.gyp. This use all_dependent_co… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed gn and gyp format. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/base/base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 include_dirs = [ "../../webrtc_overrides" ] 180 include_dirs = [ "../../webrtc_overrides" ]
181 } else { 181 } else {
182 sources += [ 182 sources += [
183 "logging.cc", 183 "logging.cc",
184 "logging.h", 184 "logging.h",
185 "logging_mac.mm", 185 "logging_mac.mm",
186 ] 186 ]
187 } 187 }
188 } 188 }
189 189
190 config("enable_libevent_config") {
191 defines = [ "WEBRTC_BUILD_LIBEVENT" ]
192 }
193
190 static_library("rtc_task_queue") { 194 static_library("rtc_task_queue") {
191 public_deps = [ 195 public_deps = [
192 ":rtc_base_approved", 196 ":rtc_base_approved",
193 ] 197 ]
194 configs += [ "..:common_config" ] 198 configs += [ "..:common_config" ]
195 199
196 sources = [ 200 sources = [
197 "sequenced_task_checker.h", 201 "sequenced_task_checker.h",
198 "sequenced_task_checker_impl.cc", 202 "sequenced_task_checker_impl.cc",
199 "sequenced_task_checker_impl.h", 203 "sequenced_task_checker_impl.h",
200 "task_queue.h", 204 "task_queue.h",
201 "task_queue_posix.h", 205 "task_queue_posix.h",
202 ] 206 ]
203 207
204 if (rtc_build_libevent) { 208 if (rtc_build_libevent) {
205 deps = [ 209 deps = [
206 "//base/third_party/libevent", 210 "//base/third_party/libevent",
207 ] 211 ]
208 } 212 }
209 213
210 if (rtc_enable_libevent) { 214 if (rtc_enable_libevent) {
211 sources += [ 215 sources += [
212 "task_queue_libevent.cc", 216 "task_queue_libevent.cc",
213 "task_queue_posix.cc", 217 "task_queue_posix.cc",
214 ] 218 ]
219 all_dependent_configs = [ ":enable_libevent_config" ]
215 } else { 220 } else {
216 if (is_mac || is_ios) { 221 if (is_mac || is_ios) {
217 sources += [ 222 sources += [
218 "task_queue_gcd.cc", 223 "task_queue_gcd.cc",
219 "task_queue_posix.cc", 224 "task_queue_posix.cc",
220 ] 225 ]
221 } 226 }
222 if (is_win) { 227 if (is_win) {
223 sources += [ "task_queue_win.cc" ] 228 sources += [ "task_queue_win.cc" ]
224 } 229 }
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 "java/src/org/webrtc/Logging.java", 703 "java/src/org/webrtc/Logging.java",
699 "java/src/org/webrtc/Size.java", 704 "java/src/org/webrtc/Size.java",
700 "java/src/org/webrtc/ThreadUtils.java", 705 "java/src/org/webrtc/ThreadUtils.java",
701 ] 706 ]
702 707
703 deps = [ 708 deps = [
704 "//base:base_java", 709 "//base:base_java",
705 ] 710 ]
706 } 711 }
707 } 712 }
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698