Will Drewry | d4ae528 | 2017-01-03 22:06:26 -0600 | [diff] [blame] | 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 | |
Bob Badour | 6266a7f | 2021-02-12 17:31:35 -0800 | [diff] [blame] | 17 | package { |
| 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 Drewry | d4ae528 | 2017-01-03 22:06:26 -0600 | [diff] [blame] | 26 | cc_library { |
Will Drewry | de2cad7 | 2017-03-10 15:53:34 -0600 | [diff] [blame] | 27 | name: "libese-hw-nxp-pn80t-common", |
Will Drewry | 28e79ff | 2017-04-07 00:15:31 -0500 | [diff] [blame] | 28 | proprietary: true, |
Will Drewry | b6635bf | 2017-03-30 08:02:36 -0500 | [diff] [blame] | 29 | defaults: ["libese-defaults"], |
Will Drewry | de2cad7 | 2017-03-10 15:53:34 -0600 | [diff] [blame] | 30 | srcs: ["pn80t/common.c"], |
Andrew Scull | b270de2 | 2017-04-21 18:52:52 +0100 | [diff] [blame] | 31 | shared_libs: [ |
| 32 | "liblog", |
| 33 | "libese", |
| 34 | "libese-teq1", |
| 35 | "libese-sysdeps", |
| 36 | ], |
Will Drewry | 5359f55 | 2017-03-09 14:30:51 -0600 | [diff] [blame] | 37 | export_include_dirs: ["include"], |
Chih-Hung Hsieh | c5b766a | 2017-09-28 14:01:29 -0700 | [diff] [blame] | 38 | cflags: [ |
| 39 | "-Wall", |
| 40 | "-Werror", |
| 41 | "-Wno-error=unused-variable", |
Yi Kong | 0423b36 | 2018-01-03 13:01:55 -0800 | [diff] [blame] | 42 | "-Wno-format", |
Chih-Hung Hsieh | c5b766a | 2017-09-28 14:01:29 -0700 | [diff] [blame] | 43 | ], |
Will Drewry | 5359f55 | 2017-03-09 14:30:51 -0600 | [diff] [blame] | 44 | target: { |
Will Drewry | de2cad7 | 2017-03-10 15:53:34 -0600 | [diff] [blame] | 45 | darwin: { |
| 46 | enabled: false, |
| 47 | }, |
| 48 | }, |
| 49 | } |
| 50 | |
| 51 | cc_defaults { |
| 52 | name: "pn80t_platform", |
Will Drewry | 28e79ff | 2017-04-07 00:15:31 -0500 | [diff] [blame] | 53 | proprietary: true, |
Will Drewry | b6635bf | 2017-03-30 08:02:36 -0500 | [diff] [blame] | 54 | defaults: ["libese-api-defaults"], |
Will Drewry | de2cad7 | 2017-03-10 15:53:34 -0600 | [diff] [blame] | 55 | target: { |
Will Drewry | 5359f55 | 2017-03-09 14:30:51 -0600 | [diff] [blame] | 56 | darwin: { |
Will Drewry | de2cad7 | 2017-03-10 15:53:34 -0600 | [diff] [blame] | 57 | enabled: false, |
Will Drewry | 5359f55 | 2017-03-09 14:30:51 -0600 | [diff] [blame] | 58 | }, |
| 59 | }, |
Andrew Scull | b270de2 | 2017-04-21 18:52:52 +0100 | [diff] [blame] | 60 | shared_libs: [ |
| 61 | "liblog", |
| 62 | "libese", |
| 63 | "libese-teq1", |
| 64 | "libese-sysdeps", |
| 65 | ], |
Will Drewry | de2cad7 | 2017-03-10 15:53:34 -0600 | [diff] [blame] | 66 | static_libs: ["libese-hw-nxp-pn80t-common"], |
| 67 | } |
| 68 | |
| 69 | cc_library { |
| 70 | name: "libese-hw-nxp-pn80t-spidev", |
| 71 | defaults: ["pn80t_platform"], |
| 72 | srcs: ["pn80t/linux_spidev.c"], |
Yi Kong | 0423b36 | 2018-01-03 13:01:55 -0800 | [diff] [blame] | 73 | cflags: [ |
| 74 | "-Wno-format", |
| 75 | ], |
Inseob Kim | d4842e8 | 2020-01-02 18:59:45 +0900 | [diff] [blame] | 76 | export_include_dirs: ["include"], |
Will Drewry | de2cad7 | 2017-03-10 15:53:34 -0600 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | cc_library { |
| 80 | name: "libese-hw-nxp-pn80t-nq-nci", |
| 81 | defaults: ["pn80t_platform"], |
| 82 | srcs: ["pn80t/nq_nci.c"], |
Chih-Hung Hsieh | c5b766a | 2017-09-28 14:01:29 -0700 | [diff] [blame] | 83 | cflags: [ |
| 84 | "-Wall", |
| 85 | "-Werror", |
| 86 | "-Wno-error=unused-variable", |
Yi Kong | 0423b36 | 2018-01-03 13:01:55 -0800 | [diff] [blame] | 87 | "-Wno-format", |
Chih-Hung Hsieh | c5b766a | 2017-09-28 14:01:29 -0700 | [diff] [blame] | 88 | ], |
Inseob Kim | d4842e8 | 2020-01-02 18:59:45 +0900 | [diff] [blame] | 89 | export_include_dirs: ["include"], |
Will Drewry | d4ae528 | 2017-01-03 22:06:26 -0600 | [diff] [blame] | 90 | } |