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

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: Move gyp define 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
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',
125 ],
126 'defines': [
127 'WEBRTC_BUILD_LIBEVENT',
128 ],
124 }, { 129 }, {
125 'sources!': [ 'task_queue_libevent.cc' ], 130 # If not libevent, fall back to the other task queues.
126 'conditions': [ 131 'conditions': [
127 ['OS=="linux" or OS=="android"', { 132 ['OS=="mac" or OS=="ios"', {
128 'sources!': [ 'task_queue_posix.cc' ], 133 'sources': [
134 'task_queue_gcd.cc',
135 'task_queue_posix.cc',
136 ],
129 }], 137 }],
138 ['OS=="win"', {
139 'sources': [ 'task_queue_win.cc' ],
140 }]
130 ], 141 ],
131 }], 142 }],
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', { 143 ['OS=="mac" and build_with_chromium==0', {
136 'all_dependent_settings': { 144 'all_dependent_settings': {
137 'xcode_settings': { 145 'xcode_settings': {
138 'OTHER_LDFLAGS': [ 146 'OTHER_LDFLAGS': [
139 # needed for logging_mac.mm 147 # needed for logging_mac.mm
140 '-framework Foundation', 148 '-framework Foundation',
141 ], 149 ],
142 }, 150 },
143 }, 151 },
144 }], # OS=="mac" and build_with_chromium==0 152 }], # OS=="mac" and build_with_chromium==0
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 }, 629 },
622 { 630 {
623 'target_name': 'gtest_prod', 631 'target_name': 'gtest_prod',
624 'type': 'static_library', 632 'type': 'static_library',
625 'sources': [ 633 'sources': [
626 'gtest_prod_util.h', 634 'gtest_prod_util.h',
627 ], 635 ],
628 }, 636 },
629 ], 637 ],
630 } 638 }
OLDNEW
« webrtc/base/BUILD.gn ('K') | « webrtc/base/BUILD.gn ('k') | webrtc/build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698