Home | History | Annotate | Download | only in libloc_api-rpc
      1 #Copyright (c) 2009, QUALCOMM USA, INC.
      2 #All rights reserved.
      3 #Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
      4 #         Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
      5 #         Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
      6 #         Neither the name of the QUALCOMM USA, Inc.  nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 
      7 #THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      8 
      9 ifneq ($(BUILD_TINY_ANDROID),true)
     10 
     11 LOCAL_PATH:= $(call my-dir)
     12 include $(CLEAR_VARS)
     13 
     14 AMSS_VERSION:=$(BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION)
     15 RPC_INC:=inc-$(AMSS_VERSION)
     16 
     17 generated_files:= \
     18 	gen-$(AMSS_VERSION)/loc_api_clnt.c	\
     19 	gen-$(AMSS_VERSION)/loc_api_cb_xdr.c	\
     20 	gen-$(AMSS_VERSION)/loc_api_common_xdr.c \
     21 	gen-$(AMSS_VERSION)/loc_api_cb_svc.c \
     22 	gen-$(AMSS_VERSION)/loc_api_xdr.c \
     23 	gen-$(AMSS_VERSION)/loc_api_fixup.c \
     24 	gen-$(AMSS_VERSION)/loc_api_rpc_glue.c \
     25 	src/loc_apicb_appinit.c
     26 
     27 LOCAL_SRC_FILES:= $(generated_files)
     28 
     29 # removed from library build since the client should implement this code.
     30 #	src/loc_api_cb_server.c
     31 
     32 LOCAL_CFLAGS:=-fno-short-enums
     33 LOCAL_CFLAGS+=-include $(RPC_INC)/loc_api_common.h
     34 LOCAL_CFLAGS+=-DDEBUG
     35 # LOCAL_CFLAGS+=-DDEBUG -DVERBOSE
     36 
     37 LOCAL_CFLAGS+=-DADD_XDR_FLOAT -DADD_XDR_BOOL
     38 
     39 LOCAL_SHARED_LIBRARIES:= librpc
     40 LOCAL_STATIC_LIBRARIES:= libcommondefs-rpc
     41 
     42 
     43 
     44 LOCAL_COPY_HEADERS_TO:= libloc_api-rpc/inc
     45 LOCAL_COPY_HEADERS:= \
     46 	$(RPC_INC)/loc_api_cb.h \
     47 	$(RPC_INC)/loc_api_common.h \
     48 	$(RPC_INC)/loc_api.h \
     49 	$(RPC_INC)/loc_api_fixup.h \
     50 	$(RPC_INC)/loc_apicb_appinit.h \
     51 	inc/debug.h \
     52 	inc/loc_api_rpc_glue.h
     53 
     54 LOCAL_C_INCLUDES:= \
     55 	$(LOCAL_PATH) \
     56 	$(LOCAL_PATH)/inc \
     57 	$(LOCAL_PATH)/$(RPC_INC) \
     58 	$(TARGET_OUT_HEADERS)/libcommondefs-rpc \
     59 	$(TARGET_OUT_HEADERS)/librpc
     60 
     61 LOCAL_MODULE:= libloc_api-rpc
     62 
     63 include $(BUILD_STATIC_LIBRARY)
     64 
     65 endif
     66