1ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) 2ifneq ($(BUILD_TINY_ANDROID),true) 3 4LOCAL_PATH := $(call my-dir) 5 6include $(CLEAR_VARS) 7 8LOCAL_MODULE := libgnss 9LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 10LOCAL_LICENSE_CONDITIONS := notice 11LOCAL_SANITIZE += $(GNSS_SANITIZE) 12# activate the following line for debug purposes only, comment out for production 13#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) 14LOCAL_VENDOR_MODULE := true 15LOCAL_MODULE_TAGS := optional 16 17LOCAL_SHARED_LIBRARIES := \ 18 libutils \ 19 libcutils \ 20 libdl \ 21 liblog \ 22 libloc_core \ 23 libgps.utils 24 25LOCAL_SRC_FILES += \ 26 location_gnss.cpp \ 27 GnssAdapter.cpp \ 28 Agps.cpp \ 29 XtraSystemStatusObserver.cpp 30 31LOCAL_CFLAGS += \ 32 -fno-short-enums \ 33 34ifeq ($(TARGET_BUILD_VARIANT),user) 35 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 36endif 37 38LOCAL_HEADER_LIBRARIES := \ 39 libgps.utils_headers \ 40 libloc_core_headers \ 41 libloc_pla_headers \ 42 liblocation_api_headers 43 44LOCAL_CFLAGS += $(GNSS_CFLAGS) 45 46LOCAL_PRELINK_MODULE := false 47 48include $(BUILD_SHARED_LIBRARY) 49 50endif # not BUILD_TINY_ANDROID 51endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 52