1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 RPC_INC:=rpc_inc 5 6 source_files:= \ 7 src/loc_api_rpc_glue.c \ 8 src/loc_api_sync_call.c \ 9 src/loc_apicb_appinit.c \ 10 src/loc_api_fixup.c \ 11 src/loc_api_log.c \ 12 src/LocApiRpc.cpp 13 14 LOCAL_SRC_FILES:= $(source_files) 15 16 LOCAL_CFLAGS:=-fno-short-enums 17 LOCAL_CFLAGS+=-DDEBUG -DUSE_QCOM_AUTO_RPC -DUSE_QCOM_AUTO_RPC 18 LOCAL_CFLAGS+=$(GPS_FEATURES) 19 20 # for loc_api_fixup.c 21 LOCAL_CFLAGS+=-DADD_XDR_FLOAT -DADD_XDR_BOOL 22 23 LOCAL_SHARED_LIBRARIES:= \ 24 librpc \ 25 libutils \ 26 libcutils \ 27 libcommondefs \ 28 libgps.utils \ 29 libloc_core 30 31 LOCAL_STATIC_LIBRARIES := \ 32 libloc_api_rpcgen 33 34 LOCAL_PRELINK_MODULE:= false 35 36 LOCAL_C_INCLUDES:= \ 37 $(LOCAL_PATH) \ 38 $(LOCAL_PATH)/rpc_inc \ 39 $(TARGET_OUT_HEADERS)/gps.utils \ 40 $(TARGET_OUT_HEADERS)/libloc_core \ 41 $(TARGET_OUT_HEADERS)/loc_api/rpcgen/inc \ 42 $(TARGET_OUT_HEADERS)/libcommondefs/rpcgen/inc \ 43 $(TARGET_OUT_HEADERS)/librpc \ 44 $(TARGET_OUT_HEADERS)/libloc-rpc/rpc_inc \ 45 $(TOP)/hardware/msm7k/librpc 46 47 48 LOCAL_MODULE:= libloc_api-rpc-qc 49 LOCAL_MODULE_OWNER := qcom 50 51 LOCAL_MODULE_TAGS := optional 52 LOCAL_PROPRIETARY_MODULE := true 53 54 include $(BUILD_SHARED_LIBRARY) 55 56 include $(CLEAR_VARS) 57 LOCAL_MODULE := libloc_api-rpc-qc_headers 58 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH/$(RPC_INC)) 59 include $(BUILD_HEADER_LIBRARY) 60