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