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