1package { 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 10aconfig_declarations { 11 name: "sensorservice_flags", 12 package: "com.android.frameworks.sensorservice.flags", 13 container: "system", 14 srcs: ["senserservice_flags.aconfig"], 15} 16 17cc_aconfig_library { 18 name: "sensorservice_flags_c_lib", 19 aconfig_declarations: "sensorservice_flags", 20 host_supported: true, 21} 22 23cc_library { 24 name: "libsensorservice", 25 26 srcs: [ 27 "AidlSensorHalWrapper.cpp", 28 "BatteryService.cpp", 29 "CorrectedGyroSensor.cpp", 30 "Fusion.cpp", 31 "GravitySensor.cpp", 32 "HidlSensorHalWrapper.cpp", 33 "LimitedAxesImuSensor.cpp", 34 "LinearAccelerationSensor.cpp", 35 "OrientationSensor.cpp", 36 "RecentEventLogger.cpp", 37 "RotationVectorSensor.cpp", 38 "SensorDevice.cpp", 39 "SensorDeviceUtils.cpp", 40 "SensorDirectConnection.cpp", 41 "SensorEventConnection.cpp", 42 "SensorFusion.cpp", 43 "SensorInterface.cpp", 44 "SensorList.cpp", 45 "SensorRecord.cpp", 46 "SensorService.cpp", 47 "SensorServiceUtils.cpp", 48 ], 49 50 cflags: [ 51 "-DLOG_TAG=\"SensorService\"", 52 "-Wall", 53 "-Werror", 54 "-Wextra", 55 "-Wthread-safety", 56 "-fvisibility=hidden", 57 ], 58 59 header_libs: [ 60 "[email protected]", 61 ], 62 63 shared_libs: [ 64 "libcutils", 65 "libhardware", 66 "libhardware_legacy", 67 "libutils", 68 "liblog", 69 "libactivitymanager_aidl", 70 "libbatterystats_aidl", 71 "libbinder", 72 "libsensor", 73 "libsensorprivacy", 74 "libpermission", 75 "libprotoutil", 76 "libcrypto", 77 "libbase", 78 "libhidlbase", 79 "libfmq", 80 "libbinder_ndk", 81 "packagemanager_aidl-cpp", 82 "[email protected]", 83 "[email protected]", 84 "[email protected]", 85 "android.hardware.common-V2-ndk", 86 "android.hardware.common.fmq-V1-ndk", 87 "server_configurable_flags", 88 "libaconfig_storage_read_api_cc", 89 ], 90 91 static_libs: [ 92 "libaidlcommonsupport", 93 "[email protected]", 94 "android.hardware.sensors-V1-convert", 95 "android.hardware.sensors-V3-ndk", 96 "sensorservice_flags_c_lib", 97 ], 98 99 generated_headers: ["framework-cppstream-protos"], 100 101 export_shared_lib_headers: [ 102 "libactivitymanager_aidl", 103 "libsensor", 104 "libsensorprivacy", 105 "libpermission", 106 ], 107 108 afdo: true, 109} 110 111cc_library_headers { 112 name: "libsensorservice_headers", 113 export_include_dirs: ["."], 114 visibility: ["//frameworks/native/services/sensorservice/fuzzer"], 115} 116 117cc_binary { 118 name: "sensorservice", 119 120 srcs: ["main_sensorservice.cpp"], 121 122 shared_libs: [ 123 "libsensorservice", 124 "libsensorprivacy", 125 "libbinder", 126 "libutils", 127 ], 128 129 cflags: [ 130 "-Wall", 131 "-Werror", 132 "-Wextra", 133 ], 134} 135