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", |
| 15 | ], |
| 16 | shared_libs: [ |
| 17 | "liblog", |
| 18 | "libcrypto", |
| 19 | "libbinder_ndk", |
| 20 | "libkeymaster_messages", |
| 21 | ], |
| 22 | static_libs: [ |
| 23 | "libbase", |
| 24 | "libcppbor", |
| 25 | "libutils", |
| 26 | "libsoft_attestation_cert", |
| 27 | "libkeymaster_portable", |
| 28 | "libsoft_attestation_cert", |
| 29 | "libpuresoftkeymasterdevice", |
| 30 | "android.hardware.identity-support-lib", |
| 31 | "android.hardware.identity-ndk_platform", |
| 32 | "android.hardware.keymaster-ndk_platform", |
| 33 | ], |
| 34 | } |
| 35 | |
| 36 | cc_library_static { |
| 37 | name: "android.hardware.identity-libeic-library", |
| 38 | vendor_available: true, |
| 39 | srcs: [ |
| 40 | "libeic/EicCbor.c", |
| 41 | "libeic/EicPresentation.c", |
| 42 | "libeic/EicProvisioning.c", |
| 43 | "EicOpsImpl.cc", |
| 44 | ], |
| 45 | export_include_dirs: [ |
| 46 | "libeic", |
| 47 | ], |
| 48 | cflags: [ |
| 49 | "-DEIC_COMPILATION", |
| 50 | "-Wall", |
| 51 | "-Wextra", |
| 52 | "-DEIC_DEBUG", |
| 53 | // Allow using C2x extensions such as omitting parameter names |
| 54 | "-Wno-c2x-extensions", |
| 55 | ], |
| 56 | shared_libs: [ |
| 57 | "libbase", |
| 58 | "libcrypto", |
| 59 | ], |
| 60 | static_libs: [ |
| 61 | "android.hardware.identity-support-lib", |
| 62 | ], |
| 63 | } |
| 64 | |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 65 | cc_binary { |
| 66 | name: "android.hardware.identity-service.example", |
| 67 | relative_install_path: "hw", |
| 68 | init_rc: ["identity-default.rc"], |
| 69 | vintf_fragments: ["identity-default.xml"], |
| 70 | vendor: true, |
| 71 | cflags: [ |
| 72 | "-Wall", |
| 73 | "-Wextra", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 74 | "-g", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 75 | ], |
| 76 | shared_libs: [ |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 77 | "liblog", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 78 | "libcrypto", |
| 79 | "libbinder_ndk", |
| 80 | "libkeymaster_messages", |
| 81 | ], |
| 82 | static_libs: [ |
| 83 | "libbase", |
| 84 | "libcppbor", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 85 | "libutils", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 86 | "libsoft_attestation_cert", |
| 87 | "libkeymaster_portable", |
| 88 | "libsoft_attestation_cert", |
| 89 | "libpuresoftkeymasterdevice", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 90 | "android.hardware.identity-support-lib", |
| 91 | "android.hardware.identity-ndk_platform", |
| 92 | "android.hardware.keymaster-ndk_platform", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 93 | "android.hardware.identity-libeic-hal-common", |
| 94 | "android.hardware.identity-libeic-library", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 95 | ], |
| 96 | srcs: [ |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 97 | "service.cpp", |
David Zeuthen | 630de2a | 2020-05-11 14:04:54 -0400 | [diff] [blame] | 98 | "FakeSecureHardwareProxy.cpp", |
David Zeuthen | 8160315 | 2020-02-11 22:04:24 -0500 | [diff] [blame] | 99 | ], |
| 100 | } |