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    relative_install_path: "hw",
27    name: "android.hardware.secure_element_snxxx@1.2-service",
28    init_rc: ["android.hardware.secure_element_snxxx@1.2-service.rc"],
29    proprietary: true,
30    defaults: ["hidl_defaults"],
31    enabled: false,
32    srcs: [
33        "NxpEseService.cpp",
34        "SecureElement.cpp",
35        "VirtualISO.cpp",
36        ":ExtnsFile",
37        ":OsuHalCommonFile",
38    ],
39
40    shared_libs: [
41        "android.hardware.secure_element@1.0",
42        "android.hardware.secure_element@1.1",
43        "android.hardware.secure_element@1.2",
44        "ese_spi_nxp_snxxx",
45        "libbase",
46        "libbinder",
47        "libbinder_ndk",
48        "libcutils",
49        "libdl",
50        "libhardware",
51        "libhidlbase",
52        "liblog",
53        "libutils",
54        "libchrome",
55        "vendor.nxp.nxpese@1.0",
56        "vendor.nxp.nxpnfc@2.0",
57        "vendor.nxp.nxpnfc_aidl-V1-ndk",
58        "android.hardware.nfc@1.0",
59        "android.hardware.nfc@1.1",
60        "android.hardware.nfc@1.2",
61        "android.hardware.nfc-V1-ndk",
62        "libmemunreachable",
63    ],
64
65    include_dirs: [
66        "hardware/nxp/secure_element/snxxx/extns/impl",
67        "hardware/nxp/secure_element/snxxx/libese-spi/common/include",
68        "hardware/nxp/secure_element/snxxx/libese-spi/p73/common",
69        "hardware/nxp/secure_element/snxxx/libese-spi/p73/inc",
70        "hardware/nxp/secure_element/snxxx/libese-spi/p73/lib",
71        "hardware/nxp/secure_element/snxxx/libese-spi/p73/pal",
72        "hardware/nxp/secure_element/snxxx/libese-spi/p73/pal/spi",
73        "hardware/nxp/secure_element/snxxx/libese-spi/p73/utils",
74        "hardware/nxp/secure_element/snxxx/libese-spi/p73/spm",
75        "hardware/nxp/secure_element/snxxx/libese-spi/src/include",
76        "hardware/nxp/secure_element/snxxx/ese-clients/inc",
77        "hardware/nxp/secure_element/snxxx/OsuHal/inc",
78    ],
79    cflags: [
80        "-DANDROID",
81        "-DJCOP_VER_3_1=1",
82        "-DJCOP_VER_3_2=2",
83        "-DJCOP_VER_3_3=3",
84        "-DJCOP_VER_4_0=4",
85        "-DJCOP_VER_5_x=5",
86        "-DBUILDCFG=1",
87        "-DNXP_EXTNS=TRUE",
88        "-DNFC_NXP_ESE_VER=JCOP_VER_5_x",
89        "-Wall",
90        "-Werror",
91        "-fexceptions",
92    ],
93
94}
95