2017-01-25 23:20:34 +01:00
|
|
|
// Copyright (C) 2016 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2017-05-10 23:33:05 +02:00
|
|
|
cc_library_shared {
|
|
|
|
name: "liblshal",
|
2017-01-25 23:20:34 +01:00
|
|
|
shared_libs: [
|
2017-02-02 00:54:01 +01:00
|
|
|
"libbase",
|
2017-03-24 21:14:11 +01:00
|
|
|
"libcutils",
|
2017-01-25 23:20:34 +01:00
|
|
|
"libutils",
|
|
|
|
"libhidlbase",
|
|
|
|
"libhidltransport",
|
2017-09-15 03:23:38 +02:00
|
|
|
"libhidl-gen-hash",
|
2017-03-01 04:38:24 +01:00
|
|
|
"libhidl-gen-utils",
|
|
|
|
"libvintf",
|
2017-01-25 23:20:34 +01:00
|
|
|
],
|
|
|
|
srcs: [
|
2017-05-10 04:33:08 +02:00
|
|
|
"DebugCommand.cpp",
|
2017-09-09 03:00:31 +02:00
|
|
|
"HelpCommand.cpp",
|
2017-03-24 21:14:11 +01:00
|
|
|
"Lshal.cpp",
|
2017-05-10 03:49:45 +02:00
|
|
|
"ListCommand.cpp",
|
|
|
|
"PipeRelay.cpp",
|
2017-09-07 04:40:24 +02:00
|
|
|
"TableEntry.cpp",
|
2017-08-30 02:28:12 +02:00
|
|
|
"TextTable.cpp",
|
2017-05-10 03:49:45 +02:00
|
|
|
"utils.cpp",
|
2017-01-25 23:20:34 +01:00
|
|
|
],
|
|
|
|
}
|
2017-05-10 23:33:05 +02:00
|
|
|
|
|
|
|
cc_defaults {
|
|
|
|
name: "lshal_defaults",
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libhidlbase",
|
|
|
|
"libhidltransport",
|
|
|
|
"liblshal",
|
|
|
|
"libutils",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "lshal",
|
|
|
|
defaults: ["lshal_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"main.cpp"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_test {
|
|
|
|
name: "lshal_test",
|
|
|
|
defaults: ["lshal_defaults"],
|
|
|
|
gtest: true,
|
|
|
|
static_libs: [
|
|
|
|
"libgmock"
|
|
|
|
],
|
|
|
|
shared_libs: [
|
2017-09-08 03:06:13 +02:00
|
|
|
"libvintf",
|
2017-05-10 23:33:05 +02:00
|
|
|
"android.hardware.tests.baz@1.0"
|
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"test.cpp"
|
|
|
|
]
|
|
|
|
}
|