blob: 3dedbd69cf2637421bbca860f3bbd1245dc4439a [file] [log] [blame]
Anthony Stangec34e6682019-08-09 11:24:17 -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
16cc_defaults {
17 name: "android.hardware.sensors@2.0-fakesubhal-defaults",
18 vendor: true,
19 srcs: [
20 "Sensor.cpp",
21 "SensorsSubHal.cpp",
22 ],
23 header_libs: [
24 "android.hardware.sensors@2.0-subhal.header",
25 ],
26 shared_libs: [
27 "android.hardware.sensors@1.0",
28 "android.hardware.sensors@2.0",
29 "libcutils",
30 "libfmq",
31 "libhidlbase",
32 "libhidltransport",
33 "liblog",
34 "libpower",
35 "libutils",
36 ],
37}
38
39cc_library {
40 name: "android.hardware.sensors@2.0-fakesubhal-config1",
41 defaults: ["android.hardware.sensors@2.0-fakesubhal-defaults"],
42 cflags: [
43 "-DSUPPORT_CONTINUOUS_SENSORS",
44 "-DSUB_HAL_NAME=\"FakeSubHal-Continuous\"",
45 ],
46}
47
48cc_library {
49 name: "android.hardware.sensors@2.0-fakesubhal-config2",
50 defaults: ["android.hardware.sensors@2.0-fakesubhal-defaults"],
51 cflags: [
52 "-DSUPPORT_ON_CHANGE_SENSORS",
53 "-DSUB_HAL_NAME=\"FakeSubHal-OnChange\"",
54 ],
55}