1//
2// Copyright (C) 2017 The Android Open Source Project
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
17cc_defaults {
18    name: "ese-relay-defaults",
19    vendor: true,
20    host_supported: false,
21    target: {
22        darwin: {
23            enabled: false,
24        },
25    },
26    srcs: ["ese_relay.c"],
27    shared_libs: [
28        "liblog",
29        "libese",
30    ],
31}
32
33cc_binary {
34    name: "ese-relay-pn80t-nq-nci",
35    vendor: true,
36    defaults: ["ese-relay-defaults"],
37    srcs: ["ese_relay_pn80t_nq_nci.c"],
38    shared_libs: ["libese-hw-nxp-pn80t-nq-nci", "libese-teq1"],
39}
40
41cc_binary {
42    name: "ese-relay-pn80t-spidev",
43    vendor: true,
44    defaults: ["ese-relay-defaults"],
45    srcs: ["ese_relay_pn80t_spidev.c"],
46    shared_libs: ["libese-hw-nxp-pn80t-spidev", "libese-teq1"],
47}
48
49cc_binary {
50    name: "ese-relay-fake",
51    vendor: true,
52    defaults: ["ese-relay-defaults"],
53    srcs: ["ese_relay_fake.c"],
54    shared_libs: ["libese-hw-fake"],
55    host_supported: true,
56}
57