naiveproxy/third_party/gvr-android-sdk/BUILD.gn

60 lines
2.4 KiB
Plaintext
Raw Normal View History

2018-01-28 19:30:36 +03:00
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
android_aar_prebuilt("controller_test_api_java") {
aar_path = "test-libraries/controller_test_api.aar"
proguard_configs = [ "test-libraries/proguard.txt" ]
# Jar includes conflicting copies of Desugar-runtime.jar classes.
jar_excluded_patterns = [ "*ThrowableExtension*.class" ]
}
android_aar_prebuilt("gvr_common_java") {
aar_path = "src/libraries/sdk-common-1.80.0.aar"
proguard_configs = [ "proguard-gvr-chromium.txt" ]
ignore_native_libraries = true
# Ignore unused auto generated classes. Proguard will not strip them automatically because they
# implemented an interface that is called by VrEvent.
jar_excluded_patterns = [
"*google/common/logging/nano/Vr\$VREvent\$VrStreaming*.class",
"*google/common/logging/nano/Vr\$VREvent\$VrHome*.class",
"*google/common/logging/nano/Vr\$VREvent\$VrCore*.class",
"*google/common/logging/nano/Vr\$VREvent\$TimeSeriesData*.class",
"*google/common/logging/nano/Vr\$VREvent\$StreetView*.class",
"*google/common/logging/nano/Vr\$VREvent\$SensorStats*.class",
"*google/common/logging/nano/Vr\$VREvent\$Renderer.class",
"*google/common/logging/nano/Vr\$VREvent\$QrCodeScan.class",
"*google/common/logging/nano/Vr\$VREvent\$Photos*.class",
"*google/common/logging/nano/Vr\$VREvent\$Lullaby*.class",
"*google/common/logging/nano/Vr\$VREvent\$Launcher.class",
"*google/common/logging/nano/Vr\$VREvent\$Keyboard*.class",
"*google/common/logging/nano/Vr\$VREvent\$JumpInspector*.class",
"*google/common/logging/nano/Vr\$VREvent\$GConfigUpdate*.class",
"*google/common/logging/nano/Vr\$VREvent\$EmbedVrWidget*.class",
"*google/common/logging/nano/Vr\$VREvent\$EarthVr*.class",
"*google/common/logging/nano/Vr\$VREvent\$DoublePrecisionTransform.class",
"*google/common/logging/nano/Vr\$VREvent\$Cyclops*.class",
"*google/common/logging/nano/Vr\$VREvent\$AudioStats.class",
"*ThrowableExtension*.class",
]
deps = [
"//third_party/android_protobuf:protobuf_nano_javalib",
]
}
android_aar_prebuilt("gvr_controller_java") {
aar_path = "src/libraries/sdk-controller-1.80.0.aar"
deps = [
":gvr_common_java",
]
}
config("libgvr_config") {
include_dirs = [ "src/libraries/headers/" ]
}