blob: 48162192511dbc899fdf06ac7c821d901eca7db1 [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: [
33 "main.cpp",
34 "Face.cpp",
Joshua McCloskeydb009a52022-05-10 05:18:20 +000035 "FakeFaceEngine.cpp",
Ilya Matyukhin09166982020-10-12 13:41:03 -070036 "Session.cpp",
37 ],
Joshua McCloskey67310c32023-11-01 15:57:55 +000038 include_dirs: [
39 "frameworks/native/aidl/gui",
40 ],
Jooyung Han1419f352023-10-13 14:58:41 +090041 stl: "c++_static",
42 static_libs: [
Vincent Wang890be572023-11-30 07:36:41 +000043 "android.hardware.biometrics.common-V4-ndk",
Jooyung Han1419f352023-10-13 14:58:41 +090044 "android.hardware.biometrics.common.thread",
45 "android.hardware.biometrics.common.util",
Joshua McCloskey67310c32023-11-01 15:57:55 +000046 "android.hardware.biometrics.face-V4-ndk",
Jooyung Han1419f352023-10-13 14:58:41 +090047 "android.hardware.common-V2-ndk",
48 "android.hardware.keymaster-V4-ndk",
49 "libandroid.hardware.biometrics.face.VirtualProps",
50 "libbase",
51 ],
Joshua McCloskeydb009a52022-05-10 05:18:20 +000052}
53
54sysprop_library {
55 name: "android.hardware.biometrics.face.VirtualProps",
56 srcs: ["face.sysprop"],
57 property_owner: "Vendor",
58 vendor: true,
59}
60
61cc_test {
62 name: "android.hardware.biometrics.face.FakeFaceEngineTest",
63 srcs: [
64 "tests/FakeFaceEngineTest.cpp",
65 "FakeFaceEngine.cpp",
66 ],
67 shared_libs: [
68 "libbase",
69 "libbinder_ndk",
Joshua McCloskey67310c32023-11-01 15:57:55 +000070 "libnativewindow",
71 ],
72 include_dirs: [
73 "frameworks/native/aidl/gui",
Joshua McCloskeydb009a52022-05-10 05:18:20 +000074 ],
75 static_libs: [
Trevor Radcliffec0886122022-06-09 19:19:30 +000076 "libandroid.hardware.biometrics.face.VirtualProps",
Joshua McCloskey67310c32023-11-01 15:57:55 +000077 "android.hardware.biometrics.face-V4-ndk",
Vincent Wang890be572023-11-30 07:36:41 +000078 "android.hardware.biometrics.common-V4-ndk",
Ilya Matyukhin84531782022-10-31 02:29:43 +000079 "android.hardware.keymaster-V4-ndk",
Joshua McCloskeydb009a52022-05-10 05:18:20 +000080 "android.hardware.biometrics.common.util",
81 ],
82 vendor: true,
83 test_suites: ["general-tests"],
84 require_root: true,
Ilya Matyukhin09166982020-10-12 13:41:03 -070085}