1// 2// Copyright 2023 NXP 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15 16package { 17 // See: http://go/android-license-faq 18 // A large-scale-change added 'default_applicable_licenses' to import 19 // all of the 'license_kinds' from "hardware_nxp_secure_element_license" 20 // to get the below license kinds: 21 // SPDX-license-identifier-Apache-2.0 22 default_applicable_licenses: ["hardware_nxp_secure_element_license"], 23} 24 25cc_binary { 26 name: "android.hardware.secure_element-service.nxp", 27 relative_install_path: "hw", 28 vendor: true, 29 init_rc: ["secure_element-service-nxp.rc"], 30 vintf_fragments: ["secure_element-service-nxp.xml"], 31 enabled: true, 32 33 srcs: [ 34 "NxpEseService.cpp", 35 "SecureElement.cpp", 36 "VirtualISO.cpp", 37 ":OsuHalCommonFile", 38 ], 39 40 shared_libs: [ 41 "libbase", 42 "libbinder_ndk", 43 "android.hardware.secure_element-V1-ndk", 44 "libhardware", 45 "liblog", 46 "libmemunreachable", 47 "libutils", 48 "ese_spi_nxp_snxxx", 49 "nfc_nci_nxp_snxxx", 50 "android.hardware.nfc@1.2", 51 "android.hardware.nfc-V1-ndk", 52 "vendor.nxp.nxpnfc_aidl-V1-ndk", 53 ], 54 55 include_dirs: [ 56 "hardware/nxp/secure_element/snxxx/extns/impl", 57 "hardware/nxp/secure_element/snxxx/libese-spi/common/include", 58 "hardware/nxp/secure_element/snxxx/libese-spi/p73/common", 59 "hardware/nxp/secure_element/snxxx/libese-spi/p73/inc", 60 "hardware/nxp/secure_element/snxxx/libese-spi/p73/lib", 61 "hardware/nxp/secure_element/snxxx/libese-spi/p73/pal", 62 "hardware/nxp/secure_element/snxxx/libese-spi/p73/pal/spi", 63 "hardware/nxp/secure_element/snxxx/libese-spi/p73/utils", 64 "hardware/nxp/secure_element/snxxx/libese-spi/p73/spm", 65 "hardware/nxp/secure_element/snxxx/libese-spi/src/include", 66 "hardware/nxp/secure_element/snxxx/OsuHal/inc", 67 "hardware/nxp/secure_element/snxxx/ese-clients/inc", 68 "hardware/nxp/nfc/snxxx/halimpl/common", 69 "hardware/nxp/nfc/snxxx/halimpl/utils", 70 ], 71 72 cflags: [ 73 "-DANDROID", 74 "-DJCOP_VER_3_1=1", 75 "-DJCOP_VER_3_2=2", 76 "-DJCOP_VER_3_3=3", 77 "-DJCOP_VER_4_0=4", 78 "-DJCOP_VER_5_x=5", 79 "-DBUILDCFG=1", 80 "-DNXP_EXTNS=TRUE", 81 "-DNFC_NXP_ESE_VER=JCOP_VER_5_x", 82 "-DNXP_VISO_ENABLE", 83 "-Wall", 84 "-Werror", 85 "-fexceptions", 86 ], 87} 88