summaryrefslogtreecommitdiff
path: root/chromium/third_party/gvr-android-sdk/BUILD.gn
blob: bc7e79ec5901c63a8b267c202b3c01e6bf4c7dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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/" ]
}