Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_library_shared { |
| 16 | name: "libsensor", |
| 17 | |
| 18 | clang: true, |
Chih-Hung Hsieh | b7b8b3d | 2017-10-05 14:26:36 -0700 | [diff] [blame] | 19 | cflags: [ |
| 20 | "-Wall", |
| 21 | "-Werror", |
| 22 | ], |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 23 | cppflags: [ |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame^] | 24 | "-Wextra", |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 25 | ], |
| 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 | |
| 49 | subdirs = ["tests"] |