OLD | NEW |
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 # misconfigured systems. | 370 # misconfigured systems. |
371 packages = [ | 371 packages = [ |
372 "gmodule-2.0", | 372 "gmodule-2.0", |
373 "gtk+-2.0", | 373 "gtk+-2.0", |
374 "gthread-2.0", | 374 "gthread-2.0", |
375 ] | 375 ] |
376 } | 376 } |
377 } | 377 } |
378 | 378 |
379 config("peerconnection_client_warnings_config") { | 379 config("peerconnection_client_warnings_config") { |
| 380 cflags = [] |
380 if (is_win && is_clang) { | 381 if (is_win && is_clang) { |
381 cflags = [ | 382 cflags += [ |
382 # Disable warnings failing when compiling with Clang on Windows. | 383 # Disable warnings failing when compiling with Clang on Windows. |
383 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 384 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
384 "-Wno-format", | 385 "-Wno-format", |
385 | 386 |
386 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 | 387 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 |
387 # for -Wno-reorder and -Wno-sign-compare | 388 # for -Wno-reorder and -Wno-sign-compare |
388 "-Wno-reorder", | 389 "-Wno-reorder", |
389 "-Wno-sign-compare", | 390 "-Wno-sign-compare", |
390 ] | 391 ] |
391 } | 392 } |
392 if (is_linux && target_cpu == "x86") { | 393 if (is_linux && target_cpu == "x86") { |
393 cflags = [ | 394 cflags += [ |
394 # Needed to compile on Linux 32-bit. | 395 # Needed to compile on Linux 32-bit. |
395 "-Wno-sentinel", | 396 "-Wno-sentinel", |
396 ] | 397 ] |
397 } | 398 } |
| 399 |
| 400 if (is_clang) { |
| 401 # TODO(ehmaldonado): Make peerconnection_client compile with the standard |
| 402 # set of warnings. |
| 403 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306 |
| 404 cflags += [ "-Wno-inconsistent-missing-override" ] |
| 405 } |
398 } | 406 } |
399 | 407 |
400 rtc_executable("peerconnection_client") { | 408 rtc_executable("peerconnection_client") { |
401 sources = [ | 409 sources = [ |
402 "peerconnection/client/conductor.cc", | 410 "peerconnection/client/conductor.cc", |
403 "peerconnection/client/conductor.h", | 411 "peerconnection/client/conductor.h", |
404 "peerconnection/client/defaults.cc", | 412 "peerconnection/client/defaults.cc", |
405 "peerconnection/client/defaults.h", | 413 "peerconnection/client/defaults.h", |
406 "peerconnection/client/peer_connection_client.cc", | 414 "peerconnection/client/peer_connection_client.cc", |
407 "peerconnection/client/peer_connection_client.h", | 415 "peerconnection/client/peer_connection_client.h", |
408 ] | 416 ] |
409 | 417 |
410 # TODO(ehmaldonado): Make peerconnection_client compile with the standard | |
411 # set of warnings. | |
412 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306 | |
413 suppressed_configs += [ rtc_common_config ] | |
414 if (is_clang) { | 418 if (is_clang) { |
415 # Suppress warnings from the Chromium Clang plugin. | 419 # Suppress warnings from the Chromium Clang plugin. |
416 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 420 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
417 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 421 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
418 } | 422 } |
419 if (is_win) { | 423 if (is_win) { |
420 sources += [ | 424 sources += [ |
421 "peerconnection/client/flagdefs.h", | 425 "peerconnection/client/flagdefs.h", |
422 "peerconnection/client/main.cc", | 426 "peerconnection/client/main.cc", |
423 "peerconnection/client/main_wnd.cc", | 427 "peerconnection/client/main_wnd.cc", |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 "//webrtc/system_wrappers:field_trial_default", | 519 "//webrtc/system_wrappers:field_trial_default", |
516 "//webrtc/system_wrappers:metrics_default", | 520 "//webrtc/system_wrappers:metrics_default", |
517 ] | 521 ] |
518 if (is_clang) { | 522 if (is_clang) { |
519 # Suppress warnings from the Chromium Clang plugin. | 523 # Suppress warnings from the Chromium Clang plugin. |
520 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 524 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
521 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 525 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
522 } | 526 } |
523 } | 527 } |
524 } | 528 } |
OLD | NEW |