magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 1 | # 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.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 9 | import("../../webrtc.gni") |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 10 | import("//build/config/android/config.gni") |
| 11 | import("//build/config/android/rules.gni") |
| 12 | |
Henrik Kjellander | 88f127a | 2017-06-27 06:56:46 | [diff] [blame] | 13 | group("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 | |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 24 | config("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 | |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 36 | rtc_source_set("base_jni") { |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 37 | sources = [ |
Magnus Jedvert | e6fddec | 2017-06-19 15:09:55 | [diff] [blame] | 38 | "src/jni/androidhistogram_jni.cc", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 39 | "src/jni/classreferenceholder.cc", |
| 40 | "src/jni/classreferenceholder.h", |
magjed | bf8b370 | 2017-08-27 20:47:20 | [diff] [blame] | 41 | "src/jni/jni_common.cc", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 42 | "src/jni/jni_helpers.cc", |
| 43 | "src/jni/jni_helpers.h", |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 44 | "src/jni/pc/audio_jni.h", |
| 45 | "src/jni/pc/media_jni.h", |
| 46 | "src/jni/pc/video_jni.h", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 47 | ] |
| 48 | |
| 49 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 50 | "../../api:libjingle_peerconnection_api", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 51 | "../../rtc_base:rtc_base", |
| 52 | "../../rtc_base:rtc_base_approved", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 53 | "../../system_wrappers:metrics_api", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 54 | ] |
| 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 | |
| 65 | rtc_static_library("audio_jni") { |
| 66 | sources = [ |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 67 | "src/jni/pc/audio_jni.cc", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 68 | ] |
| 69 | |
| 70 | deps = [ |
| 71 | ":base_jni", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 72 | "../../api/audio_codecs:builtin_audio_decoder_factory", |
| 73 | "../../api/audio_codecs:builtin_audio_encoder_factory", |
| 74 | "../../voice_engine:voice_engine", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 75 | ] |
| 76 | } |
| 77 | |
| 78 | rtc_static_library("null_audio_jni") { |
| 79 | sources = [ |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 80 | "src/jni/pc/null_audio_jni.cc", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 81 | ] |
| 82 | |
| 83 | deps = [ |
| 84 | ":base_jni", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 85 | ] |
| 86 | } |
| 87 | |
| 88 | rtc_static_library("video_jni") { |
| 89 | sources = [ |
Magnus Jedvert | e6fddec | 2017-06-19 15:09:55 | [diff] [blame] | 90 | "src/jni/androidmediacodeccommon.h", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 91 | "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 Jedvert | e6fddec | 2017-06-19 15:09:55 | [diff] [blame] | 98 | "src/jni/filevideocapturer_jni.cc", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 99 | "src/jni/native_handle_impl.cc", |
| 100 | "src/jni/native_handle_impl.h", |
sakal | 076a86c | 2017-08-18 10:03:29 | [diff] [blame] | 101 | "src/jni/nv12buffer_jni.cc", |
sakal | d1c851e | 2017-08-23 15:50:23 | [diff] [blame] | 102 | "src/jni/nv21buffer_jni.cc", |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 103 | "src/jni/pc/video_jni.cc", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 104 | "src/jni/surfacetexturehelper_jni.cc", |
| 105 | "src/jni/surfacetexturehelper_jni.h", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 106 | "src/jni/video_renderer_jni.cc", |
Sami Kalliomäki | 11dfe63 | 2017-06-27 08:03:49 | [diff] [blame] | 107 | "src/jni/videodecoderfactorywrapper.cc", |
| 108 | "src/jni/videodecoderfactorywrapper.h", |
| 109 | "src/jni/videodecoderwrapper.cc", |
| 110 | "src/jni/videodecoderwrapper.h", |
sakal | e2cfece | 2017-09-04 10:57:21 | [diff] [blame] | 111 | "src/jni/videoencoderfactorywrapper.cc", |
| 112 | "src/jni/videoencoderfactorywrapper.h", |
| 113 | "src/jni/videoencoderwrapper.cc", |
| 114 | "src/jni/videoencoderwrapper.h", |
Magnus Jedvert | e6fddec | 2017-06-19 15:09:55 | [diff] [blame] | 115 | "src/jni/videofilerenderer_jni.cc", |
sakal | d3591cf | 2017-07-28 14:12:23 | [diff] [blame] | 116 | "src/jni/videoframe_jni.cc", |
Magnus Jedvert | e6fddec | 2017-06-19 15:09:55 | [diff] [blame] | 117 | "src/jni/videotrack_jni.cc", |
Magnus Jedvert | e4007ab | 2017-06-14 17:03:31 | [diff] [blame] | 118 | "src/jni/wrapped_native_i420_buffer.cc", |
| 119 | "src/jni/wrapped_native_i420_buffer.h", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 120 | ] |
| 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 = [ |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 143 | ":base_jni", |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 144 | ":peerconnection_jni", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 145 | "../..:webrtc_common", |
| 146 | "../../api:libjingle_peerconnection_api", |
| 147 | "../../api:video_frame_api", |
| 148 | "../../api/video_codecs:video_codecs_api", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 149 | "../../common_video:common_video", |
| 150 | "../../media:rtc_audio_video", |
| 151 | "../../media:rtc_media_base", |
sakal | e2cfece | 2017-09-04 10:57:21 | [diff] [blame] | 152 | "../../modules:module_api", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 153 | "../../modules/utility:utility", |
| 154 | "../../modules/video_coding:video_coding_utility", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 155 | "../../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.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 160 | "../../system_wrappers:system_wrappers", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 161 | ] |
| 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 | |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 174 | rtc_static_library("null_video_jni") { |
| 175 | sources = [ |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 176 | "src/jni/pc/null_video_jni.cc", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 177 | ] |
| 178 | |
| 179 | deps = [ |
| 180 | ":base_jni", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 181 | ] |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 182 | } |
| 183 | |
| 184 | rtc_static_library("media_jni") { |
| 185 | sources = [ |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 186 | "src/jni/pc/media_jni.cc", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 187 | ] |
| 188 | |
| 189 | deps = [ |
| 190 | ":base_jni", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 191 | "../../call:call_interfaces", |
| 192 | "../../logging:rtc_event_log_api", |
| 193 | "../../media:rtc_audio_video", |
| 194 | "../../modules/audio_processing:audio_processing", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 195 | ] |
| 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 | |
| 206 | rtc_static_library("null_media_jni") { |
| 207 | sources = [ |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 208 | "src/jni/pc/null_media_jni.cc", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 209 | ] |
| 210 | |
| 211 | deps = [ |
| 212 | ":base_jni", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 213 | ] |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 214 | } |
| 215 | |
| 216 | rtc_static_library("peerconnection_jni") { |
| 217 | sources = [ |
zhihuang | 4ede8ee | 2017-08-03 01:01:05 | [diff] [blame] | 218 | "src/jni/androidnetworkmonitor_jni.h", |
deadbeef | 4bb11a7 | 2017-08-03 17:20:17 | [diff] [blame] | 219 | "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", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 250 | ] |
| 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.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 275 | "../../media:rtc_data", |
| 276 | "../../media:rtc_media_base", |
| 277 | "../../modules/utility:utility", |
| 278 | "../../pc:peerconnection", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 279 | "../../rtc_base:rtc_base", |
| 280 | "../../rtc_base:rtc_base_approved", |
| 281 | "../../rtc_base:rtc_task_queue", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 282 | "../../system_wrappers:system_wrappers", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 283 | ] |
| 284 | } |
| 285 | |
| 286 | rtc_static_library("libjingle_peerconnection_jni") { |
| 287 | public_deps = [ |
| 288 | ":audio_jni", |
| 289 | ":base_jni", |
| 290 | ":media_jni", |
| 291 | ":peerconnection_jni", |
| 292 | ":video_jni", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 293 | "../../pc:create_pc_factory", |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 294 | ] |
| 295 | } |
| 296 | |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 297 | rtc_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 = [ |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 305 | ":base_jni", |
| 306 | ":peerconnection_jni", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 307 | "../../pc:peerconnection", |
| 308 | "../../system_wrappers", |
| 309 | "../../system_wrappers:field_trial_default", |
| 310 | "../../system_wrappers:metrics_default", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 311 | ] |
| 312 | } |
| 313 | |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 314 | # 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 Kjellander | 88f127a | 2017-06-27 06:56:46 | [diff] [blame] | 317 | rtc_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.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 332 | "../../pc:peerconnection", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 333 | "../../rtc_base:rtc_base", |
| 334 | "../../rtc_base:rtc_base_approved", |
Henrik Kjellander | 88f127a | 2017-06-27 06:56:46 | [diff] [blame] | 335 | ] |
| 336 | output_extension = "so" |
| 337 | } |
zhihuang | a902955 | 2017-06-18 05:31:24 | [diff] [blame] | 338 | |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 339 | rtc_shared_library("libjingle_peerconnection_so") { |
| 340 | sources = [ |
| 341 | "src/jni/jni_onload.cc", |
| 342 | ] |
| 343 | |
kjellander | 0e4be2a | 2017-02-16 09:06:04 | [diff] [blame] | 344 | suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
| 345 | configs += [ "//build/config/android:hide_all_but_jni" ] |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 346 | |
| 347 | deps = [ |
| 348 | ":libjingle_peerconnection_jni", |
| 349 | ":libjingle_peerconnection_metrics_default_jni", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 350 | "../../pc:libjingle_peerconnection", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 351 | "../../rtc_base:rtc_base", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 352 | ] |
| 353 | output_extension = "so" |
| 354 | } |
| 355 | |
mbonadei | 08184b2 | 2017-01-23 09:25:53 | [diff] [blame] | 356 | dist_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.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 364 | "../../modules/audio_device:audio_device_java", |
| 365 | "../../rtc_base:base_java", |
mbonadei | 08184b2 | 2017-01-23 09:25:53 | [diff] [blame] | 366 | ] |
| 367 | } |
| 368 | |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 369 | android_library("libjingle_peerconnection_java") { |
| 370 | java_files = [ |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 371 | "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", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 376 | "api/org/webrtc/Camera2Capturer.java", |
| 377 | "api/org/webrtc/Camera2Enumerator.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 378 | "api/org/webrtc/CameraEnumerationAndroid.java", |
| 379 | "api/org/webrtc/CameraEnumerator.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 380 | "api/org/webrtc/CameraVideoCapturer.java", |
| 381 | "api/org/webrtc/DataChannel.java", |
deadbeef | 1a7fcb5 | 2017-02-02 05:53:09 | [diff] [blame] | 382 | "api/org/webrtc/DtmfSender.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 383 | "api/org/webrtc/EglBase.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 384 | "api/org/webrtc/EglRenderer.java", |
Sami Kalliomäki | 2149a54 | 2017-06-02 12:46:12 | [diff] [blame] | 385 | "api/org/webrtc/EncodedImage.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 386 | "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 Mellem | dc2f74e | 2017-06-20 18:35:04 | [diff] [blame] | 391 | "api/org/webrtc/HardwareVideoDecoderFactory.java", |
Bjorn Mellem | 30fe0db | 2017-06-16 16:23:50 | [diff] [blame] | 392 | "api/org/webrtc/HardwareVideoEncoderFactory.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 393 | "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", |
deadbeef | 1ce003c | 2017-04-18 17:27:51 | [diff] [blame] | 405 | "api/org/webrtc/RTCStats.java", |
| 406 | "api/org/webrtc/RTCStatsCollectorCallback.java", |
| 407 | "api/org/webrtc/RTCStatsReport.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 408 | "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äki | 2149a54 | 2017-06-02 12:46:12 | [diff] [blame] | 419 | "api/org/webrtc/VideoCodecInfo.java", |
Bjorn Mellem | c714e03 | 2017-06-12 16:21:03 | [diff] [blame] | 420 | "api/org/webrtc/VideoCodecStatus.java", |
Sami Kalliomäki | 2149a54 | 2017-06-02 12:46:12 | [diff] [blame] | 421 | "api/org/webrtc/VideoDecoder.java", |
Bjorn Mellem | dc2f74e | 2017-06-20 18:35:04 | [diff] [blame] | 422 | "api/org/webrtc/VideoDecoderFactory.java", |
Sami Kalliomäki | 2149a54 | 2017-06-02 12:46:12 | [diff] [blame] | 423 | "api/org/webrtc/VideoEncoder.java", |
Bjorn Mellem | 30fe0db | 2017-06-16 16:23:50 | [diff] [blame] | 424 | "api/org/webrtc/VideoEncoderFactory.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 425 | "api/org/webrtc/VideoFileRenderer.java", |
magjed | 527c076 | 2017-06-02 09:45:56 | [diff] [blame] | 426 | "api/org/webrtc/VideoFrame.java", |
magjed | aa0084f | 2017-09-11 13:12:07 | [diff] [blame] | 427 | "api/org/webrtc/VideoFrameDrawer.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 428 | "api/org/webrtc/VideoRenderer.java", |
sakal | 130a43a | 2017-08-14 12:17:49 | [diff] [blame] | 429 | "api/org/webrtc/VideoSink.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 430 | "api/org/webrtc/VideoSource.java", |
| 431 | "api/org/webrtc/VideoTrack.java", |
magjed | 75c3d08 | 2017-04-06 11:31:26 | [diff] [blame] | 432 | "src/java/org/webrtc/AndroidVideoTrackSourceObserver.java", |
Bjorn Mellem | c714e03 | 2017-06-12 16:21:03 | [diff] [blame] | 433 | "src/java/org/webrtc/BaseBitrateAdjuster.java", |
sakal | d3591cf | 2017-07-28 14:12:23 | [diff] [blame] | 434 | "src/java/org/webrtc/BitrateAdjuster.java", |
sakal | ec542bc | 2017-02-20 15:04:03 | [diff] [blame] | 435 | "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 Mellem | c714e03 | 2017-06-12 16:21:03 | [diff] [blame] | 439 | "src/java/org/webrtc/DynamicBitrateAdjuster.java", |
magjed | 4ca1622 | 2017-04-25 12:32:07 | [diff] [blame] | 440 | "src/java/org/webrtc/EglBase10.java", |
| 441 | "src/java/org/webrtc/EglBase14.java", |
Bjorn Mellem | c714e03 | 2017-06-12 16:21:03 | [diff] [blame] | 442 | "src/java/org/webrtc/FramerateBitrateAdjuster.java", |
Bjorn Mellem | 7be5073 | 2017-06-20 17:02:36 | [diff] [blame] | 443 | "src/java/org/webrtc/HardwareVideoDecoder.java", |
Bjorn Mellem | c714e03 | 2017-06-12 16:21:03 | [diff] [blame] | 444 | "src/java/org/webrtc/HardwareVideoEncoder.java", |
sakal | 178c1d0 | 2017-04-05 19:18:59 | [diff] [blame] | 445 | "src/java/org/webrtc/Histogram.java", |
Bjorn Mellem | 30fe0db | 2017-06-16 16:23:50 | [diff] [blame] | 446 | "src/java/org/webrtc/I420BufferImpl.java", |
magjed | bf8b370 | 2017-08-27 20:47:20 | [diff] [blame] | 447 | "src/java/org/webrtc/JniCommon.java", |
Bjorn Mellem | dc2f74e | 2017-06-20 18:35:04 | [diff] [blame] | 448 | "src/java/org/webrtc/MediaCodecUtils.java", |
sakal | 076a86c | 2017-08-18 10:03:29 | [diff] [blame] | 449 | "src/java/org/webrtc/NV12Buffer.java", |
sakal | d1c851e | 2017-08-23 15:50:23 | [diff] [blame] | 450 | "src/java/org/webrtc/NV21Buffer.java", |
sakal | d3591cf | 2017-07-28 14:12:23 | [diff] [blame] | 451 | "src/java/org/webrtc/TextureBufferImpl.java", |
Bjorn Mellem | 30fe0db | 2017-06-16 16:23:50 | [diff] [blame] | 452 | "src/java/org/webrtc/VideoCodecType.java", |
sakal | d3591cf | 2017-07-28 14:12:23 | [diff] [blame] | 453 | "src/java/org/webrtc/VideoDecoderWrapperCallback.java", |
sakal | e2cfece | 2017-09-04 10:57:21 | [diff] [blame] | 454 | "src/java/org/webrtc/VideoEncoderWrapperCallback.java", |
Magnus Jedvert | e4007ab | 2017-06-14 17:03:31 | [diff] [blame] | 455 | "src/java/org/webrtc/WrappedNativeI420Buffer.java", |
sakal | 05d6708 | 2017-02-21 13:29:59 | [diff] [blame] | 456 | "src/java/org/webrtc/YuvConverter.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 457 | ] |
| 458 | |
| 459 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 460 | "../../modules/audio_device:audio_device_java", |
| 461 | "../../rtc_base:base_java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 462 | ] |
charujain | 9278d47 | 2017-08-25 13:21:52 | [diff] [blame] | 463 | |
| 464 | # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 |
| 465 | no_build_hooks = true |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 466 | } |
| 467 | |
| 468 | android_library("libjingle_peerconnection_metrics_default_java") { |
| 469 | java_files = [ "api/org/webrtc/Metrics.java" ] |
| 470 | |
| 471 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 472 | "../../rtc_base:base_java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 473 | ] |
charujain | 9278d47 | 2017-08-25 13:21:52 | [diff] [blame] | 474 | |
| 475 | # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 |
| 476 | no_build_hooks = true |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 477 | } |
| 478 | |
| 479 | if (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", |
sakal | b7d35ee | 2017-01-17 11:32:06 | [diff] [blame] | 490 | "instrumentationtests/src/org/webrtc/FileVideoCapturerTest.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 491 | "instrumentationtests/src/org/webrtc/GlRectDrawerTest.java", |
Bjorn Mellem | 30fe0db | 2017-06-16 16:23:50 | [diff] [blame] | 492 | "instrumentationtests/src/org/webrtc/HardwareVideoEncoderTest.java", |
Bjorn Mellem | dc2f74e | 2017-06-20 18:35:04 | [diff] [blame] | 493 | "instrumentationtests/src/org/webrtc/HardwareVideoDecoderTest.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 494 | "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", |
sakal | b7d35ee | 2017-01-17 11:32:06 | [diff] [blame] | 500 | "instrumentationtests/src/org/webrtc/VideoFileRendererTest.java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 501 | "instrumentationtests/src/org/webrtc/WebRtcJniBootTest.java", |
| 502 | ] |
| 503 | |
sakal | b7d35ee | 2017-01-17 11:32:06 | [diff] [blame] | 504 | data = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 505 | "../../sdk/android/instrumentationtests/src/org/webrtc/capturetestvideo.y4m", |
sakal | b7d35ee | 2017-01-17 11:32:06 | [diff] [blame] | 506 | ] |
| 507 | |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 508 | deps = [ |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 509 | "../../rtc_base:base_java", |
| 510 | "../../sdk/android:libjingle_peerconnection_java", |
| 511 | "../../sdk/android:libjingle_peerconnection_metrics_default_java", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 512 | "//base:base_java", |
sakal | 789aa46 | 2017-01-11 14:22:56 | [diff] [blame] | 513 | "//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", |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 517 | ] |
| 518 | |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 519 | shared_libraries = [ "../../sdk/android:libjingle_peerconnection_so" ] |
charujain | 9278d47 | 2017-08-25 13:21:52 | [diff] [blame] | 520 | |
| 521 | # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 |
| 522 | no_build_hooks = true |
magjed | 6fe85c0 | 2016-12-06 12:29:37 | [diff] [blame] | 523 | } |
| 524 | } |