• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ifneq ($(BUILD_TINY_ANDROID),true)
2#Compile this library only for builds with the latest modem image
3
4BIT_ENABLED_BOARD_PLATFORM_LIST := msm7630_fusion
5BIT_ENABLED_BOARD_PLATFORM_LIST += msm8660
6ifeq ($(call is-board-platform-in-list,$(BIT_ENABLED_BOARD_PLATFORM_LIST)),true)
7FEATURE_GNSS_BIT_API := true
8endif # is-board-platform-in-list
9
10LOCAL_PATH := $(call my-dir)
11
12include $(CLEAR_VARS)
13
14LOCAL_MODULE := libloc_adapter
15
16LOCAL_MODULE_TAGS := optional
17
18LOCAL_SHARED_LIBRARIES := \
19    libutils \
20    libcutils \
21    libgps.utils \
22    libdl
23
24LOCAL_SRC_FILES += \
25    loc_eng_log.cpp \
26    LocApiAdapter.cpp
27
28LOCAL_CFLAGS += \
29     -fno-short-enums \
30     -D_ANDROID_
31
32LOCAL_C_INCLUDES:= \
33    $(TARGET_OUT_HEADERS)/gps.utils
34
35LOCAL_COPY_HEADERS_TO:= libloc_eng/
36LOCAL_COPY_HEADERS:= \
37   LocApiAdapter.h \
38   loc.h \
39   loc_eng.h \
40   loc_eng_xtra.h \
41   loc_eng_ni.h \
42   loc_eng_agps.h \
43   loc_eng_msg.h \
44   loc_eng_msg_id.h \
45   loc_eng_log.h
46
47LOCAL_PRELINK_MODULE := false
48
49include $(BUILD_SHARED_LIBRARY)
50
51include $(CLEAR_VARS)
52
53LOCAL_MODULE := libloc_eng
54
55LOCAL_MODULE_TAGS := optional
56
57LOCAL_SHARED_LIBRARIES := \
58    libutils \
59    libcutils \
60    libloc_adapter \
61    libgps.utils \
62    libdl
63
64LOCAL_SRC_FILES += \
65    loc_eng.cpp \
66    loc_eng_agps.cpp \
67    loc_eng_xtra.cpp \
68    loc_eng_ni.cpp \
69    loc_eng_log.cpp
70
71ifeq ($(FEATURE_GNSS_BIT_API), true)
72LOCAL_CFLAGS += -DFEATURE_GNSS_BIT_API
73endif # FEATURE_GNSS_BIT_API
74
75LOCAL_SRC_FILES += \
76    loc_eng_dmn_conn.cpp \
77    loc_eng_dmn_conn_handler.cpp \
78    loc_eng_dmn_conn_thread_helper.c \
79    loc_eng_dmn_conn_glue_msg.c \
80    loc_eng_dmn_conn_glue_pipe.c
81
82LOCAL_CFLAGS += \
83     -fno-short-enums \
84     -D_ANDROID_
85
86LOCAL_C_INCLUDES:= \
87    $(TARGET_OUT_HEADERS)/gps.utils \
88    hardware/qcom/gps/loc_api/ulp/inc
89
90LOCAL_PRELINK_MODULE := false
91
92include $(BUILD_SHARED_LIBRARY)
93
94include $(CLEAR_VARS)
95
96LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE)
97
98LOCAL_MODULE_TAGS := optional
99
100## Libs
101
102LOCAL_SHARED_LIBRARIES := \
103    libutils \
104    libcutils \
105    libloc_eng \
106    libgps.utils
107
108LOCAL_SRC_FILES += \
109    loc.cpp \
110    gps.c
111
112LOCAL_CFLAGS += \
113    -fno-short-enums \
114    -D_ANDROID_ \
115
116## Includes
117LOCAL_C_INCLUDES:= \
118    $(TARGET_OUT_HEADERS)/gps.utils
119
120LOCAL_PRELINK_MODULE := false
121LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
122
123include $(BUILD_SHARED_LIBRARY)
124
125endif # not BUILD_TINY_ANDROID
126