blob: 5afae4b7d3321de7018f5f8e1d104c530e4b3d25 [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
Steven Morelandb8745de2019-06-25 11:40:37 -070015cc_library_static {
Yifan Hong9881df92017-05-10 14:33:05 -070016 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 Hongfee209d2017-09-14 18:23:38 -070022 "libhidl-gen-hash",
Yifan Hong4b865492017-02-28 19:38:24 -080023 "libhidl-gen-utils",
24 "libvintf",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080025 ],
Yifan Hongf31aa052018-02-02 15:17:51 -080026 static_libs: [
27 "libprocpartition",
28 ],
Yifan Hong85dd3ad2017-01-25 14:20:34 -080029 srcs: [
Yifan Hong48dc9f82017-05-09 19:33:08 -070030 "DebugCommand.cpp",
Yifan Honga8bedc62017-09-08 18:00:31 -070031 "HelpCommand.cpp",
Andreas Huber28d35912017-03-24 13:14:11 -070032 "Lshal.cpp",
Yifan Hong443df792017-05-09 18:49:45 -070033 "ListCommand.cpp",
34 "PipeRelay.cpp",
Yifan Hongd4a77e82017-09-06 19:40:24 -070035 "TableEntry.cpp",
Yifan Hong1bc1e9f2017-08-29 17:28:12 -070036 "TextTable.cpp",
Yifan Hong443df792017-05-09 18:49:45 -070037 "utils.cpp",
Steven Moreland552e4072019-06-25 09:33:32 -070038 "WaitCommand.cpp",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080039 ],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070040 cflags: [
41 "-Wall",
42 "-Werror",
43 ],
Yifan Hong85dd3ad2017-01-25 14:20:34 -080044}
Yifan Hong9881df92017-05-10 14:33:05 -070045
46cc_defaults {
47 name: "lshal_defaults",
48 shared_libs: [
49 "libbase",
Steven Morelandb8745de2019-06-25 11:40:37 -070050 "libcutils",
Yifan Hong9881df92017-05-10 14:33:05 -070051 "libutils",
Steven Morelandb8745de2019-06-25 11:40:37 -070052 "libhidlbase",
Steven Morelandb8745de2019-06-25 11:40:37 -070053 "libhidl-gen-hash",
54 "libhidl-gen-utils",
55 "libvintf",
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070056 ],
Yifan Hongf31aa052018-02-02 15:17:51 -080057 static_libs: [
Steven Morelandb8745de2019-06-25 11:40:37 -070058 "liblshal",
Yifan Hongf31aa052018-02-02 15:17:51 -080059 "libprocpartition",
60 ],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070061 cflags: ["-Wall", "-Werror"],
Yifan Hong9881df92017-05-10 14:33:05 -070062}
63
64cc_binary {
65 name: "lshal",
66 defaults: ["lshal_defaults"],
67 srcs: [
68 "main.cpp"
69 ]
70}
71
72cc_test {
73 name: "lshal_test",
Steven Morelandeae1a0b2019-06-25 13:01:49 -070074 test_suites: ["device-tests"],
Yifan Hong9881df92017-05-10 14:33:05 -070075 defaults: ["lshal_defaults"],
76 gtest: true,
77 static_libs: [
Steven Morelandeae1a0b2019-06-25 13:01:49 -070078 "android.hardware.tests.baz@1.0",
79 "libgmock",
Yifan Hong9881df92017-05-10 14:33:05 -070080 ],
81 shared_libs: [
Steven Morelandeae1a0b2019-06-25 13:01:49 -070082 "libhidlbase",
Yifan Hong8bf73162017-09-07 18:06:13 -070083 "libvintf",
Yifan Hong9881df92017-05-10 14:33:05 -070084 ],
85 srcs: [
86 "test.cpp"
87 ]
88}