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