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

Side by Side Diff: webrtc/examples/BUILD.gn

Issue 2823783002: An example of Unity native plugin of webrtc for Windows OS (Closed)
Patch Set: review comments 2 Created 3 years, 8 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
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("../webrtc.gni") 9 import("../webrtc.gni")
10 if (is_android) { 10 if (is_android) {
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 "//webrtc/system_wrappers:field_trial_default", 608 "//webrtc/system_wrappers:field_trial_default",
609 "//webrtc/system_wrappers:metrics_default", 609 "//webrtc/system_wrappers:metrics_default",
610 ] 610 ]
611 if (!build_with_chromium && is_clang) { 611 if (!build_with_chromium && is_clang) {
612 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 612 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
613 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 613 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
614 } 614 }
615 } 615 }
616 } 616 }
617 617
618 if (is_win) {
619 rtc_shared_library("webrtc_unity_plugin") {
620 testonly = true
621 sources = [
622 "unityplugin/simple_peer_connection.cc",
623 "unityplugin/simple_peer_connection.h",
624 "unityplugin/unity_plugin_apis.cc",
625 "unityplugin/unity_plugin_apis.h",
626 ]
627 if (!build_with_chromium && is_clang) {
628 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
629 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
630 }
631 cflags = [ "/wd4245" ]
632 configs += [
633 "//build/config/win:windowed",
634 ":peerconnection_client_warnings_config",
635 ]
636 deps = [
637 "//webrtc/api:libjingle_peerconnection_test_api",
638 "//webrtc/api:video_frame_api",
639 "//webrtc/base:rtc_base",
640 "//webrtc/base:rtc_base_approved",
641 "//webrtc/media:rtc_media",
642 "//webrtc/media:rtc_media_base",
643 "//webrtc/modules/video_capture:video_capture_module",
644 "//webrtc/pc:libjingle_peerconnection",
645 "//webrtc/system_wrappers:field_trial_default",
646 "//webrtc/system_wrappers:metrics_default",
647 ]
648 if (rtc_build_json) {
649 deps += [ "//third_party/jsoncpp" ]
650 }
651 }
652 }
653
618 if (!build_with_chromium) { 654 if (!build_with_chromium) {
619 # Doesn't build within Chrome on Win. 655 # Doesn't build within Chrome on Win.
620 rtc_executable("stun_prober") { 656 rtc_executable("stun_prober") {
621 testonly = true 657 testonly = true
622 sources = [ 658 sources = [
623 "stunprober/main.cc", 659 "stunprober/main.cc",
624 ] 660 ]
625 661
626 if (!build_with_chromium && is_clang) { 662 if (!build_with_chromium && is_clang) {
627 # Suppress warnings from Chrome's Clang plugins. 663 # Suppress warnings from Chrome's Clang plugins.
628 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 664 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
629 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 665 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
630 } 666 }
631 667
632 deps = [ 668 deps = [
633 "../base:rtc_base", 669 "../base:rtc_base",
634 "../base:rtc_base_approved", 670 "../base:rtc_base_approved",
635 "../p2p:libstunprober", 671 "../p2p:libstunprober",
636 "../p2p:rtc_p2p", 672 "../p2p:rtc_p2p",
637 "../system_wrappers:field_trial_default", 673 "../system_wrappers:field_trial_default",
638 ] 674 ]
639 } 675 }
640 } 676 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/examples/unityplugin/OWNERS » ('j') | webrtc/examples/unityplugin/unity_plugin_apis.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698