summaryrefslogtreecommitdiffstats
path: root/chromium/components/device_reauth/BUILD.gn
blob: 8e14a02e863ca1e3884903052153481f3c4a4656 (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
# Copyright 2021 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.

if (is_android) {
  import("//build/config/android/config.gni")
  import("//build/config/android/rules.gni")
}

static_library("device_reauth") {
  sources = [
    "biometric_authenticator.cc",
    "biometric_authenticator.h",
  ]

  deps = [ "//base" ]
}

static_library("test_support") {
  testonly = true
  sources = [
    "mock_biometric_authenticator.cc",
    "mock_biometric_authenticator.h",
  ]

  deps = [
    ":device_reauth",
    "//base",
    "//testing/gmock",
  ]
}

if (is_android) {
  android_library("device_reauth_java_enums") {
    srcjar_deps = [ ":device_reauth_java_enums_srcjar" ]

    deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
  }

  java_cpp_enum("device_reauth_java_enums_srcjar") {
    sources = [ "biometric_authenticator.h" ]
  }
}