Make javac warnings errors for WebRTC targets.

Adds new rtc_* templates for Android targets to allow specifying
default values that affect WebRTC targets.

Bug: webrtc:6597
Change-Id: Ie529bfc8500d1e785b8a59dba7078b5f88ccfcd1
Reviewed-on: https://webrtc-review.googlesource.com/15103
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20567}
This commit is contained in:
Sami Kalliomäki
2017-10-30 13:54:21 +01:00
committed by Commit Bot
parent 227d2ab903
commit 19b761403c
6 changed files with 70 additions and 41 deletions

View File

@ -49,7 +49,7 @@ group("examples") {
}
if (is_android) {
android_apk("AppRTCMobile") {
rtc_android_apk("AppRTCMobile") {
testonly = true
apk_name = "AppRTCMobile"
android_manifest = "androidapp/AndroidManifest.xml"
@ -62,12 +62,9 @@ if (is_android) {
]
shared_libraries = [ "../sdk/android:libjingle_peerconnection_so" ]
# TODO(sakal): Fix build hooks crbug.com/webrtc/8148
no_build_hooks = true
}
android_library("AppRTCMobile_javalib") {
rtc_android_library("AppRTCMobile_javalib") {
testonly = true
android_manifest = "androidapp/AndroidManifest.xml"
@ -103,9 +100,6 @@ if (is_android) {
"../sdk/android:libjingle_peerconnection_metrics_default_java",
"androidapp/third_party/autobanh:autobanh_java",
]
# TODO(sakal): Fix build hooks crbug.com/webrtc/8148
no_build_hooks = true
}
android_resources("AppRTCMobile_resources") {
@ -114,7 +108,7 @@ if (is_android) {
custom_package = "org.appspot.apprtc"
}
instrumentation_test_apk("AppRTCMobileTest") {
rtc_instrumentation_test_apk("AppRTCMobileTest") {
apk_name = "AppRTCMobileTest"
android_manifest = "androidtests/AndroidManifest.xml"
@ -128,12 +122,9 @@ if (is_android) {
"//third_party/android_support_test_runner:runner_java",
"//third_party/junit",
]
# TODO(sakal): Fix build hooks crbug.com/webrtc/8148
no_build_hooks = true
}
instrumentation_test_apk("AppRTCMobileTestStubbedVideoIO") {
rtc_instrumentation_test_apk("AppRTCMobileTestStubbedVideoIO") {
apk_name = "AppRTCMobileTestStubbedVideoIO"
android_manifest = "androidtests/AndroidManifest.xml"
@ -154,9 +145,6 @@ if (is_android) {
data = [
"../resources/reference_video_640x360_30fps.y4m",
]
# TODO(sakal): Fix build hooks crbug.com/webrtc/8148
no_build_hooks = true
}
}
@ -676,7 +664,7 @@ if (is_win || is_android) {
}
if (is_android) {
android_library("webrtc_unity_java") {
rtc_android_library("webrtc_unity_java") {
java_files = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ]
deps = [
"../rtc_base:base_java",