blob: c5c501295c78748df3bfbf673fe6c0baa6fa05d7 [file] [log] [blame]
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -08001// 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
Bob Badourd69ad692021-02-16 19:02:14 -080022package {
23 default_applicable_licenses: ["Android-Apache-2.0"],
24}
25
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080026cc_binary {
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000027 name: "android.hardware.confirmationui-service.trusty",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080028 relative_install_path: "hw",
29 vendor: true,
30 shared_libs: [
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000031 "android.hardware.confirmationui-V1-ndk",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080032 "android.hardware.confirmationui.not-so-secure-input",
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000033 "android.hardware.confirmationui-lib.trusty",
34 "libbinder_ndk",
35 "libteeui_hal_support",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080036 "libbase",
37 "libhidlbase",
38 "libutils",
39 ],
40
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000041 init_rc: ["android.hardware.confirmationui-service.trusty.rc"],
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080042
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000043 vintf_fragments: ["android.hardware.confirmationui-service.trusty.xml"],
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080044
45 srcs: [
46 "service.cpp",
47 ],
48
49 cflags: [
50 "-Wall",
51 "-Werror",
52 "-DTEEUI_USE_STD_VECTOR",
53 ],
54}
55
Rajesh Nyamagoudec4df1d2022-10-13 00:20:56 +000056cc_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
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080074cc_library {
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000075 name: "android.hardware.confirmationui-lib.trusty",
76 defaults: [
77 "keymint_use_latest_hal_aidl_ndk_shared",
78 ],
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080079 vendor: true,
80 shared_libs: [
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000081 "android.hardware.confirmationui-V1-ndk",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080082 "libbase",
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000083 "libcutils",
Tri Vo19b62a52021-02-16 11:51:26 -080084 "libdmabufheap",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080085 "libteeui_hal_support",
86 "libtrusty",
87 "libutils",
Rajesh Nyamagoud9f22d4f2022-09-22 20:25:52 +000088 "libbinder_ndk",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080089 ],
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 ],
Tri Vo19b62a52021-02-16 11:51:26 -0800123}