blob: e8154a6931aeddfd08ff69af121037599d237b4c [file] [log] [blame]
Mathias Agopian801ea092017-03-06 15:05:04 -08001// Copyright 2010 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
15cc_library_shared {
16 name: "libsensor",
17
18 clang: true,
Chih-Hung Hsiehb7b8b3d2017-10-05 14:26:36 -070019 cflags: [
20 "-Wall",
21 "-Werror",
22 ],
Mathias Agopian801ea092017-03-06 15:05:04 -080023 cppflags: [
Colin Cross1383d9f2019-11-06 13:33:40 -080024 "-Wextra",
Mathias Agopian801ea092017-03-06 15:05:04 -080025 ],
26
27 srcs: [
28 "BitTube.cpp",
29 "ISensorEventConnection.cpp",
30 "ISensorServer.cpp",
31 "Sensor.cpp",
32 "SensorEventQueue.cpp",
33 "SensorManager.cpp",
34 ],
35
36 shared_libs: [
37 "libbinder",
38 "libcutils",
39 "libutils",
40 "liblog",
41 "libhardware",
42 ],
43
44 export_include_dirs: ["include"],
45
46 export_shared_lib_headers: ["libbinder", "libhardware"],
47}
48
49subdirs = ["tests"]