Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 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 | |
Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 22 | package { |
| 23 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 24 | } |
| 25 | |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 26 | cc_binary { |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 27 | name: "android.hardware.confirmationui-service.trusty", |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 28 | relative_install_path: "hw", |
| 29 | vendor: true, |
| 30 | shared_libs: [ |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 31 | "android.hardware.confirmationui-V1-ndk", |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 32 | "android.hardware.confirmationui.not-so-secure-input", |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 33 | "android.hardware.confirmationui-lib.trusty", |
| 34 | "libbinder_ndk", |
| 35 | "libteeui_hal_support", |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 36 | "libbase", |
| 37 | "libhidlbase", |
| 38 | "libutils", |
| 39 | ], |
| 40 | |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 41 | init_rc: ["android.hardware.confirmationui-service.trusty.rc"], |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 42 | |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 43 | vintf_fragments: ["android.hardware.confirmationui-service.trusty.xml"], |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 44 | |
| 45 | srcs: [ |
| 46 | "service.cpp", |
| 47 | ], |
| 48 | |
| 49 | cflags: [ |
| 50 | "-Wall", |
| 51 | "-Werror", |
| 52 | "-DTEEUI_USE_STD_VECTOR", |
| 53 | ], |
| 54 | } |
| 55 | |
| 56 | cc_library { |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 57 | name: "android.hardware.confirmationui-lib.trusty", |
| 58 | defaults: [ |
| 59 | "keymint_use_latest_hal_aidl_ndk_shared", |
| 60 | ], |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 61 | vendor: true, |
| 62 | shared_libs: [ |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 63 | "android.hardware.confirmationui-V1-ndk", |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 64 | "libbase", |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 65 | "libcutils", |
Tri Vo | 19b62a5 | 2021-02-16 11:51:26 -0800 | [diff] [blame] | 66 | "libdmabufheap", |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 67 | "libteeui_hal_support", |
| 68 | "libtrusty", |
| 69 | "libutils", |
Rajesh Nyamagoud | f477c82 | 2022-09-22 20:25:52 +0000 | [diff] [blame^] | 70 | "libbinder_ndk", |
Janis Danisevskis | 8fe0cfb | 2020-01-13 14:24:32 -0800 | [diff] [blame] | 71 | ], |
| 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 | |
| 87 | cc_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 Vo | 19b62a5 | 2021-02-16 11:51:26 -0800 | [diff] [blame] | 105 | } |