BUILD.gn 954 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. if (is_android) {
  5. import("//build/config/android/config.gni")
  6. import("//build/config/android/rules.gni")
  7. }
  8. static_library("device_reauth") {
  9. sources = [
  10. "biometric_authenticator.cc",
  11. "biometric_authenticator.h",
  12. ]
  13. deps = [ "//base" ]
  14. }
  15. static_library("test_support") {
  16. testonly = true
  17. sources = [
  18. "mock_biometric_authenticator.cc",
  19. "mock_biometric_authenticator.h",
  20. ]
  21. deps = [
  22. ":device_reauth",
  23. "//base",
  24. "//testing/gmock",
  25. ]
  26. }
  27. if (is_android) {
  28. android_library("device_reauth_java_enums") {
  29. srcjar_deps = [ ":device_reauth_java_enums_srcjar" ]
  30. deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
  31. }
  32. java_cpp_enum("device_reauth_java_enums_srcjar") {
  33. sources = [ "biometric_authenticator.h" ]
  34. }
  35. }