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