re2.target.linux-x86_64.mk revision 116680a4aac90f2aa7413d9095a592090648e557
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	-m64 \
68	-march=x86-64 \
69	-ffunction-sections \
70	-funwind-tables \
71	-g \
72	-fstack-protector \
73	-fno-short-enums \
74	-finline-limit=64 \
75	-Wa,--noexecstack \
76	-U_FORTIFY_SOURCE \
77	-Wno-extra \
78	-Wno-ignored-qualifiers \
79	-Wno-type-limits \
80	-Wno-unused-but-set-variable \
81	-Wno-address \
82	-Wno-format-security \
83	-Wno-return-type \
84	-Wno-sequence-point \
85	-Os \
86	-g \
87	-fdata-sections \
88	-ffunction-sections \
89	-fomit-frame-pointer \
90	-funwind-tables
91
92MY_DEFS_Debug := \
93	'-DV8_DEPRECATION_WARNINGS' \
94	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
95	'-D_FILE_OFFSET_BITS=64' \
96	'-DNO_TCMALLOC' \
97	'-DDISABLE_NACL' \
98	'-DCHROMIUM_BUILD' \
99	'-DUSE_LIBJPEG_TURBO=1' \
100	'-DENABLE_WEBRTC=1' \
101	'-DUSE_PROPRIETARY_CODECS' \
102	'-DENABLE_BROWSER_CDMS' \
103	'-DENABLE_CONFIGURATION_POLICY' \
104	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
105	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
106	'-DENABLE_EGLIMAGE=1' \
107	'-DCLD_VERSION=1' \
108	'-DCLD_DATA_FROM_STATIC' \
109	'-DENABLE_PRINTING=1' \
110	'-DENABLE_MANAGED_USERS=1' \
111	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
112	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
113	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
114	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
115	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
116	'-DVIDEO_HOLE=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-rtti \
142	-fno-threadsafe-statics \
143	-fvisibility-inlines-hidden \
144	-Wno-deprecated \
145	-std=gnu++11 \
146	-Wno-narrowing \
147	-Wno-literal-suffix \
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	-m64 \
167	-march=x86-64 \
168	-ffunction-sections \
169	-funwind-tables \
170	-g \
171	-fstack-protector \
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	-Wno-address \
181	-Wno-format-security \
182	-Wno-return-type \
183	-Wno-sequence-point \
184	-Os \
185	-fno-ident \
186	-fdata-sections \
187	-ffunction-sections \
188	-fomit-frame-pointer \
189	-funwind-tables
190
191MY_DEFS_Release := \
192	'-DV8_DEPRECATION_WARNINGS' \
193	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
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	'-DCLD_DATA_FROM_STATIC' \
208	'-DENABLE_PRINTING=1' \
209	'-DENABLE_MANAGED_USERS=1' \
210	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
211	'-DDATA_REDUCTION_DEV_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	'-DUSE_OPENSSL=1' \
217	'-DUSE_OPENSSL_CERTS=1' \
218	'-DANDROID' \
219	'-D__GNU_SOURCE=1' \
220	'-DUSE_STLPORT=1' \
221	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
222	'-DCHROME_BUILD_ID=""' \
223	'-DNDEBUG' \
224	'-DNVALGRIND' \
225	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
226
227
228# Include paths placed before CFLAGS/CPPFLAGS
229LOCAL_C_INCLUDES_Release := \
230	$(gyp_shared_intermediate_dir) \
231	$(LOCAL_PATH)/third_party/re2 \
232	$(LOCAL_PATH) \
233	$(PWD)/frameworks/wilhelm/include \
234	$(PWD)/bionic \
235	$(PWD)/external/stlport/stlport
236
237
238# Flags passed to only C++ (and not C) files.
239LOCAL_CPPFLAGS_Release := \
240	-fno-rtti \
241	-fno-threadsafe-statics \
242	-fvisibility-inlines-hidden \
243	-Wno-deprecated \
244	-std=gnu++11 \
245	-Wno-narrowing \
246	-Wno-literal-suffix \
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	-m64 \
265	-fuse-ld=gold \
266	-nostdlib \
267	-Wl,--no-undefined \
268	-Wl,--exclude-libs=ALL \
269	-Wl,--warn-shared-textrel \
270	-Wl,-O1 \
271	-Wl,--as-needed
272
273
274LOCAL_LDFLAGS_Release := \
275	-Wl,-z,now \
276	-Wl,-z,relro \
277	-Wl,--fatal-warnings \
278	-Wl,-z,noexecstack \
279	-fPIC \
280	-m64 \
281	-fuse-ld=gold \
282	-nostdlib \
283	-Wl,--no-undefined \
284	-Wl,--exclude-libs=ALL \
285	-Wl,-O1 \
286	-Wl,--as-needed \
287	-Wl,--gc-sections \
288	-Wl,--warn-shared-textrel
289
290
291LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
292
293LOCAL_STATIC_LIBRARIES :=
294
295# Enable grouping to fix circular references
296LOCAL_GROUP_STATIC_LIBRARIES := true
297
298LOCAL_SHARED_LIBRARIES := \
299	libstlport \
300	libdl
301
302# Add target alias to "gyp_all_modules" target.
303.PHONY: gyp_all_modules
304gyp_all_modules: third_party_re2_re2_gyp
305
306# Alias gyp target name.
307.PHONY: re2
308re2: third_party_re2_re2_gyp
309
310include $(BUILD_STATIC_LIBRARY)
311