Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 8 | } |
| 9 | |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 10 | cc_library_static { |
| 11 | name: "android.hardware.identity-libeic-hal-common", |
| 12 | vendor_available: true, |
Tri Vo | 680cb1d | 2022-09-06 17:20:37 -0700 | [diff] [blame] | 13 | defaults: [ |
| 14 | "identity_use_latest_hal_aidl_ndk_static", |
| 15 | "keymint_use_latest_hal_aidl_ndk_static", |
| 16 | ], |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 17 | srcs: [ |
| 18 | "common/IdentityCredential.cpp", |
| 19 | "common/IdentityCredentialStore.cpp", |
David Zeuthen | 1eb12b2 | 2021-09-11 13:59:43 -0400 | [diff] [blame] | 20 | "common/PresentationSession.cpp", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 21 | "common/WritableIdentityCredential.cpp", |
| 22 | ], |
| 23 | export_include_dirs: [ |
| 24 | "common", |
| 25 | ], |
| 26 | cflags: [ |
| 27 | "-Wall", |
| 28 | "-Wextra", |
David Zeuthen | 49f2d25 | 2020-10-16 11:27:24 -0400 | [diff] [blame] | 29 | "-Wno-deprecated-declarations", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 30 | ], |
| 31 | shared_libs: [ |
| 32 | "liblog", |
| 33 | "libcrypto", |
| 34 | "libbinder_ndk", |
| 35 | "libkeymaster_messages", |
| 36 | ], |
| 37 | static_libs: [ |
| 38 | "libbase", |
Max Bires | a3c7f4c | 2021-04-09 08:56:40 -0700 | [diff] [blame] | 39 | "libcppbor_external", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 40 | "libcppcose_rkp", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 41 | "libutils", |
| 42 | "libsoft_attestation_cert", |
| 43 | "libkeymaster_portable", |
| 44 | "libsoft_attestation_cert", |
| 45 | "libpuresoftkeymasterdevice", |
| 46 | "android.hardware.identity-support-lib", |
Jiyong Park | 3c4b172 | 2022-03-22 14:46:00 +0900 | [diff] [blame] | 47 | "android.hardware.keymaster-V3-ndk", |
Seth Moore | 41e97f0 | 2022-11-04 17:39:05 +0000 | [diff] [blame] | 48 | "android.hardware.security.rkp-V3-ndk", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 49 | ], |
| 50 | } |
| 51 | |
| 52 | cc_library_static { |
| 53 | name: "android.hardware.identity-libeic-library", |
| 54 | vendor_available: true, |
| 55 | srcs: [ |
| 56 | "libeic/EicCbor.c", |
David Zeuthen | 1eb12b2 | 2021-09-11 13:59:43 -0400 | [diff] [blame] | 57 | "libeic/EicSession.c", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 58 | "libeic/EicPresentation.c", |
| 59 | "libeic/EicProvisioning.c", |
| 60 | "EicOpsImpl.cc", |
| 61 | ], |
| 62 | export_include_dirs: [ |
| 63 | "libeic", |
| 64 | ], |
| 65 | cflags: [ |
| 66 | "-DEIC_COMPILATION", |
| 67 | "-Wall", |
| 68 | "-Wextra", |
| 69 | "-DEIC_DEBUG", |
| 70 | // Allow using C2x extensions such as omitting parameter names |
| 71 | "-Wno-c2x-extensions", |
| 72 | ], |
| 73 | shared_libs: [ |
| 74 | "libbase", |
| 75 | "libcrypto", |
| 76 | ], |
| 77 | static_libs: [ |
| 78 | "android.hardware.identity-support-lib", |
| 79 | ], |
| 80 | } |
| 81 | |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 82 | cc_binary { |
| 83 | name: "android.hardware.identity-service.example", |
| 84 | relative_install_path: "hw", |
| 85 | init_rc: ["identity-default.rc"], |
| 86 | vintf_fragments: ["identity-default.xml"], |
| 87 | vendor: true, |
Seth Moore | 1bf823c | 2022-01-25 23:04:37 +0000 | [diff] [blame] | 88 | defaults: [ |
Tri Vo | 680cb1d | 2022-09-06 17:20:37 -0700 | [diff] [blame] | 89 | "identity_use_latest_hal_aidl_ndk_static", |
Seth Moore | 1bf823c | 2022-01-25 23:04:37 +0000 | [diff] [blame] | 90 | "keymint_use_latest_hal_aidl_ndk_static", |
| 91 | ], |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 92 | cflags: [ |
| 93 | "-Wall", |
| 94 | "-Wextra", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 95 | "-g", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 96 | ], |
| 97 | shared_libs: [ |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 98 | "liblog", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 99 | "libcrypto", |
| 100 | "libbinder_ndk", |
| 101 | "libkeymaster_messages", |
| 102 | ], |
| 103 | static_libs: [ |
| 104 | "libbase", |
Max Bires | a3c7f4c | 2021-04-09 08:56:40 -0700 | [diff] [blame] | 105 | "libcppbor_external", |
Max Bires | 9704ff6 | 2021-04-07 11:12:01 -0700 | [diff] [blame] | 106 | "libcppcose_rkp", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 107 | "libutils", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 108 | "libsoft_attestation_cert", |
| 109 | "libkeymaster_portable", |
| 110 | "libsoft_attestation_cert", |
| 111 | "libpuresoftkeymasterdevice", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 112 | "android.hardware.identity-support-lib", |
Jiyong Park | 3c4b172 | 2022-03-22 14:46:00 +0900 | [diff] [blame] | 113 | "android.hardware.keymaster-V3-ndk", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 114 | "android.hardware.identity-libeic-hal-common", |
| 115 | "android.hardware.identity-libeic-library", |
Seth Moore | 41e97f0 | 2022-11-04 17:39:05 +0000 | [diff] [blame] | 116 | "android.hardware.security.rkp-V3-ndk", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 117 | ], |
| 118 | srcs: [ |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 119 | "service.cpp", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 120 | "FakeSecureHardwareProxy.cpp", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 121 | ], |
David Zeuthen | 49f2d25 | 2020-10-16 11:27:24 -0400 | [diff] [blame] | 122 | required: [ |
| 123 | "android.hardware.identity_credential.xml", |
| 124 | ], |
| 125 | } |
| 126 | |
David Zeuthen | af7e9cf | 2021-06-10 18:34:24 -0400 | [diff] [blame] | 127 | cc_test { |
| 128 | name: "libeic_test", |
| 129 | srcs: [ |
| 130 | "EicTests.cpp", |
| 131 | "FakeSecureHardwareProxy.cpp", |
| 132 | ], |
| 133 | cflags: [ |
| 134 | "-Wall", |
| 135 | "-Wextra", |
| 136 | "-g", |
| 137 | "-DEIC_DEBUG", |
| 138 | ], |
| 139 | local_include_dirs: [ |
Jiyong Park | 27f77fe | 2021-07-27 12:16:52 +0900 | [diff] [blame] | 140 | "common", |
David Zeuthen | af7e9cf | 2021-06-10 18:34:24 -0400 | [diff] [blame] | 141 | ], |
| 142 | shared_libs: [ |
| 143 | "liblog", |
| 144 | "libcrypto", |
| 145 | "libkeymaster_messages", |
| 146 | ], |
| 147 | static_libs: [ |
| 148 | "libbase", |
| 149 | "libcppbor_external", |
| 150 | "libcppcose_rkp", |
| 151 | "libutils", |
| 152 | "libsoft_attestation_cert", |
| 153 | "libkeymaster_portable", |
| 154 | "libsoft_attestation_cert", |
| 155 | "libpuresoftkeymasterdevice", |
| 156 | "android.hardware.identity-support-lib", |
| 157 | "android.hardware.identity-libeic-library", |
| 158 | ], |
| 159 | test_suites: [ |
| 160 | "general-tests", |
| 161 | ], |
| 162 | } |
| 163 | |
David Zeuthen | 49f2d25 | 2020-10-16 11:27:24 -0400 | [diff] [blame] | 164 | prebuilt_etc { |
| 165 | name: "android.hardware.identity_credential.xml", |
| 166 | sub_dir: "permissions", |
| 167 | vendor: true, |
| 168 | src: "android.hardware.identity_credential.xml", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 169 | } |