David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "android.hardware.identity-libeic-hal-common", |
| 3 | vendor_available: true, |
| 4 | srcs: [ |
| 5 | "common/IdentityCredential.cpp", |
| 6 | "common/IdentityCredentialStore.cpp", |
| 7 | "common/WritableIdentityCredential.cpp", |
| 8 | ], |
| 9 | export_include_dirs: [ |
| 10 | "common", |
| 11 | ], |
| 12 | cflags: [ |
| 13 | "-Wall", |
| 14 | "-Wextra", |
David Zeuthen | 49f2d25 | 2020-10-16 11:27:24 -0400 | [diff] [blame] | 15 | "-Wno-deprecated-declarations", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 16 | ], |
| 17 | shared_libs: [ |
| 18 | "liblog", |
| 19 | "libcrypto", |
| 20 | "libbinder_ndk", |
| 21 | "libkeymaster_messages", |
| 22 | ], |
| 23 | static_libs: [ |
| 24 | "libbase", |
| 25 | "libcppbor", |
| 26 | "libutils", |
| 27 | "libsoft_attestation_cert", |
| 28 | "libkeymaster_portable", |
| 29 | "libsoft_attestation_cert", |
| 30 | "libpuresoftkeymasterdevice", |
| 31 | "android.hardware.identity-support-lib", |
Jeongik Cha | 1674c13 | 2021-01-26 22:34:55 +0900 | [diff] [blame] | 32 | "android.hardware.identity-V3-ndk_platform", |
| 33 | "android.hardware.keymaster-V3-ndk_platform", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 34 | ], |
| 35 | } |
| 36 | |
| 37 | cc_library_static { |
| 38 | name: "android.hardware.identity-libeic-library", |
| 39 | vendor_available: true, |
| 40 | srcs: [ |
| 41 | "libeic/EicCbor.c", |
| 42 | "libeic/EicPresentation.c", |
| 43 | "libeic/EicProvisioning.c", |
| 44 | "EicOpsImpl.cc", |
| 45 | ], |
| 46 | export_include_dirs: [ |
| 47 | "libeic", |
| 48 | ], |
| 49 | cflags: [ |
| 50 | "-DEIC_COMPILATION", |
| 51 | "-Wall", |
| 52 | "-Wextra", |
| 53 | "-DEIC_DEBUG", |
| 54 | // Allow using C2x extensions such as omitting parameter names |
| 55 | "-Wno-c2x-extensions", |
| 56 | ], |
| 57 | shared_libs: [ |
| 58 | "libbase", |
| 59 | "libcrypto", |
| 60 | ], |
| 61 | static_libs: [ |
| 62 | "android.hardware.identity-support-lib", |
| 63 | ], |
| 64 | } |
| 65 | |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 66 | cc_binary { |
| 67 | name: "android.hardware.identity-service.example", |
| 68 | relative_install_path: "hw", |
| 69 | init_rc: ["identity-default.rc"], |
| 70 | vintf_fragments: ["identity-default.xml"], |
| 71 | vendor: true, |
| 72 | cflags: [ |
| 73 | "-Wall", |
| 74 | "-Wextra", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 75 | "-g", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 76 | ], |
| 77 | shared_libs: [ |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 78 | "liblog", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 79 | "libcrypto", |
| 80 | "libbinder_ndk", |
| 81 | "libkeymaster_messages", |
| 82 | ], |
| 83 | static_libs: [ |
| 84 | "libbase", |
| 85 | "libcppbor", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 86 | "libutils", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 87 | "libsoft_attestation_cert", |
| 88 | "libkeymaster_portable", |
| 89 | "libsoft_attestation_cert", |
| 90 | "libpuresoftkeymasterdevice", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 91 | "android.hardware.identity-support-lib", |
Jeongik Cha | 1674c13 | 2021-01-26 22:34:55 +0900 | [diff] [blame] | 92 | "android.hardware.identity-V3-ndk_platform", |
| 93 | "android.hardware.keymaster-V3-ndk_platform", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 94 | "android.hardware.identity-libeic-hal-common", |
| 95 | "android.hardware.identity-libeic-library", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 96 | ], |
| 97 | srcs: [ |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 98 | "service.cpp", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 99 | "FakeSecureHardwareProxy.cpp", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 100 | ], |
David Zeuthen | 49f2d25 | 2020-10-16 11:27:24 -0400 | [diff] [blame] | 101 | required: [ |
| 102 | "android.hardware.identity_credential.xml", |
| 103 | ], |
| 104 | } |
| 105 | |
| 106 | prebuilt_etc { |
| 107 | name: "android.hardware.identity_credential.xml", |
| 108 | sub_dir: "permissions", |
| 109 | vendor: true, |
| 110 | src: "android.hardware.identity_credential.xml", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 111 | } |