Michael Bestas | e3956ac | 2024-12-01 22:30:22 +0200 | [diff] [blame^] | 1 | cc_library_shared { |
| 2 | name: "android.hardware.gnss@2.0-impl-qti", |
| 3 | vendor: true, |
| 4 | relative_install_path: "hw", |
| 5 | srcs: [ |
| 6 | "AGnss.cpp", |
| 7 | "Gnss.cpp", |
| 8 | "AGnssRil.cpp", |
| 9 | "GnssMeasurement.cpp", |
| 10 | "GnssConfiguration.cpp", |
| 11 | "GnssBatching.cpp", |
| 12 | "GnssGeofencing.cpp", |
| 13 | "GnssNi.cpp", |
| 14 | "GnssDebug.cpp", |
| 15 | "MeasurementCorrections.cpp", |
| 16 | "GnssVisibilityControl.cpp", |
| 17 | ] + [ |
| 18 | "location_api/GnssAPIClient.cpp", |
| 19 | "location_api/MeasurementAPIClient.cpp", |
| 20 | "location_api/GeofenceAPIClient.cpp", |
| 21 | "location_api/BatchingAPIClient.cpp", |
| 22 | "location_api/LocationUtil.cpp", |
| 23 | ], |
| 24 | |
| 25 | local_include_dirs: ["location_api"], |
| 26 | |
| 27 | header_libs: [ |
| 28 | "libgps.utils_headers", |
| 29 | "libloc_core_headers", |
| 30 | "libloc_pla_headers", |
| 31 | "liblocation_api_headers", |
| 32 | "liblocbatterylistener_headers", |
| 33 | ], |
| 34 | |
| 35 | shared_libs: [ |
| 36 | "liblog", |
| 37 | "libhidlbase", |
| 38 | "libcutils", |
| 39 | "libutils", |
| 40 | "android.hardware.gnss@1.0", |
| 41 | "android.hardware.gnss@1.1", |
| 42 | "android.hardware.gnss@2.0", |
| 43 | "android.hardware.gnss.measurement_corrections@1.0", |
| 44 | "android.hardware.gnss.visibility_control@1.0", |
| 45 | "android.hardware.health@1.0", |
| 46 | "android.hardware.health@2.0", |
| 47 | "android.hardware.power@1.2", |
| 48 | "libbase", |
| 49 | ] + [ |
| 50 | "libloc_core", |
| 51 | "libgps.utils", |
| 52 | "libdl", |
| 53 | "liblocation_api", |
| 54 | ], |
| 55 | |
| 56 | cflags: ["-DGNSS_HIDL_LEGACY_MEASURMENTS"] + GNSS_CFLAGS, |
| 57 | static_libs: ["liblocbatterylistener"] + ["libhealthhalutils"], |
| 58 | } |
| 59 | |
| 60 | cc_binary { |
| 61 | name: "android.hardware.gnss@2.0-service-qti", |
| 62 | vintf_fragments: ["android.hardware.gnss@2.0-service-qti.xml"], |
| 63 | vendor: true, |
| 64 | relative_install_path: "hw", |
| 65 | init_rc: ["android.hardware.gnss@2.0-service-qti.rc"], |
| 66 | srcs: ["service.cpp"], |
| 67 | |
| 68 | header_libs: [ |
| 69 | "libgps.utils_headers", |
| 70 | "libloc_core_headers", |
| 71 | "libloc_pla_headers", |
| 72 | "liblocation_api_headers", |
| 73 | ], |
| 74 | |
| 75 | shared_libs: [ |
| 76 | "liblog", |
| 77 | "libcutils", |
| 78 | "libdl", |
| 79 | "libbase", |
| 80 | "libutils", |
| 81 | "libgps.utils", |
| 82 | "libqti_vndfwk_detect", |
| 83 | ] + [ |
| 84 | "libhidlbase", |
| 85 | "android.hardware.gnss@1.0", |
| 86 | "android.hardware.gnss@1.1", |
| 87 | "android.hardware.gnss@2.0", |
| 88 | ], |
| 89 | |
| 90 | cflags: GNSS_CFLAGS + ["-DLOC_HIDL_VERSION=\"3.0\""], |
| 91 | } |