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.se.omapi-V1-ndk",
49        "libcutils",
50        "libjc_keymint_transport.nxp",
51        "libhardware",
52        "libhidlbase",
53        "libutils",
54        "liblog",
55        "libbinder_ndk",
56    ],
57
58    product_variables: {
59        debuggable: {
60            cflags: [
61                "-DDCHECK_ALWAYS_ON"
62            ],
63        },
64    },
65}
66