re2.target.linux-x86.mk revision 58537e28ecd584eab876aee8be7156509866d23a
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	--param=ssp-buffer-size=4 \
56	-fno-exceptions \
57	-fno-strict-aliasing \
58	-Wno-unused-parameter \
59	-Wno-missing-field-initializers \
60	-fvisibility=hidden \
61	-pipe \
62	-fPIC \
63	-Wno-format \
64	-m32 \
65	-mmmx \
66	-march=pentium4 \
67	-msse2 \
68	-mfpmath=sse \
69	-fuse-ld=gold \
70	-ffunction-sections \
71	-funwind-tables \
72	-g \
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-address \
81	-Wno-format-security \
82	-Wno-return-type \
83	-Wno-sequence-point \
84	-fno-stack-protector \
85	-Os \
86	-g \
87	-fomit-frame-pointer \
88	-fdata-sections \
89	-ffunction-sections
90
91MY_DEFS_Debug := \
92	'-DANGLE_DX11' \
93	'-DWTF_VECTOR_INITIAL_SIZE=16' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
97	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
98	'-DDISABLE_NACL' \
99	'-DCHROMIUM_BUILD' \
100	'-DUSE_LIBJPEG_TURBO=1' \
101	'-DUSE_PROPRIETARY_CODECS' \
102	'-DENABLE_CONFIGURATION_POLICY' \
103	'-DENABLE_GPU=1' \
104	'-DUSE_OPENSSL=1' \
105	'-DENABLE_EGLIMAGE=1' \
106	'-DCLD_VERSION=1' \
107	'-DANDROID' \
108	'-D__GNU_SOURCE=1' \
109	'-DUSE_STLPORT=1' \
110	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
111	'-DCHROME_BUILD_ID=""' \
112	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
113	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
114	'-D_DEBUG'
115
116
117# Include paths placed before CFLAGS/CPPFLAGS
118LOCAL_C_INCLUDES_Debug := \
119	$(LOCAL_PATH)/third_party/re2 \
120	$(LOCAL_PATH) \
121	$(PWD)/frameworks/wilhelm/include \
122	$(PWD)/bionic \
123	$(PWD)/external/stlport/stlport
124
125
126# Flags passed to only C++ (and not C) files.
127LOCAL_CPPFLAGS_Debug := \
128	-fno-rtti \
129	-fno-threadsafe-statics \
130	-fvisibility-inlines-hidden \
131	-Wno-deprecated \
132	-Wno-error=c++0x-compat \
133	-Wno-non-virtual-dtor \
134	-Wno-sign-promo \
135	-Wno-non-virtual-dtor
136
137
138# Flags passed to both C and C++ files.
139MY_CFLAGS_Release := \
140	--param=ssp-buffer-size=4 \
141	-fno-exceptions \
142	-fno-strict-aliasing \
143	-Wno-unused-parameter \
144	-Wno-missing-field-initializers \
145	-fvisibility=hidden \
146	-pipe \
147	-fPIC \
148	-Wno-format \
149	-m32 \
150	-mmmx \
151	-march=pentium4 \
152	-msse2 \
153	-mfpmath=sse \
154	-fuse-ld=gold \
155	-ffunction-sections \
156	-funwind-tables \
157	-g \
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-address \
166	-Wno-format-security \
167	-Wno-return-type \
168	-Wno-sequence-point \
169	-fno-stack-protector \
170	-Os \
171	-fno-ident \
172	-fdata-sections \
173	-ffunction-sections \
174	-fomit-frame-pointer \
175	-fno-unwind-tables \
176	-fno-asynchronous-unwind-tables
177
178MY_DEFS_Release := \
179	'-DANGLE_DX11' \
180	'-DWTF_VECTOR_INITIAL_SIZE=16' \
181	'-D_FILE_OFFSET_BITS=64' \
182	'-DNO_TCMALLOC' \
183	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
184	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
185	'-DDISABLE_NACL' \
186	'-DCHROMIUM_BUILD' \
187	'-DUSE_LIBJPEG_TURBO=1' \
188	'-DUSE_PROPRIETARY_CODECS' \
189	'-DENABLE_CONFIGURATION_POLICY' \
190	'-DENABLE_GPU=1' \
191	'-DUSE_OPENSSL=1' \
192	'-DENABLE_EGLIMAGE=1' \
193	'-DCLD_VERSION=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-error=c++0x-compat \
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))
228### Rules for final target.
229
230LOCAL_LDFLAGS_Debug := \
231	-Wl,-z,now \
232	-Wl,-z,relro \
233	-Wl,-z,noexecstack \
234	-fPIC \
235	-m32 \
236	-fuse-ld=gold \
237	-nostdlib \
238	-Wl,--no-undefined \
239	-Wl,--exclude-libs=ALL \
240	-Wl,--fatal-warnings \
241	-Wl,--gc-sections \
242	-Wl,--warn-shared-textrel \
243	-Wl,-O1 \
244	-Wl,--as-needed
245
246
247LOCAL_LDFLAGS_Release := \
248	-Wl,-z,now \
249	-Wl,-z,relro \
250	-Wl,-z,noexecstack \
251	-fPIC \
252	-m32 \
253	-fuse-ld=gold \
254	-nostdlib \
255	-Wl,--no-undefined \
256	-Wl,--exclude-libs=ALL \
257	-Wl,-O1 \
258	-Wl,--as-needed \
259	-Wl,--gc-sections \
260	-Wl,--fatal-warnings \
261	-Wl,--warn-shared-textrel
262
263
264LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
265
266LOCAL_STATIC_LIBRARIES :=
267
268# Enable grouping to fix circular references
269LOCAL_GROUP_STATIC_LIBRARIES := true
270
271LOCAL_SHARED_LIBRARIES := \
272	libstlport \
273	libdl
274
275# Add target alias to "gyp_all_modules" target.
276.PHONY: gyp_all_modules
277gyp_all_modules: third_party_re2_re2_gyp
278
279# Alias gyp target name.
280.PHONY: re2
281re2: third_party_re2_re2_gyp
282
283include $(BUILD_STATIC_LIBRARY)
284