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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 android_resources("AppRTCMobile_resources") { | 87 android_resources("AppRTCMobile_resources") { |
88 resource_dirs = [ "androidapp/res" ] | 88 resource_dirs = [ "androidapp/res" ] |
89 custom_package = "org.appspot.apprtc" | 89 custom_package = "org.appspot.apprtc" |
90 } | 90 } |
91 | 91 |
92 instrumentation_test_apk("AppRTCMobileTest") { | 92 instrumentation_test_apk("AppRTCMobileTest") { |
93 apk_name = "AppRTCMobileTest" | 93 apk_name = "AppRTCMobileTest" |
94 android_manifest = "androidtests/AndroidManifest.xml" | 94 android_manifest = "androidtests/AndroidManifest.xml" |
95 | 95 |
96 java_files = [ | 96 java_files = [ |
| 97 "androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java", |
97 "androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java", | 98 "androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java", |
98 "androidtests/src/org/appspot/apprtc/test/VideoFileRendererTest.java", | 99 "androidtests/src/org/appspot/apprtc/test/VideoFileRendererTest.java", |
99 ] | 100 ] |
100 | 101 |
101 apk_under_test = ":AppRTCMobile" | 102 apk_under_test = ":AppRTCMobile" |
102 | 103 |
103 deps = [ | 104 deps = [ |
104 ":AppRTCMobile_javalib", | 105 ":AppRTCMobile_javalib", |
105 "//webrtc/api:libjingle_peerconnection_java", | 106 "//webrtc/api:libjingle_peerconnection_java", |
106 ] | 107 ] |
| 108 |
| 109 data = [ |
| 110 "//webrtc/examples/androidtests/src/org/appspot/apprtc/test/capturetestvid
eo.y4m", |
| 111 ] |
107 } | 112 } |
108 } | 113 } |
109 | 114 |
110 if (is_ios || (is_mac && target_cpu != "x86")) { | 115 if (is_ios || (is_mac && target_cpu != "x86")) { |
111 config("warnings_config") { | 116 config("warnings_config") { |
112 # GN orders flags on a target before flags from configs. The default config | 117 # GN orders flags on a target before flags from configs. The default config |
113 # adds these flags so to cancel them out they need to come from a config and | 118 # adds these flags so to cancel them out they need to come from a config and |
114 # cannot be on the target directly. | 119 # cannot be on the target directly. |
115 if (is_ios) { | 120 if (is_ios) { |
116 # Suppress compiler warnings about deprecated that triggered | 121 # Suppress compiler warnings about deprecated that triggered |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 "//webrtc/pc:rtc_pc", | 520 "//webrtc/pc:rtc_pc", |
516 "//webrtc/system_wrappers:field_trial_default", | 521 "//webrtc/system_wrappers:field_trial_default", |
517 "//webrtc/system_wrappers:metrics_default", | 522 "//webrtc/system_wrappers:metrics_default", |
518 ] | 523 ] |
519 if (!build_with_chromium && is_clang) { | 524 if (!build_with_chromium && is_clang) { |
520 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 525 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
521 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 526 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
522 } | 527 } |
523 } | 528 } |
524 } | 529 } |
OLD | NEW |