1 # Copyright 2013 The Android Open Source Project 2 3 LOCAL_PATH:= $(call my-dir) 4 include $(CLEAR_VARS) 5 6 LOCAL_SRC_FILES:= \ 7 librilutils.c \ 8 record_stream.c \ 9 proto/sap-api.proto \ 10 11 LOCAL_C_INCLUDES += \ 12 external/nanopb-c/ \ 13 $(LOCAL_PATH)/../include 14 LOCAL_EXPORT_C_INCLUDE_DIRS := \ 15 $(LOCAL_PATH)/../include 16 17 LOCAL_PROTOC_OPTIMIZE_TYPE := nanopb-c-enable_malloc 18 19 LOCAL_MODULE:= librilutils 20 21 include $(BUILD_SHARED_LIBRARY) 22 23 24 # Create static library for those that want it 25 # ========================================= 26 include $(CLEAR_VARS) 27 28 LOCAL_SRC_FILES:= \ 29 librilutils.c \ 30 record_stream.c \ 31 proto/sap-api.proto \ 32 33 LOCAL_C_INCLUDES += \ 34 external/nanopb-c/ \ 35 $(LOCAL_PATH)/../include 36 LOCAL_EXPORT_C_INCLUDE_DIRS := \ 37 $(LOCAL_PATH)/../include 38 39 LOCAL_PROTOC_OPTIMIZE_TYPE := nanopb-c-enable_malloc 40 41 LOCAL_MODULE:= librilutils_static 42 43 include $(BUILD_STATIC_LIBRARY) 44 45 # Create java protobuf code 46 47 include $(CLEAR_VARS) 48 49 src_proto := $(LOCAL_PATH) 50 LOCAL_MODULE := sap-api-java-static 51 LOCAL_SRC_FILES := proto/sap-api.proto 52 LOCAL_PROTOC_OPTIMIZE_TYPE := micro 53 54 include $(BUILD_STATIC_JAVA_LIBRARY) 55