re2.target.linux-arm.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	-fstack-protector \
57	--param=ssp-buffer-size=4 \
58	-fno-exceptions \
59	-fno-strict-aliasing \
60	-Wno-unused-parameter \
61	-Wno-missing-field-initializers \
62	-fvisibility=hidden \
63	-pipe \
64	-fPIC \
65	-Wno-unused-local-typedefs \
66	-Wno-format \
67	-fno-tree-sra \
68	-fno-partial-inlining \
69	-fno-early-inlining \
70	-fno-tree-copy-prop \
71	-fno-tree-loop-optimize \
72	-fno-move-loop-invariants \
73	-fno-caller-saves \
74	-Wno-psabi \
75	-ffunction-sections \
76	-funwind-tables \
77	-g \
78	-fstack-protector \
79	-fno-short-enums \
80	-finline-limit=64 \
81	-Wa,--noexecstack \
82	-U_FORTIFY_SOURCE \
83	-Wno-extra \
84	-Wno-ignored-qualifiers \
85	-Wno-type-limits \
86	-Wno-unused-but-set-variable \
87	-Wno-address \
88	-Wno-format-security \
89	-Wno-return-type \
90	-Wno-sequence-point \
91	-Os \
92	-g \
93	-fdata-sections \
94	-ffunction-sections \
95	-fomit-frame-pointer \
96	-funwind-tables
97
98MY_DEFS_Debug := \
99	'-DV8_DEPRECATION_WARNINGS' \
100	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
101	'-D_FILE_OFFSET_BITS=64' \
102	'-DNO_TCMALLOC' \
103	'-DDISABLE_NACL' \
104	'-DCHROMIUM_BUILD' \
105	'-DUSE_LIBJPEG_TURBO=1' \
106	'-DENABLE_WEBRTC=1' \
107	'-DUSE_PROPRIETARY_CODECS' \
108	'-DENABLE_BROWSER_CDMS' \
109	'-DENABLE_CONFIGURATION_POLICY' \
110	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
111	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
112	'-DENABLE_EGLIMAGE=1' \
113	'-DCLD_VERSION=1' \
114	'-DCLD_DATA_FROM_STATIC' \
115	'-DENABLE_PRINTING=1' \
116	'-DENABLE_MANAGED_USERS=1' \
117	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
118	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
119	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
120	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
121	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
122	'-DVIDEO_HOLE=1' \
123	'-DUSE_OPENSSL=1' \
124	'-DUSE_OPENSSL_CERTS=1' \
125	'-DANDROID' \
126	'-D__GNU_SOURCE=1' \
127	'-DUSE_STLPORT=1' \
128	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
129	'-DCHROME_BUILD_ID=""' \
130	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
131	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
132	'-D_DEBUG'
133
134
135# Include paths placed before CFLAGS/CPPFLAGS
136LOCAL_C_INCLUDES_Debug := \
137	$(gyp_shared_intermediate_dir) \
138	$(LOCAL_PATH)/third_party/re2 \
139	$(LOCAL_PATH) \
140	$(PWD)/frameworks/wilhelm/include \
141	$(PWD)/bionic \
142	$(PWD)/external/stlport/stlport
143
144
145# Flags passed to only C++ (and not C) files.
146LOCAL_CPPFLAGS_Debug := \
147	-fno-rtti \
148	-fno-threadsafe-statics \
149	-fvisibility-inlines-hidden \
150	-Wno-deprecated \
151	-Wno-abi \
152	-std=gnu++11 \
153	-Wno-narrowing \
154	-Wno-literal-suffix \
155	-Wno-non-virtual-dtor \
156	-Wno-sign-promo \
157	-Wno-non-virtual-dtor
158
159
160# Flags passed to both C and C++ files.
161MY_CFLAGS_Release := \
162	-fstack-protector \
163	--param=ssp-buffer-size=4 \
164	-fno-exceptions \
165	-fno-strict-aliasing \
166	-Wno-unused-parameter \
167	-Wno-missing-field-initializers \
168	-fvisibility=hidden \
169	-pipe \
170	-fPIC \
171	-Wno-unused-local-typedefs \
172	-Wno-format \
173	-fno-tree-sra \
174	-fno-partial-inlining \
175	-fno-early-inlining \
176	-fno-tree-copy-prop \
177	-fno-tree-loop-optimize \
178	-fno-move-loop-invariants \
179	-fno-caller-saves \
180	-Wno-psabi \
181	-ffunction-sections \
182	-funwind-tables \
183	-g \
184	-fstack-protector \
185	-fno-short-enums \
186	-finline-limit=64 \
187	-Wa,--noexecstack \
188	-U_FORTIFY_SOURCE \
189	-Wno-extra \
190	-Wno-ignored-qualifiers \
191	-Wno-type-limits \
192	-Wno-unused-but-set-variable \
193	-Wno-address \
194	-Wno-format-security \
195	-Wno-return-type \
196	-Wno-sequence-point \
197	-Os \
198	-fno-ident \
199	-fdata-sections \
200	-ffunction-sections \
201	-fomit-frame-pointer \
202	-funwind-tables
203
204MY_DEFS_Release := \
205	'-DV8_DEPRECATION_WARNINGS' \
206	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
207	'-D_FILE_OFFSET_BITS=64' \
208	'-DNO_TCMALLOC' \
209	'-DDISABLE_NACL' \
210	'-DCHROMIUM_BUILD' \
211	'-DUSE_LIBJPEG_TURBO=1' \
212	'-DENABLE_WEBRTC=1' \
213	'-DUSE_PROPRIETARY_CODECS' \
214	'-DENABLE_BROWSER_CDMS' \
215	'-DENABLE_CONFIGURATION_POLICY' \
216	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
217	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
218	'-DENABLE_EGLIMAGE=1' \
219	'-DCLD_VERSION=1' \
220	'-DCLD_DATA_FROM_STATIC' \
221	'-DENABLE_PRINTING=1' \
222	'-DENABLE_MANAGED_USERS=1' \
223	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
224	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
225	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
226	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
227	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
228	'-DVIDEO_HOLE=1' \
229	'-DUSE_OPENSSL=1' \
230	'-DUSE_OPENSSL_CERTS=1' \
231	'-DANDROID' \
232	'-D__GNU_SOURCE=1' \
233	'-DUSE_STLPORT=1' \
234	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
235	'-DCHROME_BUILD_ID=""' \
236	'-DNDEBUG' \
237	'-DNVALGRIND' \
238	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
239
240
241# Include paths placed before CFLAGS/CPPFLAGS
242LOCAL_C_INCLUDES_Release := \
243	$(gyp_shared_intermediate_dir) \
244	$(LOCAL_PATH)/third_party/re2 \
245	$(LOCAL_PATH) \
246	$(PWD)/frameworks/wilhelm/include \
247	$(PWD)/bionic \
248	$(PWD)/external/stlport/stlport
249
250
251# Flags passed to only C++ (and not C) files.
252LOCAL_CPPFLAGS_Release := \
253	-fno-rtti \
254	-fno-threadsafe-statics \
255	-fvisibility-inlines-hidden \
256	-Wno-deprecated \
257	-Wno-abi \
258	-std=gnu++11 \
259	-Wno-narrowing \
260	-Wno-literal-suffix \
261	-Wno-non-virtual-dtor \
262	-Wno-sign-promo \
263	-Wno-non-virtual-dtor
264
265
266LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
267LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
268LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
269LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
270### Rules for final target.
271
272LOCAL_LDFLAGS_Debug := \
273	-Wl,-z,now \
274	-Wl,-z,relro \
275	-Wl,--fatal-warnings \
276	-Wl,-z,noexecstack \
277	-fPIC \
278	-Wl,-z,relro \
279	-Wl,-z,now \
280	-fuse-ld=gold \
281	-nostdlib \
282	-Wl,--no-undefined \
283	-Wl,--exclude-libs=ALL \
284	-Wl,--icf=safe \
285	-Wl,--warn-shared-textrel \
286	-Wl,-O1 \
287	-Wl,--as-needed
288
289
290LOCAL_LDFLAGS_Release := \
291	-Wl,-z,now \
292	-Wl,-z,relro \
293	-Wl,--fatal-warnings \
294	-Wl,-z,noexecstack \
295	-fPIC \
296	-Wl,-z,relro \
297	-Wl,-z,now \
298	-fuse-ld=gold \
299	-nostdlib \
300	-Wl,--no-undefined \
301	-Wl,--exclude-libs=ALL \
302	-Wl,--icf=safe \
303	-Wl,-O1 \
304	-Wl,--as-needed \
305	-Wl,--gc-sections \
306	-Wl,--warn-shared-textrel
307
308
309LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
310
311LOCAL_STATIC_LIBRARIES :=
312
313# Enable grouping to fix circular references
314LOCAL_GROUP_STATIC_LIBRARIES := true
315
316LOCAL_SHARED_LIBRARIES := \
317	libstlport \
318	libdl
319
320# Add target alias to "gyp_all_modules" target.
321.PHONY: gyp_all_modules
322gyp_all_modules: third_party_re2_re2_gyp
323
324# Alias gyp target name.
325.PHONY: re2
326re2: third_party_re2_re2_gyp
327
328include $(BUILD_STATIC_LIBRARY)
329