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 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
12 } | 12 } |
13 | 13 |
14 group("examples") { | 14 group("examples") { |
15 deps = [] | 15 deps = [] |
16 | 16 |
17 if (is_android && !build_with_chromium) { | 17 if (is_android && !build_with_chromium) { |
18 deps += [ ":AppRTCDemo" ] | 18 deps += [ ":AppRTCDemo" ] |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
22 if (is_android && !build_with_chromium) { | 22 if (is_android && !build_with_chromium) { |
23 android_apk("AppRTCDemo") { | 23 android_apk("AppRTCDemo") { |
24 apk_name = "AppRTCDemo" | 24 apk_name = "AppRTCDemo" |
25 android_manifest = "androidapp/AndroidManifest.xml" | 25 android_manifest = "androidapp/AndroidManifest.xml" |
26 | 26 |
27 deps = [ | 27 deps = [ |
28 ":AppRTCDemo_lib", | 28 ":AppRTCDemo_javalib", |
29 ":AppRTCDemo_resources", | 29 ":AppRTCDemo_resources", |
30 "//base:base_java", | 30 "//base:base_java", |
31 "//webrtc/base:base_java", | 31 "//webrtc/base:base_java", |
32 ] | 32 ] |
33 | 33 |
34 shared_libraries = [ "//webrtc/api:libjingle_peerconnection_so" ] | 34 shared_libraries = [ "//webrtc/api:libjingle_peerconnection_so" ] |
35 } | 35 } |
36 | 36 |
37 android_library("AppRTCDemo_lib") { | 37 android_library("AppRTCDemo_javalib") { |
38 java_files = [ | 38 java_files = [ |
39 "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", | 39 "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", |
40 "androidapp/src/org/appspot/apprtc/AppRTCClient.java", | 40 "androidapp/src/org/appspot/apprtc/AppRTCClient.java", |
41 "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", | 41 "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", |
42 "androidapp/src/org/appspot/apprtc/CallActivity.java", | 42 "androidapp/src/org/appspot/apprtc/CallActivity.java", |
43 "androidapp/src/org/appspot/apprtc/CallFragment.java", | 43 "androidapp/src/org/appspot/apprtc/CallFragment.java", |
44 "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", | 44 "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", |
45 "androidapp/src/org/appspot/apprtc/ConnectActivity.java", | 45 "androidapp/src/org/appspot/apprtc/ConnectActivity.java", |
46 "androidapp/src/org/appspot/apprtc/CpuMonitor.java", | 46 "androidapp/src/org/appspot/apprtc/CpuMonitor.java", |
47 "androidapp/src/org/appspot/apprtc/DirectRTCClient.java", | 47 "androidapp/src/org/appspot/apprtc/DirectRTCClient.java", |
(...skipping 27 matching lines...) Expand all Loading... |
75 | 75 |
76 instrumentation_test_apk("AppRTCDemoTest") { | 76 instrumentation_test_apk("AppRTCDemoTest") { |
77 apk_name = "AppRTCDemoTest" | 77 apk_name = "AppRTCDemoTest" |
78 android_manifest = "androidtests/AndroidManifest.xml" | 78 android_manifest = "androidtests/AndroidManifest.xml" |
79 | 79 |
80 java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClien
tTest.java" ] | 80 java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClien
tTest.java" ] |
81 | 81 |
82 apk_under_test = ":AppRTCDemo" | 82 apk_under_test = ":AppRTCDemo" |
83 | 83 |
84 deps = [ | 84 deps = [ |
85 ":AppRTCDemo_lib", | 85 ":AppRTCDemo_javalib", |
86 "//webrtc/api:libjingle_peerconnection_java", | 86 "//webrtc/api:libjingle_peerconnection_java", |
87 ] | 87 ] |
88 } | 88 } |
89 | 89 |
90 junit_binary("AppRTCDemoJUnitTest") { | 90 junit_binary("AppRTCDemoJUnitTest") { |
91 java_files = [ | 91 java_files = [ |
92 "androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java", | 92 "androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java", |
93 "androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java", | 93 "androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java", |
94 "androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java", | 94 "androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java", |
95 ] | 95 ] |
96 | 96 |
97 deps = [ | 97 deps = [ |
98 ":AppRTCDemo_lib", | 98 ":AppRTCDemo_javalib", |
99 "//webrtc/api:libjingle_peerconnection_java", | 99 "//webrtc/api:libjingle_peerconnection_java", |
100 "//webrtc/api:libjingle_peerconnection_jni", | 100 "//webrtc/api:libjingle_peerconnection_jni", |
101 ] | 101 ] |
102 } | 102 } |
103 } | 103 } |
OLD | NEW |