Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Fixed build issue for android. #1

Merged
merged 1 commit into from
Nov 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 46 additions & 46 deletions sdk/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ if (is_android) {
":surfaceviewrenderer_java",
":video_api_java",
":video_java",
"//modules/audio_device:audio_device_java",
"//rtc_base:base_java",
"../../modules/audio_device:audio_device_java",
"../../rtc_base:base_java",
]
}

Expand Down Expand Up @@ -202,7 +202,7 @@ if (is_android) {
]

deps = [
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -211,7 +211,7 @@ if (is_android) {

deps = [
":base_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -231,7 +231,7 @@ if (is_android) {

deps = [
":base_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand Down Expand Up @@ -268,7 +268,7 @@ if (is_android) {
deps = [
":base_java",
":video_api_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand Down Expand Up @@ -323,8 +323,8 @@ if (is_android) {
":swcodecs_java",
":video_api_java",
":video_java",
"//modules/audio_device:audio_device_java",
"//rtc_base:base_java",
"../../modules/audio_device:audio_device_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -349,7 +349,7 @@ if (is_android) {
":base_java",
":video_api_java",
":video_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand Down Expand Up @@ -377,7 +377,7 @@ if (is_android) {
":base_java",
":video_api_java",
":video_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -403,7 +403,7 @@ if (is_android) {
":base_java",
":video_api_java",
":video_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -421,7 +421,7 @@ if (is_android) {
deps = [
":audio_api_java",
":base_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -431,7 +431,7 @@ if (is_android) {
deps = [
":video_api_java",
":video_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -444,7 +444,7 @@ if (is_android) {
deps = [
":video_api_java",
":video_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand All @@ -462,7 +462,7 @@ if (is_android) {
":base_java",
":video_api_java",
":video_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand Down Expand Up @@ -714,8 +714,8 @@ if (is_android) {
":generated_external_classes_jni",
":generated_native_api_jni",
":internal_jni",
"//rtc_base:checks",
"//rtc_base:rtc_base_approved",
"../../rtc_base:checks",
"../../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/types:optional",
]
}
Expand All @@ -732,8 +732,8 @@ if (is_android) {
deps = [
":base_jni",
":native_api_jni",
"//rtc_base:checks",
"//rtc_base:rtc_base",
"../../rtc_base:checks",
"../../rtc_base:rtc_base",
"//third_party/abseil-cpp/absl/memory",
]
}
Expand Down Expand Up @@ -781,9 +781,9 @@ if (is_android) {
":base_jni",
":native_api_jni",
":video_jni",
"//api/video_codecs:video_codecs_api",
"//rtc_base:checks",
"//rtc_base:rtc_base_approved",
"../../api/video_codecs:video_codecs_api",
"../../rtc_base:checks",
"../../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/memory",
]
}
Expand All @@ -802,9 +802,9 @@ if (is_android) {
deps = [
":base_jni",
":peerconnection_jni",
"//api:libjingle_peerconnection_api",
"//api/video_codecs:video_codecs_api",
"//rtc_base:rtc_base",
"../../api:libjingle_peerconnection_api",
"../../api/video_codecs:video_codecs_api",
"../../rtc_base:rtc_base",
]
}

Expand All @@ -826,9 +826,9 @@ if (is_android) {
":native_api_jni",
":video_jni",
":videoframe_jni",
"//api:libjingle_peerconnection_api",
"//api/video:video_frame",
"//rtc_base:rtc_base_approved",
"../../api:libjingle_peerconnection_api",
"../../api/video:video_frame",
"../../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/memory",
]
}
Expand All @@ -842,7 +842,7 @@ if (is_android) {

deps = [
":base_java",
"//rtc_base:base_java",
"../../rtc_base:base_java",
]
}

Expand Down Expand Up @@ -1289,8 +1289,8 @@ if (is_android) {
":libjingle_peerconnection_metrics_default_java",
":video_api_java",
":video_java",
"//base:base_java_test_support",
"//rtc_base:base_java",
"../../base:base_java_test_support",
"../../rtc_base:base_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/junit",
Expand Down Expand Up @@ -1371,21 +1371,21 @@ if (is_android) {
":opensles_audio_device_module",
":video_jni",
"../../system_wrappers:system_wrappers",
"//api/audio_codecs:builtin_audio_decoder_factory",
"//api/audio_codecs:builtin_audio_encoder_factory",
"//api/video:video_frame",
"//media:rtc_audio_video",
"//media:rtc_internal_video_codecs",
"//media:rtc_media_base",
"//modules/audio_device:audio_device",
"//modules/audio_device:mock_audio_device",
"//modules/audio_processing:audio_processing",
"//modules/utility:utility",
"//pc:libjingle_peerconnection",
"//rtc_base:checks",
"//rtc_base:rtc_base_approved",
"//test:fileutils",
"//test:test_support",
"../../api/audio_codecs:builtin_audio_decoder_factory",
"../../api/audio_codecs:builtin_audio_encoder_factory",
"../../api/video:video_frame",
"../../media:rtc_audio_video",
"../../media:rtc_internal_video_codecs",
"../../media:rtc_media_base",
"../../modules/audio_device:audio_device",
"../../modules/audio_device:mock_audio_device",
"../../modules/audio_processing:audio_processing",
"../../modules/utility:utility",
"../../pc:libjingle_peerconnection",
"../../rtc_base:checks",
"../../rtc_base:rtc_base_approved",
"../../test:fileutils",
"../../test:test_support",
"//testing/gtest",
"//third_party/abseil-cpp/absl/memory",
]
Expand Down
24 changes: 15 additions & 9 deletions webrtc.gni
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,11 @@ if (is_android) {
# TODO(crbug.com/824679): Find out why this fails in Chromium
if (!build_with_chromium) {
javac_args += [
"-Xep:ParameterNotNullable:ERROR",
"-Xep:FieldMissingNullable:ERROR",
"-Xep:ReturnMissingNullable:ERROR",
# TODO (hank): |_chromium_code| in |java_library_impl| broke due to our code structure presumably,
# TODO (hank): which caused that errorprone were not included. So temporarily comment out params below.
#"-Xep:ParameterNotNullable:ERROR",
#"-Xep:FieldMissingNullable:ERROR",
#"-Xep:ReturnMissingNullable:ERROR",
]
}

Expand Down Expand Up @@ -729,9 +731,11 @@ if (is_android) {
# TODO(crbug.com/824679): Find out why this fails in Chromium
if (!build_with_chromium) {
javac_args += [
"-Xep:ParameterNotNullable:ERROR",
"-Xep:FieldMissingNullable:ERROR",
"-Xep:ReturnMissingNullable:ERROR",
# TODO (hank): |_chromium_code| in |java_library_impl| broke due to our code structure presumably,
# TODO (hank): which caused that errorprone were not included. So temporarily comment out params below.
#"-Xep:ParameterNotNullable:ERROR",
#"-Xep:FieldMissingNullable:ERROR",
#"-Xep:ReturnMissingNullable:ERROR",
]
}

Expand Down Expand Up @@ -761,9 +765,11 @@ if (is_android) {
# TODO(crbug.com/824679): Find out why this fails in Chromium
if (!build_with_chromium) {
javac_args += [
"-Xep:ParameterNotNullable:ERROR",
"-Xep:FieldMissingNullable:ERROR",
"-Xep:ReturnMissingNullable:ERROR",
# TODO (hank): |_chromium_code| in |java_library_impl| broke due to our code structure presumably,
# TODO (hank): which caused that errorprone were not included. So temporarily comment out params below.
#"-Xep:ParameterNotNullable:ERROR",
#"-Xep:FieldMissingNullable:ERROR",
#"-Xep:ReturnMissingNullable:ERROR",
]
}

Expand Down