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_library { 18 name: "libese-hw-nxp-pn80t-common", 19 proprietary: true, 20 defaults: ["libese-defaults"], 21 srcs: ["pn80t/common.c"], 22 shared_libs: [ 23 "liblog", 24 "libese", 25 "libese-teq1", 26 "libese-sysdeps", 27 ], 28 local_include_dirs: ["include"], 29 export_include_dirs: ["include"], 30 cflags: [ 31 "-Wall", 32 "-Werror", 33 "-Wno-error=unused-variable", 34 "-Wno-format", 35 ], 36 target: { 37 darwin: { 38 enabled: false, 39 }, 40 }, 41} 42 43cc_defaults { 44 name: "pn80t_platform", 45 proprietary: true, 46 defaults: ["libese-api-defaults"], 47 target: { 48 darwin: { 49 enabled: false, 50 }, 51 }, 52 shared_libs: [ 53 "liblog", 54 "libese", 55 "libese-teq1", 56 "libese-sysdeps", 57 ], 58 static_libs: ["libese-hw-nxp-pn80t-common"], 59} 60 61cc_library { 62 name: "libese-hw-nxp-pn80t-spidev", 63 defaults: ["pn80t_platform"], 64 srcs: ["pn80t/linux_spidev.c"], 65 cflags: [ 66 "-Wno-format", 67 ], 68} 69 70cc_library { 71 name: "libese-hw-nxp-pn80t-nq-nci", 72 defaults: ["pn80t_platform"], 73 srcs: ["pn80t/nq_nci.c"], 74 cflags: [ 75 "-Wall", 76 "-Werror", 77 "-Wno-error=unused-variable", 78 "-Wno-format", 79 ], 80} 81