1// Copyright (C) 2021 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.cuttlefish", 28 defaults: ["cuttlefish_guest_only"], 29 relative_install_path: "hw", 30 vendor: true, 31 shared_libs: [ 32 "android.hardware.confirmationui-V1-ndk", 33 "android.hardware.confirmationui-lib.cuttlefish", 34 "libbase", 35 "libbinder_ndk", 36 "libteeui_hal_support", 37 "libutils", 38 ], 39 static_libs: [ 40 "libcuttlefish_confui", 41 ], 42 43 init_rc: ["android.hardware.confirmationui@1.0-service.cuttlefish.rc"], 44 45 vintf_fragments: ["android.hardware.confirmationui@1.0-service.cuttlefish.xml"], 46 47 srcs: [ 48 "service.cpp", 49 ], 50 51 cflags: [ 52 "-Wall", 53 "-Werror", 54 "-DTEEUI_USE_STD_VECTOR", 55 ], 56} 57 58cc_library { 59 name: "android.hardware.confirmationui-lib.cuttlefish", 60 defaults: [ 61 "cuttlefish_guest_only", 62 "keymint_use_latest_hal_aidl_ndk_shared", 63 ], 64 vendor: true, 65 shared_libs: [ 66 "android.hardware.confirmationui-V1-ndk", 67 "libbase", 68 "libbinder_ndk", 69 "libcutils", 70 "libdmabufheap", 71 "libteeui_hal_support", 72 "libtrusty", 73 "libutils", 74 ], 75 76 export_include_dirs: ["include"], 77 78 srcs: [ 79 "TrustyConfirmationUI.cpp", 80 "guest_session.cpp", 81 ], 82 static_libs: [ 83 "libcuttlefish_confui", 84 "libcuttlefish_fs", 85 ], 86 cflags: [ 87 "-Wall", 88 "-Werror", 89 "-DTEEUI_USE_STD_VECTOR", 90 ], 91} 92