blob: ab9bfb669967795a1479779bb9b9b89821e58f3f [file] [log] [blame]
magjed6fe85c02016-12-06 12:29:371# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2#
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
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
jianjun.zhu59d55752017-07-11 13:20:459import("../../webrtc.gni")
magjed6fe85c02016-12-06 12:29:3710import("//build/config/android/config.gni")
11import("//build/config/android/rules.gni")
12
Henrik Kjellander88f127a2017-06-27 06:56:4613group("android") {
14 if (!build_with_chromium && is_android) {
15 public_deps = [
16 ":libjingle_peerconnection_datachannelonly_so",
17 ":libjingle_peerconnection_jni",
18 ":libjingle_peerconnection_so",
19 ":libwebrtc",
20 ]
21 }
22}
23
magjed6fe85c02016-12-06 12:29:3724config("libjingle_peerconnection_jni_warnings_config") {
25 # The warnings below are enabled by default. Since GN orders compiler flags
26 # for a target before flags from configs, the only way to disable such
27 # warnings is by having them in a separate config, loaded from the target.
28 if (!is_win) {
29 cflags = [
30 "-Wno-sign-compare",
31 "-Wno-unused-variable",
32 ]
33 }
34}
35
zhihuanga9029552017-06-18 05:31:2436rtc_source_set("base_jni") {
magjed6fe85c02016-12-06 12:29:3737 sources = [
Magnus Jedverte6fddec2017-06-19 15:09:5538 "src/jni/androidhistogram_jni.cc",
magjed6fe85c02016-12-06 12:29:3739 "src/jni/classreferenceholder.cc",
40 "src/jni/classreferenceholder.h",
magjedbf8b3702017-08-27 20:47:2041 "src/jni/jni_common.cc",
magjed6fe85c02016-12-06 12:29:3742 "src/jni/jni_helpers.cc",
43 "src/jni/jni_helpers.h",
deadbeef4bb11a72017-08-03 17:20:1744 "src/jni/pc/audio_jni.h",
45 "src/jni/pc/media_jni.h",
46 "src/jni/pc/video_jni.h",
zhihuanga9029552017-06-18 05:31:2447 ]
48
49 deps = [
jianjun.zhu59d55752017-07-11 13:20:4550 "../../api:libjingle_peerconnection_api",
ehmaldonado2bc62f32017-07-19 17:40:4751 "../../rtc_base:rtc_base",
52 "../../rtc_base:rtc_base_approved",
jianjun.zhu59d55752017-07-11 13:20:4553 "../../system_wrappers:metrics_api",
zhihuanga9029552017-06-18 05:31:2454 ]
55
56 if (is_clang) {
57 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
58 suppressed_configs += [
59 "//build/config/clang:extra_warnings",
60 "//build/config/clang:find_bad_constructs",
61 ]
62 }
63}
64
65rtc_static_library("audio_jni") {
66 sources = [
deadbeef4bb11a72017-08-03 17:20:1767 "src/jni/pc/audio_jni.cc",
zhihuanga9029552017-06-18 05:31:2468 ]
69
70 deps = [
71 ":base_jni",
jianjun.zhu59d55752017-07-11 13:20:4572 "../../api/audio_codecs:builtin_audio_decoder_factory",
73 "../../api/audio_codecs:builtin_audio_encoder_factory",
74 "../../voice_engine:voice_engine",
zhihuanga9029552017-06-18 05:31:2475 ]
76}
77
78rtc_static_library("null_audio_jni") {
79 sources = [
deadbeef4bb11a72017-08-03 17:20:1780 "src/jni/pc/null_audio_jni.cc",
zhihuanga9029552017-06-18 05:31:2481 ]
82
83 deps = [
84 ":base_jni",
zhihuanga9029552017-06-18 05:31:2485 ]
86}
87
88rtc_static_library("video_jni") {
89 sources = [
Magnus Jedverte6fddec2017-06-19 15:09:5590 "src/jni/androidmediacodeccommon.h",
zhihuanga9029552017-06-18 05:31:2491 "src/jni/androidmediadecoder_jni.cc",
92 "src/jni/androidmediadecoder_jni.h",
93 "src/jni/androidmediaencoder_jni.cc",
94 "src/jni/androidmediaencoder_jni.h",
95 "src/jni/androidvideotracksource.cc",
96 "src/jni/androidvideotracksource.h",
97 "src/jni/androidvideotracksource_jni.cc",
Magnus Jedverte6fddec2017-06-19 15:09:5598 "src/jni/filevideocapturer_jni.cc",
magjed6fe85c02016-12-06 12:29:3799 "src/jni/native_handle_impl.cc",
100 "src/jni/native_handle_impl.h",
sakal076a86c2017-08-18 10:03:29101 "src/jni/nv12buffer_jni.cc",
sakald1c851e2017-08-23 15:50:23102 "src/jni/nv21buffer_jni.cc",
deadbeef4bb11a72017-08-03 17:20:17103 "src/jni/pc/video_jni.cc",
magjed6fe85c02016-12-06 12:29:37104 "src/jni/surfacetexturehelper_jni.cc",
105 "src/jni/surfacetexturehelper_jni.h",
zhihuanga9029552017-06-18 05:31:24106 "src/jni/video_renderer_jni.cc",
Sami Kalliomäki11dfe632017-06-27 08:03:49107 "src/jni/videodecoderfactorywrapper.cc",
108 "src/jni/videodecoderfactorywrapper.h",
109 "src/jni/videodecoderwrapper.cc",
110 "src/jni/videodecoderwrapper.h",
sakale2cfece2017-09-04 10:57:21111 "src/jni/videoencoderfactorywrapper.cc",
112 "src/jni/videoencoderfactorywrapper.h",
113 "src/jni/videoencoderwrapper.cc",
114 "src/jni/videoencoderwrapper.h",
Magnus Jedverte6fddec2017-06-19 15:09:55115 "src/jni/videofilerenderer_jni.cc",
sakald3591cf2017-07-28 14:12:23116 "src/jni/videoframe_jni.cc",
Magnus Jedverte6fddec2017-06-19 15:09:55117 "src/jni/videotrack_jni.cc",
Magnus Jedverte4007ab2017-06-14 17:03:31118 "src/jni/wrapped_native_i420_buffer.cc",
119 "src/jni/wrapped_native_i420_buffer.h",
magjed6fe85c02016-12-06 12:29:37120 ]
121
122 configs += [ ":libjingle_peerconnection_jni_warnings_config" ]
123
124 if (is_clang) {
125 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
126 suppressed_configs += [
127 "//build/config/clang:extra_warnings",
128 "//build/config/clang:find_bad_constructs",
129 ]
130 }
131
132 # TODO(jschuh): Bug 1348: fix this warning.
133 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
134
135 if (is_win) {
136 cflags += [
137 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch.
138 "/wd4389", # signed/unsigned mismatch.
139 ]
140 }
141
142 deps = [
zhihuanga9029552017-06-18 05:31:24143 ":base_jni",
deadbeef4bb11a72017-08-03 17:20:17144 ":peerconnection_jni",
jianjun.zhu59d55752017-07-11 13:20:45145 "../..:webrtc_common",
146 "../../api:libjingle_peerconnection_api",
147 "../../api:video_frame_api",
148 "../../api/video_codecs:video_codecs_api",
jianjun.zhu59d55752017-07-11 13:20:45149 "../../common_video:common_video",
150 "../../media:rtc_audio_video",
151 "../../media:rtc_media_base",
sakale2cfece2017-09-04 10:57:21152 "../../modules:module_api",
jianjun.zhu59d55752017-07-11 13:20:45153 "../../modules/utility:utility",
154 "../../modules/video_coding:video_coding_utility",
ehmaldonado2bc62f32017-07-19 17:40:47155 "../../rtc_base:rtc_base",
156 "../../rtc_base:rtc_base_approved",
157 "../../rtc_base:rtc_task_queue",
158 "../../rtc_base:sequenced_task_checker",
159 "../../rtc_base:weak_ptr",
jianjun.zhu59d55752017-07-11 13:20:45160 "../../system_wrappers:system_wrappers",
magjed6fe85c02016-12-06 12:29:37161 ]
162
163 if (rtc_build_libyuv) {
164 deps += [ "$rtc_libyuv_dir" ]
165 public_deps = [
166 "$rtc_libyuv_dir",
167 ]
168 } else {
169 # Need to add a directory normally exported by libyuv.
170 include_dirs = [ "$rtc_libyuv_dir/include" ]
171 }
172}
173
zhihuanga9029552017-06-18 05:31:24174rtc_static_library("null_video_jni") {
175 sources = [
deadbeef4bb11a72017-08-03 17:20:17176 "src/jni/pc/null_video_jni.cc",
zhihuanga9029552017-06-18 05:31:24177 ]
178
179 deps = [
180 ":base_jni",
zhihuanga9029552017-06-18 05:31:24181 ]
zhihuanga9029552017-06-18 05:31:24182}
183
184rtc_static_library("media_jni") {
185 sources = [
deadbeef4bb11a72017-08-03 17:20:17186 "src/jni/pc/media_jni.cc",
zhihuanga9029552017-06-18 05:31:24187 ]
188
189 deps = [
190 ":base_jni",
jianjun.zhu59d55752017-07-11 13:20:45191 "../../call:call_interfaces",
192 "../../logging:rtc_event_log_api",
193 "../../media:rtc_audio_video",
194 "../../modules/audio_processing:audio_processing",
zhihuanga9029552017-06-18 05:31:24195 ]
196
197 if (is_clang) {
198 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
199 suppressed_configs += [
200 "//build/config/clang:extra_warnings",
201 "//build/config/clang:find_bad_constructs",
202 ]
203 }
204}
205
206rtc_static_library("null_media_jni") {
207 sources = [
deadbeef4bb11a72017-08-03 17:20:17208 "src/jni/pc/null_media_jni.cc",
zhihuanga9029552017-06-18 05:31:24209 ]
210
211 deps = [
212 ":base_jni",
zhihuanga9029552017-06-18 05:31:24213 ]
zhihuanga9029552017-06-18 05:31:24214}
215
216rtc_static_library("peerconnection_jni") {
217 sources = [
zhihuang4ede8ee2017-08-03 01:01:05218 "src/jni/androidnetworkmonitor_jni.h",
deadbeef4bb11a72017-08-03 17:20:17219 "src/jni/pc/androidnetworkmonitor_jni.cc",
220 "src/jni/pc/androidnetworkmonitor_jni.h",
221 "src/jni/pc/audiotrack_jni.cc",
222 "src/jni/pc/callsessionfilerotatinglogsink_jni.cc",
223 "src/jni/pc/datachannel_jni.cc",
224 "src/jni/pc/datachannelobserver_jni.cc",
225 "src/jni/pc/datachannelobserver_jni.h",
226 "src/jni/pc/dtmfsender_jni.cc",
227 "src/jni/pc/java_native_conversion.cc",
228 "src/jni/pc/java_native_conversion.h",
229 "src/jni/pc/logging_jni.cc",
230 "src/jni/pc/mediaconstraints_jni.cc",
231 "src/jni/pc/mediaconstraints_jni.h",
232 "src/jni/pc/mediasource_jni.cc",
233 "src/jni/pc/mediastream_jni.cc",
234 "src/jni/pc/mediastreamtrack_jni.cc",
235 "src/jni/pc/ownedfactoryandthreads.cc",
236 "src/jni/pc/ownedfactoryandthreads.h",
237 "src/jni/pc/peerconnection_jni.cc",
238 "src/jni/pc/peerconnectionfactory_jni.cc",
239 "src/jni/pc/peerconnectionobserver_jni.cc",
240 "src/jni/pc/peerconnectionobserver_jni.h",
241 "src/jni/pc/rtcstatscollectorcallbackwrapper.cc",
242 "src/jni/pc/rtcstatscollectorcallbackwrapper.h",
243 "src/jni/pc/rtpreceiver_jni.cc",
244 "src/jni/pc/rtpreceiverobserver_jni.cc",
245 "src/jni/pc/rtpreceiverobserver_jni.h",
246 "src/jni/pc/rtpsender_jni.cc",
247 "src/jni/pc/sdpobserver_jni.h",
248 "src/jni/pc/statsobserver_jni.cc",
249 "src/jni/pc/statsobserver_jni.h",
zhihuanga9029552017-06-18 05:31:24250 ]
251
252 configs += [ ":libjingle_peerconnection_jni_warnings_config" ]
253
254 if (is_clang) {
255 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
256 suppressed_configs += [
257 "//build/config/clang:extra_warnings",
258 "//build/config/clang:find_bad_constructs",
259 ]
260 }
261
262 # TODO(jschuh): Bug 1348: fix this warning.
263 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
264
265 if (is_win) {
266 cflags += [
267 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch.
268 "/wd4389", # signed/unsigned mismatch.
269 ]
270 }
271
272 deps = [
273 ":base_jni",
274 "../..:webrtc_common",
jianjun.zhu59d55752017-07-11 13:20:45275 "../../media:rtc_data",
276 "../../media:rtc_media_base",
277 "../../modules/utility:utility",
278 "../../pc:peerconnection",
ehmaldonado2bc62f32017-07-19 17:40:47279 "../../rtc_base:rtc_base",
280 "../../rtc_base:rtc_base_approved",
281 "../../rtc_base:rtc_task_queue",
jianjun.zhu59d55752017-07-11 13:20:45282 "../../system_wrappers:system_wrappers",
zhihuanga9029552017-06-18 05:31:24283 ]
284}
285
286rtc_static_library("libjingle_peerconnection_jni") {
287 public_deps = [
288 ":audio_jni",
289 ":base_jni",
290 ":media_jni",
291 ":peerconnection_jni",
292 ":video_jni",
jianjun.zhu59d55752017-07-11 13:20:45293 "../../pc:create_pc_factory",
zhihuanga9029552017-06-18 05:31:24294 ]
295}
296
magjed6fe85c02016-12-06 12:29:37297rtc_static_library("libjingle_peerconnection_metrics_default_jni") {
298 sources = [
299 "src/jni/androidmetrics_jni.cc",
300 ]
301
302 configs += [ ":libjingle_peerconnection_jni_warnings_config" ]
303
304 deps = [
zhihuanga9029552017-06-18 05:31:24305 ":base_jni",
306 ":peerconnection_jni",
jianjun.zhu59d55752017-07-11 13:20:45307 "../../pc:peerconnection",
308 "../../system_wrappers",
309 "../../system_wrappers:field_trial_default",
310 "../../system_wrappers:metrics_default",
magjed6fe85c02016-12-06 12:29:37311 ]
312}
313
zhihuanga9029552017-06-18 05:31:24314# The modular build targets can be used to build WebRTC with different
315# functionalities. The users can choose either the real implemenation or the
316# null implementation of the audio/video modules based on their requirments.
Henrik Kjellander88f127a2017-06-27 06:56:46317rtc_shared_library("libjingle_peerconnection_datachannelonly_so") {
318 sources = [
319 "src/jni/jni_onload.cc",
320 ]
321
322 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
323 configs += [ "//build/config/android:hide_all_but_jni" ]
324
325 deps = [
326 ":base_jni",
327 ":libjingle_peerconnection_metrics_default_jni",
328 ":null_audio_jni",
329 ":null_media_jni",
330 ":null_video_jni",
331 ":peerconnection_jni",
jianjun.zhu59d55752017-07-11 13:20:45332 "../../pc:peerconnection",
ehmaldonado2bc62f32017-07-19 17:40:47333 "../../rtc_base:rtc_base",
334 "../../rtc_base:rtc_base_approved",
Henrik Kjellander88f127a2017-06-27 06:56:46335 ]
336 output_extension = "so"
337}
zhihuanga9029552017-06-18 05:31:24338
magjed6fe85c02016-12-06 12:29:37339rtc_shared_library("libjingle_peerconnection_so") {
340 sources = [
341 "src/jni/jni_onload.cc",
342 ]
343
kjellander0e4be2a2017-02-16 09:06:04344 suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
345 configs += [ "//build/config/android:hide_all_but_jni" ]
magjed6fe85c02016-12-06 12:29:37346
347 deps = [
348 ":libjingle_peerconnection_jni",
349 ":libjingle_peerconnection_metrics_default_jni",
jianjun.zhu59d55752017-07-11 13:20:45350 "../../pc:libjingle_peerconnection",
ehmaldonado2bc62f32017-07-19 17:40:47351 "../../rtc_base:rtc_base",
magjed6fe85c02016-12-06 12:29:37352 ]
353 output_extension = "so"
354}
355
mbonadei08184b22017-01-23 09:25:53356dist_jar("libwebrtc") {
357 _target_dir_name = get_label_info(":$target_name", "dir")
358 output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar"
359 direct_deps_only = true
360 use_interface_jars = false
361 deps = [
362 ":libjingle_peerconnection_java",
363 ":libjingle_peerconnection_metrics_default_java",
jianjun.zhu59d55752017-07-11 13:20:45364 "../../modules/audio_device:audio_device_java",
365 "../../rtc_base:base_java",
mbonadei08184b22017-01-23 09:25:53366 ]
367}
368
magjed6fe85c02016-12-06 12:29:37369android_library("libjingle_peerconnection_java") {
370 java_files = [
magjed6fe85c02016-12-06 12:29:37371 "api/org/webrtc/AudioSource.java",
372 "api/org/webrtc/AudioTrack.java",
373 "api/org/webrtc/CallSessionFileRotatingLogSink.java",
374 "api/org/webrtc/Camera1Capturer.java",
375 "api/org/webrtc/Camera1Enumerator.java",
magjed6fe85c02016-12-06 12:29:37376 "api/org/webrtc/Camera2Capturer.java",
377 "api/org/webrtc/Camera2Enumerator.java",
magjed6fe85c02016-12-06 12:29:37378 "api/org/webrtc/CameraEnumerationAndroid.java",
379 "api/org/webrtc/CameraEnumerator.java",
magjed6fe85c02016-12-06 12:29:37380 "api/org/webrtc/CameraVideoCapturer.java",
381 "api/org/webrtc/DataChannel.java",
deadbeef1a7fcb52017-02-02 05:53:09382 "api/org/webrtc/DtmfSender.java",
magjed6fe85c02016-12-06 12:29:37383 "api/org/webrtc/EglBase.java",
magjed6fe85c02016-12-06 12:29:37384 "api/org/webrtc/EglRenderer.java",
Sami Kalliomäki2149a542017-06-02 12:46:12385 "api/org/webrtc/EncodedImage.java",
magjed6fe85c02016-12-06 12:29:37386 "api/org/webrtc/FileVideoCapturer.java",
387 "api/org/webrtc/GlRectDrawer.java",
388 "api/org/webrtc/GlShader.java",
389 "api/org/webrtc/GlTextureFrameBuffer.java",
390 "api/org/webrtc/GlUtil.java",
Bjorn Mellemdc2f74e2017-06-20 18:35:04391 "api/org/webrtc/HardwareVideoDecoderFactory.java",
Bjorn Mellem30fe0db2017-06-16 16:23:50392 "api/org/webrtc/HardwareVideoEncoderFactory.java",
magjed6fe85c02016-12-06 12:29:37393 "api/org/webrtc/IceCandidate.java",
394 "api/org/webrtc/MediaCodecVideoDecoder.java",
395 "api/org/webrtc/MediaCodecVideoEncoder.java",
396 "api/org/webrtc/MediaConstraints.java",
397 "api/org/webrtc/MediaSource.java",
398 "api/org/webrtc/MediaStream.java",
399 "api/org/webrtc/MediaStreamTrack.java",
400 "api/org/webrtc/NetworkMonitor.java",
401 "api/org/webrtc/NetworkMonitorAutoDetect.java",
402 "api/org/webrtc/PeerConnection.java",
403 "api/org/webrtc/PeerConnectionFactory.java",
404 "api/org/webrtc/RendererCommon.java",
deadbeef1ce003c2017-04-18 17:27:51405 "api/org/webrtc/RTCStats.java",
406 "api/org/webrtc/RTCStatsCollectorCallback.java",
407 "api/org/webrtc/RTCStatsReport.java",
magjed6fe85c02016-12-06 12:29:37408 "api/org/webrtc/RtpParameters.java",
409 "api/org/webrtc/RtpReceiver.java",
410 "api/org/webrtc/RtpSender.java",
411 "api/org/webrtc/ScreenCapturerAndroid.java",
412 "api/org/webrtc/SdpObserver.java",
413 "api/org/webrtc/SessionDescription.java",
414 "api/org/webrtc/StatsObserver.java",
415 "api/org/webrtc/StatsReport.java",
416 "api/org/webrtc/SurfaceTextureHelper.java",
417 "api/org/webrtc/SurfaceViewRenderer.java",
418 "api/org/webrtc/VideoCapturer.java",
Sami Kalliomäki2149a542017-06-02 12:46:12419 "api/org/webrtc/VideoCodecInfo.java",
Bjorn Mellemc714e032017-06-12 16:21:03420 "api/org/webrtc/VideoCodecStatus.java",
Sami Kalliomäki2149a542017-06-02 12:46:12421 "api/org/webrtc/VideoDecoder.java",
Bjorn Mellemdc2f74e2017-06-20 18:35:04422 "api/org/webrtc/VideoDecoderFactory.java",
Sami Kalliomäki2149a542017-06-02 12:46:12423 "api/org/webrtc/VideoEncoder.java",
Bjorn Mellem30fe0db2017-06-16 16:23:50424 "api/org/webrtc/VideoEncoderFactory.java",
magjed6fe85c02016-12-06 12:29:37425 "api/org/webrtc/VideoFileRenderer.java",
magjed527c0762017-06-02 09:45:56426 "api/org/webrtc/VideoFrame.java",
magjedaa0084f2017-09-11 13:12:07427 "api/org/webrtc/VideoFrameDrawer.java",
magjed6fe85c02016-12-06 12:29:37428 "api/org/webrtc/VideoRenderer.java",
sakal130a43a2017-08-14 12:17:49429 "api/org/webrtc/VideoSink.java",
magjed6fe85c02016-12-06 12:29:37430 "api/org/webrtc/VideoSource.java",
431 "api/org/webrtc/VideoTrack.java",
magjed75c3d082017-04-06 11:31:26432 "src/java/org/webrtc/AndroidVideoTrackSourceObserver.java",
Bjorn Mellemc714e032017-06-12 16:21:03433 "src/java/org/webrtc/BaseBitrateAdjuster.java",
sakald3591cf2017-07-28 14:12:23434 "src/java/org/webrtc/BitrateAdjuster.java",
sakalec542bc2017-02-20 15:04:03435 "src/java/org/webrtc/Camera1Session.java",
436 "src/java/org/webrtc/Camera2Session.java",
437 "src/java/org/webrtc/CameraCapturer.java",
438 "src/java/org/webrtc/CameraSession.java",
Bjorn Mellemc714e032017-06-12 16:21:03439 "src/java/org/webrtc/DynamicBitrateAdjuster.java",
magjed4ca16222017-04-25 12:32:07440 "src/java/org/webrtc/EglBase10.java",
441 "src/java/org/webrtc/EglBase14.java",
Bjorn Mellemc714e032017-06-12 16:21:03442 "src/java/org/webrtc/FramerateBitrateAdjuster.java",
Bjorn Mellem7be50732017-06-20 17:02:36443 "src/java/org/webrtc/HardwareVideoDecoder.java",
Bjorn Mellemc714e032017-06-12 16:21:03444 "src/java/org/webrtc/HardwareVideoEncoder.java",
sakal178c1d02017-04-05 19:18:59445 "src/java/org/webrtc/Histogram.java",
Bjorn Mellem30fe0db2017-06-16 16:23:50446 "src/java/org/webrtc/I420BufferImpl.java",
magjedbf8b3702017-08-27 20:47:20447 "src/java/org/webrtc/JniCommon.java",
Bjorn Mellemdc2f74e2017-06-20 18:35:04448 "src/java/org/webrtc/MediaCodecUtils.java",
sakal076a86c2017-08-18 10:03:29449 "src/java/org/webrtc/NV12Buffer.java",
sakald1c851e2017-08-23 15:50:23450 "src/java/org/webrtc/NV21Buffer.java",
sakald3591cf2017-07-28 14:12:23451 "src/java/org/webrtc/TextureBufferImpl.java",
Bjorn Mellem30fe0db2017-06-16 16:23:50452 "src/java/org/webrtc/VideoCodecType.java",
sakald3591cf2017-07-28 14:12:23453 "src/java/org/webrtc/VideoDecoderWrapperCallback.java",
sakale2cfece2017-09-04 10:57:21454 "src/java/org/webrtc/VideoEncoderWrapperCallback.java",
Magnus Jedverte4007ab2017-06-14 17:03:31455 "src/java/org/webrtc/WrappedNativeI420Buffer.java",
sakal05d67082017-02-21 13:29:59456 "src/java/org/webrtc/YuvConverter.java",
magjed6fe85c02016-12-06 12:29:37457 ]
458
459 deps = [
jianjun.zhu59d55752017-07-11 13:20:45460 "../../modules/audio_device:audio_device_java",
461 "../../rtc_base:base_java",
magjed6fe85c02016-12-06 12:29:37462 ]
charujain9278d472017-08-25 13:21:52463
464 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148
465 no_build_hooks = true
magjed6fe85c02016-12-06 12:29:37466}
467
468android_library("libjingle_peerconnection_metrics_default_java") {
469 java_files = [ "api/org/webrtc/Metrics.java" ]
470
471 deps = [
jianjun.zhu59d55752017-07-11 13:20:45472 "../../rtc_base:base_java",
magjed6fe85c02016-12-06 12:29:37473 ]
charujain9278d472017-08-25 13:21:52474
475 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148
476 no_build_hooks = true
magjed6fe85c02016-12-06 12:29:37477}
478
479if (rtc_include_tests) {
480 instrumentation_test_apk("libjingle_peerconnection_android_unittest") {
481 apk_name = "libjingle_peerconnection_android_unittest"
482 android_manifest = "instrumentationtests/AndroidManifest.xml"
483
484 java_files = [
485 "instrumentationtests/src/org/webrtc/Camera1CapturerUsingByteBufferTest.java",
486 "instrumentationtests/src/org/webrtc/Camera1CapturerUsingTextureTest.java",
487 "instrumentationtests/src/org/webrtc/Camera2CapturerTest.java",
488 "instrumentationtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java",
489 "instrumentationtests/src/org/webrtc/EglRendererTest.java",
sakalb7d35ee2017-01-17 11:32:06490 "instrumentationtests/src/org/webrtc/FileVideoCapturerTest.java",
magjed6fe85c02016-12-06 12:29:37491 "instrumentationtests/src/org/webrtc/GlRectDrawerTest.java",
Bjorn Mellem30fe0db2017-06-16 16:23:50492 "instrumentationtests/src/org/webrtc/HardwareVideoEncoderTest.java",
Bjorn Mellemdc2f74e2017-06-20 18:35:04493 "instrumentationtests/src/org/webrtc/HardwareVideoDecoderTest.java",
magjed6fe85c02016-12-06 12:29:37494 "instrumentationtests/src/org/webrtc/MediaCodecVideoEncoderTest.java",
495 "instrumentationtests/src/org/webrtc/NetworkMonitorTest.java",
496 "instrumentationtests/src/org/webrtc/PeerConnectionTest.java",
497 "instrumentationtests/src/org/webrtc/RendererCommonTest.java",
498 "instrumentationtests/src/org/webrtc/SurfaceTextureHelperTest.java",
499 "instrumentationtests/src/org/webrtc/SurfaceViewRendererOnMeasureTest.java",
sakalb7d35ee2017-01-17 11:32:06500 "instrumentationtests/src/org/webrtc/VideoFileRendererTest.java",
magjed6fe85c02016-12-06 12:29:37501 "instrumentationtests/src/org/webrtc/WebRtcJniBootTest.java",
502 ]
503
sakalb7d35ee2017-01-17 11:32:06504 data = [
jianjun.zhu59d55752017-07-11 13:20:45505 "../../sdk/android/instrumentationtests/src/org/webrtc/capturetestvideo.y4m",
sakalb7d35ee2017-01-17 11:32:06506 ]
507
magjed6fe85c02016-12-06 12:29:37508 deps = [
jianjun.zhu59d55752017-07-11 13:20:45509 "../../rtc_base:base_java",
510 "../../sdk/android:libjingle_peerconnection_java",
511 "../../sdk/android:libjingle_peerconnection_metrics_default_java",
magjed6fe85c02016-12-06 12:29:37512 "//base:base_java",
sakal789aa462017-01-11 14:22:56513 "//base:base_java_test_support",
514 "//third_party/android_support_test_runner:rules_java",
515 "//third_party/android_support_test_runner:runner_java",
516 "//third_party/junit",
magjed6fe85c02016-12-06 12:29:37517 ]
518
jianjun.zhu59d55752017-07-11 13:20:45519 shared_libraries = [ "../../sdk/android:libjingle_peerconnection_so" ]
charujain9278d472017-08-25 13:21:52520
521 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148
522 no_build_hooks = true
magjed6fe85c02016-12-06 12:29:37523 }
524}