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

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

Issue 1984503002: Reland of New task queueing primitive for async tasks: TaskQueue. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Optional initialization for build_for 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/base/base.gyp » ('j') | webrtc/base/base.gyp » ('J')
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (rtc_build_ssl == 0) { 79 if (rtc_build_ssl == 0) {
80 config("external_ssl_library") { 80 config("external_ssl_library") {
81 assert(rtc_ssl_root != "", 81 assert(rtc_ssl_root != "",
82 "You must specify rtc_ssl_root when rtc_build_ssl==0.") 82 "You must specify rtc_ssl_root when rtc_build_ssl==0.")
83 include_dirs = [ rtc_ssl_root ] 83 include_dirs = [ rtc_ssl_root ]
84 } 84 }
85 } 85 }
86 86
87 # The subset of rtc_base approved for use outside of libjingle. 87 # The subset of rtc_base approved for use outside of libjingle.
88 static_library("rtc_base_approved") { 88 static_library("rtc_base_approved") {
89 defines = []
89 deps = [] 90 deps = []
90 configs += [ "..:common_config" ] 91 configs += [ "..:common_config" ]
91 public_configs = [ "..:common_inherited_config" ] 92 public_configs = [ "..:common_inherited_config" ]
92 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] 93 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ]
93 94
94 sources = [ 95 sources = [
95 "array_view.h", 96 "array_view.h",
96 "atomicops.h", 97 "atomicops.h",
97 "bind.h", 98 "bind.h",
98 "bitbuffer.cc", 99 "bitbuffer.cc",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 "safe_conversions_impl.h", 141 "safe_conversions_impl.h",
141 "scoped_ptr.h", 142 "scoped_ptr.h",
142 "scoped_ref_ptr.h", 143 "scoped_ref_ptr.h",
143 "stringencode.cc", 144 "stringencode.cc",
144 "stringencode.h", 145 "stringencode.h",
145 "stringutils.cc", 146 "stringutils.cc",
146 "stringutils.h", 147 "stringutils.h",
147 "swap_queue.h", 148 "swap_queue.h",
148 "systeminfo.cc", 149 "systeminfo.cc",
149 "systeminfo.h", 150 "systeminfo.h",
151 "task_queue.h",
152 "task_queue_gcd.cc",
153 "task_queue_libevent.cc",
154 "task_queue_posix.cc",
155 "task_queue_posix.h",
156 "task_queue_win.cc",
150 "template_util.h", 157 "template_util.h",
151 "thread_annotations.h", 158 "thread_annotations.h",
152 "thread_checker.h", 159 "thread_checker.h",
153 "thread_checker_impl.cc", 160 "thread_checker_impl.cc",
154 "thread_checker_impl.h", 161 "thread_checker_impl.h",
155 "timeutils.cc", 162 "timeutils.cc",
156 "timeutils.h", 163 "timeutils.h",
157 "trace_event.h", 164 "trace_event.h",
158 ] 165 ]
159 166
160 if (build_with_chromium) { 167 if (build_with_chromium) {
161 # Dependency on chromium's logging (in //base). 168 # Dependency on chromium's logging (in //base).
162 deps += [ "//base:base" ] 169 deps += [ "//base:base" ]
163 sources += [ 170 sources += [
164 "../../webrtc_overrides/webrtc/base/logging.cc", 171 "../../webrtc_overrides/webrtc/base/logging.cc",
165 "../../webrtc_overrides/webrtc/base/logging.h", 172 "../../webrtc_overrides/webrtc/base/logging.h",
166 ] 173 ]
167 include_dirs = [ "../../webrtc_overrides" ] 174 include_dirs = [ "../../webrtc_overrides" ]
168 } else { 175 } else {
169 sources += [ 176 sources += [
170 "logging.cc", 177 "logging.cc",
171 "logging.h", 178 "logging.h",
172 "logging_mac.mm", 179 "logging_mac.mm",
173 ] 180 ]
174 } 181 }
182
183 if (!is_win && !is_mac && !is_ios && !is_nacl) {
kjellander_webrtc 2016/05/16 12:25:50 For GN, please introduce the same variables as for
184 deps += [ "//base/third_party/libevent" ]
185 defines += [ "WEBRTC_BUILD_LIBEVENT" ]
186 }
187
188 if (is_mac || is_ios || is_win || is_nacl) {
189 sources -= [ "task_queue_libevent.cc" ]
kjellander_webrtc 2016/05/16 12:25:50 Please only add to sources, i.e. avoid using subtr
190 }
191
192 if (is_linux || is_android || is_win || is_nacl) {
193 sources -= [ "task_queue_gcd.cc" ]
194 }
195
196 if (is_nacl) {
197 sources -= [ "task_queue_posix.cc" ]
198 }
175 } 199 }
176 200
177 static_library("rtc_base") { 201 static_library("rtc_base") {
178 cflags = [] 202 cflags = []
179 cflags_cc = [] 203 cflags_cc = []
180 libs = [] 204 libs = []
181 deps = [ 205 deps = [
182 "..:webrtc_common", 206 "..:webrtc_common",
183 ] 207 ]
184 public_deps = [ 208 public_deps = [
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 defines += [ "timezone=_timezone" ] 612 defines += [ "timezone=_timezone" ]
589 sources -= [ "ifaddrs_converter.cc" ] 613 sources -= [ "ifaddrs_converter.cc" ]
590 } 614 }
591 } 615 }
592 616
593 source_set("gtest_prod") { 617 source_set("gtest_prod") {
594 sources = [ 618 sources = [
595 "gtest_prod_util.h", 619 "gtest_prod_util.h",
596 ] 620 ]
597 } 621 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | webrtc/base/base.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698