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 | |
Yifan Hong | 602b85a | 2016-10-24 13:40:01 -0700 | [diff] [blame] | 15 | subdirs = [ |
Martijn Coenen | 3079100 | 2016-12-01 15:40:46 +0100 | [diff] [blame] | 16 | "base", // libhidlbase |
| 17 | "libhidlmemory", // libhidlmemory |
| 18 | "transport", // libhidltransport |
Yifan Hong | 602b85a | 2016-10-24 13:40:01 -0700 | [diff] [blame] | 19 | ] |
| 20 | |
Steven Moreland | 8dd6574 | 2017-02-17 22:39:46 -0800 | [diff] [blame^] | 21 | libhidl_flags = [ |
| 22 | "-Wall", |
| 23 | "-Werror", |
| 24 | ] |
| 25 | |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 26 | cc_test { |
| 27 | name: "libhidl_test", |
| 28 | gtest: false, |
| 29 | srcs: ["test_main.cpp"], |
| 30 | |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 31 | shared_libs: [ |
| 32 | "libbase", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 33 | "libhidlbase", |
| 34 | "libhidltransport", |
| 35 | "libhwbinder", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 36 | "liblog", |
| 37 | "libutils", |
Jeff Tinker | 0f3461d | 2017-01-03 10:40:55 -0800 | [diff] [blame] | 38 | "libcutils", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 39 | ], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 40 | static_libs: ["libgtest"], |
| 41 | |
| 42 | cflags: [ |
| 43 | "-O0", |
| 44 | "-g", |
Steven Moreland | 8dd6574 | 2017-02-17 22:39:46 -0800 | [diff] [blame^] | 45 | ] + libhidl_flags, |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 46 | } |