| # 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") |
| |
| # Upstream guava introduced versions with -android suffix starting with version |
| # 22 to remove incompatible code with android. Thus we keep two jars, one for |
| # the full guava and one that supports android. Please keep the versions in |
| # sync with one another. |
| |
| java_prebuilt("guava_android_java") { |
| testonly = true |
| supports_android = true |
| jar_path = "lib/guava-android.jar" |
| |
| # Avoids dependency cycle. |
| no_build_hooks = true |
| } |
| |
| java_prebuilt("guava_java") { |
| # Since our build tooling depends on this target, we need it to not be |
| # "testonly = true", but production code must not depend on this as it results |
| # in size regressions. Thus we specify exact packages through visibility. |
| visibility = [ |
| "//third_party/auto:*", |
| "//third_party/robolectric:*", |
| ] |
| jar_path = "lib/guava.jar" |
| } |