1package {
2    default_team: "trendy_team_input_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
11cc_library_static {
12    name: "libinputprocessorexampleimpl",
13    vendor: true,
14    shared_libs: [
15        "libbase",
16        "libbinder_ndk",
17        "liblog",
18        "libutils",
19        "android.hardware.input.common-V1-ndk",
20        "android.hardware.input.processor-V1-ndk",
21    ],
22    export_include_dirs: ["include"],
23    srcs: [
24        "InputProcessor.cpp",
25    ],
26    visibility: [
27        ":__subpackages__",
28        "//hardware/interfaces/tests/extension/input/processor:__subpackages__",
29    ],
30}
31
32prebuilt_etc {
33    name: "android.hardware.input.processor.xml",
34    src: "android.hardware.input.processor.xml",
35    sub_dir: "vintf",
36    installable: false,
37}
38
39prebuilt_etc {
40    name: "inputprocessor-default.rc",
41    src: "inputprocessor-default.rc",
42    installable: false,
43}
44
45cc_binary {
46    name: "android.hardware.input.processor-service.example",
47    relative_install_path: "hw",
48    vendor: true,
49    installable: false, // installed in APEX
50
51    stl: "c++_static",
52    shared_libs: [
53        "libbinder_ndk",
54        "liblog",
55    ],
56    static_libs: [
57        "android.hardware.input.common-V1-ndk",
58        "android.hardware.input.processor-V1-ndk",
59        "libbase",
60        "libinputprocessorexampleimpl",
61        "libutils",
62    ],
63    srcs: ["main.cpp"],
64}
65
66apex {
67    name: "com.android.hardware.input.processor",
68    file_contexts: "apex_file_contexts",
69    manifest: "apex_manifest.json",
70    key: "com.android.hardware.key",
71    certificate: ":com.android.hardware.certificate",
72    updatable: false,
73    vendor: true,
74
75    binaries: [
76        "android.hardware.input.processor-service.example",
77    ],
78    prebuilts: [
79        "android.hardware.input.processor.xml",
80        "inputprocessor-default.rc",
81    ],
82}
83