Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [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 | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 15 | cc_library_shared { |
| 16 | name: "liblshal", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 17 | shared_libs: [ |
Yifan Hong | f4bee84 | 2017-02-01 15:54:01 -0800 | [diff] [blame] | 18 | "libbase", |
Andreas Huber | 28d3591 | 2017-03-24 13:14:11 -0700 | [diff] [blame] | 19 | "libcutils", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 20 | "libutils", |
| 21 | "libhidlbase", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 22 | "libhidltransport", |
Yifan Hong | 4b86549 | 2017-02-28 19:38:24 -0800 | [diff] [blame] | 23 | "libhidl-gen-utils", |
| 24 | "libvintf", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 25 | ], |
| 26 | srcs: [ |
Yifan Hong | 48dc9f8 | 2017-05-09 19:33:08 -0700 | [diff] [blame] | 27 | "DebugCommand.cpp", |
Yifan Hong | a8bedc6 | 2017-09-08 18:00:31 -0700 | [diff] [blame] | 28 | "HelpCommand.cpp", |
Andreas Huber | 28d3591 | 2017-03-24 13:14:11 -0700 | [diff] [blame] | 29 | "Lshal.cpp", |
Yifan Hong | 443df79 | 2017-05-09 18:49:45 -0700 | [diff] [blame] | 30 | "ListCommand.cpp", |
| 31 | "PipeRelay.cpp", |
Yifan Hong | d4a77e8 | 2017-09-06 19:40:24 -0700 | [diff] [blame] | 32 | "TableEntry.cpp", |
Yifan Hong | 1bc1e9f | 2017-08-29 17:28:12 -0700 | [diff] [blame] | 33 | "TextTable.cpp", |
Yifan Hong | 443df79 | 2017-05-09 18:49:45 -0700 | [diff] [blame] | 34 | "utils.cpp", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 35 | ], |
| 36 | } |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 37 | |
| 38 | cc_defaults { |
| 39 | name: "lshal_defaults", |
| 40 | shared_libs: [ |
| 41 | "libbase", |
| 42 | "libhidlbase", |
| 43 | "libhidltransport", |
| 44 | "liblshal", |
| 45 | "libutils", |
| 46 | ] |
| 47 | } |
| 48 | |
| 49 | cc_binary { |
| 50 | name: "lshal", |
| 51 | defaults: ["lshal_defaults"], |
| 52 | srcs: [ |
| 53 | "main.cpp" |
| 54 | ] |
| 55 | } |
| 56 | |
| 57 | cc_test { |
| 58 | name: "lshal_test", |
| 59 | defaults: ["lshal_defaults"], |
| 60 | gtest: true, |
| 61 | static_libs: [ |
| 62 | "libgmock" |
| 63 | ], |
| 64 | shared_libs: [ |
Yifan Hong | 8bf7316 | 2017-09-07 18:06:13 -0700 | [diff] [blame] | 65 | "libvintf", |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 66 | "android.hardware.tests.baz@1.0" |
| 67 | ], |
| 68 | srcs: [ |
| 69 | "test.cpp" |
| 70 | ] |
| 71 | } |