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", |
| 19 | "-Werror", |
| 20 | ], |
| 21 | } |
Steven Moreland | 8dd6574 | 2017-02-17 22:39:46 -0800 | [diff] [blame] | 22 | |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 23 | cc_test { |
| 24 | name: "libhidl_test", |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 25 | defaults: ["libhidl-defaults"], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 26 | gtest: false, |
| 27 | srcs: ["test_main.cpp"], |
| 28 | |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 29 | shared_libs: [ |
Steven Moreland | 951fb13 | 2017-11-07 14:24:07 -0800 | [diff] [blame] | 30 | "android.hardware.tests.inheritance@1.0", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 31 | "libbase", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 32 | "libhidlbase", |
| 33 | "libhidltransport", |
| 34 | "libhwbinder", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 35 | "liblog", |
| 36 | "libutils", |
Jeff Tinker | 0f3461d | 2017-01-03 10:40:55 -0800 | [diff] [blame] | 37 | "libcutils", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 38 | ], |
Yifan Hong | 2be9418 | 2017-03-03 19:07:38 -0800 | [diff] [blame] | 39 | static_libs: ["libgtest", "libgmock"], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 40 | |
Steven Moreland | 951fb13 | 2017-11-07 14:24:07 -0800 | [diff] [blame] | 41 | required: [ |
| 42 | "android.hardware.tests.inheritance@1.0-impl", |
| 43 | ], |
| 44 | |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 45 | cflags: [ |
| 46 | "-O0", |
| 47 | "-g", |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 48 | ], |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 49 | } |