blob: bdd27e2bcac6c6cb2eb1f03906ac0cc9ab660bd3 [file] [log] [blame]
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -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
10cc_library_static {
11 name: "libinputprocessorexampleimpl",
12 vendor: true,
13 shared_libs: [
14 "libbase",
15 "libbinder_ndk",
16 "liblog",
17 "libutils",
18 "android.hardware.input.common-V1-ndk",
19 "android.hardware.input.processor-V1-ndk",
20 ],
21 export_include_dirs: ["include"],
22 srcs: [
23 "InputProcessor.cpp",
24 ],
25 visibility: [
26 ":__subpackages__",
27 "//hardware/interfaces/tests/extension/input/processor:__subpackages__",
28 ],
29}
30
Jooyung Han07ac2332023-10-23 14:06:24 +090031prebuilt_etc {
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080032 name: "android.hardware.input.processor.xml",
Jooyung Han07ac2332023-10-23 14:06:24 +090033 src: "android.hardware.input.processor.xml",
34 sub_dir: "vintf",
35 installable: false,
36}
37
38prebuilt_etc {
39 name: "inputprocessor-default.rc",
40 src: "inputprocessor-default.rc",
41 installable: false,
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080042}
43
44cc_binary {
45 name: "android.hardware.input.processor-service.example",
46 relative_install_path: "hw",
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080047 vendor: true,
Jooyung Han07ac2332023-10-23 14:06:24 +090048 installable: false, // installed in APEX
49
50 stl: "c++_static",
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080051 shared_libs: [
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080052 "libbinder_ndk",
53 "liblog",
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080054 ],
55 static_libs: [
Jooyung Han07ac2332023-10-23 14:06:24 +090056 "android.hardware.input.common-V1-ndk",
57 "android.hardware.input.processor-V1-ndk",
58 "libbase",
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080059 "libinputprocessorexampleimpl",
Jooyung Han07ac2332023-10-23 14:06:24 +090060 "libutils",
Siarhei Vishniakou88d18bf2022-01-20 09:58:24 -080061 ],
62 srcs: ["main.cpp"],
63}
Jooyung Han07ac2332023-10-23 14:06:24 +090064
65apex {
66 name: "com.android.hardware.input.processor",
67 file_contexts: "apex_file_contexts",
68 manifest: "apex_manifest.json",
69 key: "com.android.hardware.key",
70 certificate: ":com.android.hardware.certificate",
71 updatable: false,
72 vendor: true,
73
74 binaries: [
75 "android.hardware.input.processor-service.example",
76 ],
77 prebuilts: [
78 "android.hardware.input.processor.xml",
79 "inputprocessor-default.rc",
80 ],
81}