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

Unified Diff: webrtc/base/base.gyp

Issue 1980003002: Separate building and enabling libevent. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Better attempt at cleanup Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/base.gyp
diff --git a/webrtc/base/base.gyp b/webrtc/base/base.gyp
index 4564504aabf01390c1a12829b73a7145b53f0744..d24bedb49db800ecc5f16db63198bf047780664b 100644
--- a/webrtc/base/base.gyp
+++ b/webrtc/base/base.gyp
@@ -84,11 +84,7 @@
'systeminfo.cc',
'systeminfo.h',
'task_queue.h',
- 'task_queue_libevent.cc',
- 'task_queue_gcd.cc',
- 'task_queue_posix.cc',
'task_queue_posix.h',
kjellander_webrtc 2016/05/16 13:26:13 Move 'task_queue.h' and 'task_queue_posix.h' into
tommi 2016/05/16 13:28:55 the posix file is also needed for mac.
phoglund 2016/05/16 14:18:45 Yeah, look at the new patch set. I think we should
kjellander_webrtc 2016/05/16 14:27:05 Fair enough.
- 'task_queue_win.cc',
'template_util.h',
'thread_annotations.h',
'thread_checker.h',
@@ -121,17 +117,21 @@
'dependencies': [
'<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
],
- }, {
- 'sources!': [ 'task_queue_libevent.cc' ],
+ }],
+ ['enable_libevent==1', {
+ 'sources': [ 'task_queue_libevent.cc' ],
'conditions': [
['OS=="linux" or OS=="android"', {
- 'sources!': [ 'task_queue_posix.cc' ],
+ 'sources': [ 'task_queue_posix.cc' ],
+ }],
+ ['OS=="win"', {
+ 'sources': [ 'task_queue_win.cc' ],
+ }],
+ ['OS!="linux" and OS!="android" and OS!="win"', {
phoglund 2016/05/16 13:18:01 I thought this was cleaner than nesting 'condition
phoglund 2016/05/16 13:18:27 Also this should translate cleanly to GN.
+ 'sources': [ 'task_queue_gcd.cc' ],
}],
],
}],
- ['build_libevent==1 or OS=="linux" or OS=="android" or OS=="win"', {
- 'sources!': [ 'task_queue_gcd.cc' ],
- }],
['OS=="mac" and build_with_chromium==0', {
'all_dependent_settings': {
'xcode_settings': {
« no previous file with comments | « no previous file | webrtc/build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698