re2.target.linux-x86.mk revision 116680a4aac90f2aa7413d9095a592090648e557
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
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/re2/re2/bitstate.cc \
28	third_party/re2/re2/compile.cc \
29	third_party/re2/re2/dfa.cc \
30	third_party/re2/re2/filtered_re2.cc \
31	third_party/re2/re2/mimics_pcre.cc \
32	third_party/re2/re2/nfa.cc \
33	third_party/re2/re2/onepass.cc \
34	third_party/re2/re2/parse.cc \
35	third_party/re2/re2/perl_groups.cc \
36	third_party/re2/re2/prefilter.cc \
37	third_party/re2/re2/prefilter_tree.cc \
38	third_party/re2/re2/prog.cc \
39	third_party/re2/re2/re2.cc \
40	third_party/re2/re2/regexp.cc \
41	third_party/re2/re2/set.cc \
42	third_party/re2/re2/simplify.cc \
43	third_party/re2/re2/tostring.cc \
44	third_party/re2/re2/unicode_casefold.cc \
45	third_party/re2/re2/unicode_groups.cc \
46	third_party/re2/util/arena.cc \
47	third_party/re2/util/hash.cc \
48	third_party/re2/util/rune.cc \
49	third_party/re2/util/stringpiece.cc \
50	third_party/re2/util/stringprintf.cc \
51	third_party/re2/util/strutil.cc
52
53
54# Flags passed to both C and C++ files.
55MY_CFLAGS_Debug := \
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-unused-local-typedefs \
65	-Wno-format \
66	-msse2 \
67	-mfpmath=sse \
68	-mmmx \
69	-m32 \
70	-ffunction-sections \
71	-funwind-tables \
72	-g \
73	-fno-short-enums \
74	-finline-limit=64 \
75	-Wa,--noexecstack \
76	-U_FORTIFY_SOURCE \
77	-Wno-extra \
78	-Wno-ignored-qualifiers \
79	-Wno-type-limits \
80	-Wno-unused-but-set-variable \
81	-fno-stack-protector \
82	-Wno-address \
83	-Wno-format-security \
84	-Wno-return-type \
85	-Wno-sequence-point \
86	-Os \
87	-g \
88	-fdata-sections \
89	-ffunction-sections \
90	-fomit-frame-pointer \
91	-funwind-tables
92
93MY_DEFS_Debug := \
94	'-DV8_DEPRECATION_WARNINGS' \
95	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
96	'-D_FILE_OFFSET_BITS=64' \
97	'-DNO_TCMALLOC' \
98	'-DDISABLE_NACL' \
99	'-DCHROMIUM_BUILD' \
100	'-DUSE_LIBJPEG_TURBO=1' \
101	'-DENABLE_WEBRTC=1' \
102	'-DUSE_PROPRIETARY_CODECS' \
103	'-DENABLE_BROWSER_CDMS' \
104	'-DENABLE_CONFIGURATION_POLICY' \
105	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
106	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
107	'-DENABLE_EGLIMAGE=1' \
108	'-DCLD_VERSION=1' \
109	'-DCLD_DATA_FROM_STATIC' \
110	'-DENABLE_PRINTING=1' \
111	'-DENABLE_MANAGED_USERS=1' \
112	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
113	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
114	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
115	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
116	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
117	'-DVIDEO_HOLE=1' \
118	'-DUSE_OPENSSL=1' \
119	'-DUSE_OPENSSL_CERTS=1' \
120	'-DANDROID' \
121	'-D__GNU_SOURCE=1' \
122	'-DUSE_STLPORT=1' \
123	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
124	'-DCHROME_BUILD_ID=""' \
125	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
126	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
127	'-D_DEBUG'
128
129
130# Include paths placed before CFLAGS/CPPFLAGS
131LOCAL_C_INCLUDES_Debug := \
132	$(gyp_shared_intermediate_dir) \
133	$(LOCAL_PATH)/third_party/re2 \
134	$(LOCAL_PATH) \
135	$(PWD)/frameworks/wilhelm/include \
136	$(PWD)/bionic \
137	$(PWD)/external/stlport/stlport
138
139
140# Flags passed to only C++ (and not C) files.
141LOCAL_CPPFLAGS_Debug := \
142	-fno-rtti \
143	-fno-threadsafe-statics \
144	-fvisibility-inlines-hidden \
145	-Wno-deprecated \
146	-std=gnu++11 \
147	-Wno-narrowing \
148	-Wno-literal-suffix \
149	-Wno-non-virtual-dtor \
150	-Wno-sign-promo \
151	-Wno-non-virtual-dtor
152
153
154# Flags passed to both C and C++ files.
155MY_CFLAGS_Release := \
156	--param=ssp-buffer-size=4 \
157	-fno-exceptions \
158	-fno-strict-aliasing \
159	-Wno-unused-parameter \
160	-Wno-missing-field-initializers \
161	-fvisibility=hidden \
162	-pipe \
163	-fPIC \
164	-Wno-unused-local-typedefs \
165	-Wno-format \
166	-msse2 \
167	-mfpmath=sse \
168	-mmmx \
169	-m32 \
170	-ffunction-sections \
171	-funwind-tables \
172	-g \
173	-fno-short-enums \
174	-finline-limit=64 \
175	-Wa,--noexecstack \
176	-U_FORTIFY_SOURCE \
177	-Wno-extra \
178	-Wno-ignored-qualifiers \
179	-Wno-type-limits \
180	-Wno-unused-but-set-variable \
181	-fno-stack-protector \
182	-Wno-address \
183	-Wno-format-security \
184	-Wno-return-type \
185	-Wno-sequence-point \
186	-Os \
187	-fno-ident \
188	-fdata-sections \
189	-ffunction-sections \
190	-fomit-frame-pointer \
191	-funwind-tables
192
193MY_DEFS_Release := \
194	'-DV8_DEPRECATION_WARNINGS' \
195	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
196	'-D_FILE_OFFSET_BITS=64' \
197	'-DNO_TCMALLOC' \
198	'-DDISABLE_NACL' \
199	'-DCHROMIUM_BUILD' \
200	'-DUSE_LIBJPEG_TURBO=1' \
201	'-DENABLE_WEBRTC=1' \
202	'-DUSE_PROPRIETARY_CODECS' \
203	'-DENABLE_BROWSER_CDMS' \
204	'-DENABLE_CONFIGURATION_POLICY' \
205	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
206	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
207	'-DENABLE_EGLIMAGE=1' \
208	'-DCLD_VERSION=1' \
209	'-DCLD_DATA_FROM_STATIC' \
210	'-DENABLE_PRINTING=1' \
211	'-DENABLE_MANAGED_USERS=1' \
212	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
213	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
214	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
215	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
216	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
217	'-DVIDEO_HOLE=1' \
218	'-DUSE_OPENSSL=1' \
219	'-DUSE_OPENSSL_CERTS=1' \
220	'-DANDROID' \
221	'-D__GNU_SOURCE=1' \
222	'-DUSE_STLPORT=1' \
223	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
224	'-DCHROME_BUILD_ID=""' \
225	'-DNDEBUG' \
226	'-DNVALGRIND' \
227	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
228
229
230# Include paths placed before CFLAGS/CPPFLAGS
231LOCAL_C_INCLUDES_Release := \
232	$(gyp_shared_intermediate_dir) \
233	$(LOCAL_PATH)/third_party/re2 \
234	$(LOCAL_PATH) \
235	$(PWD)/frameworks/wilhelm/include \
236	$(PWD)/bionic \
237	$(PWD)/external/stlport/stlport
238
239
240# Flags passed to only C++ (and not C) files.
241LOCAL_CPPFLAGS_Release := \
242	-fno-rtti \
243	-fno-threadsafe-statics \
244	-fvisibility-inlines-hidden \
245	-Wno-deprecated \
246	-std=gnu++11 \
247	-Wno-narrowing \
248	-Wno-literal-suffix \
249	-Wno-non-virtual-dtor \
250	-Wno-sign-promo \
251	-Wno-non-virtual-dtor
252
253
254LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
255LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
256LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
257LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
258### Rules for final target.
259
260LOCAL_LDFLAGS_Debug := \
261	-Wl,-z,now \
262	-Wl,-z,relro \
263	-Wl,--fatal-warnings \
264	-Wl,-z,noexecstack \
265	-fPIC \
266	-m32 \
267	-fuse-ld=gold \
268	-nostdlib \
269	-Wl,--no-undefined \
270	-Wl,--exclude-libs=ALL \
271	-Wl,--warn-shared-textrel \
272	-Wl,-O1 \
273	-Wl,--as-needed
274
275
276LOCAL_LDFLAGS_Release := \
277	-Wl,-z,now \
278	-Wl,-z,relro \
279	-Wl,--fatal-warnings \
280	-Wl,-z,noexecstack \
281	-fPIC \
282	-m32 \
283	-fuse-ld=gold \
284	-nostdlib \
285	-Wl,--no-undefined \
286	-Wl,--exclude-libs=ALL \
287	-Wl,-O1 \
288	-Wl,--as-needed \
289	-Wl,--gc-sections \
290	-Wl,--warn-shared-textrel
291
292
293LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
294
295LOCAL_STATIC_LIBRARIES :=
296
297# Enable grouping to fix circular references
298LOCAL_GROUP_STATIC_LIBRARIES := true
299
300LOCAL_SHARED_LIBRARIES := \
301	libstlport \
302	libdl
303
304# Add target alias to "gyp_all_modules" target.
305.PHONY: gyp_all_modules
306gyp_all_modules: third_party_re2_re2_gyp
307
308# Alias gyp target name.
309.PHONY: re2
310re2: third_party_re2_re2_gyp
311
312include $(BUILD_STATIC_LIBRARY)
313