blob: 2b93c6e85ed7ab6b2ed9a8a5ce80be15193241fd [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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Mathias Agopian801ea092017-03-06 15:05:04 -080024cc_library_shared {
25 name: "libsensor",
26
Chih-Hung Hsiehb7b8b3d2017-10-05 14:26:36 -070027 cflags: [
28 "-Wall",
29 "-Werror",
30 ],
Mathias Agopian801ea092017-03-06 15:05:04 -080031 cppflags: [
Colin Cross1383d9f2019-11-06 13:33:40 -080032 "-Wextra",
Mathias Agopian801ea092017-03-06 15:05:04 -080033 ],
34
35 srcs: [
36 "BitTube.cpp",
37 "ISensorEventConnection.cpp",
38 "ISensorServer.cpp",
39 "Sensor.cpp",
40 "SensorEventQueue.cpp",
41 "SensorManager.cpp",
42 ],
43
44 shared_libs: [
45 "libbinder",
46 "libcutils",
47 "libutils",
48 "liblog",
49 "libhardware",
Steven Moreland7c849fa2021-04-13 01:01:32 +000050 "libpermission",
Mathias Agopian801ea092017-03-06 15:05:04 -080051 ],
52
53 export_include_dirs: ["include"],
54
Alixfcd57762022-04-25 20:14:50 +000055 export_shared_lib_headers: [
56 "libbinder",
57 "libpermission",
58 "libhardware",
59 ],
Mathias Agopian801ea092017-03-06 15:05:04 -080060}