• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_team: "trendy_team_biometrics_framework",
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "hardware_interfaces_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
11filegroup {
12    name: "face-example.rc",
13    srcs: ["face-example.rc"],
14}
15
16filegroup {
17    name: "face-example.xml",
18    srcs: ["face-example.xml"],
19}
20
21cc_binary {
22    name: "android.hardware.biometrics.face-service.example",
23    relative_install_path: "hw",
24    init_rc: [":face-example.rc"],
25    vintf_fragments: [":face-example.xml"],
26    vendor: true,
27
28    shared_libs: [
29        "libbinder_ndk",
30        "liblog",
31        "libnativewindow",
32    ],
33    srcs: [
34        "FakeLockoutTracker.cpp",
35        "main.cpp",
36        "Face.cpp",
37        "FakeFaceEngine.cpp",
38        "Session.cpp",
39    ],
40    include_dirs: [
41        "frameworks/native/aidl/gui",
42    ],
43    stl: "c++_static",
44    static_libs: [
45        "android.hardware.biometrics.common-V4-ndk",
46        "android.hardware.biometrics.common.thread",
47        "android.hardware.biometrics.common.util",
48        "android.hardware.biometrics.face-V4-ndk",
49        "android.hardware.common-V2-ndk",
50        "android.hardware.keymaster-V4-ndk",
51        "libandroid.hardware.biometrics.face.VirtualProps",
52        "libbase",
53    ],
54}
55
56sysprop_library {
57    name: "android.hardware.biometrics.face.VirtualProps",
58    srcs: ["face.sysprop"],
59    property_owner: "Vendor",
60    vendor: true,
61}
62
63cc_test {
64    name: "android.hardware.biometrics.face.FakeFaceEngineTest",
65    srcs: [
66        "tests/FakeFaceEngineTest.cpp",
67        "FakeFaceEngine.cpp",
68        "FakeLockoutTracker.cpp",
69    ],
70    shared_libs: [
71        "libbase",
72        "libbinder_ndk",
73        "libnativewindow",
74    ],
75    include_dirs: [
76        "frameworks/native/aidl/gui",
77    ],
78    static_libs: [
79        "libandroid.hardware.biometrics.face.VirtualProps",
80        "android.hardware.biometrics.face-V4-ndk",
81        "android.hardware.biometrics.common-V4-ndk",
82        "android.hardware.keymaster-V4-ndk",
83        "android.hardware.biometrics.common.util",
84    ],
85    vendor: true,
86    test_suites: ["general-tests"],
87    require_root: true,
88}
89
90cc_test {
91    name: "android.hardware.biometrics.face.FakeLockoutTrackerTest",
92    srcs: [
93        "tests/FakeLockoutTrackerTest.cpp",
94        "FakeLockoutTracker.cpp",
95    ],
96    shared_libs: [
97        "libbase",
98        "libbinder_ndk",
99        "libnativewindow",
100    ],
101    include_dirs: [
102        "frameworks/native/aidl/gui",
103    ],
104    static_libs: [
105        "libandroid.hardware.biometrics.face.VirtualProps",
106        "android.hardware.biometrics.face-V4-ndk",
107        "android.hardware.biometrics.common-V4-ndk",
108        "android.hardware.keymaster-V4-ndk",
109        "android.hardware.biometrics.common.util",
110    ],
111    vendor: true,
112    test_suites: ["general-tests"],
113    require_root: true,
114}
115