1package { 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_nxp_secure_element_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["hardware_nxp_secure_element_license"], 8} 9 10cc_library_shared { 11 12 name: "ese_spi_nxp", 13 defaults: ["hidl_defaults"], 14 proprietary: true, 15 16 srcs: [ 17 "libese-spi/p73/lib/phNxpEseDataMgr.cpp", 18 "libese-spi/p73/lib/phNxpEseProto7816_3.cpp", 19 "libese-spi/p73/lib/phNxpEse_Api.cpp", 20 "libese-spi/p73/pal/phNxpEsePal.cpp", 21 "libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp", 22 "libese-spi/p73/spm/phNxpEse_Spm.cpp", 23 "libese-spi/p73/utils/ese_config.cpp", 24 "libese-spi/p73/utils/config.cpp", 25 "libese-spi/p73/utils/ringbuffer.cpp", 26 "libese-spi/src/adaptation/NfcAdaptation.cpp", 27 ], 28 29 local_include_dirs: [ 30 "libese-spi/p73/lib", 31 "libese-spi/p73/pal/spi", 32 "libese-spi/p73/utils", 33 "libese-spi/src/include", 34 ], 35 export_include_dirs: [ 36 "extns/impl", 37 "libese-spi/common/include", 38 "libese-spi/p73/common", 39 "libese-spi/p73/inc", 40 "libese-spi/p73/pal", 41 ], 42 43 cflags: [ 44 "-DANDROID", 45 "-DBUILDCFG=1", 46 "-DNXP_EXTNS=TRUE", 47 "-Wall", 48 "-Werror", 49 ], 50 51 shared_libs: [ 52 "android.hardware.nfc@1.0", 53 "android.hardware.nfc@1.1", 54 "libcutils", 55 "libhardware", 56 "libhidlbase", 57 "libutils", 58 "liblog", 59 "libbase", 60 "vendor.nxp.nxpese@1.0", 61 "vendor.nxp.nxpnfc@1.0", 62 ], 63} 64 65cc_library_shared { 66 67 name: "ls_client", 68 defaults: ["hidl_defaults"], 69 proprietary: true, 70 71 srcs: [ 72 "ls_client/src/LsLib.cpp", 73 "ls_client/src/LsClient.cpp", 74 ], 75 76 export_include_dirs: ["ls_client/inc"], 77 78 shared_libs: [ 79 "ese_spi_nxp", 80 "libcutils", 81 "liblog", 82 "libhidlbase", 83 "liblog", 84 "libutils", 85 "libcrypto" 86 ], 87} 88 89cc_defaults { 90 name: "android.hardware.secure_element@1.1_defaults", 91 relative_install_path: "hw", 92 proprietary: true, 93 defaults: ["hidl_defaults"], 94 srcs: [ 95 "1.1/NxpEseService.cpp", 96 "1.1/SecureElement.cpp", 97 "extns/impl/NxpEse.cpp", 98 ], 99 100 shared_libs: [ 101 "android.hardware.secure_element@1.0", 102 "android.hardware.secure_element@1.1", 103 "ese_spi_nxp", 104 "libbase", 105 "ls_client", 106 "libcutils", 107 "libhardware", 108 "libhidlbase", 109 "liblog", 110 "libutils", 111 "vendor.nxp.nxpese@1.0", 112 "vendor.nxp.nxpnfc@1.0", 113 ], 114} 115 116cc_defaults { 117 name: "android.hardware.secure_element@1.0_defaults", 118 relative_install_path: "hw", 119 proprietary: true, 120 defaults: ["hidl_defaults"], 121 srcs: [ 122 "1.0/NxpEseService.cpp", 123 "1.0/SecureElement.cpp", 124 "extns/impl/NxpEse.cpp", 125 ], 126 127 shared_libs: [ 128 "android.hardware.secure_element@1.0", 129 "ese_spi_nxp", 130 "libbase", 131 "ls_client", 132 "libcutils", 133 "libhardware", 134 "libhidlbase", 135 "liblog", 136 "libutils", 137 "vendor.nxp.nxpese@1.0", 138 "vendor.nxp.nxpnfc@1.0", 139 ], 140} 141 142cc_binary { 143 name: "android.hardware.secure_element@1.0-service", 144 init_rc: ["1.0/android.hardware.secure_element@1.0-service.rc"], 145 defaults: ["android.hardware.secure_element@1.0_defaults"], 146} 147 148cc_binary { 149 name: "android.hardware.secure_element@1.0-service-disabled", 150 init_rc: ["1.0/android.hardware.secure_element@1.0-service-disabled.rc"], 151 defaults: ["android.hardware.secure_element@1.0_defaults"], 152} 153 154cc_binary { 155 name: "android.hardware.secure_element@1.1-service", 156 init_rc: ["1.1/android.hardware.secure_element@1.1-service.rc"], 157 defaults: ["android.hardware.secure_element@1.1_defaults"], 158} 159 160cc_binary { 161 name: "android.hardware.secure_element@1.1-service-disabled", 162 init_rc: ["1.1/android.hardware.secure_element@1.1-service-disabled.rc"], 163 defaults: ["android.hardware.secure_element@1.1_defaults"], 164} 165