this is to support bringup efforts. This change will decouple the dependencies between GPS HAL and proprietary QMI headers, so that we can build HAL without any proprietary repos. Change-Id: I7b836d09f4ac6b1a1bdb38f8d6a2bfb90bb5bf01
31 lines
847 B
Makefile
31 lines
847 B
Makefile
ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
GPS_DIR_LIST :=
|
|
|
|
# add RPC dirs if RPC is available
|
|
ifneq ($(TARGET_NO_RPC),true)
|
|
|
|
GPS_DIR_LIST += $(LOCAL_PATH)/libloc_api-rpc-50001/
|
|
GPS_DIR_LIST += $(LOCAL_PATH)/libloc_api-rpc/
|
|
GPS_DIR_LIST += $(LOCAL_PATH)/libloc_api/
|
|
|
|
endif #TARGET_NO_RPC
|
|
|
|
ifeq (exists, $(shell test -d $(TOP)/vendor/qcom/proprietary/qmi-framework && echo exists))
|
|
#add QMI libraries for QMI targets
|
|
QMI_BOARD_PLATFORM_LIST := msm8960
|
|
QMI_BOARD_PLATFORM_LIST += msm8974
|
|
endif
|
|
|
|
ifeq ($(call is-board-platform-in-list,$(QMI_BOARD_PLATFORM_LIST)),true)
|
|
GPS_DIR_LIST += $(LOCAL_PATH)/loc_api_v02/
|
|
endif #is-board-platform-in-list
|
|
|
|
GPS_DIR_LIST += $(LOCAL_PATH)/libloc_api_50001/
|
|
|
|
#call the subfolders
|
|
include $(addsuffix Android.mk, $(GPS_DIR_LIST))
|
|
|
|
endif#BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
|