Home | History | Annotate | Download | only in libloc_api-rpc
      1 ifneq ($(BUILD_TINY_ANDROID),true)
      2 
      3 ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION),50001)
      4 
      5 LOCAL_PATH:= $(call my-dir)
      6 include $(CLEAR_VARS)
      7 
      8 AMSS_VERSION:=$(BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION)
      9 RPC_INC:=inc-$(AMSS_VERSION)
     10 
     11 generated_files:= \
     12 	gen-$(AMSS_VERSION)/loc_api_clnt.c	\
     13 	gen-$(AMSS_VERSION)/loc_api_cb_xdr.c	\
     14 	gen-$(AMSS_VERSION)/loc_api_common_xdr.c \
     15 	gen-$(AMSS_VERSION)/loc_api_cb_svc.c \
     16 	gen-$(AMSS_VERSION)/loc_api_xdr.c \
     17 	gen-$(AMSS_VERSION)/loc_api_fixup.c \
     18 	gen-$(AMSS_VERSION)/loc_api_rpc_glue.c \
     19 	src/loc_apicb_appinit.c
     20 
     21 LOCAL_SRC_FILES:= $(generated_files)
     22 
     23 # removed from library build since the client should implement this code.
     24 #	src/loc_api_cb_server.c
     25 
     26 LOCAL_CFLAGS:=-fno-short-enums
     27 LOCAL_CFLAGS+=-include $(RPC_INC)/loc_api_common.h
     28 LOCAL_CFLAGS+=-DDEBUG
     29 # LOCAL_CFLAGS+=-DDEBUG -DVERBOSE
     30 
     31 LOCAL_CFLAGS+=-DADD_XDR_FLOAT -DADD_XDR_BOOL
     32 
     33 LOCAL_SHARED_LIBRARIES:= librpc
     34 LOCAL_STATIC_LIBRARIES:= libcommondefs-rpc
     35 
     36 
     37 
     38 LOCAL_COPY_HEADERS_TO:= libloc_api-rpc/inc
     39 LOCAL_COPY_HEADERS:= \
     40 	$(RPC_INC)/loc_api_cb.h \
     41 	$(RPC_INC)/loc_api_common.h \
     42 	$(RPC_INC)/loc_api.h \
     43 	$(RPC_INC)/loc_api_fixup.h \
     44 	$(RPC_INC)/loc_apicb_appinit.h \
     45 	inc/debug.h \
     46 	inc/loc_api_rpc_glue.h
     47 
     48 LOCAL_C_INCLUDES:= \
     49 	$(LOCAL_PATH) \
     50 	$(LOCAL_PATH)/inc \
     51 	$(LOCAL_PATH)/$(RPC_INC) \
     52 	$(TARGET_OUT_HEADERS)/libcommondefs-rpc \
     53 	$(TARGET_OUT_HEADERS)/librpc
     54 
     55 LOCAL_MODULE:= libloc_api-rpc
     56 LOCAL_MODULE_OWNER := qcom
     57 
     58 include $(BUILD_STATIC_LIBRARY)
     59 
     60 endif
     61 endif
     62