blob: 29ef3c098d162b43b48d54aef2788789ba19a0f2 [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 Nyamagoudf477c822022-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 Nyamagoudf477c822022-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 Nyamagoudf477c822022-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 Nyamagoudf477c822022-09-22 20:25:52 +000041 init_rc: ["android.hardware.confirmationui-service.trusty.rc"],
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080042
Rajesh Nyamagoudf477c822022-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
56cc_library {
Rajesh Nyamagoudf477c822022-09-22 20:25:52 +000057 name: "android.hardware.confirmationui-lib.trusty",
58 defaults: [
59 "keymint_use_latest_hal_aidl_ndk_shared",
60 ],
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080061 vendor: true,
62 shared_libs: [
Rajesh Nyamagoudf477c822022-09-22 20:25:52 +000063 "android.hardware.confirmationui-V1-ndk",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080064 "libbase",
Rajesh Nyamagoudf477c822022-09-22 20:25:52 +000065 "libcutils",
Tri Vo19b62a52021-02-16 11:51:26 -080066 "libdmabufheap",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080067 "libteeui_hal_support",
68 "libtrusty",
69 "libutils",
Rajesh Nyamagoudf477c822022-09-22 20:25:52 +000070 "libbinder_ndk",
Janis Danisevskis8fe0cfb2020-01-13 14:24:32 -080071 ],
72
73 export_include_dirs: ["include"],
74
75 srcs: [
76 "TrustyApp.cpp",
77 "TrustyConfirmationUI.cpp",
78 ],
79
80 cflags: [
81 "-Wall",
82 "-Werror",
83 "-DTEEUI_USE_STD_VECTOR",
84 ],
85}
86
87cc_library {
88 name: "android.hardware.confirmationui.not-so-secure-input",
89 vendor: true,
90 shared_libs: [
91 "libbase",
92 "libcrypto",
93 "libteeui_hal_support",
94 ],
95
96 srcs: [
97 "NotSoSecureInput.cpp",
98 ],
99
100 cflags: [
101 "-Wall",
102 "-Werror",
103 "-DTEEUI_USE_STD_VECTOR",
104 ],
Tri Vo19b62a52021-02-16 11:51:26 -0800105}