re2.target.darwin-arm.mk revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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	'-DENABLE_NEW_GAMEPAD_API=1' \
102	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
103	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
104	'-DENABLE_EGLIMAGE=1' \
105	'-DCLD_VERSION=1' \
106	'-DENABLE_PRINTING=1' \
107	'-DENABLE_MANAGED_USERS=1' \
108	'-DUSE_OPENSSL=1' \
109	'-DANDROID' \
110	'-D__GNU_SOURCE=1' \
111	'-DUSE_STLPORT=1' \
112	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
113	'-DCHROME_BUILD_ID=""' \
114	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
115	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
116	'-D_DEBUG'
117
118
119# Include paths placed before CFLAGS/CPPFLAGS
120LOCAL_C_INCLUDES_Debug := \
121	$(LOCAL_PATH)/third_party/re2 \
122	$(LOCAL_PATH) \
123	$(PWD)/frameworks/wilhelm/include \
124	$(PWD)/bionic \
125	$(PWD)/external/stlport/stlport
126
127
128# Flags passed to only C++ (and not C) files.
129LOCAL_CPPFLAGS_Debug := \
130	-fno-rtti \
131	-fno-threadsafe-statics \
132	-fvisibility-inlines-hidden \
133	-Wno-deprecated \
134	-Wno-abi \
135	-Wno-non-virtual-dtor \
136	-Wno-sign-promo \
137	-Wno-non-virtual-dtor
138
139
140# Flags passed to both C and C++ files.
141MY_CFLAGS_Release := \
142	-fstack-protector \
143	--param=ssp-buffer-size=4 \
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	-fno-tree-sra \
153	-fuse-ld=gold \
154	-Wno-psabi \
155	-ffunction-sections \
156	-funwind-tables \
157	-g \
158	-fstack-protector \
159	-fno-short-enums \
160	-finline-limit=64 \
161	-Wa,--noexecstack \
162	-U_FORTIFY_SOURCE \
163	-Wno-extra \
164	-Wno-ignored-qualifiers \
165	-Wno-type-limits \
166	-Wno-unused-but-set-variable \
167	-Wno-address \
168	-Wno-format-security \
169	-Wno-return-type \
170	-Wno-sequence-point \
171	-Os \
172	-fno-ident \
173	-fdata-sections \
174	-ffunction-sections \
175	-fomit-frame-pointer \
176	-funwind-tables
177
178MY_DEFS_Release := \
179	'-DV8_DEPRECATION_WARNINGS' \
180	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
181	'-D_FILE_OFFSET_BITS=64' \
182	'-DNO_TCMALLOC' \
183	'-DDISABLE_NACL' \
184	'-DCHROMIUM_BUILD' \
185	'-DUSE_LIBJPEG_TURBO=1' \
186	'-DUSE_PROPRIETARY_CODECS' \
187	'-DENABLE_CONFIGURATION_POLICY' \
188	'-DENABLE_NEW_GAMEPAD_API=1' \
189	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
190	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
191	'-DENABLE_EGLIMAGE=1' \
192	'-DCLD_VERSION=1' \
193	'-DENABLE_PRINTING=1' \
194	'-DENABLE_MANAGED_USERS=1' \
195	'-DUSE_OPENSSL=1' \
196	'-DANDROID' \
197	'-D__GNU_SOURCE=1' \
198	'-DUSE_STLPORT=1' \
199	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
200	'-DCHROME_BUILD_ID=""' \
201	'-DNDEBUG' \
202	'-DNVALGRIND' \
203	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
204
205
206# Include paths placed before CFLAGS/CPPFLAGS
207LOCAL_C_INCLUDES_Release := \
208	$(LOCAL_PATH)/third_party/re2 \
209	$(LOCAL_PATH) \
210	$(PWD)/frameworks/wilhelm/include \
211	$(PWD)/bionic \
212	$(PWD)/external/stlport/stlport
213
214
215# Flags passed to only C++ (and not C) files.
216LOCAL_CPPFLAGS_Release := \
217	-fno-rtti \
218	-fno-threadsafe-statics \
219	-fvisibility-inlines-hidden \
220	-Wno-deprecated \
221	-Wno-abi \
222	-Wno-non-virtual-dtor \
223	-Wno-sign-promo \
224	-Wno-non-virtual-dtor
225
226
227LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
228LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
229LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
230LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
231### Rules for final target.
232
233LOCAL_LDFLAGS_Debug := \
234	-Wl,--fatal-warnings \
235	-Wl,-z,now \
236	-Wl,-z,relro \
237	-Wl,-z,noexecstack \
238	-fPIC \
239	-Wl,-z,relro \
240	-Wl,-z,now \
241	-fuse-ld=gold \
242	-nostdlib \
243	-Wl,--no-undefined \
244	-Wl,--exclude-libs=ALL \
245	-Wl,--icf=safe \
246	-Wl,--gc-sections \
247	-Wl,--warn-shared-textrel \
248	-Wl,-O1 \
249	-Wl,--as-needed
250
251
252LOCAL_LDFLAGS_Release := \
253	-Wl,--fatal-warnings \
254	-Wl,-z,now \
255	-Wl,-z,relro \
256	-Wl,-z,noexecstack \
257	-fPIC \
258	-Wl,-z,relro \
259	-Wl,-z,now \
260	-fuse-ld=gold \
261	-nostdlib \
262	-Wl,--no-undefined \
263	-Wl,--exclude-libs=ALL \
264	-Wl,--icf=safe \
265	-Wl,-O1 \
266	-Wl,--as-needed \
267	-Wl,--gc-sections \
268	-Wl,--warn-shared-textrel
269
270
271LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
272
273LOCAL_STATIC_LIBRARIES :=
274
275# Enable grouping to fix circular references
276LOCAL_GROUP_STATIC_LIBRARIES := true
277
278LOCAL_SHARED_LIBRARIES := \
279	libstlport \
280	libdl
281
282# Add target alias to "gyp_all_modules" target.
283.PHONY: gyp_all_modules
284gyp_all_modules: third_party_re2_re2_gyp
285
286# Alias gyp target name.
287.PHONY: re2
288re2: third_party_re2_re2_gyp
289
290include $(BUILD_STATIC_LIBRARY)
291