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