blob: 4e8390a64e40a77b763be71ef86eda2d47ce69fa [file] [log] [blame]
Bob Badourc22b35b2021-02-23 14:26:20 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "hardware_interfaces_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
Jooyung Hand5842ae2023-05-25 17:30:52 +090010filegroup {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000011 name: "face-example.rc",
12 srcs: ["face-example.rc"],
Jooyung Hand5842ae2023-05-25 17:30:52 +090013}
14
15filegroup {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000016 name: "face-example.xml",
17 srcs: ["face-example.xml"],
Jooyung Hand5842ae2023-05-25 17:30:52 +090018}
19
Ilya Matyukhin09166982020-10-12 13:41:03 -070020cc_binary {
21 name: "android.hardware.biometrics.face-service.example",
22 relative_install_path: "hw",
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000023 init_rc: [":face-example.rc"],
24 vintf_fragments: [":face-example.xml"],
Ilya Matyukhin09166982020-10-12 13:41:03 -070025 vendor: true,
Jooyung Han1419f352023-10-13 14:58:41 +090026
Ilya Matyukhin09166982020-10-12 13:41:03 -070027 shared_libs: [
Ilya Matyukhin09166982020-10-12 13:41:03 -070028 "libbinder_ndk",
Jooyung Han1419f352023-10-13 14:58:41 +090029 "liblog",
Joshua McCloskey67310c32023-11-01 15:57:55 +000030 "libnativewindow",
Ilya Matyukhin09166982020-10-12 13:41:03 -070031 ],
32 srcs: [
Jeff Pu3e7448d2023-12-07 17:25:22 +000033 "FakeLockoutTracker.cpp",
Ilya Matyukhin09166982020-10-12 13:41:03 -070034 "main.cpp",
35 "Face.cpp",
Joshua McCloskeydb009a52022-05-10 05:18:20 +000036 "FakeFaceEngine.cpp",
Ilya Matyukhin09166982020-10-12 13:41:03 -070037 "Session.cpp",
38 ],
Joshua McCloskey67310c32023-11-01 15:57:55 +000039 include_dirs: [
40 "frameworks/native/aidl/gui",
41 ],
Jooyung Han1419f352023-10-13 14:58:41 +090042 stl: "c++_static",
43 static_libs: [
Vincent Wang890be572023-11-30 07:36:41 +000044 "android.hardware.biometrics.common-V4-ndk",
Jooyung Han1419f352023-10-13 14:58:41 +090045 "android.hardware.biometrics.common.thread",
46 "android.hardware.biometrics.common.util",
Joshua McCloskey67310c32023-11-01 15:57:55 +000047 "android.hardware.biometrics.face-V4-ndk",
Jooyung Han1419f352023-10-13 14:58:41 +090048 "android.hardware.common-V2-ndk",
49 "android.hardware.keymaster-V4-ndk",
50 "libandroid.hardware.biometrics.face.VirtualProps",
51 "libbase",
52 ],
Joshua McCloskeydb009a52022-05-10 05:18:20 +000053}
54
55sysprop_library {
56 name: "android.hardware.biometrics.face.VirtualProps",
57 srcs: ["face.sysprop"],
58 property_owner: "Vendor",
59 vendor: true,
60}
61
62cc_test {
63 name: "android.hardware.biometrics.face.FakeFaceEngineTest",
64 srcs: [
65 "tests/FakeFaceEngineTest.cpp",
66 "FakeFaceEngine.cpp",
Jeff Pu3e7448d2023-12-07 17:25:22 +000067 "FakeLockoutTracker.cpp",
68 ],
69 shared_libs: [
70 "libbase",
71 "libbinder_ndk",
72 "libnativewindow",
73 ],
74 include_dirs: [
75 "frameworks/native/aidl/gui",
76 ],
77 static_libs: [
78 "libandroid.hardware.biometrics.face.VirtualProps",
79 "android.hardware.biometrics.face-V4-ndk",
80 "android.hardware.biometrics.common-V4-ndk",
81 "android.hardware.keymaster-V4-ndk",
82 "android.hardware.biometrics.common.util",
83 ],
84 vendor: true,
85 test_suites: ["general-tests"],
86 require_root: true,
87}
88
89cc_test {
90 name: "android.hardware.biometrics.face.FakeLockoutTrackerTest",
91 srcs: [
92 "tests/FakeLockoutTrackerTest.cpp",
93 "FakeLockoutTracker.cpp",
Joshua McCloskeydb009a52022-05-10 05:18:20 +000094 ],
95 shared_libs: [
96 "libbase",
97 "libbinder_ndk",
Joshua McCloskey67310c32023-11-01 15:57:55 +000098 "libnativewindow",
99 ],
100 include_dirs: [
101 "frameworks/native/aidl/gui",
Joshua McCloskeydb009a52022-05-10 05:18:20 +0000102 ],
103 static_libs: [
Trevor Radcliffec0886122022-06-09 19:19:30 +0000104 "libandroid.hardware.biometrics.face.VirtualProps",
Joshua McCloskey67310c32023-11-01 15:57:55 +0000105 "android.hardware.biometrics.face-V4-ndk",
Vincent Wang890be572023-11-30 07:36:41 +0000106 "android.hardware.biometrics.common-V4-ndk",
Ilya Matyukhin84531782022-10-31 02:29:43 +0000107 "android.hardware.keymaster-V4-ndk",
Joshua McCloskeydb009a52022-05-10 05:18:20 +0000108 "android.hardware.biometrics.common.util",
109 ],
110 vendor: true,
111 test_suites: ["general-tests"],
112 require_root: true,
Ilya Matyukhin09166982020-10-12 13:41:03 -0700113}