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
6    ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true)
7
8      ifneq ($(filter msm8960 apq8064 ,$(TARGET_BOARD_PLATFORM)),)
9        #For msm8960/apq8064 targets
10        include $(call all-named-subdir-makefiles,msm8960)
11      else ifneq ($(filter msm8084 ,$(TARGET_BOARD_PLATFORM)),)
12        #For msm8084 target
13        include $(call all-named-subdir-makefiles,msm8084)
14      else ifneq ($(filter msm8992 msm8994 ,$(TARGET_BOARD_PLATFORM)),)
15        #For msm8992/msm8994 targets
16        include $(call all-named-subdir-makefiles,msm8994)
17      else ifneq ($(filter msm8996 ,$(TARGET_BOARD_PLATFORM)),)
18        #For msm8996 target
19        include $(call all-named-subdir-makefiles,msm8996)
20      else ifneq ($(filter msm8998 ,$(TARGET_BOARD_PLATFORM)),)
21        #For msm8998 target
22        include $(call all-named-subdir-makefiles,msm8998)
23      else ifeq ($(filter msm8916,$(TARGET_BOARD_PLATFORM)),)
24        #For all other targets
25        GPS_DIRS=core utils loc_api platform_lib_abstractions etc
26        include $(call all-named-subdir-makefiles,$(GPS_DIRS))
27      endif #TARGET_BOARD_PLATFORM
28
29    else
30      ifneq ($(filter msm8909 msm8226 ,$(TARGET_BOARD_PLATFORM)),)
31        #For msm8909 target
32        GPS_DIRS=msm8909/core msm8909/utils msm8909/loc_api msm8909/etc
33        include $(call all-named-subdir-makefiles,$(GPS_DIRS))
34      else ifeq ($(filter msm8916 ,$(TARGET_BOARD_PLATFORM)),)
35        GPS_DIRS=core utils loc_api platform_lib_abstractions etc
36        include $(call all-named-subdir-makefiles,$(GPS_DIRS))
37      endif
38    endif #BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET
39
40  endif #BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
41endif
42