1// Copyright (C) 2020 The Android Open-Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15
16// WARNING: Everything listed here will be built on ALL platforms,
17// including x86, the emulator, and the SDK.  Modules must be uniquely
18// named (liblights.panda), and must build everywhere, or limit themselves
19// to only building on ARM if they include assembly. Individual makefiles
20// are responsible for having their own logic, for fine-grained control.
21
22package {
23    default_applicable_licenses: ["Android-Apache-2.0"],
24}
25
26cc_binary {
27    name: "android.hardware.confirmationui-service.trusty",
28    relative_install_path: "hw",
29    vendor: true,
30    shared_libs: [
31        "android.hardware.confirmationui-V1-ndk",
32        "android.hardware.confirmationui.not-so-secure-input",
33        "android.hardware.confirmationui-lib.trusty",
34        "libbinder_ndk",
35        "libteeui_hal_support",
36        "libbase",
37        "libhidlbase",
38        "libutils",
39    ],
40
41    init_rc: ["android.hardware.confirmationui-service.trusty.rc"],
42
43    vintf_fragments: ["android.hardware.confirmationui-service.trusty.xml"],
44
45    srcs: [
46        "service.cpp",
47    ],
48
49    cflags: [
50        "-Wall",
51        "-Werror",
52        "-DTEEUI_USE_STD_VECTOR",
53    ],
54}
55
56cc_fuzz {
57    name: "android.hardware.confirmationui-service.trusty_fuzzer",
58    defaults: ["service_fuzzer_defaults"],
59    vendor: true,
60    shared_libs: [
61        "android.hardware.confirmationui-V1-ndk",
62        "android.hardware.confirmationui.not-so-secure-input",
63        "android.hardware.confirmationui-lib.trusty",
64        "liblog",
65    ],
66    srcs: ["fuzzer.cpp"],
67    fuzz_config: {
68        cc: [
69            "nyamagoud@google.com",
70        ],
71    },
72}
73
74cc_library {
75    name: "android.hardware.confirmationui-lib.trusty",
76    defaults: [
77        "keymint_use_latest_hal_aidl_ndk_shared",
78    ],
79    vendor: true,
80    shared_libs: [
81        "android.hardware.confirmationui-V1-ndk",
82        "libbase",
83        "libcutils",
84        "libdmabufheap",
85        "libteeui_hal_support",
86        "libtrusty",
87        "libutils",
88        "libbinder_ndk",
89    ],
90
91    export_include_dirs: ["include"],
92
93    srcs: [
94        "TrustyApp.cpp",
95        "TrustyConfirmationUI.cpp",
96    ],
97
98    cflags: [
99        "-Wall",
100        "-Werror",
101        "-DTEEUI_USE_STD_VECTOR",
102    ],
103}
104
105cc_library {
106    name: "android.hardware.confirmationui.not-so-secure-input",
107    vendor: true,
108    shared_libs: [
109        "libbase",
110        "libcrypto",
111        "libteeui_hal_support",
112    ],
113
114    srcs: [
115        "NotSoSecureInput.cpp",
116    ],
117
118    cflags: [
119        "-Wall",
120        "-Werror",
121        "-DTEEUI_USE_STD_VECTOR",
122    ],
123}
124