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