1LOCAL_PATH := $(call my-dir)
2
3qcom_qti_common_cflags := \
4    -Wall \
5    -Werror \
6    -Wno-format \
7    -Wno-unused-parameter \
8    -Wno-unused-private-field \
9
10include $(CLEAR_VARS)
11LOCAL_MODULE := android.hardware.gnss@1.0-impl-qti
12LOCAL_VENDOR_MODULE := true
13LOCAL_MODULE_OWNER := qti
14LOCAL_MODULE_RELATIVE_PATH := hw
15LOCAL_CFLAGS := $(qcom_qti_common_cflags)
16LOCAL_SRC_FILES := \
17    AGnss.cpp \
18    Gnss.cpp \
19    GnssBatching.cpp \
20    GnssGeofencing.cpp \
21    GnssMeasurement.cpp \
22    GnssNi.cpp \
23    GnssConfiguration.cpp \
24    GnssDebug.cpp \
25    AGnssRil.cpp
26
27LOCAL_SRC_FILES += \
28    location_api/LocationUtil.cpp \
29    location_api/GnssAPIClient.cpp \
30    location_api/GeofenceAPIClient.cpp \
31    location_api/FlpAPIClient.cpp \
32    location_api/GnssMeasurementAPIClient.cpp \
33
34LOCAL_C_INCLUDES:= \
35    $(LOCAL_PATH)/location_api \
36    $(TARGET_OUT_HEADERS)/gps.utils \
37    $(TARGET_OUT_HEADERS)/libloc_core \
38    $(TARGET_OUT_HEADERS)/libloc_pla \
39    $(TARGET_OUT_HEADERS)/liblocation_api \
40
41LOCAL_SHARED_LIBRARIES := \
42    liblog \
43    libhidlbase \
44    libutils \
45    android.hardware.gnss@1.0 \
46
47LOCAL_SHARED_LIBRARIES += \
48    libloc_core \
49    libgps.utils \
50    libdl \
51    libloc_pla \
52    liblocation_api \
53
54include $(BUILD_SHARED_LIBRARY)
55
56include $(CLEAR_VARS)
57LOCAL_MODULE := android.hardware.gnss@1.0-service-qti
58LOCAL_MODULE_OWNER := qti
59LOCAL_MODULE_RELATIVE_PATH := hw
60LOCAL_INIT_RC := android.hardware.gnss@1.0-service-qti.rc
61LOCAL_VENDOR_MODULE := true
62LOCAL_CFLAGS := $(qcom_qti_common_cflags)
63LOCAL_SRC_FILES := \
64    service.cpp \
65
66LOCAL_C_INCLUDES:= \
67    $(LOCAL_PATH)/location_api \
68    $(TARGET_OUT_HEADERS)/gps.utils \
69    $(TARGET_OUT_HEADERS)/libloc_core \
70    $(TARGET_OUT_HEADERS)/libloc_pla \
71    $(TARGET_OUT_HEADERS)/liblocation_api \
72
73
74LOCAL_SHARED_LIBRARIES := \
75    liblog \
76    libcutils \
77    libdl \
78    libbase \
79    libutils \
80
81LOCAL_SHARED_LIBRARIES += \
82    libhidlbase \
83    android.hardware.gnss@1.0 \
84
85include $(BUILD_EXECUTABLE)
86