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