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

Side by Side Diff: webrtc/base/base.gyp

Issue 1980003002: Separate building and enabling libevent. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Yet another attempt 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/build/common.gypi » ('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 { 9 {
10 'includes': [ '../build/common.gypi', ], 10 'includes': [ '../build/common.gypi', ],
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 'safe_conversions_impl.h', 77 'safe_conversions_impl.h',
78 'scoped_ref_ptr.h', 78 'scoped_ref_ptr.h',
79 'stringencode.cc', 79 'stringencode.cc',
80 'stringencode.h', 80 'stringencode.h',
81 'stringutils.cc', 81 'stringutils.cc',
82 'stringutils.h', 82 'stringutils.h',
83 'swap_queue.h', 83 'swap_queue.h',
84 'systeminfo.cc', 84 'systeminfo.cc',
85 'systeminfo.h', 85 'systeminfo.h',
86 'task_queue.h', 86 'task_queue.h',
87 'task_queue_libevent.cc',
88 'task_queue_gcd.cc',
89 'task_queue_posix.cc',
90 'task_queue_posix.h', 87 'task_queue_posix.h',
91 'task_queue_win.cc',
92 'template_util.h', 88 'template_util.h',
93 'thread_annotations.h', 89 'thread_annotations.h',
94 'thread_checker.h', 90 'thread_checker.h',
95 'thread_checker_impl.cc', 91 'thread_checker_impl.cc',
96 'thread_checker_impl.h', 92 'thread_checker_impl.h',
97 'timeutils.cc', 93 'timeutils.cc',
98 'timeutils.h', 94 'timeutils.h',
99 'trace_event.h', 95 'trace_event.h',
100 ], 96 ],
101 'conditions': [ 97 'conditions': [
(...skipping 12 matching lines...) Expand all
114 'sources': [ 110 'sources': [
115 'logging.cc', 111 'logging.cc',
116 'logging.h', 112 'logging.h',
117 'logging_mac.mm', 113 'logging_mac.mm',
118 ], 114 ],
119 }], 115 }],
120 ['build_libevent==1', { 116 ['build_libevent==1', {
121 'dependencies': [ 117 'dependencies': [
122 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent', 118 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
123 ], 119 ],
120 }],
121 ['enable_libevent==1', {
122 'sources': [
123 'task_queue_libevent.cc',
124 'task_queue_posix.cc',
phoglund 2016/05/16 14:18:45 I don't like putting the posix file in two places
kjellander_webrtc 2016/05/16 14:27:05 That's fine with me, simplicity is key. It's still
125 ],
124 }, { 126 }, {
125 'sources!': [ 'task_queue_libevent.cc' ], 127 # If not libevent, fall back to the old task queues.
tommi 2016/05/16 14:35:04 s/old/other
126 'conditions': [ 128 'conditions': [
127 ['OS=="linux" or OS=="android"', { 129 ['OS=="mac" or OS=="ios"', {
128 'sources!': [ 'task_queue_posix.cc' ], 130 'sources': [
131 'task_queue_gcd.cc',
132 'task_queue_posix.cc',
133 ],
129 }], 134 }],
135 ['OS=="win"', {
136 'sources': [ 'task_queue_win.cc' ],
137 }]
130 ], 138 ],
131 }], 139 }],
132 ['build_libevent==1 or OS=="linux" or OS=="android" or OS=="win"', {
133 'sources!': [ 'task_queue_gcd.cc' ],
134 }],
135 ['OS=="mac" and build_with_chromium==0', { 140 ['OS=="mac" and build_with_chromium==0', {
136 'all_dependent_settings': { 141 'all_dependent_settings': {
137 'xcode_settings': { 142 'xcode_settings': {
138 'OTHER_LDFLAGS': [ 143 'OTHER_LDFLAGS': [
139 # needed for logging_mac.mm 144 # needed for logging_mac.mm
140 '-framework Foundation', 145 '-framework Foundation',
141 ], 146 ],
142 }, 147 },
143 }, 148 },
144 }], # OS=="mac" and build_with_chromium==0 149 }], # OS=="mac" and build_with_chromium==0
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 }, 626 },
622 { 627 {
623 'target_name': 'gtest_prod', 628 'target_name': 'gtest_prod',
624 'type': 'static_library', 629 'type': 'static_library',
625 'sources': [ 630 'sources': [
626 'gtest_prod_util.h', 631 'gtest_prod_util.h',
627 ], 632 ],
628 }, 633 },
629 ], 634 ],
630 } 635 }
OLDNEW
« 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