1LOCAL_PATH:= $(call my-dir) 2 3libpcre_src_files := \ 4 pcre_chartables.c \ 5 dist/pcre_byte_order.c \ 6 dist/pcre_compile.c \ 7 dist/pcre_config.c \ 8 dist/pcre_dfa_exec.c \ 9 dist/pcre_exec.c \ 10 dist/pcre_fullinfo.c \ 11 dist/pcre_get.c \ 12 dist/pcre_globals.c \ 13 dist/pcre_jit_compile.c \ 14 dist/pcre_maketables.c \ 15 dist/pcre_newline.c \ 16 dist/pcre_ord2utf8.c \ 17 dist/pcre_refcount.c \ 18 dist/pcre_string_utils.c \ 19 dist/pcre_study.c \ 20 dist/pcre_tables.c \ 21 dist/pcre_ucd.c \ 22 dist/pcre_valid_utf8.c \ 23 dist/pcre_version.c \ 24 dist/pcre_xclass.c 25 26libpcrecpp_src_files := \ 27 dist/pcrecpp.cc \ 28 dist/pcre_scanner.cc \ 29 dist/pcre_stringpiece.cc 30 31libpcre_cflags := \ 32 -DHAVE_CONFIG_H \ 33 -Wno-self-assign \ 34 -Wno-unused-parameter \ 35 36# === libpcre targets === 37 38include $(CLEAR_VARS) 39LOCAL_MODULE := libpcre 40LOCAL_CFLAGS += $(libpcre_cflags) 41LOCAL_C_INCLUDES += $(LOCAL_PATH)/dist 42LOCAL_SRC_FILES := $(libpcre_src_files) 43LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 44include $(BUILD_HOST_STATIC_LIBRARY) 45 46include $(CLEAR_VARS) 47LOCAL_MODULE := libpcre 48LOCAL_CFLAGS += $(libpcre_cflags) 49LOCAL_C_INCLUDES += $(LOCAL_PATH)/dist 50LOCAL_SRC_FILES := $(libpcre_src_files) 51LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 52include $(BUILD_STATIC_LIBRARY) 53 54include $(CLEAR_VARS) 55LOCAL_MODULE := libpcre 56LOCAL_CFLAGS += $(libpcre_cflags) 57LOCAL_C_INCLUDES += $(LOCAL_PATH)/dist 58LOCAL_SRC_FILES := $(libpcre_src_files) 59LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 60include $(BUILD_SHARED_LIBRARY) 61 62# === libpcrecpp targets === 63 64include $(CLEAR_VARS) 65LOCAL_MODULE := libpcrecpp 66LOCAL_CFLAGS += $(libpcre_cflags) 67LOCAL_C_INCLUDES += $(LOCAL_PATH)/dist 68LOCAL_CPP_EXTENSION := .cc 69LOCAL_SRC_FILES := $(libpcrecpp_src_files) 70LOCAL_SHARED_LIBRARIES := libpcre 71LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 72include $(BUILD_SHARED_LIBRARY) 73