1#
2# Copyright 2012 Google Inc. All Rights Reserved.
3# Author: idh@google.com (Ian Hodson)
4#
5# Android makefile for the re2 regexp library.
6#
7
8LOCAL_PATH := $(call my-dir)
9
10regexp_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# =======================================================
40include $(CLEAR_VARS)
41LOCAL_MODULE := libregex-re2
42LOCAL_MODULE_TAGS := optional
43LOCAL_CPP_EXTENSION := .cc
44LOCAL_C_INCLUDES += $(LOCAL_PATH)/re2 \
45		    external/stlport
46LOCAL_SRC_FILES := $(regexp_re2_files)
47LOCAL_NDK_STL_VARIANT := stlport_static
48LOCAL_SDK_VERSION := 14
49include $(BUILD_STATIC_LIBRARY)
50
51# Gnustl+rtti version
52# =======================================================
53include $(CLEAR_VARS)
54LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
55LOCAL_MODULE := libregex-re2-gnustl-rtti
56LOCAL_MODULE_TAGS := optional
57LOCAL_CPP_EXTENSION := .cc
58LOCAL_C_INCLUDES += $(LOCAL_PATH)/re2
59LOCAL_SRC_FILES := $(regexp_re2_files)
60LOCAL_CFLAGS += -frtti
61LOCAL_NDK_STL_VARIANT := gnustl_static
62LOCAL_SDK_VERSION := 14
63include $(BUILD_STATIC_LIBRARY)
64