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