re2.target.linux-arm.mk revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_re2_re2_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/re2/re2/bitstate.cc \
27	third_party/re2/re2/compile.cc \
28	third_party/re2/re2/dfa.cc \
29	third_party/re2/re2/filtered_re2.cc \
30	third_party/re2/re2/mimics_pcre.cc \
31	third_party/re2/re2/nfa.cc \
32	third_party/re2/re2/onepass.cc \
33	third_party/re2/re2/parse.cc \
34	third_party/re2/re2/perl_groups.cc \
35	third_party/re2/re2/prefilter.cc \
36	third_party/re2/re2/prefilter_tree.cc \
37	third_party/re2/re2/prog.cc \
38	third_party/re2/re2/re2.cc \
39	third_party/re2/re2/regexp.cc \
40	third_party/re2/re2/set.cc \
41	third_party/re2/re2/simplify.cc \
42	third_party/re2/re2/tostring.cc \
43	third_party/re2/re2/unicode_casefold.cc \
44	third_party/re2/re2/unicode_groups.cc \
45	third_party/re2/util/arena.cc \
46	third_party/re2/util/hash.cc \
47	third_party/re2/util/rune.cc \
48	third_party/re2/util/stringpiece.cc \
49	third_party/re2/util/stringprintf.cc \
50	third_party/re2/util/strutil.cc
51
52
53# Flags passed to both C and C++ files.
54MY_CFLAGS := \
55	-fstack-protector \
56	--param=ssp-buffer-size=4 \
57	-fno-exceptions \
58	-fno-strict-aliasing \
59	-Wno-unused-parameter \
60	-Wno-missing-field-initializers \
61	-fvisibility=hidden \
62	-pipe \
63	-fPIC \
64	-Wno-format \
65	-fno-tree-sra \
66	-fuse-ld=gold \
67	-Wno-psabi \
68	-ffunction-sections \
69	-funwind-tables \
70	-g \
71	-fstack-protector \
72	-fno-short-enums \
73	-finline-limit=64 \
74	-Wa,--noexecstack \
75	-U_FORTIFY_SOURCE \
76	-Wno-extra \
77	-Wno-ignored-qualifiers \
78	-Wno-type-limits \
79	-Wno-address \
80	-Wno-format-security \
81	-Wno-return-type \
82	-Wno-sequence-point \
83	-Os \
84	-g \
85	-fomit-frame-pointer \
86	-fdata-sections \
87	-ffunction-sections
88
89MY_CFLAGS_C :=
90
91MY_DEFS := \
92	'-D_FILE_OFFSET_BITS=64' \
93	'-DUSE_LINUX_BREAKPAD' \
94	'-DNO_TCMALLOC' \
95	'-DDISABLE_NACL' \
96	'-DCHROMIUM_BUILD' \
97	'-DUSE_LIBJPEG_TURBO=1' \
98	'-DUSE_PROPRIETARY_CODECS' \
99	'-DENABLE_GPU=1' \
100	'-DUSE_OPENSSL=1' \
101	'-DENABLE_EGLIMAGE=1' \
102	'-DENABLE_LANGUAGE_DETECTION=1' \
103	'-DANDROID' \
104	'-D__GNU_SOURCE=1' \
105	'-DUSE_STLPORT=1' \
106	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
107	'-DCHROME_BUILD_ID=""' \
108	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
109	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
110	'-D_DEBUG'
111
112LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
113
114# Include paths placed before CFLAGS/CPPFLAGS
115LOCAL_C_INCLUDES := \
116	$(LOCAL_PATH)/third_party/re2 \
117	$(LOCAL_PATH) \
118	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
119	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
120	$(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
121
122LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
123
124# Flags passed to only C++ (and not C) files.
125LOCAL_CPPFLAGS := \
126	-fno-rtti \
127	-fno-threadsafe-statics \
128	-fvisibility-inlines-hidden \
129	-Wno-deprecated \
130	-Wno-abi \
131	-Wno-error=c++0x-compat \
132	-Wno-non-virtual-dtor \
133	-Wno-sign-promo \
134	-Wno-non-virtual-dtor
135
136### Rules for final target.
137
138LOCAL_LDFLAGS := \
139	-Wl,-z,now \
140	-Wl,-z,relro \
141	-Wl,-z,noexecstack \
142	-fPIC \
143	-Wl,-z,relro \
144	-Wl,-z,now \
145	-fuse-ld=gold \
146	-nostdlib \
147	-Wl,--no-undefined \
148	-Wl,--exclude-libs=ALL \
149	-Wl,--icf=safe \
150	-Wl,--gc-sections \
151	-Wl,-O1 \
152	-Wl,--as-needed
153
154
155LOCAL_STATIC_LIBRARIES :=
156
157# Enable grouping to fix circular references
158LOCAL_GROUP_STATIC_LIBRARIES := true
159
160LOCAL_SHARED_LIBRARIES := \
161	libstlport \
162	libdl
163
164# Add target alias to "gyp_all_modules" target.
165.PHONY: gyp_all_modules
166gyp_all_modules: third_party_re2_re2_gyp
167
168# Alias gyp target name.
169.PHONY: re2
170re2: third_party_re2_re2_gyp
171
172include $(BUILD_STATIC_LIBRARY)
173