Home | History | Annotate | Download | only in src
      1 GNSS_CFLAGS := \
      2     -Werror \
      3     -Wno-error=unused-parameter \
      4     -Wno-error=format \
      5     -Wno-error=macro-redefined \
      6     -Wno-error=reorder \
      7     -Wno-error=missing-braces \
      8     -Wno-error=self-assign \
      9     -Wno-error=enum-conversion \
     10     -Wno-error=logical-op-parentheses \
     11     -Wno-error=null-arithmetic \
     12     -Wno-error=null-conversion \
     13     -Wno-error=parentheses-equality \
     14     -Wno-error=undefined-bool-conversion \
     15     -Wno-error=tautological-compare \
     16     -Wno-error=switch \
     17     -Wno-error=date-time
     18 
     19 ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
     20 ifneq ($(BUILD_TINY_ANDROID),true)
     21 #Compile this library only for builds with the latest modem image
     22 
     23 LOCAL_PATH := $(call my-dir)
     24 
     25 include $(CLEAR_VARS)
     26 
     27 ## Libs
     28 LOCAL_SHARED_LIBRARIES := \
     29     libutils \
     30     libcutils \
     31     liblog \
     32     libloc_stub
     33 
     34 LOCAL_SRC_FILES += \
     35         platform_lib_gettid.cpp \
     36         platform_lib_log_util.cpp \
     37         platform_lib_property_service.cpp \
     38         platform_lib_sched_policy.cpp \
     39         platform_lib_time.cpp
     40 
     41 LOCAL_CFLAGS += \
     42      -fno-short-enums \
     43      -D_ANDROID_ \
     44      -std=c++11
     45 
     46 ## Includes
     47 LOCAL_C_INCLUDES:= \
     48     $(LOCAL_PATH)/../include
     49 LOCAL_HEADER_LIBRARIES := \
     50     libgps.utils_headers \
     51     libloc_stub_headers
     52 
     53 LOCAL_MODULE := libloc_pla
     54 LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
     55 LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
     56 LOCAL_MODULE_TAGS := optional
     57 
     58 LOCAL_PRELINK_MODULE := false
     59 LOCAL_CFLAGS += $(GNSS_CFLAGS)
     60 include $(BUILD_SHARED_LIBRARY)
     61 
     62 include $(CLEAR_VARS)
     63 LOCAL_MODULE := libloc_pla_headers
     64 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
     65 include $(BUILD_HEADER_LIBRARY)
     66 
     67 endif # not BUILD_TINY_ANDROID
     68 endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
     69