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
23license {
24    name: "hardware_nxp_weaver_license",
25    visibility: [":__subpackages__"],
26    license_kinds: [
27        "SPDX-license-identifier-Apache-2.0",
28    ],
29    license_text: [
30        "LICENSE",
31        "NOTICE",
32    ],
33}
34
35cc_binary {
36    relative_install_path: "hw",
37    name: "android.hardware.weaver@1.0-service.nxp",
38    init_rc: ["1.0/android.hardware.weaver@1.0-service.nxp.rc"],
39    vintf_fragments: ["1.0/android.hardware.weaver@1.0-service.nxp.xml"],
40    proprietary: true,
41    defaults: ["hidl_defaults"],
42    srcs: [
43        "1.0/WeaverService.cpp",
44        "1.0/Weaver.cpp",
45    ],
46
47    shared_libs: [
48        "android.hardware.weaver@1.0",
49        "ese_weaver.nxp",
50        "libcutils",
51        "libdl",
52        "libhardware",
53        "libhidlbase",
54        "liblog",
55        "libutils",
56        "libbinder_ndk",
57    ],
58
59    local_include_dirs: [
60        "libese_weaver/inc/"
61    ],
62
63    include_dirs: [
64    ],
65    cflags: [
66        "-Wall",
67        "-fexceptions",
68    ],
69}
70
71cc_binary {
72    name: "android.hardware.weaver-service.nxp",
73    relative_install_path: "hw",
74    init_rc: ["aidl_impl/android.hardware.weaver-service.nxp.rc"],
75    vintf_fragments: ["aidl_impl/android.hardware.weaver-service.nxp.xml"],
76    vendor: true,
77    srcs: [
78        "aidl_impl/service.cpp",
79        "aidl_impl/Weaver.cpp",
80    ],
81
82    local_include_dirs: [
83        "libese_weaver/inc",
84    ],
85    cppflags: [
86        "-Wall",
87        "-fexceptions",
88    ],
89    shared_libs: [
90        "android.hardware.weaver-V2-ndk",
91        "libbase",
92        "libbinder_ndk",
93        "liblog",
94        "ese_weaver.nxp",
95    ],
96}
97