re2.target.linux-mips.mk revision 23730a6e56a168d1879203e4b3819bb36e3d8f1f
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
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
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	-fstack-protector \
56	--param=ssp-buffer-size=4 \
57	 \
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-format \
66	-EL \
67	-mhard-float \
68	-ffunction-sections \
69	-funwind-tables \
70	-g \
71	-fstack-protector \
72	-fno-short-enums \
73	-finline-limit=64 \
74	-Wa,--noexecstack \
75	-U_FORTIFY_SOURCE \
76	-Wno-extra \
77	-Wno-ignored-qualifiers \
78	-Wno-type-limits \
79	-Wno-unused-but-set-variable \
80	-Wno-address \
81	-Wno-format-security \
82	-Wno-return-type \
83	-Wno-sequence-point \
84	-Os \
85	-g \
86	-fomit-frame-pointer \
87	-fdata-sections \
88	-ffunction-sections \
89	-funwind-tables
90
91MY_DEFS_Debug := \
92	'-DV8_DEPRECATION_WARNINGS' \
93	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISABLE_NACL' \
97	'-DCHROMIUM_BUILD' \
98	'-DUSE_LIBJPEG_TURBO=1' \
99	'-DUSE_PROPRIETARY_CODECS' \
100	'-DENABLE_CONFIGURATION_POLICY' \
101	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
102	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
103	'-DENABLE_EGLIMAGE=1' \
104	'-DCLD_VERSION=1' \
105	'-DENABLE_PRINTING=1' \
106	'-DENABLE_MANAGED_USERS=1' \
107	'-DUSE_OPENSSL=1' \
108	'-DANDROID' \
109	'-D__GNU_SOURCE=1' \
110	'-DUSE_STLPORT=1' \
111	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
112	'-DCHROME_BUILD_ID=""' \
113	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
114	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
115	'-D_DEBUG'
116
117
118# Include paths placed before CFLAGS/CPPFLAGS
119LOCAL_C_INCLUDES_Debug := \
120	$(LOCAL_PATH)/third_party/re2 \
121	$(LOCAL_PATH) \
122	$(PWD)/frameworks/wilhelm/include \
123	$(PWD)/bionic \
124	$(PWD)/external/stlport/stlport
125
126
127# Flags passed to only C++ (and not C) files.
128LOCAL_CPPFLAGS_Debug := \
129	-fno-rtti \
130	-fno-threadsafe-statics \
131	-fvisibility-inlines-hidden \
132	-Wno-deprecated \
133	-Wno-uninitialized \
134	-Wno-non-virtual-dtor \
135	-Wno-sign-promo \
136	-Wno-non-virtual-dtor
137
138
139# Flags passed to both C and C++ files.
140MY_CFLAGS_Release := \
141	-fstack-protector \
142	--param=ssp-buffer-size=4 \
143	 \
144	-fno-exceptions \
145	-fno-strict-aliasing \
146	-Wno-unused-parameter \
147	-Wno-missing-field-initializers \
148	-fvisibility=hidden \
149	-pipe \
150	-fPIC \
151	-Wno-format \
152	-EL \
153	-mhard-float \
154	-ffunction-sections \
155	-funwind-tables \
156	-g \
157	-fstack-protector \
158	-fno-short-enums \
159	-finline-limit=64 \
160	-Wa,--noexecstack \
161	-U_FORTIFY_SOURCE \
162	-Wno-extra \
163	-Wno-ignored-qualifiers \
164	-Wno-type-limits \
165	-Wno-unused-but-set-variable \
166	-Wno-address \
167	-Wno-format-security \
168	-Wno-return-type \
169	-Wno-sequence-point \
170	-Os \
171	-fno-ident \
172	-fdata-sections \
173	-ffunction-sections \
174	-fomit-frame-pointer \
175	-funwind-tables
176
177MY_DEFS_Release := \
178	'-DV8_DEPRECATION_WARNINGS' \
179	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
180	'-D_FILE_OFFSET_BITS=64' \
181	'-DNO_TCMALLOC' \
182	'-DDISABLE_NACL' \
183	'-DCHROMIUM_BUILD' \
184	'-DUSE_LIBJPEG_TURBO=1' \
185	'-DUSE_PROPRIETARY_CODECS' \
186	'-DENABLE_CONFIGURATION_POLICY' \
187	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
188	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
189	'-DENABLE_EGLIMAGE=1' \
190	'-DCLD_VERSION=1' \
191	'-DENABLE_PRINTING=1' \
192	'-DENABLE_MANAGED_USERS=1' \
193	'-DUSE_OPENSSL=1' \
194	'-DANDROID' \
195	'-D__GNU_SOURCE=1' \
196	'-DUSE_STLPORT=1' \
197	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
198	'-DCHROME_BUILD_ID=""' \
199	'-DNDEBUG' \
200	'-DNVALGRIND' \
201	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
202
203
204# Include paths placed before CFLAGS/CPPFLAGS
205LOCAL_C_INCLUDES_Release := \
206	$(LOCAL_PATH)/third_party/re2 \
207	$(LOCAL_PATH) \
208	$(PWD)/frameworks/wilhelm/include \
209	$(PWD)/bionic \
210	$(PWD)/external/stlport/stlport
211
212
213# Flags passed to only C++ (and not C) files.
214LOCAL_CPPFLAGS_Release := \
215	-fno-rtti \
216	-fno-threadsafe-statics \
217	-fvisibility-inlines-hidden \
218	-Wno-deprecated \
219	-Wno-uninitialized \
220	-Wno-non-virtual-dtor \
221	-Wno-sign-promo \
222	-Wno-non-virtual-dtor
223
224
225LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
226LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
227LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
228LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
229### Rules for final target.
230
231LOCAL_LDFLAGS_Debug := \
232	-Wl,--fatal-warnings \
233	-Wl,-z,now \
234	-Wl,-z,relro \
235	-Wl,-z,noexecstack \
236	-fPIC \
237	-EL \
238	-Wl,--no-keep-memory \
239	-nostdlib \
240	-Wl,--no-undefined \
241	-Wl,--exclude-libs=ALL \
242	-Wl,--gc-sections \
243	-Wl,--warn-shared-textrel \
244	-Wl,-O1 \
245	-Wl,--as-needed
246
247
248LOCAL_LDFLAGS_Release := \
249	-Wl,--fatal-warnings \
250	-Wl,-z,now \
251	-Wl,-z,relro \
252	-Wl,-z,noexecstack \
253	-fPIC \
254	-EL \
255	-Wl,--no-keep-memory \
256	-nostdlib \
257	-Wl,--no-undefined \
258	-Wl,--exclude-libs=ALL \
259	-Wl,-O1 \
260	-Wl,--as-needed \
261	-Wl,--gc-sections \
262	-Wl,--warn-shared-textrel
263
264
265LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
266
267LOCAL_STATIC_LIBRARIES :=
268
269# Enable grouping to fix circular references
270LOCAL_GROUP_STATIC_LIBRARIES := true
271
272LOCAL_SHARED_LIBRARIES := \
273	libstlport \
274	libdl
275
276# Add target alias to "gyp_all_modules" target.
277.PHONY: gyp_all_modules
278gyp_all_modules: third_party_re2_re2_gyp
279
280# Alias gyp target name.
281.PHONY: re2
282re2: third_party_re2_re2_gyp
283
284include $(BUILD_STATIC_LIBRARY)
285