Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 10 | cc_library_shared { |
| 11 | name: "libsensorservice", |
| 12 | |
| 13 | srcs: [ |
| 14 | "BatteryService.cpp", |
| 15 | "CorrectedGyroSensor.cpp", |
| 16 | "Fusion.cpp", |
| 17 | "GravitySensor.cpp", |
Arthur Ishiguro | 24804dc | 2021-11-12 17:17:09 +0000 | [diff] [blame] | 18 | "HidlSensorHalWrapper.cpp", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 19 | "LinearAccelerationSensor.cpp", |
| 20 | "OrientationSensor.cpp", |
| 21 | "RecentEventLogger.cpp", |
| 22 | "RotationVectorSensor.cpp", |
| 23 | "SensorDevice.cpp", |
Peng Xu | 1a00e2d | 2017-09-27 23:08:30 -0700 | [diff] [blame] | 24 | "SensorDeviceUtils.cpp", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 25 | "SensorDirectConnection.cpp", |
| 26 | "SensorEventConnection.cpp", |
| 27 | "SensorFusion.cpp", |
| 28 | "SensorInterface.cpp", |
| 29 | "SensorList.cpp", |
| 30 | "SensorRecord.cpp", |
| 31 | "SensorService.cpp", |
| 32 | "SensorServiceUtils.cpp", |
| 33 | ], |
| 34 | |
| 35 | cflags: [ |
| 36 | "-DLOG_TAG=\"SensorService\"", |
| 37 | "-Wall", |
| 38 | "-Werror", |
| 39 | "-Wextra", |
Samiul Islam | 8cd9523 | 2021-08-26 11:41:49 +0100 | [diff] [blame] | 40 | "-fvisibility=hidden", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 41 | ], |
| 42 | |
Anthony Stange | e38a141 | 2020-02-13 21:28:37 -0500 | [diff] [blame] | 43 | header_libs: [ |
| 44 | "android.hardware.sensors@2.X-shared-utils", |
| 45 | ], |
| 46 | |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 47 | shared_libs: [ |
| 48 | "libcutils", |
| 49 | "libhardware", |
| 50 | "libhardware_legacy", |
| 51 | "libutils", |
| 52 | "liblog", |
Steven Moreland | 710ad48 | 2021-04-05 23:17:21 +0000 | [diff] [blame] | 53 | "libactivitymanager_aidl", |
Steven Moreland | ea6bfab | 2021-04-01 00:10:31 +0000 | [diff] [blame] | 54 | "libbatterystats_aidl", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 55 | "libbinder", |
| 56 | "libsensor", |
Michael Groover | 5e1f60b | 2018-12-04 22:34:29 -0800 | [diff] [blame] | 57 | "libsensorprivacy", |
Steven Moreland | 7c849fa | 2021-04-13 01:01:32 +0000 | [diff] [blame] | 58 | "libpermission", |
Mike Ma | 2474386 | 2020-01-29 00:36:55 -0800 | [diff] [blame] | 59 | "libprotoutil", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 60 | "libcrypto", |
| 61 | "libbase", |
| 62 | "libhidlbase", |
Brian Stack | 979887b | 2018-09-19 15:27:48 -0700 | [diff] [blame] | 63 | "libfmq", |
Samiul Islam | 8cd9523 | 2021-08-26 11:41:49 +0100 | [diff] [blame] | 64 | "packagemanager_aidl-cpp", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 65 | "android.hardware.sensors@1.0", |
Brian Stack | 087ed29 | 2018-09-14 15:45:01 -0700 | [diff] [blame] | 66 | "android.hardware.sensors@2.0", |
Anthony Stange | e38a141 | 2020-02-13 21:28:37 -0500 | [diff] [blame] | 67 | "android.hardware.sensors@2.1", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 68 | ], |
| 69 | |
Anthony Stange | e38a141 | 2020-02-13 21:28:37 -0500 | [diff] [blame] | 70 | static_libs: [ |
| 71 | "android.hardware.sensors@1.0-convert", |
| 72 | ], |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 73 | |
Mike Ma | 2474386 | 2020-01-29 00:36:55 -0800 | [diff] [blame] | 74 | generated_headers: ["framework-cppstream-protos"], |
| 75 | |
Steven Moreland | 710ad48 | 2021-04-05 23:17:21 +0000 | [diff] [blame] | 76 | export_shared_lib_headers: [ |
| 77 | "libactivitymanager_aidl", |
| 78 | "libsensor", |
| 79 | "libsensorprivacy", |
Steven Moreland | 7c849fa | 2021-04-13 01:01:32 +0000 | [diff] [blame] | 80 | "libpermission", |
Steven Moreland | 710ad48 | 2021-04-05 23:17:21 +0000 | [diff] [blame] | 81 | ], |
Yi Kong | d1cc7c7 | 2021-12-03 18:28:29 +0800 | [diff] [blame] | 82 | |
| 83 | pgo: { |
| 84 | sampling: true, |
| 85 | profile_file: "sensorservice/libsensorservice.profdata", |
| 86 | }, |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | cc_binary { |
| 90 | name: "sensorservice", |
| 91 | |
| 92 | srcs: ["main_sensorservice.cpp"], |
| 93 | |
| 94 | shared_libs: [ |
| 95 | "libsensorservice", |
Michael Groover | 5e1f60b | 2018-12-04 22:34:29 -0800 | [diff] [blame] | 96 | "libsensorprivacy", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 97 | "libbinder", |
| 98 | "libutils", |
| 99 | ], |
| 100 | |
| 101 | cflags: [ |
| 102 | "-Wall", |
| 103 | "-Werror", |
| 104 | "-Wextra", |
| 105 | ], |
| 106 | } |