re2.target.linux-arm.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	-fno-exceptions \
58	-fno-strict-aliasing \
59	-Wno-unused-parameter \
60	-Wno-missing-field-initializers \
61	-fvisibility=hidden \
62	-pipe \
63	-fPIC \
64	-Wno-format \
65	-fno-tree-sra \
66	-fuse-ld=gold \
67	-Wno-psabi \
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-abi \
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	-fno-exceptions \
144	-fno-strict-aliasing \
145	-Wno-unused-parameter \
146	-Wno-missing-field-initializers \
147	-fvisibility=hidden \
148	-pipe \
149	-fPIC \
150	-Wno-format \
151	-fno-tree-sra \
152	-fuse-ld=gold \
153	-Wno-psabi \
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-abi \
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	-Wl,-z,relro \
238	-Wl,-z,now \
239	-fuse-ld=gold \
240	-nostdlib \
241	-Wl,--no-undefined \
242	-Wl,--exclude-libs=ALL \
243	-Wl,--icf=safe \
244	-Wl,--gc-sections \
245	-Wl,--warn-shared-textrel \
246	-Wl,-O1 \
247	-Wl,--as-needed
248
249
250LOCAL_LDFLAGS_Release := \
251	-Wl,--fatal-warnings \
252	-Wl,-z,now \
253	-Wl,-z,relro \
254	-Wl,-z,noexecstack \
255	-fPIC \
256	-Wl,-z,relro \
257	-Wl,-z,now \
258	-fuse-ld=gold \
259	-nostdlib \
260	-Wl,--no-undefined \
261	-Wl,--exclude-libs=ALL \
262	-Wl,--icf=safe \
263	-Wl,-O1 \
264	-Wl,--as-needed \
265	-Wl,--gc-sections \
266	-Wl,--warn-shared-textrel
267
268
269LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
270
271LOCAL_STATIC_LIBRARIES :=
272
273# Enable grouping to fix circular references
274LOCAL_GROUP_STATIC_LIBRARIES := true
275
276LOCAL_SHARED_LIBRARIES := \
277	libstlport \
278	libdl
279
280# Add target alias to "gyp_all_modules" target.
281.PHONY: gyp_all_modules
282gyp_all_modules: third_party_re2_re2_gyp
283
284# Alias gyp target name.
285.PHONY: re2
286re2: third_party_re2_re2_gyp
287
288include $(BUILD_STATIC_LIBRARY)
289