• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4RPC_INC:=rpc_inc
5
6source_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
14LOCAL_SRC_FILES:= $(source_files)
15
16LOCAL_CFLAGS:=-fno-short-enums
17LOCAL_CFLAGS+=-DDEBUG -DUSE_QCOM_AUTO_RPC -DUSE_QCOM_AUTO_RPC
18LOCAL_CFLAGS+=$(GPS_FEATURES)
19
20# for loc_api_fixup.c
21LOCAL_CFLAGS+=-DADD_XDR_FLOAT -DADD_XDR_BOOL
22
23LOCAL_SHARED_LIBRARIES:= \
24    librpc \
25    libutils \
26    libcutils \
27    libcommondefs \
28    libgps.utils \
29    libloc_core
30
31LOCAL_STATIC_LIBRARIES := \
32    libloc_api_rpcgen
33
34LOCAL_PRELINK_MODULE:= false
35
36LOCAL_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
47LOCAL_COPY_HEADERS_TO:= libloc_api-rpc-qc/$(RPC_INC)
48LOCAL_COPY_HEADERS:= \
49    $(RPC_INC)/loc_api_rpc_glue.h \
50    $(RPC_INC)/loc_api_fixup.h \
51    $(RPC_INC)/loc_api_sync_call.h \
52    $(RPC_INC)/loc_apicb_appinit.h \
53    $(RPC_INC)/LocApiRpc.h
54
55LOCAL_MODULE:= libloc_api-rpc-qc
56LOCAL_MODULE_OWNER := qcom
57
58LOCAL_MODULE_TAGS := optional
59
60include $(BUILD_SHARED_LIBRARY)
61