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