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