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

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

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

Powered by Google App Engine
This is Rietveld 408576698