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 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "frameworks_native_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["frameworks_native_license"], |
| 22 | } |
| 23 | |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 24 | cc_library_static { |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 25 | name: "liblshal", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 26 | shared_libs: [ |
Yifan Hong | f4bee84 | 2017-02-01 15:54:01 -0800 | [diff] [blame] | 27 | "libbase", |
Devin Moore | c03e3aa | 2020-12-11 15:11:17 -0800 | [diff] [blame] | 28 | "libbinderdebug", |
Andreas Huber | 28d3591 | 2017-03-24 13:14:11 -0700 | [diff] [blame] | 29 | "libcutils", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 30 | "libutils", |
| 31 | "libhidlbase", |
Yifan Hong | fee209d | 2017-09-14 18:23:38 -0700 | [diff] [blame] | 32 | "libhidl-gen-hash", |
Yifan Hong | 4b86549 | 2017-02-28 19:38:24 -0800 | [diff] [blame] | 33 | "libhidl-gen-utils", |
| 34 | "libvintf", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 35 | ], |
Yifan Hong | f31aa05 | 2018-02-02 15:17:51 -0800 | [diff] [blame] | 36 | static_libs: [ |
| 37 | "libprocpartition", |
| 38 | ], |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 39 | srcs: [ |
Yifan Hong | 48dc9f8 | 2017-05-09 19:33:08 -0700 | [diff] [blame] | 40 | "DebugCommand.cpp", |
Yifan Hong | a8bedc6 | 2017-09-08 18:00:31 -0700 | [diff] [blame] | 41 | "HelpCommand.cpp", |
Andreas Huber | 28d3591 | 2017-03-24 13:14:11 -0700 | [diff] [blame] | 42 | "Lshal.cpp", |
Yifan Hong | 443df79 | 2017-05-09 18:49:45 -0700 | [diff] [blame] | 43 | "ListCommand.cpp", |
| 44 | "PipeRelay.cpp", |
Yifan Hong | d4a77e8 | 2017-09-06 19:40:24 -0700 | [diff] [blame] | 45 | "TableEntry.cpp", |
Yifan Hong | 1bc1e9f | 2017-08-29 17:28:12 -0700 | [diff] [blame] | 46 | "TextTable.cpp", |
Yifan Hong | 443df79 | 2017-05-09 18:49:45 -0700 | [diff] [blame] | 47 | "utils.cpp", |
Steven Moreland | 552e407 | 2019-06-25 09:33:32 -0700 | [diff] [blame] | 48 | "WaitCommand.cpp", |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 49 | ], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 50 | cflags: [ |
| 51 | "-Wall", |
| 52 | "-Werror", |
| 53 | ], |
Yifan Hong | 85dd3ad | 2017-01-25 14:20:34 -0800 | [diff] [blame] | 54 | } |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 55 | |
| 56 | cc_defaults { |
| 57 | name: "lshal_defaults", |
| 58 | shared_libs: [ |
| 59 | "libbase", |
Devin Moore | c03e3aa | 2020-12-11 15:11:17 -0800 | [diff] [blame] | 60 | "libbinderdebug", |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 61 | "libcutils", |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 62 | "libutils", |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 63 | "libhidlbase", |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 64 | "libhidl-gen-hash", |
| 65 | "libhidl-gen-utils", |
| 66 | "libvintf", |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 67 | ], |
Yifan Hong | f31aa05 | 2018-02-02 15:17:51 -0800 | [diff] [blame] | 68 | static_libs: [ |
Steven Moreland | b8745de | 2019-06-25 11:40:37 -0700 | [diff] [blame] | 69 | "liblshal", |
Yifan Hong | f31aa05 | 2018-02-02 15:17:51 -0800 | [diff] [blame] | 70 | "libprocpartition", |
| 71 | ], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 72 | cflags: ["-Wall", "-Werror"], |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | cc_binary { |
| 76 | name: "lshal", |
| 77 | defaults: ["lshal_defaults"], |
| 78 | srcs: [ |
| 79 | "main.cpp" |
| 80 | ] |
| 81 | } |
| 82 | |
| 83 | cc_test { |
| 84 | name: "lshal_test", |
Steven Moreland | eae1a0b | 2019-06-25 13:01:49 -0700 | [diff] [blame] | 85 | test_suites: ["device-tests"], |
Yifan Hong | 43101a4 | 2020-12-01 11:14:28 -0800 | [diff] [blame] | 86 | defaults: [ |
| 87 | "libvintf_static_user_defaults", |
| 88 | "lshal_defaults" |
| 89 | ], |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 90 | gtest: true, |
| 91 | static_libs: [ |
Yifan Hong | 5cceea8 | 2020-07-09 19:34:58 -0700 | [diff] [blame] | 92 | "android.hardware.tests.inheritance@1.0", |
Steven Moreland | eae1a0b | 2019-06-25 13:01:49 -0700 | [diff] [blame] | 93 | "libgmock", |
Yifan Hong | 43101a4 | 2020-12-01 11:14:28 -0800 | [diff] [blame] | 94 | "libvintf", |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 95 | ], |
| 96 | shared_libs: [ |
Steven Moreland | eae1a0b | 2019-06-25 13:01:49 -0700 | [diff] [blame] | 97 | "libhidlbase", |
Yifan Hong | 9881df9 | 2017-05-10 14:33:05 -0700 | [diff] [blame] | 98 | ], |
| 99 | srcs: [ |
| 100 | "test.cpp" |
| 101 | ] |
| 102 | } |