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