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 { | 9 { |
10 'includes': [ '../build/common.gypi', ], | 10 'includes': [ '../build/common.gypi', ], |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 { | 134 { |
135 'target_name': 'rtc_task_queue', | 135 'target_name': 'rtc_task_queue', |
136 'type': 'static_library', | 136 'type': 'static_library', |
137 'dependencies': [ | 137 'dependencies': [ |
138 'rtc_base_approved', | 138 'rtc_base_approved', |
139 ], | 139 ], |
140 'sources': [ | 140 'sources': [ |
141 'sequenced_task_checker.h', | 141 'sequenced_task_checker.h', |
142 'sequenced_task_checker_impl.cc', | 142 'sequenced_task_checker_impl.cc', |
143 'sequenced_task_checker_impl.h', | 143 'sequenced_task_checker_impl.h', |
144 'task_queue.h', | |
145 'task_queue_posix.h', | |
146 ], | 144 ], |
147 'conditions': [ | 145 'conditions': [ |
148 ['build_libevent==1', { | 146 ['build_with_chromium==1', { |
149 'dependencies': [ | 147 'include_dirs': [ |
150 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent', | 148 '../../webrtc_overrides' |
151 ], | 149 ], |
152 }], | 150 'sources' : [ |
153 ['enable_libevent==1', { | 151 '../../webrtc_overrides/webrtc/base/task_queue.cc', |
154 'sources': [ | 152 '../../webrtc_overrides/webrtc/base/task_queue.h', |
155 'task_queue_libevent.cc', | 153 ] |
156 'task_queue_posix.cc', | 154 } , { |
| 155 # If not build for chromium, use our own implementation. |
| 156 'sources' : [ |
| 157 'task_queue.h', |
| 158 'task_queue_posix.h', |
157 ], | 159 ], |
158 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ], | |
159 'all_dependent_settings': { | |
160 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ] | |
161 }, | |
162 }, { | |
163 # If not libevent, fall back to the other task queues. | |
164 'conditions': [ | 160 'conditions': [ |
165 ['OS=="mac" or OS=="ios"', { | 161 ['build_libevent==1', { |
166 'sources': [ | 162 'dependencies': [ |
167 'task_queue_gcd.cc', | 163 '<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent', |
168 'task_queue_posix.cc', | 164 ], |
169 ], | |
170 }], | 165 }], |
171 ['OS=="win"', { | 166 ['enable_libevent==1', { |
172 'sources': [ 'task_queue_win.cc' ], | 167 'sources': [ |
173 }] | 168 'task_queue_libevent.cc', |
174 ], | 169 'task_queue_posix.cc', |
| 170 ], |
| 171 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ], |
| 172 'all_dependent_settings': { |
| 173 'defines': [ 'WEBRTC_BUILD_LIBEVENT' ] |
| 174 }, |
| 175 }, { |
| 176 # If not libevent, fall back to the other task queues. |
| 177 'conditions': [ |
| 178 ['OS=="mac" or OS=="ios"', { |
| 179 'sources': [ |
| 180 'task_queue_gcd.cc', |
| 181 'task_queue_posix.cc', |
| 182 ], |
| 183 }], |
| 184 ['OS=="win"', { |
| 185 'sources': [ 'task_queue_win.cc' ], |
| 186 }] |
| 187 ], |
| 188 }], |
| 189 ] |
175 }], | 190 }], |
176 ], | 191 ], |
177 }, | 192 }, |
178 { | 193 { |
179 'target_name': 'rtc_base', | 194 'target_name': 'rtc_base', |
180 'type': 'static_library', | 195 'type': 'static_library', |
181 'dependencies': [ | 196 'dependencies': [ |
182 '<(webrtc_root)/common.gyp:webrtc_common', | 197 '<(webrtc_root)/common.gyp:webrtc_common', |
183 'rtc_base_approved', | 198 'rtc_base_approved', |
184 ], | 199 ], |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 }, | 667 }, |
653 { | 668 { |
654 'target_name': 'gtest_prod', | 669 'target_name': 'gtest_prod', |
655 'type': 'static_library', | 670 'type': 'static_library', |
656 'sources': [ | 671 'sources': [ |
657 'gtest_prod_util.h', | 672 'gtest_prod_util.h', |
658 ], | 673 ], |
659 }, | 674 }, |
660 ], | 675 ], |
661 } | 676 } |
OLD | NEW |