blob: 6cbe7e24fa01c82061c73d81c258aa91daa99547 [file] [log] [blame]
Yifan Hong85dd3ad2017-01-25 14:20:34 -08001// 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 Hong9881df92017-05-10 14:33:05 -070015cc_library_shared {
16 name: "liblshal",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080017 shared_libs: [
Yifan Hongf4bee842017-02-01 15:54:01 -080018 "libbase",
Andreas Huber28d35912017-03-24 13:14:11 -070019 "libcutils",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080020 "libutils",
21 "libhidlbase",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080022 "libhidltransport",
Yifan Hongfee209d2017-09-14 18:23:38 -070023 "libhidl-gen-hash",
Yifan Hong4b865492017-02-28 19:38:24 -080024 "libhidl-gen-utils",
25 "libvintf",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080026 ],
27 srcs: [
Yifan Hong48dc9f82017-05-09 19:33:08 -070028 "DebugCommand.cpp",
Yifan Honga8bedc62017-09-08 18:00:31 -070029 "HelpCommand.cpp",
Andreas Huber28d35912017-03-24 13:14:11 -070030 "Lshal.cpp",
Yifan Hong443df792017-05-09 18:49:45 -070031 "ListCommand.cpp",
32 "PipeRelay.cpp",
Yifan Hongd4a77e82017-09-06 19:40:24 -070033 "TableEntry.cpp",
Yifan Hong1bc1e9f2017-08-29 17:28:12 -070034 "TextTable.cpp",
Yifan Hong443df792017-05-09 18:49:45 -070035 "utils.cpp",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080036 ],
37}
Yifan Hong9881df92017-05-10 14:33:05 -070038
39cc_defaults {
40 name: "lshal_defaults",
41 shared_libs: [
42 "libbase",
43 "libhidlbase",
44 "libhidltransport",
45 "liblshal",
46 "libutils",
47 ]
48}
49
50cc_binary {
51 name: "lshal",
52 defaults: ["lshal_defaults"],
53 srcs: [
54 "main.cpp"
55 ]
56}
57
58cc_test {
59 name: "lshal_test",
60 defaults: ["lshal_defaults"],
61 gtest: true,
62 static_libs: [
63 "libgmock"
64 ],
65 shared_libs: [
Yifan Hong8bf73162017-09-07 18:06:13 -070066 "libvintf",
Yifan Hong9881df92017-05-10 14:33:05 -070067 "android.hardware.tests.baz@1.0"
68 ],
69 srcs: [
70 "test.cpp"
71 ]
72}