• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    host_supported: false,
20    proprietary: true,
21    target: {
22        darwin: {
23            enabled: false,
24        },
25    },
26    cflags: [
27        "-std=c99",
28        "-D_FORTIFY_SOURCE=2",
29        "-Wall",
30        "-Werror",
31        "-Wno-error=unused-variable",
32    ],
33    srcs: ["ese_relay.c"],
34    shared_libs: [
35        "liblog",
36        "libese",
37    ],
38}
39
40cc_binary {
41    name: "ese-relay-pn80t-nq-nci",
42    defaults: ["ese-relay-defaults"],
43    srcs: ["ese_relay_pn80t_nq_nci.c"],
44    shared_libs: ["libese-hw-nxp-pn80t-nq-nci", "libese-teq1"],
45}
46
47cc_binary {
48    name: "ese-relay-pn80t-spidev",
49    defaults: ["ese-relay-defaults"],
50    srcs: ["ese_relay_pn80t_spidev.c"],
51    shared_libs: ["libese-hw-nxp-pn80t-spidev", "libese-teq1"],
52}
53
54cc_binary {
55    name: "ese-relay-fake",
56    defaults: ["ese-relay-defaults"],
57    srcs: ["ese_relay_fake.c"],
58    shared_libs: ["libese-hw-fake"],
59    host_supported: true,
60}
61