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