blob: aedd5542949728dfd2acdf5675a6d0b968221dd6 [file] [log] [blame]
//
// Copyright 2023 NXP
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_nxp_secure_element_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_nxp_secure_element_license"],
}
cc_binary {
relative_install_path: "hw",
name: "android.hardware.secure_element_snxxx@1.2-service",
init_rc: ["android.hardware.secure_element_snxxx@1.2-service.rc"],
proprietary: true,
defaults: ["hidl_defaults"],
enabled: false,
srcs: [
"NxpEseService.cpp",
"SecureElement.cpp",
"VirtualISO.cpp",
":ExtnsFile",
":OsuHalCommonFile",
],
shared_libs: [
"android.hardware.secure_element@1.0",
"android.hardware.secure_element@1.1",
"android.hardware.secure_element@1.2",
"ese_spi_nxp_snxxx",
"libbase",
"libbinder",
"libbinder_ndk",
"libcutils",
"libdl",
"libhardware",
"libhidlbase",
"liblog",
"libutils",
"libchrome",
"vendor.nxp.nxpese@1.0",
"vendor.nxp.nxpnfc@2.0",
"vendor.nxp.nxpnfc_aidl-V1-ndk",
"android.hardware.nfc@1.0",
"android.hardware.nfc@1.1",
"android.hardware.nfc@1.2",
"android.hardware.nfc-V1-ndk",
"libmemunreachable",
],
include_dirs: [
"hardware/nxp/secure_element/snxxx/extns/impl",
"hardware/nxp/secure_element/snxxx/libese-spi/common/include",
"hardware/nxp/secure_element/snxxx/libese-spi/p73/common",
"hardware/nxp/secure_element/snxxx/libese-spi/p73/inc",
"hardware/nxp/secure_element/snxxx/libese-spi/p73/lib",
"hardware/nxp/secure_element/snxxx/libese-spi/p73/pal",
"hardware/nxp/secure_element/snxxx/libese-spi/p73/pal/spi",
"hardware/nxp/secure_element/snxxx/libese-spi/p73/utils",
"hardware/nxp/secure_element/snxxx/libese-spi/p73/spm",
"hardware/nxp/secure_element/snxxx/libese-spi/src/include",
"hardware/nxp/secure_element/snxxx/ese-clients/inc",
"hardware/nxp/secure_element/snxxx/OsuHal/inc",
],
cflags: [
"-DANDROID",
"-DJCOP_VER_3_1=1",
"-DJCOP_VER_3_2=2",
"-DJCOP_VER_3_3=3",
"-DJCOP_VER_4_0=4",
"-DJCOP_VER_5_x=5",
"-DBUILDCFG=1",
"-DNXP_EXTNS=TRUE",
"-DNFC_NXP_ESE_VER=JCOP_VER_5_x",
"-Wall",
"-Werror",
"-fexceptions",
],
}