blob: 6ff143e4347a03a6145cf67eb816e6f99007bfb4 [file] [log] [blame]
Will Drewryd4ae5282017-01-03 22:06:26 -06001//
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
Bob Badour6266a7f2021-02-12 17:31:35 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "external_libese_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["external_libese_license"],
24}
25
Will Drewryd4ae5282017-01-03 22:06:26 -060026cc_library {
Will Drewryde2cad72017-03-10 15:53:34 -060027 name: "libese-hw-nxp-pn80t-common",
Will Drewry28e79ff2017-04-07 00:15:31 -050028 proprietary: true,
Will Drewryb6635bf2017-03-30 08:02:36 -050029 defaults: ["libese-defaults"],
Will Drewryde2cad72017-03-10 15:53:34 -060030 srcs: ["pn80t/common.c"],
Andrew Scullb270de22017-04-21 18:52:52 +010031 shared_libs: [
32 "liblog",
33 "libese",
34 "libese-teq1",
35 "libese-sysdeps",
36 ],
Will Drewry5359f552017-03-09 14:30:51 -060037 export_include_dirs: ["include"],
Chih-Hung Hsiehc5b766a2017-09-28 14:01:29 -070038 cflags: [
39 "-Wall",
40 "-Werror",
41 "-Wno-error=unused-variable",
Yi Kong0423b362018-01-03 13:01:55 -080042 "-Wno-format",
Chih-Hung Hsiehc5b766a2017-09-28 14:01:29 -070043 ],
Will Drewry5359f552017-03-09 14:30:51 -060044 target: {
Will Drewryde2cad72017-03-10 15:53:34 -060045 darwin: {
46 enabled: false,
47 },
48 },
49}
50
51cc_defaults {
52 name: "pn80t_platform",
Will Drewry28e79ff2017-04-07 00:15:31 -050053 proprietary: true,
Will Drewryb6635bf2017-03-30 08:02:36 -050054 defaults: ["libese-api-defaults"],
Will Drewryde2cad72017-03-10 15:53:34 -060055 target: {
Will Drewry5359f552017-03-09 14:30:51 -060056 darwin: {
Will Drewryde2cad72017-03-10 15:53:34 -060057 enabled: false,
Will Drewry5359f552017-03-09 14:30:51 -060058 },
59 },
Andrew Scullb270de22017-04-21 18:52:52 +010060 shared_libs: [
61 "liblog",
62 "libese",
63 "libese-teq1",
64 "libese-sysdeps",
65 ],
Will Drewryde2cad72017-03-10 15:53:34 -060066 static_libs: ["libese-hw-nxp-pn80t-common"],
67}
68
69cc_library {
70 name: "libese-hw-nxp-pn80t-spidev",
71 defaults: ["pn80t_platform"],
72 srcs: ["pn80t/linux_spidev.c"],
Yi Kong0423b362018-01-03 13:01:55 -080073 cflags: [
74 "-Wno-format",
75 ],
Inseob Kimd4842e82020-01-02 18:59:45 +090076 export_include_dirs: ["include"],
Will Drewryde2cad72017-03-10 15:53:34 -060077}
78
79cc_library {
80 name: "libese-hw-nxp-pn80t-nq-nci",
81 defaults: ["pn80t_platform"],
82 srcs: ["pn80t/nq_nci.c"],
Chih-Hung Hsiehc5b766a2017-09-28 14:01:29 -070083 cflags: [
84 "-Wall",
85 "-Werror",
86 "-Wno-error=unused-variable",
Yi Kong0423b362018-01-03 13:01:55 -080087 "-Wno-format",
Chih-Hung Hsiehc5b766a2017-09-28 14:01:29 -070088 ],
Inseob Kimd4842e82020-01-02 18:59:45 +090089 export_include_dirs: ["include"],
Will Drewryd4ae5282017-01-03 22:06:26 -060090}