mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
257 lines
13 KiB
Plaintext
257 lines
13 KiB
Plaintext
# 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.101.0.aar"
|
|
proguard_configs = [
|
|
"src/proguard-gvr.txt",
|
|
"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",
|
|
|
|
# The following list contains all the java classes in
|
|
# com.google.vr.cardboard.* and com.google.vr.ndk.base.*. Gvr allows
|
|
# loading GvrLayout and GvrUiLayout from VrCore. So a lot of classes in the
|
|
# two namespaces are no longer needed.
|
|
# For classes that are still needed, we comment them out from the list
|
|
# instead of removing them.
|
|
# If any class is needed in the future, please also comment it out from the
|
|
# list instead of removing.
|
|
# TODO(bshe): Instead of excluding classes, we should consider use something
|
|
# like jar_included_patterns. So that we only need to include the classes
|
|
# that we need. And we don't need to worry about forget to exclude new
|
|
# classes after a GVR roll. See crbug.com/764446
|
|
#"*google/vr/cardboard/AndroidNCompat\$1.class",
|
|
#"*google/vr/cardboard/AndroidNCompat\$2.class",
|
|
#"*google/vr/cardboard/AndroidNCompat\$3.class",
|
|
#"*google/vr/cardboard/AndroidNCompat.class",
|
|
"google/vr/cardboard/CardboardGLSurfaceView.class",
|
|
"*google/vr/cardboard/CardboardGLSurfaceView\$DetachListener.class",
|
|
#"*google/vr/cardboard/ConfigUtils.class",
|
|
#"*google/vr/cardboard/ContentProviderVrParamsProvider.class",
|
|
#"*google/vr/cardboard/ContextUtils.class",
|
|
#"*google/vr/cardboard/DisplaySynchronizer.class",
|
|
#"*google/vr/cardboard/DisplayUtils.class",
|
|
"*google/vr/cardboard/EglFactory.class",
|
|
"*google/vr/cardboard/EglReadyListener.class",
|
|
"*google/vr/cardboard/EglReadyListener\$EventListener.class",
|
|
"*google/vr/cardboard/ExternalSurfaceManager\$1.class",
|
|
"*google/vr/cardboard/ExternalSurfaceManager.class",
|
|
"*google/vr/cardboard/ExternalSurfaceManager\$ExternalSurface\$1.class",
|
|
"*google/vr/cardboard/ExternalSurfaceManager\$ExternalSurfaceCallback.class",
|
|
"*google/vr/cardboard/ExternalSurfaceManager\$ExternalSurface.class",
|
|
"*google/vr/cardboard/ExternalSurfaceManager\$ExternalSurfaceData.class",
|
|
"*google/vr/cardboard/ExternalSurfaceManager\$UpdateSurfaceCallback.class",
|
|
#"*google/vr/cardboard/FrameMonitor.class",
|
|
"*google/vr/cardboard/FullscreenMode\$1\$1.class",
|
|
"*google/vr/cardboard/FullscreenMode\$1.class",
|
|
"*google/vr/cardboard/FullscreenMode.class",
|
|
"*google/vr/cardboard/LegacyVrParamsProvider.class",
|
|
"*google/vr/cardboard/MutableEglConfigChooser.class",
|
|
"*google/vr/cardboard/NFCUtils\$1.class",
|
|
"*google/vr/cardboard/NFCUtils.class",
|
|
#"*google/vr/cardboard/PackageUtils.class",
|
|
"*google/vr/cardboard/PhoneParams.class",
|
|
"*google/vr/cardboard/PhoneParams\$PpiOverride.class",
|
|
"*google/vr/cardboard/ScanlineRacingRenderer\$1.class",
|
|
"*google/vr/cardboard/ScanlineRacingRenderer.class",
|
|
"*google/vr/cardboard/ScreenOrientationDetector.class",
|
|
"*google/vr/cardboard/ScreenOrientationDetector\$Listener.class",
|
|
"*google/vr/cardboard/ScreenOrientationDetector\$Orientation.class",
|
|
"*google/vr/cardboard/StoragePermissionUtils.class",
|
|
"*google/vr/cardboard/ThreadUtils.class",
|
|
"*google/vr/cardboard/TransitionView\$1.class",
|
|
"*google/vr/cardboard/TransitionView\$2.class",
|
|
"*google/vr/cardboard/TransitionView\$3.class",
|
|
"*google/vr/cardboard/TransitionView\$4.class",
|
|
"*google/vr/cardboard/TransitionView\$5.class",
|
|
"*google/vr/cardboard/TransitionView.class",
|
|
"*google/vr/cardboard/UiLayer\$10.class",
|
|
"*google/vr/cardboard/UiLayer\$11.class",
|
|
"*google/vr/cardboard/UiLayer\$1.class",
|
|
"*google/vr/cardboard/UiLayer\$2.class",
|
|
"*google/vr/cardboard/UiLayer\$3.class",
|
|
"*google/vr/cardboard/UiLayer\$4.class",
|
|
"*google/vr/cardboard/UiLayer\$5.class",
|
|
"*google/vr/cardboard/UiLayer\$6.class",
|
|
"*google/vr/cardboard/UiLayer\$7.class",
|
|
"*google/vr/cardboard/UiLayer\$8.class",
|
|
"*google/vr/cardboard/UiLayer\$9.class",
|
|
"*google/vr/cardboard/UiLayer\$RootOuterLayout.class",
|
|
"*google/vr/cardboard/UiLayer.class",
|
|
"*google/vr/cardboard/UiUtils\$1.class",
|
|
"*google/vr/cardboard/UiUtils\$2.class",
|
|
"*google/vr/cardboard/UiUtils\$3.class",
|
|
"*google/vr/cardboard/UiUtils\$4.class",
|
|
"*google/vr/cardboard/UiUtils.class",
|
|
"*google/vr/cardboard/UsedByNative.class",
|
|
#"*google/vr/cardboard/VrContextWrapper.class",
|
|
#"*google/vr/cardboard/VrCoreLibraryLoader.class",
|
|
#"*google/vr/cardboard/VrParamsProvider.class",
|
|
#"*google/vr/cardboard/VrParamsProviderFactory.class",
|
|
#"*google/vr/cardboard/VrParamsProviderFactory\$ContentProviderClientHandle.class",
|
|
"*google/vr/cardboard/VrParamsProviderJni.class",
|
|
#"*google/vr/cardboard/VrSettingsProviderContract.class",
|
|
"*google/vr/cardboard/annotations/UsedByNative.class",
|
|
"*google/vr/cardboard/annotations/UsedByReflection.class",
|
|
"*google/vr/ndk/base/AbstractDaydreamTouchListener.class",
|
|
#"*google/vr/ndk/base/AndroidCompat.class",
|
|
"*google/vr/ndk/base/BufferSpec.class",
|
|
"*google/vr/ndk/base/BufferSpec\$ColorFormat.class",
|
|
"*google/vr/ndk/base/BufferSpec\$DepthStencilFormat.class",
|
|
"*google/vr/ndk/base/BufferViewport.class",
|
|
"*google/vr/ndk/base/BufferViewport\$EyeType.class",
|
|
"*google/vr/ndk/base/BufferViewportList.class",
|
|
"*google/vr/ndk/base/BufferViewport\$Reprojection.class",
|
|
#"*google/vr/ndk/base/BuildConstants.class",
|
|
"*google/vr/ndk/base/BuildFlags.class",
|
|
"*google/vr/ndk/base/CardboardEmulator.class",
|
|
"*google/vr/ndk/base/CardboardEmulator\$ControllerCallbacks.class",
|
|
"*google/vr/ndk/base/Constants.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$10.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$11.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$12.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$1.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$2.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$3.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$4.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$5.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$6\$1.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$6.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$7.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$8.class",
|
|
#"*google/vr/ndk/base/DaydreamApi\$9.class",
|
|
#"*google/vr/ndk/base/DaydreamApi.class",
|
|
#"*google/vr/ndk/base/DaydreamUtils.class",
|
|
"*google/vr/ndk/base/DaydreamUtilsWrapper.class",
|
|
"*google/vr/ndk/base/ExtensionManager.class",
|
|
"*google/vr/ndk/base/ExternalSurface\$1.class",
|
|
"*google/vr/ndk/base/ExternalSurface\$2.class",
|
|
"*google/vr/ndk/base/ExternalSurface.class",
|
|
"*google/vr/ndk/base/FadeOverlayView\$1.class",
|
|
"*google/vr/ndk/base/FadeOverlayView\$2.class",
|
|
"*google/vr/ndk/base/FadeOverlayView.class",
|
|
"*google/vr/ndk/base/Frame.class",
|
|
#"*google/vr/ndk/base/GvrApi.class",
|
|
"*google/vr/ndk/base/GvrApi\$Error.class",
|
|
"*google/vr/ndk/base/GvrApi\$Feature.class",
|
|
"*google/vr/ndk/base/GvrApi\$IdleListener.class",
|
|
"*google/vr/ndk/base/GvrApi\$PoseTracker.class",
|
|
"*google/vr/ndk/base/GvrApi\$ViewerType.class",
|
|
#"*google/vr/ndk/base/GvrLayout.class",
|
|
"*google/vr/ndk/base/GvrLayout\$ExternalSurfaceListener.class",
|
|
#"*google/vr/ndk/base/GvrLayoutFactory.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$1.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$2.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$3.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$4.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$AsyncReprojectionSurfaceView\$1.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$AsyncReprojectionSurfaceView.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$\$Lambda\$0.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$FrameFlushWorkaround.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$NullExtensionManager.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$PresentationFactory.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$PresentationHelper.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$PresentationListener.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$ScreenOnManager\$1.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$ScreenOnManager\$2.class",
|
|
"*google/vr/ndk/base/GvrLayoutImpl\$ScreenOnManager.class",
|
|
"*google/vr/ndk/base/GvrLayoutImplWrapper.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$1.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$BaseConfigChooser.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$ComponentSizeChooser.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$DefaultContextFactory.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$DefaultWindowSurfaceFactory.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$EglHelper.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$GLThread.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$GLThread\$GLThreadManager.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$GLWrapper.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$LogWriter.class",
|
|
"*google/vr/ndk/base/GvrSurfaceView\$SimpleEGLConfigChooser.class",
|
|
#"*google/vr/ndk/base/GvrUiLayout.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl\$1.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl\$2.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl\$3.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl\$\$Lambda\$0.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl\$\$Lambda\$1.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl\$\$Lambda\$2.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl.class",
|
|
"*google/vr/ndk/base/GvrUiLayoutImpl\$CloseButtonListenerWrapper.class",
|
|
#"*google/vr/ndk/base/SdkConfigurationReader.class",
|
|
"*google/vr/ndk/base/SdkDaydreamTouchListener\$1.class",
|
|
"*google/vr/ndk/base/SdkDaydreamTouchListener.class",
|
|
"*google/vr/ndk/base/SdkDaydreamTouchListener\$FinishInitilizationTask.class",
|
|
"*google/vr/ndk/base/SdkDaydreamTouchListener\$RefreshViewerProfileTask.class",
|
|
"*google/vr/ndk/base/SerializationConstants.class",
|
|
"*google/vr/ndk/base/SwapChain.class",
|
|
"*google/vr/ndk/base/ThrottlingMonitor\$1.class",
|
|
"*google/vr/ndk/base/ThrottlingMonitor\$2.class",
|
|
"*google/vr/ndk/base/ThrottlingMonitor.class",
|
|
"*google/vr/ndk/base/ThrottlingMonitor\$SetupCallback.class",
|
|
"*google/vr/ndk/base/ThrottlingMonitor\$TemperatureTrigger.class",
|
|
"*google/vr/ndk/base/ThrottlingMonitor\$ThrottlingTriggerCallback\$1.class",
|
|
"*google/vr/ndk/base/ThrottlingMonitor\$ThrottlingTriggerCallback.class",
|
|
#"*google/vr/ndk/base/TraceCompat.class",
|
|
"*google/vr/ndk/base/UserPrefs.class",
|
|
"*google/vr/ndk/base/UserPrefs\$ControllerHandedness.class",
|
|
#"*google/vr/ndk/base/Version.class",
|
|
"*google/vr/ndk/base/VrCoreSdkClient\$1.class",
|
|
"*google/vr/ndk/base/VrCoreSdkClient.class",
|
|
"*google/vr/ndk/base/VrCoreSdkClient\$DaydreamListenerImpl\$1.class",
|
|
"*google/vr/ndk/base/VrCoreSdkClient\$DaydreamListenerImpl\$2.class",
|
|
"*google/vr/ndk/base/VrCoreSdkClient\$DaydreamListenerImpl.class",
|
|
]
|
|
|
|
deps = [
|
|
"//third_party/android_protobuf:protobuf_nano_javalib",
|
|
]
|
|
}
|
|
|
|
android_aar_prebuilt("gvr_controller_java") {
|
|
aar_path = "src/libraries/sdk-controller-1.101.0.aar"
|
|
deps = [
|
|
":gvr_common_java",
|
|
]
|
|
}
|
|
|
|
config("libgvr_config") {
|
|
include_dirs = [ "src/libraries/headers/" ]
|
|
}
|