• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 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
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library {
21    name: "android.hardware.sensors@2.0-Google-IIO-Subhal",
22    vendor: true,
23    srcs: [
24        "iio_utils.cpp",
25        "MultiPoll.cpp",
26        "Sensor.cpp",
27        "SensorsSubHal.cpp",
28        "SensorThread.cpp",
29    ],
30    header_libs: [
31        "android.hardware.sensors@2.0-multihal.header",
32    ],
33    shared_libs: [
34        "android.hardware.sensors@1.0",
35        "android.hardware.sensors@2.0",
36        "android.hardware.sensors@2.0-ScopedWakelock",
37        "libcutils",
38        "libfmq",
39        "libhardware",
40        "libhidlbase",
41        "liblog",
42        "libbase",
43        "libpower",
44        "libutils",
45    ],
46    static_libs: [
47        "android.hardware.sensors@2.X-multihal",
48        "libxml2",
49    ],
50    cflags: [
51        "-Wall",
52        "-Wextra",
53        "-Werror",
54    ],
55    generated_sources: ["sensor_hal_configuration_V1_0"],
56    generated_headers: ["sensor_hal_configuration_V1_0"],
57}
58
59cc_test_host {
60    name: "android.hardware.sensors@2.0-Google-IIO-Subhal_test",
61    srcs: [
62        "iio_utils.cpp",
63        "tests/IioUtilsTest.cpp",
64    ],
65    static_libs: [
66        "libgtest",
67        "android.hardware.sensors@1.0",
68        "android.hardware.sensors@2.0",
69    ],
70    shared_libs: [
71        "libbase",
72        "liblog",
73    ],
74}
75
76cc_test_host {
77    name: "android.hardware.sensors@2.0-Google-IIO-Subhal_test-MultiPoll",
78    srcs: [
79        "MultiPoll.cpp",
80        "tests/MultiPoll.cpp"
81    ],
82    static_libs: [
83        "libgtest",
84        "android.hardware.sensors@1.0",
85        "android.hardware.sensors@2.0",
86    ],
87    shared_libs: [
88        "libbase",
89        "liblog",
90    ],
91}
92