blob: 44dddfd4e9dfb9e7d9edd3c3d8c291dc3756000c [file] [log] [blame]
Anthony Stangea689f8a2019-07-30 11:35:48 -04001//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
Anthony Stangeaacbf942019-08-30 15:21:34 -040016cc_defaults {
17 name: "android.hardware.sensors@2.0-multihal-defaults",
Anthony Stangec34e6682019-08-09 11:24:17 -040018 header_libs: [
Anthony Stangeaacbf942019-08-30 15:21:34 -040019 "android.hardware.sensors@2.0-multihal.header",
Anthony Stangec34e6682019-08-09 11:24:17 -040020 ],
Anthony Stangea689f8a2019-07-30 11:35:48 -040021 shared_libs: [
22 "android.hardware.sensors@1.0",
23 "android.hardware.sensors@2.0",
24 "libcutils",
25 "libfmq",
26 "libhidlbase",
27 "libhidltransport",
28 "liblog",
29 "libpower",
30 "libutils",
31 ],
Anthony Stangeaacbf942019-08-30 15:21:34 -040032}
33
34cc_binary {
35 name: "android.hardware.sensors@2.0-service.multihal",
36 defaults: [
37 "hidl_defaults",
38 "android.hardware.sensors@2.0-multihal-defaults",
39 ],
40 vendor: true,
41 relative_install_path: "hw",
42 srcs: [
43 "service.cpp",
44 "HalProxy.cpp",
45 ],
46 init_rc: ["android.hardware.sensors@2.0-service-multihal.rc"],
Anthony Stangea689f8a2019-07-30 11:35:48 -040047 vintf_fragments: ["android.hardware.sensors@2.0-multihal.xml"],
48}
Anthony Stangec34e6682019-08-09 11:24:17 -040049
50cc_library_headers {
Anthony Stangeaacbf942019-08-30 15:21:34 -040051 name: "android.hardware.sensors@2.0-multihal.header",
52 vendor_available: true,
Anthony Stangec34e6682019-08-09 11:24:17 -040053 export_include_dirs: ["include"],
Stan Rokita28790672019-08-20 14:32:15 -070054}
Anthony Stangeaacbf942019-08-30 15:21:34 -040055
56// The below targets should only be used for testing.
57cc_test_library {
58 name: "android.hardware.sensors@2.0-HalProxy",
59 defaults: ["android.hardware.sensors@2.0-multihal-defaults"],
60 vendor_available: true,
61 srcs: [
62 "HalProxy.cpp",
63 ],
64 export_header_lib_headers: [
65 "android.hardware.sensors@2.0-multihal.header",
66 ],
67}