| 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) { |
| 11 import("//build/config/android/config.gni") | 11 import("//build/config/android/config.gni") |
| 12 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
| 13 } else if (is_mac) { | 13 } else if (is_mac) { |
| 14 import("//build/config/mac/rules.gni") | 14 import("//build/config/mac/rules.gni") |
| 15 } else if (is_ios) { | 15 } else if (is_ios) { |
| 16 import("//build/config/ios/rules.gni") | 16 import("//build/config/ios/rules.gni") |
| 17 } | 17 } |
| 18 if (is_linux) { | |
| 19 import("//build/config/linux/pkg_config.gni") | |
| 20 } | |
| 21 | 18 |
| 22 group("examples") { | 19 group("examples") { |
| 23 # This target shall build all targets in examples. | 20 # This target shall build all targets in examples. |
| 24 testonly = true | 21 testonly = true |
| 25 public_deps = [] | 22 public_deps = [] |
| 26 | 23 |
| 27 if (is_android) { | 24 if (is_android) { |
| 28 public_deps += [ | 25 public_deps += [ |
| 29 ":AppRTCMobile", | 26 ":AppRTCMobile", |
| 30 ":AppRTCMobileTest", | 27 ":AppRTCMobileTest", |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 422 |
| 426 configs += [ | 423 configs += [ |
| 427 ":rtc_apprtcmobile_config", | 424 ":rtc_apprtcmobile_config", |
| 428 "//build/config/compiler:enable_arc", | 425 "//build/config/compiler:enable_arc", |
| 429 ] | 426 ] |
| 430 } | 427 } |
| 431 } | 428 } |
| 432 } | 429 } |
| 433 | 430 |
| 434 if (is_linux || is_win) { | 431 if (is_linux || is_win) { |
| 435 if (is_linux) { | |
| 436 pkg_config("gtk2_config") { | |
| 437 # Gtk requires gmodule, but it does not list it as a dependency in some | |
| 438 # misconfigured systems. | |
| 439 packages = [ | |
| 440 "gmodule-2.0", | |
| 441 "gtk+-2.0", | |
| 442 "gthread-2.0", | |
| 443 ] | |
| 444 } | |
| 445 } | |
| 446 | |
| 447 config("peerconnection_client_warnings_config") { | 432 config("peerconnection_client_warnings_config") { |
| 448 cflags = [] | 433 cflags = [] |
| 449 if (is_win && is_clang) { | 434 if (is_win && is_clang) { |
| 450 cflags += [ | 435 cflags += [ |
| 451 # Disable warnings failing when compiling with Clang on Windows. | 436 # Disable warnings failing when compiling with Clang on Windows. |
| 452 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 437 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 453 "-Wno-format", | 438 "-Wno-format", |
| 454 | 439 |
| 455 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 | 440 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 |
| 456 # for -Wno-reorder and -Wno-sign-compare | 441 # for -Wno-reorder and -Wno-sign-compare |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 if (is_win) { | 475 if (is_win) { |
| 491 sources += [ | 476 sources += [ |
| 492 "peerconnection/client/flagdefs.h", | 477 "peerconnection/client/flagdefs.h", |
| 493 "peerconnection/client/main.cc", | 478 "peerconnection/client/main.cc", |
| 494 "peerconnection/client/main_wnd.cc", | 479 "peerconnection/client/main_wnd.cc", |
| 495 "peerconnection/client/main_wnd.h", | 480 "peerconnection/client/main_wnd.h", |
| 496 ] | 481 ] |
| 497 cflags = [ "/wd4245" ] | 482 cflags = [ "/wd4245" ] |
| 498 configs += [ "//build/config/win:windowed" ] | 483 configs += [ "//build/config/win:windowed" ] |
| 499 } | 484 } |
| 485 deps = [ |
| 486 "//third_party/libyuv", |
| 487 "//webrtc/api:libjingle_peerconnection", |
| 488 "//webrtc/system_wrappers:field_trial_default", |
| 489 "//webrtc/system_wrappers:metrics_default", |
| 490 ] |
| 500 if (is_linux) { | 491 if (is_linux) { |
| 501 sources += [ | 492 sources += [ |
| 502 "peerconnection/client/linux/main.cc", | 493 "peerconnection/client/linux/main.cc", |
| 503 "peerconnection/client/linux/main_wnd.cc", | 494 "peerconnection/client/linux/main_wnd.cc", |
| 504 "peerconnection/client/linux/main_wnd.h", | 495 "peerconnection/client/linux/main_wnd.h", |
| 505 ] | 496 ] |
| 506 libs = [ | 497 libs = [ |
| 507 "X11", | 498 "X11", |
| 508 "Xcomposite", | 499 "Xcomposite", |
| 509 "Xext", | 500 "Xext", |
| 510 "Xrender", | 501 "Xrender", |
| 511 ] | 502 ] |
| 512 public_configs = [ ":gtk2_config" ] | 503 deps += [ "//build/config/linux/gtk" ] |
| 513 } | 504 } |
| 514 deps = [ | |
| 515 "//third_party/libyuv", | |
| 516 "//webrtc/api:libjingle_peerconnection", | |
| 517 "//webrtc/system_wrappers:field_trial_default", | |
| 518 "//webrtc/system_wrappers:metrics_default", | |
| 519 ] | |
| 520 configs += [ ":peerconnection_client_warnings_config" ] | 505 configs += [ ":peerconnection_client_warnings_config" ] |
| 521 if (rtc_build_json) { | 506 if (rtc_build_json) { |
| 522 deps += [ "//third_party/jsoncpp" ] | 507 deps += [ "//third_party/jsoncpp" ] |
| 523 } | 508 } |
| 524 } | 509 } |
| 525 | 510 |
| 526 rtc_executable("peerconnection_server") { | 511 rtc_executable("peerconnection_server") { |
| 527 sources = [ | 512 sources = [ |
| 528 "peerconnection/server/data_socket.cc", | 513 "peerconnection/server/data_socket.cc", |
| 529 "peerconnection/server/data_socket.h", | 514 "peerconnection/server/data_socket.h", |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 588 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 604 } | 589 } |
| 605 | 590 |
| 606 deps = [ | 591 deps = [ |
| 607 "../p2p:libstunprober", | 592 "../p2p:libstunprober", |
| 608 "../p2p:rtc_p2p", | 593 "../p2p:rtc_p2p", |
| 609 "../system_wrappers:field_trial_default", | 594 "../system_wrappers:field_trial_default", |
| 610 ] | 595 ] |
| 611 } | 596 } |
| 612 } | 597 } |
| OLD | NEW |