# Copyright 2017 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")

java_library("errorprone_plugin_java") {
  java_files = [
    "src/org/chromium/tools/errorprone/plugin/NoSynchronizedMethodCheck.java",
    "src/org/chromium/tools/errorprone/plugin/NoSynchronizedThisCheck.java",
  ]

  # Necessary to avoid dependency cycle
  enable_errorprone = false

  # So that we don't need to inject emma runtime into the compiler's classpath.
  emma_never_instrument = true

  annotation_processor_deps = [ "//third_party/auto:auto_service_processor" ]
  deps = [
    "//third_party/auto:auto_service_java",
    "//third_party/errorprone:errorprone_java",
  ]
}
