Bob Badour | c22b35b | 2021-02-23 14:26:20 -0800 | [diff] [blame] | 1 | package { |
| 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 | |
Ilya Matyukhin | a9a3c85 | 2020-08-18 03:09:41 -0700 | [diff] [blame] | 10 | cc_binary { |
| 11 | name: "android.hardware.biometrics.fingerprint-service.example", |
Ilya Matyukhin | 124e70a | 2021-02-12 13:00:15 -0800 | [diff] [blame] | 12 | vendor: true, |
Ilya Matyukhin | a9a3c85 | 2020-08-18 03:09:41 -0700 | [diff] [blame] | 13 | relative_install_path: "hw", |
Joe Bolinger | 3041e52 | 2022-04-15 17:50:08 -0700 | [diff] [blame^] | 14 | init_rc: ["fingerprint-example.rc"], |
| 15 | vintf_fragments: ["fingerprint-example.xml"], |
Ilya Matyukhin | 124e70a | 2021-02-12 13:00:15 -0800 | [diff] [blame] | 16 | local_include_dirs: ["include"], |
| 17 | srcs: [ |
Ilya Matyukhin | 48ff896 | 2021-02-22 13:13:13 -0800 | [diff] [blame] | 18 | "CancellationSignal.cpp", |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 19 | "FakeFingerprintEngine.cpp", |
Ilya Matyukhin | 124e70a | 2021-02-12 13:00:15 -0800 | [diff] [blame] | 20 | "Fingerprint.cpp", |
| 21 | "Session.cpp", |
Ilya Matyukhin | 48ff896 | 2021-02-22 13:13:13 -0800 | [diff] [blame] | 22 | "WorkerThread.cpp", |
| 23 | "main.cpp", |
Ilya Matyukhin | 124e70a | 2021-02-12 13:00:15 -0800 | [diff] [blame] | 24 | ], |
Ilya Matyukhin | a9a3c85 | 2020-08-18 03:09:41 -0700 | [diff] [blame] | 25 | shared_libs: [ |
| 26 | "libbase", |
| 27 | "libbinder_ndk", |
Joe Bolinger | ce02213 | 2021-09-28 19:04:47 +0000 | [diff] [blame] | 28 | "android.hardware.biometrics.fingerprint-V2-ndk", |
Joe Bolinger | 13cb0fb | 2021-12-03 12:45:48 -0800 | [diff] [blame] | 29 | "android.hardware.biometrics.common-V2-ndk", |
Ilya Matyukhin | a9a3c85 | 2020-08-18 03:09:41 -0700 | [diff] [blame] | 30 | ], |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 31 | static_libs: ["android.hardware.biometrics.fingerprint.VirtualProps"], |
Ilya Matyukhin | a9a3c85 | 2020-08-18 03:09:41 -0700 | [diff] [blame] | 32 | } |
Ilya Matyukhin | 1f3c852 | 2021-02-12 12:56:02 -0800 | [diff] [blame] | 33 | |
| 34 | cc_test_host { |
| 35 | name: "android.hardware.biometrics.fingerprint.WorkerThreadTest", |
| 36 | local_include_dirs: ["include"], |
| 37 | srcs: [ |
| 38 | "tests/WorkerThreadTest.cpp", |
| 39 | "WorkerThread.cpp", |
| 40 | ], |
| 41 | shared_libs: [ |
| 42 | "libcutils", |
| 43 | ], |
| 44 | test_suites: ["general-tests"], |
| 45 | } |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 46 | |
| 47 | cc_test { |
| 48 | name: "android.hardware.biometrics.fingerprint.FakeFingerprintEngineTest", |
| 49 | local_include_dirs: ["include"], |
| 50 | srcs: [ |
| 51 | "CancellationSignal.cpp", |
| 52 | "tests/FakeFingerprintEngineTest.cpp", |
| 53 | "FakeFingerprintEngine.cpp", |
| 54 | ], |
| 55 | shared_libs: [ |
| 56 | "libbase", |
| 57 | "libbinder_ndk", |
| 58 | ], |
| 59 | static_libs: [ |
| 60 | "android.hardware.biometrics.fingerprint.VirtualProps", |
| 61 | "android.hardware.biometrics.fingerprint-V2-ndk", |
| 62 | "android.hardware.biometrics.common-V2-ndk", |
| 63 | "android.hardware.keymaster-V3-ndk", |
| 64 | ], |
| 65 | vendor: true, |
| 66 | test_suites: ["general-tests"], |
| 67 | require_root: true, |
| 68 | } |
| 69 | |
| 70 | sysprop_library { |
| 71 | name: "android.hardware.biometrics.fingerprint.VirtualProps", |
| 72 | srcs: ["fingerprint.sysprop"], |
| 73 | property_owner: "Vendor", |
| 74 | vendor: true, |
| 75 | } |