1 # 2 # Copyright 2012 Google Inc. All Rights Reserved. 3 # Author: idh (at] google.com (Ian Hodson) 4 # 5 # Android makefile for the re2 regexp library. 6 # 7 8 LOCAL_PATH := $(call my-dir) 9 10 regexp_re2_files := \ 11 util/arena.cc \ 12 util/hash.cc \ 13 util/rune.cc \ 14 util/stringpiece.cc \ 15 util/stringprintf.cc \ 16 util/strutil.cc \ 17 util/valgrind.cc \ 18 re2/bitstate.cc \ 19 re2/compile.cc \ 20 re2/dfa.cc \ 21 re2/filtered_re2.cc \ 22 re2/mimics_pcre.cc \ 23 re2/nfa.cc \ 24 re2/onepass.cc \ 25 re2/parse.cc \ 26 re2/perl_groups.cc \ 27 re2/prefilter.cc \ 28 re2/prefilter_tree.cc \ 29 re2/prog.cc \ 30 re2/re2.cc \ 31 re2/regexp.cc \ 32 re2/set.cc \ 33 re2/simplify.cc \ 34 re2/tostring.cc \ 35 re2/unicode_casefold.cc \ 36 re2/unicode_groups.cc 37 38 # Stlport version 39 # ======================================================= 40 include $(CLEAR_VARS) 41 LOCAL_MODULE := libregex-re2 42 LOCAL_MODULE_TAGS := optional 43 LOCAL_CPP_EXTENSION := .cc 44 LOCAL_C_INCLUDES += $(LOCAL_PATH)/re2 \ 45 external/stlport 46 LOCAL_SRC_FILES := $(regexp_re2_files) 47 include external/stlport/libstlport.mk 48 include $(BUILD_STATIC_LIBRARY) 49 50 # Gnustl+rtti version 51 # ======================================================= 52 53 include $(CLEAR_VARS) 54 LOCAL_MODULE := libregex-re2-gnustl-rtti 55 LOCAL_MODULE_TAGS := optional 56 LOCAL_CPP_EXTENSION := .cc 57 LOCAL_C_INCLUDES += $(LOCAL_PATH)/re2 58 LOCAL_SRC_FILES := $(regexp_re2_files) 59 LOCAL_CFLAGS += -frtti 60 LOCAL_NDK_STL_VARIANT := gnustl_static 61 LOCAL_SDK_VERSION := 14 62 63 include $(BUILD_STATIC_LIBRARY) 64