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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/re2/re2/bitstate.cc \
27	third_party/re2/re2/compile.cc \
28	third_party/re2/re2/dfa.cc \
29	third_party/re2/re2/filtered_re2.cc \
30	third_party/re2/re2/mimics_pcre.cc \
31	third_party/re2/re2/nfa.cc \
32	third_party/re2/re2/onepass.cc \
33	third_party/re2/re2/parse.cc \
34	third_party/re2/re2/perl_groups.cc \
35	third_party/re2/re2/prefilter.cc \
36	third_party/re2/re2/prefilter_tree.cc \
37	third_party/re2/re2/prog.cc \
38	third_party/re2/re2/re2.cc \
39	third_party/re2/re2/regexp.cc \
40	third_party/re2/re2/set.cc \
41	third_party/re2/re2/simplify.cc \
42	third_party/re2/re2/tostring.cc \
43	third_party/re2/re2/unicode_casefold.cc \
44	third_party/re2/re2/unicode_groups.cc \
45	third_party/re2/util/arena.cc \
46	third_party/re2/util/hash.cc \
47	third_party/re2/util/rune.cc \
48	third_party/re2/util/stringpiece.cc \
49	third_party/re2/util/stringprintf.cc \
50	third_party/re2/util/strutil.cc
51
52
53# Flags passed to both C and C++ files.
54MY_CFLAGS_Debug := \
55	--param=ssp-buffer-size=4 \
56	-fno-strict-aliasing \
57	-Wno-unused-parameter \
58	-Wno-missing-field-initializers \
59	-fvisibility=hidden \
60	-pipe \
61	-fPIC \
62	-Wno-unused-local-typedefs \
63	-Wno-format \
64	-msse2 \
65	-mfpmath=sse \
66	-mmmx \
67	-m32 \
68	-ffunction-sections \
69	-funwind-tables \
70	-g \
71	-fno-short-enums \
72	-finline-limit=64 \
73	-Wa,--noexecstack \
74	-U_FORTIFY_SOURCE \
75	-Wno-extra \
76	-Wno-ignored-qualifiers \
77	-Wno-type-limits \
78	-Wno-unused-but-set-variable \
79	-fno-stack-protector \
80	-Wno-address \
81	-Wno-format-security \
82	-Wno-return-type \
83	-Wno-sequence-point \
84	-Os \
85	-g \
86	-gdwarf-4 \
87	-fdata-sections \
88	-ffunction-sections \
89	-fomit-frame-pointer \
90	-funwind-tables
91
92MY_DEFS_Debug := \
93	'-DV8_DEPRECATION_WARNINGS' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISABLE_NACL' \
97	'-DCHROMIUM_BUILD' \
98	'-DUSE_LIBJPEG_TURBO=1' \
99	'-DENABLE_WEBRTC=1' \
100	'-DUSE_PROPRIETARY_CODECS' \
101	'-DENABLE_BROWSER_CDMS' \
102	'-DENABLE_CONFIGURATION_POLICY' \
103	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
104	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
105	'-DENABLE_EGLIMAGE=1' \
106	'-DCLD_VERSION=1' \
107	'-DENABLE_PRINTING=1' \
108	'-DENABLE_MANAGED_USERS=1' \
109	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
110	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
111	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
112	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
113	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
114	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
115	'-DVIDEO_HOLE=1' \
116	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
117	'-DUSE_OPENSSL=1' \
118	'-DUSE_OPENSSL_CERTS=1' \
119	'-DANDROID' \
120	'-D__GNU_SOURCE=1' \
121	'-DUSE_STLPORT=1' \
122	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
123	'-DCHROME_BUILD_ID=""' \
124	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
125	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
126	'-D_DEBUG'
127
128
129# Include paths placed before CFLAGS/CPPFLAGS
130LOCAL_C_INCLUDES_Debug := \
131	$(gyp_shared_intermediate_dir) \
132	$(LOCAL_PATH)/third_party/re2 \
133	$(LOCAL_PATH) \
134	$(PWD)/frameworks/wilhelm/include \
135	$(PWD)/bionic \
136	$(PWD)/external/stlport/stlport
137
138
139# Flags passed to only C++ (and not C) files.
140LOCAL_CPPFLAGS_Debug := \
141	-fno-exceptions \
142	-fno-rtti \
143	-fno-threadsafe-statics \
144	-fvisibility-inlines-hidden \
145	-Wno-deprecated \
146	-std=gnu++11 \
147	-Wno-narrowing \
148	-Wno-literal-suffix \
149	-Wno-non-virtual-dtor \
150	-Wno-sign-promo \
151	-Wno-non-virtual-dtor
152
153
154# Flags passed to both C and C++ files.
155MY_CFLAGS_Release := \
156	--param=ssp-buffer-size=4 \
157	-fno-strict-aliasing \
158	-Wno-unused-parameter \
159	-Wno-missing-field-initializers \
160	-fvisibility=hidden \
161	-pipe \
162	-fPIC \
163	-Wno-unused-local-typedefs \
164	-Wno-format \
165	-msse2 \
166	-mfpmath=sse \
167	-mmmx \
168	-m32 \
169	-ffunction-sections \
170	-funwind-tables \
171	-g \
172	-fno-short-enums \
173	-finline-limit=64 \
174	-Wa,--noexecstack \
175	-U_FORTIFY_SOURCE \
176	-Wno-extra \
177	-Wno-ignored-qualifiers \
178	-Wno-type-limits \
179	-Wno-unused-but-set-variable \
180	-fno-stack-protector \
181	-Wno-address \
182	-Wno-format-security \
183	-Wno-return-type \
184	-Wno-sequence-point \
185	-Os \
186	-fno-ident \
187	-fdata-sections \
188	-ffunction-sections \
189	-fomit-frame-pointer \
190	-funwind-tables
191
192MY_DEFS_Release := \
193	'-DV8_DEPRECATION_WARNINGS' \
194	'-D_FILE_OFFSET_BITS=64' \
195	'-DNO_TCMALLOC' \
196	'-DDISABLE_NACL' \
197	'-DCHROMIUM_BUILD' \
198	'-DUSE_LIBJPEG_TURBO=1' \
199	'-DENABLE_WEBRTC=1' \
200	'-DUSE_PROPRIETARY_CODECS' \
201	'-DENABLE_BROWSER_CDMS' \
202	'-DENABLE_CONFIGURATION_POLICY' \
203	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
204	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
205	'-DENABLE_EGLIMAGE=1' \
206	'-DCLD_VERSION=1' \
207	'-DENABLE_PRINTING=1' \
208	'-DENABLE_MANAGED_USERS=1' \
209	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
210	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
211	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
212	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
213	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
214	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
215	'-DVIDEO_HOLE=1' \
216	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
217	'-DUSE_OPENSSL=1' \
218	'-DUSE_OPENSSL_CERTS=1' \
219	'-DANDROID' \
220	'-D__GNU_SOURCE=1' \
221	'-DUSE_STLPORT=1' \
222	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
223	'-DCHROME_BUILD_ID=""' \
224	'-DNDEBUG' \
225	'-DNVALGRIND' \
226	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
227
228
229# Include paths placed before CFLAGS/CPPFLAGS
230LOCAL_C_INCLUDES_Release := \
231	$(gyp_shared_intermediate_dir) \
232	$(LOCAL_PATH)/third_party/re2 \
233	$(LOCAL_PATH) \
234	$(PWD)/frameworks/wilhelm/include \
235	$(PWD)/bionic \
236	$(PWD)/external/stlport/stlport
237
238
239# Flags passed to only C++ (and not C) files.
240LOCAL_CPPFLAGS_Release := \
241	-fno-exceptions \
242	-fno-rtti \
243	-fno-threadsafe-statics \
244	-fvisibility-inlines-hidden \
245	-Wno-deprecated \
246	-std=gnu++11 \
247	-Wno-narrowing \
248	-Wno-literal-suffix \
249	-Wno-non-virtual-dtor \
250	-Wno-sign-promo \
251	-Wno-non-virtual-dtor
252
253
254LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
255LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
256LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
257LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
258### Rules for final target.
259
260LOCAL_SHARED_LIBRARIES := \
261	libstlport \
262	libdl
263
264# Add target alias to "gyp_all_modules" target.
265.PHONY: gyp_all_modules
266gyp_all_modules: third_party_re2_re2_gyp
267
268# Alias gyp target name.
269.PHONY: re2
270re2: third_party_re2_re2_gyp
271
272include $(BUILD_STATIC_LIBRARY)
273