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("../webrtc.gni") | 9 import("../webrtc.gni") |
10 if (is_android) { | 10 if (is_android) { |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 "../system_wrappers:field_trial_default", | 605 "../system_wrappers:field_trial_default", |
606 "../system_wrappers:metrics_default", | 606 "../system_wrappers:metrics_default", |
607 ] | 607 ] |
608 if (!build_with_chromium && is_clang) { | 608 if (!build_with_chromium && is_clang) { |
609 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 609 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
610 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 610 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
611 } | 611 } |
612 } | 612 } |
613 } | 613 } |
614 | 614 |
615 if (is_win) { | 615 if (is_win || is_android) { |
616 rtc_shared_library("webrtc_unity_plugin") { | 616 rtc_shared_library("webrtc_unity_plugin") { |
617 testonly = true | 617 testonly = true |
618 sources = [ | 618 sources = [ |
619 "unityplugin/simple_peer_connection.cc", | 619 "unityplugin/simple_peer_connection.cc", |
620 "unityplugin/simple_peer_connection.h", | 620 "unityplugin/simple_peer_connection.h", |
621 "unityplugin/unity_plugin_apis.cc", | 621 "unityplugin/unity_plugin_apis.cc", |
622 "unityplugin/unity_plugin_apis.h", | 622 "unityplugin/unity_plugin_apis.h", |
623 "unityplugin/video_observer.cc", | 623 "unityplugin/video_observer.cc", |
624 "unityplugin/video_observer.h", | 624 "unityplugin/video_observer.h", |
625 ] | 625 ] |
| 626 |
| 627 if (is_android) { |
| 628 sources += [ |
| 629 "unityplugin/classreferenceholder.cc", |
| 630 "unityplugin/classreferenceholder.h", |
| 631 "unityplugin/jni_onload.cc", |
| 632 ] |
| 633 } |
| 634 |
626 if (!build_with_chromium && is_clang) { | 635 if (!build_with_chromium && is_clang) { |
627 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 636 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
628 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 637 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
629 } | 638 } |
630 cflags = [ "/wd4245" ] | 639 if (is_win) { |
631 configs += [ | 640 cflags = [ "/wd4245" ] |
632 "//build/config/win:windowed", | 641 configs += [ |
633 ":peerconnection_client_warnings_config", | 642 "//build/config/win:windowed", |
634 ] | 643 ":peerconnection_client_warnings_config", |
| 644 ] |
| 645 } |
635 deps = [ | 646 deps = [ |
636 "../api:libjingle_peerconnection_test_api", | 647 "../api:libjingle_peerconnection_test_api", |
637 "../api:video_frame_api", | 648 "../api:video_frame_api", |
638 "../media:rtc_media", | 649 "../media:rtc_media", |
639 "../media:rtc_media_base", | 650 "../media:rtc_media_base", |
640 "../modules/video_capture:video_capture_module", | 651 "../modules/video_capture:video_capture_module", |
641 "../pc:libjingle_peerconnection", | 652 "../pc:libjingle_peerconnection", |
| 653 "../rtc_base:rtc_base", |
642 "../system_wrappers:field_trial_default", | 654 "../system_wrappers:field_trial_default", |
643 "../system_wrappers:metrics_default", | 655 "../system_wrappers:metrics_default", |
644 ] | 656 ] |
| 657 if (is_android) { |
| 658 deps += [ "../sdk/android:libjingle_peerconnection_jni" ] |
| 659 } |
| 660 } |
| 661 } |
| 662 |
| 663 if (is_android) { |
| 664 android_library("webrtc_unity_java") { |
| 665 java_files = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ] |
| 666 deps = [ |
| 667 "../rtc_base:base_java", |
| 668 "../sdk/android:libjingle_peerconnection_java", |
| 669 ] |
| 670 } |
| 671 |
| 672 dist_jar("libwebrtc_unity") { |
| 673 _target_dir_name = get_label_info(":$target_name", "dir") |
| 674 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" |
| 675 direct_deps_only = true |
| 676 use_interface_jars = false |
| 677 deps = [ |
| 678 ":webrtc_unity_java", |
| 679 "../modules/audio_device:audio_device_java", |
| 680 "../rtc_base:base_java", |
| 681 "../sdk/android:libjingle_peerconnection_java", |
| 682 "../sdk/android:libjingle_peerconnection_metrics_default_java", |
| 683 ] |
645 } | 684 } |
646 } | 685 } |
647 | 686 |
648 if (!build_with_chromium) { | 687 if (!build_with_chromium) { |
649 # Doesn't build within Chrome on Win. | 688 # Doesn't build within Chrome on Win. |
650 rtc_executable("stun_prober") { | 689 rtc_executable("stun_prober") { |
651 testonly = true | 690 testonly = true |
652 sources = [ | 691 sources = [ |
653 "stunprober/main.cc", | 692 "stunprober/main.cc", |
654 ] | 693 ] |
655 | 694 |
656 if (!build_with_chromium && is_clang) { | 695 if (!build_with_chromium && is_clang) { |
657 # Suppress warnings from Chrome's Clang plugins. | 696 # Suppress warnings from Chrome's Clang plugins. |
658 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 697 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
659 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 698 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
660 } | 699 } |
661 | 700 |
662 deps = [ | 701 deps = [ |
663 "../p2p:libstunprober", | 702 "../p2p:libstunprober", |
664 "../p2p:rtc_p2p", | 703 "../p2p:rtc_p2p", |
665 "../rtc_base:rtc_base", | 704 "../rtc_base:rtc_base", |
666 "../rtc_base:rtc_base_approved", | 705 "../rtc_base:rtc_base_approved", |
667 "../system_wrappers:field_trial_default", | 706 "../system_wrappers:field_trial_default", |
668 ] | 707 ] |
669 } | 708 } |
670 } | 709 } |
OLD | NEW |