blob: ca4e259f4a49bcfc6c4a3562c9f5e5513867e267 [file] [log] [blame]
Yifan Hong00f4a392016-11-16 12:35:58 -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 Morelanda46371d2019-06-05 18:29:06 -070015cc_defaults {
16 name: "libhidlbase-impl-shared-libs",
Yifan Hong00f4a392016-11-16 12:35:58 -080017 shared_libs: [
18 "libbase",
Yifan Hong44c0e572017-01-20 15:41:52 -080019 "libcutils",
Yifan Hong00f4a392016-11-16 12:35:58 -080020 "liblog",
21 "libutils",
Yifan Hong00f4a392016-11-16 12:35:58 -080022 ],
23 export_shared_lib_headers: [
Yifan Hong00f4a392016-11-16 12:35:58 -080024 "libutils",
Steven Moreland686f6112017-04-13 18:46:35 -070025 "libcutils", // for native_handle.h
Yifan Hong00f4a392016-11-16 12:35:58 -080026 ],
Steven Morelanda46371d2019-06-05 18:29:06 -070027}
28
29cc_library {
30 name: "libhidlbase-impl-internal",
Steven Moreland2056cf32019-09-17 17:41:02 -070031 host_supported: true,
Steven Morelanda46371d2019-06-05 18:29:06 -070032 recovery_available: true,
Steven Moreland2056cf32019-09-17 17:41:02 -070033 vendor_available: true,
Steven Morelanda46371d2019-06-05 18:29:06 -070034 defaults: [
35 "libhidlbase-impl-shared-libs",
36 "libhidl-defaults"
37 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080038 local_include_dirs: ["include"],
39 export_include_dirs: ["include"],
40
Yifan Hong00f4a392016-11-16 12:35:58 -080041 sanitize: {
42 misc_undefined: ["integer"],
43 },
44
45 srcs: [
Steven Moreland337c3ae2016-11-22 13:37:32 -080046 "HidlInternal.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080047 "HidlSupport.cpp",
48 "Status.cpp",
49 "TaskRunner.cpp",
50 ],
51
52 product_variables: {
53 debuggable: {
54 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
55 },
56 },
Steven Morelandc6df5652019-09-05 15:08:41 -070057
58 visibility: ["//system/libhidl:__subpackages__"],
Yifan Hong00f4a392016-11-16 12:35:58 -080059}