• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10cc_library_shared {
11    name: "libsensorservice",
12
13    srcs: [
14        "BatteryService.cpp",
15        "CorrectedGyroSensor.cpp",
16        "Fusion.cpp",
17        "GravitySensor.cpp",
18        "LinearAccelerationSensor.cpp",
19        "OrientationSensor.cpp",
20        "RecentEventLogger.cpp",
21        "RotationVectorSensor.cpp",
22        "SensorDevice.cpp",
23        "SensorDeviceUtils.cpp",
24        "SensorDirectConnection.cpp",
25        "SensorEventConnection.cpp",
26        "SensorFusion.cpp",
27        "SensorInterface.cpp",
28        "SensorList.cpp",
29        "SensorRecord.cpp",
30        "SensorService.cpp",
31        "SensorServiceUtils.cpp",
32    ],
33
34    cflags: [
35        "-DLOG_TAG=\"SensorService\"",
36        "-Wall",
37        "-Werror",
38        "-Wextra",
39        "-fvisibility=hidden"
40    ],
41
42    header_libs: [
43        "android.hardware.sensors@2.X-shared-utils",
44    ],
45
46    shared_libs: [
47        "libcutils",
48        "libhardware",
49        "libhardware_legacy",
50        "libutils",
51        "liblog",
52        "libactivitymanager_aidl",
53        "libbatterystats_aidl",
54        "libbinder",
55        "libsensor",
56        "libsensorprivacy",
57        "libpermission",
58        "libprotoutil",
59        "libcrypto",
60        "libbase",
61        "libhidlbase",
62        "libfmq",
63        "android.hardware.sensors@1.0",
64        "android.hardware.sensors@2.0",
65        "android.hardware.sensors@2.1",
66    ],
67
68    static_libs: [
69        "android.hardware.sensors@1.0-convert",
70    ],
71
72    generated_headers: ["framework-cppstream-protos"],
73
74    export_shared_lib_headers: [
75        "libactivitymanager_aidl",
76        "libsensor",
77        "libsensorprivacy",
78        "libpermission",
79    ],
80}
81
82cc_binary {
83    name: "sensorservice",
84
85    srcs: ["main_sensorservice.cpp"],
86
87    shared_libs: [
88        "libsensorservice",
89        "libsensorprivacy",
90        "libbinder",
91        "libutils",
92    ],
93
94    cflags: [
95        "-Wall",
96        "-Werror",
97        "-Wextra",
98    ],
99}
100