1# TODO:  Find a better way to separate build configs for ADP vs non-ADP devices
2ifneq ($(BOARD_IS_AUTOMOTIVE),true)
3  ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
4    LOCAL_PATH := $(call my-dir)
5    ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true)
6
7      ifneq ($(filter apq8064,$(TARGET_BOARD_PLATFORM)),)
8        #For apq8064 use msm8960
9        include $(call all-named-subdir-makefiles,msm8960)
10      else ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),)
11        #For msm8992 use msm8994
12        include $(call all-named-subdir-makefiles,msm8994)
13      else ifneq ($(filter msm8960 msm8084 msm8994 msm8996 msm8998 sdm845,$(TARGET_BOARD_PLATFORM)),)
14        #For these, use their platform name as the subdirectory
15        include $(call all-named-subdir-makefiles,$(TARGET_BOARD_PLATFORM))
16      else ifneq ($(filter sdm710,$(TARGET_BOARD_PLATFORM)),)
17        #For sdm710 use sdm845
18        include $(call all-named-subdir-makefiles,sdm845)
19      else ifeq ($(filter msm8916,$(TARGET_BOARD_PLATFORM)),)
20        #For all other targets besides msm8916
21        GPS_DIRS=core utils loc_api platform_lib_abstractions etc
22        include $(call all-named-subdir-makefiles,$(GPS_DIRS))
23      endif #TARGET_BOARD_PLATFORM
24
25    else
26      ifneq ($(filter sdm845,$(TARGET_BOARD_PLATFORM)),)
27        include $(call all-named-subdir-makefiles,$(TARGET_BOARD_PLATFORM))
28      else ifneq ($(filter msm8909 msm8226 ,$(TARGET_BOARD_PLATFORM)),)
29        #For msm8909 target
30        GPS_DIRS=msm8909/core msm8909/utils msm8909/loc_api msm8909/etc
31        include $(call all-named-subdir-makefiles,$(GPS_DIRS))
32      else ifeq ($(filter msm8916 ,$(TARGET_BOARD_PLATFORM)),)
33        GPS_DIRS=core utils loc_api platform_lib_abstractions etc
34        include $(call all-named-subdir-makefiles,$(GPS_DIRS))
35      endif
36    endif #BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET
37
38  endif #BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
39endif
40