1//***************************************************************************
2// The original Work has been changed by 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//
16// Copyright 2022-2023 NXP
17// *************************************************************************
18
19package {
20    default_applicable_licenses: ["hardware_nxp_weaver_license"],
21}
22
23cc_library_shared {
24
25    name: "ese_weaver.nxp",
26    defaults: ["hidl_defaults"],
27    proprietary: true,
28
29    srcs: [
30        "src/weaver-impl.cpp",
31        "src/weaver-transport-impl.cpp",
32        "src/weaver-parser-impl.cpp",
33    ],
34
35    local_include_dirs: [
36        "inc",
37    ],
38
39    cflags: [
40        "-Wall",
41        "-Werror",
42        "-DOMAPI_TRANSPORT",
43        "-DINTERVAL_TIMER",
44        "-DNXP_EXTNS",
45    ],
46
47    shared_libs: [
48        "android.hardware.secure_element-V1-ndk",
49        "android.se.omapi-V1-ndk",
50        "libcutils",
51        "libjc_keymint_transport.nxp",
52        "libhardware",
53        "libhidlbase",
54        "libutils",
55        "liblog",
56        "libbinder_ndk",
57    ],
58
59    product_variables: {
60        debuggable: {
61            cflags: [
62                "-DDCHECK_ALWAYS_ON"
63            ],
64        },
65    },
66}
67