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

Side by Side Diff: webrtc/modules/audio_device/BUILD.gn

Issue 2492713003: Added a public GN config to compile mock headers. (Closed)
Patch Set: changed to all_dependent_configs Created 4 years, 1 month 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 | no next file » | 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 import("../../build/webrtc.gni") 9 import("../../build/webrtc.gni")
10 10
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 "dummy/file_audio_device_factory.h", 234 "dummy/file_audio_device_factory.h",
235 ] 235 ]
236 } 236 }
237 237
238 if (!build_with_chromium && is_clang) { 238 if (!build_with_chromium && is_clang) {
239 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 239 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
240 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 240 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
241 } 241 }
242 } 242 }
243 243
244 config("mock_audio_device_config") {
245 if (is_win) {
246 cflags = [
247 # TODO(phoglund): get rid of 4373 supression when
248 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
249 # legacy warning for ignoring const / volatile in signatures.
250 "/wd4373",
251 ]
252 }
253 }
254
244 if (rtc_include_tests) { 255 if (rtc_include_tests) {
245 rtc_source_set("mock_audio_device") { 256 rtc_source_set("mock_audio_device") {
246 testonly = true 257 testonly = true
247 sources = [ 258 sources = [
248 "include/mock_audio_device.h", 259 "include/mock_audio_device.h",
249 "include/mock_audio_transport.h", 260 "include/mock_audio_transport.h",
250 ] 261 ]
251 deps = [ 262 deps = [
252 ":audio_device", 263 ":audio_device",
253 "../../test:test_support", 264 "../../test:test_support",
254 ] 265 ]
255 if (is_win) { 266 all_dependent_configs = [ ":mock_audio_device_config" ]
256 cflags = [
257 # TODO(phoglund): get rid of 4373 supression when
258 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
259 # legacy warning for ignoring const / volatile in signatures.
260 "/wd4373",
261 ]
262 }
263 } 267 }
264 } 268 }
265 269
266 # These tests do not work on ios, see 270 # These tests do not work on ios, see
267 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755 271 # https://bugs.chromium.org/p/webrtc/issues/detail?id=4755
268 if (rtc_include_tests && !is_ios) { 272 if (rtc_include_tests && !is_ios) {
269 rtc_executable("audio_device_tests") { 273 rtc_executable("audio_device_tests") {
270 testonly = true 274 testonly = true
271 sources = [ 275 sources = [
272 "test/audio_device_test_api.cc", 276 "test/audio_device_test_api.cc",
273 "test/audio_device_test_defines.h", 277 "test/audio_device_test_defines.h",
274 ] 278 ]
275 deps = [ 279 deps = [
276 ":audio_device", 280 ":audio_device",
277 "../..:webrtc_common", 281 "../..:webrtc_common",
278 "../../system_wrappers", 282 "../../system_wrappers",
279 "../../test:test_support", 283 "../../test:test_support",
280 "../../test:test_support_main", 284 "../../test:test_support_main",
281 "../rtp_rtcp", 285 "../rtp_rtcp",
282 "../utility", 286 "../utility",
283 "//testing/gtest", 287 "//testing/gtest",
284 ] 288 ]
285 public_configs = [ ":audio_device_config" ] 289 public_configs = [ ":audio_device_config" ]
286 } 290 }
287 } 291 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698