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/examples/BUILD.gn

Issue 2408133008: GN: Exclude suppressions of Chromium Clang warnings for Chromium builds. (Closed)
Patch Set: Created 4 years, 2 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 | « webrtc/common_video/BUILD.gn ('k') | webrtc/libjingle/xmpp/BUILD.gn » ('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) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 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 if (is_android) { 10 if (is_android) {
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 rtc_executable("peerconnection_client") { 406 rtc_executable("peerconnection_client") {
407 sources = [ 407 sources = [
408 "peerconnection/client/conductor.cc", 408 "peerconnection/client/conductor.cc",
409 "peerconnection/client/conductor.h", 409 "peerconnection/client/conductor.h",
410 "peerconnection/client/defaults.cc", 410 "peerconnection/client/defaults.cc",
411 "peerconnection/client/defaults.h", 411 "peerconnection/client/defaults.h",
412 "peerconnection/client/peer_connection_client.cc", 412 "peerconnection/client/peer_connection_client.cc",
413 "peerconnection/client/peer_connection_client.h", 413 "peerconnection/client/peer_connection_client.h",
414 ] 414 ]
415 415
416 if (is_clang) { 416 if (!build_with_chromium && is_clang) {
417 # Suppress warnings from the Chromium Clang plugin. 417 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
418 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
419 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 418 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
420 } 419 }
421 if (is_win) { 420 if (is_win) {
422 sources += [ 421 sources += [
423 "peerconnection/client/flagdefs.h", 422 "peerconnection/client/flagdefs.h",
424 "peerconnection/client/main.cc", 423 "peerconnection/client/main.cc",
425 "peerconnection/client/main_wnd.cc", 424 "peerconnection/client/main_wnd.cc",
426 "peerconnection/client/main_wnd.h", 425 "peerconnection/client/main_wnd.h",
427 ] 426 ]
428 cflags = [ "/wd4245" ] 427 cflags = [ "/wd4245" ]
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 "peerconnection/server/peer_channel.cc", 461 "peerconnection/server/peer_channel.cc",
463 "peerconnection/server/peer_channel.h", 462 "peerconnection/server/peer_channel.h",
464 "peerconnection/server/utils.cc", 463 "peerconnection/server/utils.cc",
465 "peerconnection/server/utils.h", 464 "peerconnection/server/utils.h",
466 ] 465 ]
467 deps = [ 466 deps = [
468 "//webrtc:webrtc_common", 467 "//webrtc:webrtc_common",
469 "//webrtc/base:rtc_base_approved", 468 "//webrtc/base:rtc_base_approved",
470 "//webrtc/tools:command_line_parser", 469 "//webrtc/tools:command_line_parser",
471 ] 470 ]
472 if (is_clang) { 471 if (!build_with_chromium && is_clang) {
473 # Suppress warnings from the Chromium Clang plugin. 472 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
474 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
475 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 473 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
476 } 474 }
477 } 475 }
478 rtc_executable("relayserver") { 476 rtc_executable("relayserver") {
479 sources = [ 477 sources = [
480 "relayserver/relayserver_main.cc", 478 "relayserver/relayserver_main.cc",
481 ] 479 ]
482 deps = [ 480 deps = [
483 "//webrtc/base:rtc_base_approved", 481 "//webrtc/base:rtc_base_approved",
484 "//webrtc/pc:rtc_pc", 482 "//webrtc/pc:rtc_pc",
485 "//webrtc/system_wrappers:field_trial_default", 483 "//webrtc/system_wrappers:field_trial_default",
486 "//webrtc/system_wrappers:metrics_default", 484 "//webrtc/system_wrappers:metrics_default",
487 ] 485 ]
488 if (is_clang) { 486 if (!build_with_chromium && is_clang) {
489 # Suppress warnings from the Chromium Clang plugin. 487 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
490 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
491 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 488 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
492 } 489 }
493 } 490 }
494 rtc_executable("turnserver") { 491 rtc_executable("turnserver") {
495 sources = [ 492 sources = [
496 "turnserver/turnserver_main.cc", 493 "turnserver/turnserver_main.cc",
497 ] 494 ]
498 deps = [ 495 deps = [
499 "//webrtc/base:rtc_base_approved", 496 "//webrtc/base:rtc_base_approved",
500 "//webrtc/pc:rtc_pc", 497 "//webrtc/pc:rtc_pc",
501 "//webrtc/system_wrappers:field_trial_default", 498 "//webrtc/system_wrappers:field_trial_default",
502 "//webrtc/system_wrappers:metrics_default", 499 "//webrtc/system_wrappers:metrics_default",
503 ] 500 ]
504 if (is_clang) { 501 if (!build_with_chromium && is_clang) {
505 # Suppress warnings from the Chromium Clang plugin. 502 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
506 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
507 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 503 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
508 } 504 }
509 } 505 }
510 rtc_executable("stunserver") { 506 rtc_executable("stunserver") {
511 sources = [ 507 sources = [
512 "stunserver/stunserver_main.cc", 508 "stunserver/stunserver_main.cc",
513 ] 509 ]
514 deps = [ 510 deps = [
515 "//webrtc/base:rtc_base_approved", 511 "//webrtc/base:rtc_base_approved",
516 "//webrtc/pc:rtc_pc", 512 "//webrtc/pc:rtc_pc",
517 "//webrtc/system_wrappers:field_trial_default", 513 "//webrtc/system_wrappers:field_trial_default",
518 "//webrtc/system_wrappers:metrics_default", 514 "//webrtc/system_wrappers:metrics_default",
519 ] 515 ]
520 if (is_clang) { 516 if (!build_with_chromium && is_clang) {
521 # Suppress warnings from the Chromium Clang plugin. 517 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
522 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
523 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 518 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
524 } 519 }
525 } 520 }
526 } 521 }
OLDNEW
« no previous file with comments | « webrtc/common_video/BUILD.gn ('k') | webrtc/libjingle/xmpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698