Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "libhidl-defaults", |
| 17 | cflags: [ |
| 18 | "-Wall", |
Steven Moreland | 37814cb | 2018-10-24 16:28:35 -0700 | [diff] [blame] | 19 | "-Wdocumentation", // since some users use this |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 20 | "-Werror", |
Bernhard Rosenkränzer | 0c28fd2 | 2018-06-04 16:01:47 +0200 | [diff] [blame] | 21 | "-Wextra-semi", |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 22 | ], |
| 23 | } |
Steven Moreland | 8dd6574 | 2017-02-17 22:39:46 -0800 | [diff] [blame] | 24 | |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 25 | cc_test { |
| 26 | name: "libhidl_test", |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 27 | defaults: ["libhidl-defaults"], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 28 | gtest: false, |
| 29 | srcs: ["test_main.cpp"], |
Steven Moreland | 1745383 | 2019-02-25 12:01:22 -0800 | [diff] [blame] | 30 | test_suites: ["device-tests"], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 31 | |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 32 | shared_libs: [ |
Steven Moreland | 138c350 | 2018-11-27 14:27:04 -0800 | [diff] [blame] | 33 | "android.hidl.memory@1.0", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 34 | "libbase", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 35 | "libhidlbase", |
| 36 | "libhidltransport", |
| 37 | "libhwbinder", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 38 | "liblog", |
| 39 | "libutils", |
Jeff Tinker | 0f3461d | 2017-01-03 10:40:55 -0800 | [diff] [blame] | 40 | "libcutils", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 41 | ], |
Yifan Hong | 2be9418 | 2017-03-03 19:07:38 -0800 | [diff] [blame] | 42 | static_libs: ["libgtest", "libgmock"], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 43 | |
| 44 | cflags: [ |
| 45 | "-O0", |
| 46 | "-g", |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 47 | ], |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 48 | } |
Steven Moreland | a46371d | 2019-06-05 18:29:06 -0700 | [diff] [blame^] | 49 | |
| 50 | cc_library { |
| 51 | name: "libhidlbase", |
| 52 | recovery_available: true, |
| 53 | vendor_available: true, |
| 54 | vndk: { |
| 55 | enabled: true, |
| 56 | support_system_process: true, |
| 57 | }, |
| 58 | |
| 59 | defaults: [ |
| 60 | "libhidlbase-impl-shared-libs", |
| 61 | "libhidltransport-impl-shared-libs", |
| 62 | ], |
| 63 | |
| 64 | whole_static_libs: [ |
| 65 | "libhidlbase-impl-internal", |
| 66 | "libhidltransport-impl-internal", |
| 67 | ], |
| 68 | } |
| 69 | |
| 70 | // WARNING: deprecated |
| 71 | // This library is no longer required, and dependencies should be taken |
| 72 | // on libhidlbase instead. |
| 73 | cc_library { |
| 74 | name: "libhidltransport", |
| 75 | recovery_available: true, |
| 76 | vendor_available: true, |
| 77 | vndk: { |
| 78 | enabled: true, |
| 79 | support_system_process: true, |
| 80 | }, |
| 81 | } |