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 | |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 15 | cc_library_static { |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 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 | fee209d | 2017-09-14 18:23:38 -0700 | [diff] [blame] | 22 | "libhidl-gen-hash", |
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 | ], |
Yifan Hong | f31aa05 | 2018-02-02 15:17:51 -0800 | [diff] [blame] | 26 | static_libs: [ |
| 27 | "libprocpartition", |
| 28 | ], |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 29 | srcs: [ |
Yifan Hong | 48dc9f8 | 2017-05-09 19:33:08 -0700 | [diff] [blame] | 30 | "DebugCommand.cpp", |
Yifan Hong | a8bedc6 | 2017-09-08 18:00:31 -0700 | [diff] [blame] | 31 | "HelpCommand.cpp", |
Andreas Huber | 28d3591 | 2017-03-24 13:14:11 -0700 | [diff] [blame] | 32 | "Lshal.cpp", |
Yifan Hong | 443df79 | 2017-05-09 18:49:45 -0700 | [diff] [blame] | 33 | "ListCommand.cpp", |
| 34 | "PipeRelay.cpp", |
Yifan Hong | d4a77e8 | 2017-09-06 19:40:24 -0700 | [diff] [blame] | 35 | "TableEntry.cpp", |
Yifan Hong | 1bc1e9f | 2017-08-29 17:28:12 -0700 | [diff] [blame] | 36 | "TextTable.cpp", |
Yifan Hong | 443df79 | 2017-05-09 18:49:45 -0700 | [diff] [blame] | 37 | "utils.cpp", |
Steven Moreland | 552e407 | 2019-06-25 09:33:32 -0700 | [diff] [blame] | 38 | "WaitCommand.cpp", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 39 | ], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 40 | cflags: [ |
| 41 | "-Wall", |
| 42 | "-Werror", |
| 43 | ], |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 44 | } |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 45 | |
| 46 | cc_defaults { |
| 47 | name: "lshal_defaults", |
| 48 | shared_libs: [ |
| 49 | "libbase", |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 50 | "libcutils", |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 51 | "libutils", |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 52 | "libhidlbase", |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 53 | "libhidl-gen-hash", |
| 54 | "libhidl-gen-utils", |
| 55 | "libvintf", |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 56 | ], |
Yifan Hong | f31aa05 | 2018-02-02 15:17:51 -0800 | [diff] [blame] | 57 | static_libs: [ |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 58 | "liblshal", |
Yifan Hong | f31aa05 | 2018-02-02 15:17:51 -0800 | [diff] [blame] | 59 | "libprocpartition", |
| 60 | ], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 61 | cflags: ["-Wall", "-Werror"], |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | cc_binary { |
| 65 | name: "lshal", |
| 66 | defaults: ["lshal_defaults"], |
| 67 | srcs: [ |
| 68 | "main.cpp" |
| 69 | ] |
| 70 | } |
| 71 | |
| 72 | cc_test { |
| 73 | name: "lshal_test", |
Steven Moreland | eae1a0b | 2019-06-25 13:01:49 -0700 | [diff] [blame] | 74 | test_suites: ["device-tests"], |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 75 | defaults: ["lshal_defaults"], |
| 76 | gtest: true, |
| 77 | static_libs: [ |
Yifan Hong | 5cceea8 | 2020-07-09 19:34:58 -0700 | [diff] [blame^] | 78 | "android.hardware.tests.inheritance@1.0", |
Steven Moreland | eae1a0b | 2019-06-25 13:01:49 -0700 | [diff] [blame] | 79 | "libgmock", |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 80 | ], |
| 81 | shared_libs: [ |
Steven Moreland | eae1a0b | 2019-06-25 13:01:49 -0700 | [diff] [blame] | 82 | "libhidlbase", |
Yifan Hong | 8bf7316 | 2017-09-07 18:06:13 -0700 | [diff] [blame] | 83 | "libvintf", |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 84 | ], |
| 85 | srcs: [ |
| 86 | "test.cpp" |
| 87 | ] |
| 88 | } |