mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 00:57:49 +01:00

`gn format` recently [1] changed its formatting behavior for deps, source, and a few other elements when they are assigned (with =) single-element lists to be consistent with the formatting of updates (with +=) with single-element. Now that we've rolled in a GN binary with the change, reformat all files so that people don't get presubmit warnings due to this. CL generated with: $ git ls-files | grep BUILD.gn | xargs gn format $ gn format build_overrides/build.gni $ gn format build_overrides/gtest.gni $ gn format modules/audio_coding/audio_coding.gni $ gn format webrtc.gni $ gn format .gn Plus a few manual changes to add exceptions for "public_deps" (after changing these lines the presubmit started to complain). [1] - https://gn-review.googlesource.com/c/gn/+/6860 Bug: webrtc:11302 Change-Id: Iac29d23c1618ebef925c972e2891cd9f4e8cd613 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166882 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30334}
71 lines
2.1 KiB
Text
71 lines
2.1 KiB
Text
import("//webrtc.gni")
|
|
|
|
if (is_android) {
|
|
rtc_android_apk("androidnativeapi") {
|
|
testonly = true
|
|
apk_name = "androidnativeapi"
|
|
android_manifest = "AndroidManifest.xml"
|
|
min_sdk_version = 19
|
|
target_sdk_version = 27
|
|
|
|
sources = [
|
|
"java/org/webrtc/examples/androidnativeapi/CallClient.java",
|
|
"java/org/webrtc/examples/androidnativeapi/MainActivity.java",
|
|
]
|
|
|
|
deps = [
|
|
":resources",
|
|
"//modules/audio_device:audio_device_java",
|
|
"//sdk/android:camera_java",
|
|
"//sdk/android:surfaceviewrenderer_java",
|
|
"//sdk/android:video_api_java",
|
|
"//sdk/android:video_java",
|
|
"//third_party/android_deps:com_android_support_support_annotations_java",
|
|
]
|
|
|
|
shared_libraries = [ ":examples_androidnativeapi_jni" ]
|
|
}
|
|
|
|
generate_jni("generated_jni") {
|
|
testonly = true
|
|
sources = [ "java/org/webrtc/examples/androidnativeapi/CallClient.java" ]
|
|
namespace = "webrtc_examples"
|
|
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
|
|
}
|
|
|
|
rtc_shared_library("examples_androidnativeapi_jni") {
|
|
testonly = true
|
|
sources = [
|
|
"jni/android_call_client.cc",
|
|
"jni/android_call_client.h",
|
|
"jni/onload.cc",
|
|
]
|
|
|
|
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
|
|
configs += [ "//build/config/android:hide_all_but_jni" ]
|
|
|
|
deps = [
|
|
":generated_jni",
|
|
"../../api:scoped_refptr",
|
|
"//api:libjingle_peerconnection_api",
|
|
"//api/rtc_event_log:rtc_event_log_factory",
|
|
"//api/task_queue:default_task_queue_factory",
|
|
"//media:rtc_audio_video",
|
|
"//media:rtc_internal_video_codecs",
|
|
"//media:rtc_media_engine_defaults",
|
|
"//modules/utility",
|
|
"//pc:libjingle_peerconnection",
|
|
"//rtc_base",
|
|
"//rtc_base:rtc_base_approved",
|
|
"//sdk/android:native_api_base",
|
|
"//sdk/android:native_api_jni",
|
|
"//sdk/android:native_api_video",
|
|
]
|
|
}
|
|
|
|
android_resources("resources") {
|
|
testonly = true
|
|
resource_dirs = [ "res" ]
|
|
custom_package = "org.webrtc.examples.androidnativeapi"
|
|
}
|
|
}
|