Rekha Kumar | 533ab1b | 2012-09-19 16:30:21 -0700 | [diff] [blame] | 1 | |
| 2 | LOCAL_PATH := $(call my-dir) |
| 3 | |
| 4 | C_SRC_FILES := \ |
| 5 | src/google/protobuf-c/protobuf-c-rpc.c \ |
| 6 | src/google/protobuf-c/protobuf-c-dispatch.c \ |
| 7 | src/google/protobuf-c/protobuf-c-data-buffer.c \ |
| 8 | src/google/protobuf-c/protobuf-c.c |
| 9 | |
| 10 | # C library |
| 11 | # ======================================================= |
| 12 | include $(CLEAR_VARS) |
| 13 | |
| 14 | LOCAL_MODULE := libprotobuf-c |
| 15 | LOCAL_MODULE_TAGS := debug |
| 16 | |
| 17 | LOCAL_SRC_FILES := $(C_SRC_FILES) |
| 18 | |
| 19 | LOCAL_C_INCLUDES := \ |
| 20 | $(LOCAL_PATH)/src |
| 21 | |
| 22 | LOCAL_COPY_HEADERS_TO := protobuf-c/include/google/protobuf-c/ |
| 23 | LOCAL_COPY_HEADERS := ./src/google/protobuf-c/protobuf-c.h |
| 24 | LOCAL_COPY_HEADERS += ./src/google/protobuf-c/protobuf-c-private.h |
| 25 | |
| 26 | LOCAL_SHARED_LIBRARIES := \ |
| 27 | libcutils libutils |
| 28 | |
| 29 | LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI -DHAVE_SYS_POLL_H -DHAVE_ALLOCA_H -DHAVE_UNISTD_H |
| 30 | |
| 31 | include $(BUILD_STATIC_LIBRARY) |
| 32 | |