blob: 60e0e71b2b52fccb2b1f216c35d723c6b6f56175 [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
22cc_binary {
23 name: "android.hardware.confirmationui@1.0-service.trusty",
24 relative_install_path: "hw",
25 vendor: true,
26 shared_libs: [
27 "android.hardware.confirmationui@1.0",
28 "android.hardware.confirmationui.not-so-secure-input",
29 "android.hardware.confirmationui@1.0-lib.trusty",
30 "libbase",
31 "libhidlbase",
32 "libutils",
33 ],
34
35 init_rc: ["android.hardware.confirmationui@1.0-service.trusty.rc"],
36
37 vintf_fragments: ["android.hardware.confirmationui@1.0-service.trusty.xml"],
38
39 srcs: [
40 "service.cpp",
41 ],
42
43 cflags: [
44 "-Wall",
45 "-Werror",
46 "-DTEEUI_USE_STD_VECTOR",
47 ],
48}
49
50cc_library {
51 name: "android.hardware.confirmationui@1.0-lib.trusty",
52 vendor: true,
53 shared_libs: [
54 "android.hardware.confirmationui@1.0",
55 "android.hardware.keymaster@4.0",
56 "libbase",
57 "libhidlbase",
58 "libteeui_hal_support",
59 "libtrusty",
60 "libutils",
61 ],
62
63 export_include_dirs: ["include"],
64
65 srcs: [
66 "TrustyApp.cpp",
67 "TrustyConfirmationUI.cpp",
68 ],
69
70 cflags: [
71 "-Wall",
72 "-Werror",
73 "-DTEEUI_USE_STD_VECTOR",
74 ],
75}
76
77cc_library {
78 name: "android.hardware.confirmationui.not-so-secure-input",
79 vendor: true,
80 shared_libs: [
81 "libbase",
82 "libcrypto",
83 "libteeui_hal_support",
84 ],
85
86 srcs: [
87 "NotSoSecureInput.cpp",
88 ],
89
90 cflags: [
91 "-Wall",
92 "-Werror",
93 "-DTEEUI_USE_STD_VECTOR",
94 ],
95}