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.
|
|
|
|
|
2021-02-13 06:26:48 +01:00
|
|
|
package {
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
// all of the 'license_kinds' from "frameworks_native_license"
|
|
|
|
// to get the below license kinds:
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
default_applicable_licenses: ["frameworks_native_license"],
|
|
|
|
}
|
|
|
|
|
2019-06-25 20:40:37 +02:00
|
|
|
cc_library_static {
|
2017-05-10 23:33:05 +02:00
|
|
|
name: "liblshal",
|
2017-01-25 23:20:34 +01:00
|
|
|
shared_libs: [
|
2017-02-02 00:54:01 +01:00
|
|
|
"libbase",
|
2020-12-12 00:11:17 +01:00
|
|
|
"libbinderdebug",
|
2017-03-24 21:14:11 +01:00
|
|
|
"libcutils",
|
2017-01-25 23:20:34 +01:00
|
|
|
"libutils",
|
|
|
|
"libhidlbase",
|
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
|
|
|
],
|
2018-02-03 00:17:51 +01:00
|
|
|
static_libs: [
|
|
|
|
"libprocpartition",
|
|
|
|
],
|
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",
|
2019-06-25 18:33:32 +02:00
|
|
|
"WaitCommand.cpp",
|
2017-01-25 23:20:34 +01:00
|
|
|
],
|
2017-10-05 22:44:13 +02:00
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
2017-01-25 23:20:34 +01:00
|
|
|
}
|
2017-05-10 23:33:05 +02:00
|
|
|
|
|
|
|
cc_defaults {
|
|
|
|
name: "lshal_defaults",
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
2020-12-12 00:11:17 +01:00
|
|
|
"libbinderdebug",
|
2019-06-25 20:40:37 +02:00
|
|
|
"libcutils",
|
|
|
|
"libutils",
|
2017-05-10 23:33:05 +02:00
|
|
|
"libhidlbase",
|
2019-06-25 20:40:37 +02:00
|
|
|
"libhidl-gen-hash",
|
|
|
|
"libhidl-gen-utils",
|
|
|
|
"libvintf",
|
2017-10-05 22:44:13 +02:00
|
|
|
],
|
2018-02-03 00:17:51 +01:00
|
|
|
static_libs: [
|
2019-06-25 20:40:37 +02:00
|
|
|
"liblshal",
|
2018-02-03 00:17:51 +01:00
|
|
|
"libprocpartition",
|
|
|
|
],
|
2017-10-05 22:44:13 +02:00
|
|
|
cflags: ["-Wall", "-Werror"],
|
2017-05-10 23:33:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "lshal",
|
|
|
|
defaults: ["lshal_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"main.cpp"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_test {
|
|
|
|
name: "lshal_test",
|
2019-06-25 22:01:49 +02:00
|
|
|
test_suites: ["device-tests"],
|
2020-12-01 20:14:28 +01:00
|
|
|
defaults: [
|
|
|
|
"libvintf_static_user_defaults",
|
|
|
|
"lshal_defaults"
|
|
|
|
],
|
2017-05-10 23:33:05 +02:00
|
|
|
gtest: true,
|
|
|
|
static_libs: [
|
2020-07-10 04:34:58 +02:00
|
|
|
"android.hardware.tests.inheritance@1.0",
|
2019-06-25 22:01:49 +02:00
|
|
|
"libgmock",
|
2020-12-01 20:14:28 +01:00
|
|
|
"libvintf",
|
2017-05-10 23:33:05 +02:00
|
|
|
],
|
|
|
|
shared_libs: [
|
2019-06-25 22:01:49 +02:00
|
|
|
"libhidlbase",
|
2017-05-10 23:33:05 +02:00
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"test.cpp"
|
|
|
|
]
|
|
|
|
}
|