1ifneq ($(BUILD_TINY_ANDROID),true)
2
3ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION),50001)
4
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
8AMSS_VERSION:=$(BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION)
9RPC_INC:=inc-$(AMSS_VERSION)
10
11generated_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
21LOCAL_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
26LOCAL_CFLAGS:=-fno-short-enums
27LOCAL_CFLAGS+=-include $(RPC_INC)/loc_api_common.h
28LOCAL_CFLAGS+=-DDEBUG
29# LOCAL_CFLAGS+=-DDEBUG -DVERBOSE
30
31LOCAL_CFLAGS+=-DADD_XDR_FLOAT -DADD_XDR_BOOL
32
33LOCAL_SHARED_LIBRARIES:= librpc
34LOCAL_STATIC_LIBRARIES:= libcommondefs-rpc
35
36
37
38LOCAL_COPY_HEADERS_TO:= libloc_api-rpc/inc
39LOCAL_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
48LOCAL_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
55LOCAL_MODULE:= libloc_api-rpc
56LOCAL_MODULE_OWNER := qcom
57
58include $(BUILD_STATIC_LIBRARY)
59
60endif
61endif
62