re2.target.darwin-arm64.mk revision 5f1c94371a64b3196d4be9466099bb892df9b88e
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
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/re2/re2/bitstate.cc \
28	third_party/re2/re2/compile.cc \
29	third_party/re2/re2/dfa.cc \
30	third_party/re2/re2/filtered_re2.cc \
31	third_party/re2/re2/mimics_pcre.cc \
32	third_party/re2/re2/nfa.cc \
33	third_party/re2/re2/onepass.cc \
34	third_party/re2/re2/parse.cc \
35	third_party/re2/re2/perl_groups.cc \
36	third_party/re2/re2/prefilter.cc \
37	third_party/re2/re2/prefilter_tree.cc \
38	third_party/re2/re2/prog.cc \
39	third_party/re2/re2/re2.cc \
40	third_party/re2/re2/regexp.cc \
41	third_party/re2/re2/set.cc \
42	third_party/re2/re2/simplify.cc \
43	third_party/re2/re2/tostring.cc \
44	third_party/re2/re2/unicode_casefold.cc \
45	third_party/re2/re2/unicode_groups.cc \
46	third_party/re2/util/arena.cc \
47	third_party/re2/util/hash.cc \
48	third_party/re2/util/rune.cc \
49	third_party/re2/util/stringpiece.cc \
50	third_party/re2/util/stringprintf.cc \
51	third_party/re2/util/strutil.cc
52
53
54# Flags passed to both C and C++ files.
55MY_CFLAGS_Debug := \
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-unused-local-typedefs \
65	-Wno-format \
66	-ffunction-sections \
67	-funwind-tables \
68	-g \
69	-fno-short-enums \
70	-finline-limit=64 \
71	-Wa,--noexecstack \
72	-U_FORTIFY_SOURCE \
73	-Wno-extra \
74	-Wno-ignored-qualifiers \
75	-Wno-type-limits \
76	-Wno-unused-but-set-variable \
77	-Wno-address \
78	-Wno-format-security \
79	-Wno-return-type \
80	-Wno-sequence-point \
81	-Os \
82	-g \
83	-fdata-sections \
84	-ffunction-sections \
85	-funwind-tables
86
87MY_DEFS_Debug := \
88	'-DV8_DEPRECATION_WARNINGS' \
89	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
90	'-D_FILE_OFFSET_BITS=64' \
91	'-DNO_TCMALLOC' \
92	'-DDISABLE_NACL' \
93	'-DCHROMIUM_BUILD' \
94	'-DUSE_LIBJPEG_TURBO=1' \
95	'-DENABLE_WEBRTC=1' \
96	'-DUSE_PROPRIETARY_CODECS' \
97	'-DENABLE_BROWSER_CDMS' \
98	'-DENABLE_CONFIGURATION_POLICY' \
99	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
100	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
101	'-DENABLE_EGLIMAGE=1' \
102	'-DCLD_VERSION=1' \
103	'-DENABLE_PRINTING=1' \
104	'-DENABLE_MANAGED_USERS=1' \
105	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
106	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
107	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
108	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
109	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
110	'-DVIDEO_HOLE=1' \
111	'-DUSE_OPENSSL=1' \
112	'-DUSE_OPENSSL_CERTS=1' \
113	'-DANDROID' \
114	'-D__GNU_SOURCE=1' \
115	'-DUSE_STLPORT=1' \
116	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
117	'-DCHROME_BUILD_ID=""' \
118	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
119	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
120	'-D_DEBUG'
121
122
123# Include paths placed before CFLAGS/CPPFLAGS
124LOCAL_C_INCLUDES_Debug := \
125	$(gyp_shared_intermediate_dir) \
126	$(LOCAL_PATH)/third_party/re2 \
127	$(LOCAL_PATH) \
128	$(PWD)/frameworks/wilhelm/include \
129	$(PWD)/bionic \
130	$(PWD)/external/stlport/stlport
131
132
133# Flags passed to only C++ (and not C) files.
134LOCAL_CPPFLAGS_Debug := \
135	-fno-rtti \
136	-fno-threadsafe-statics \
137	-fvisibility-inlines-hidden \
138	-Wno-deprecated \
139	-std=gnu++11 \
140	-Wno-narrowing \
141	-Wno-literal-suffix \
142	-Wno-non-virtual-dtor \
143	-Wno-sign-promo \
144	-Wno-non-virtual-dtor
145
146
147# Flags passed to both C and C++ files.
148MY_CFLAGS_Release := \
149	--param=ssp-buffer-size=4 \
150	-fno-exceptions \
151	-fno-strict-aliasing \
152	-Wno-unused-parameter \
153	-Wno-missing-field-initializers \
154	-fvisibility=hidden \
155	-pipe \
156	-fPIC \
157	-Wno-unused-local-typedefs \
158	-Wno-format \
159	-ffunction-sections \
160	-funwind-tables \
161	-g \
162	-fno-short-enums \
163	-finline-limit=64 \
164	-Wa,--noexecstack \
165	-U_FORTIFY_SOURCE \
166	-Wno-extra \
167	-Wno-ignored-qualifiers \
168	-Wno-type-limits \
169	-Wno-unused-but-set-variable \
170	-Wno-address \
171	-Wno-format-security \
172	-Wno-return-type \
173	-Wno-sequence-point \
174	-Os \
175	-fno-ident \
176	-fdata-sections \
177	-ffunction-sections \
178	-funwind-tables
179
180MY_DEFS_Release := \
181	'-DV8_DEPRECATION_WARNINGS' \
182	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
183	'-D_FILE_OFFSET_BITS=64' \
184	'-DNO_TCMALLOC' \
185	'-DDISABLE_NACL' \
186	'-DCHROMIUM_BUILD' \
187	'-DUSE_LIBJPEG_TURBO=1' \
188	'-DENABLE_WEBRTC=1' \
189	'-DUSE_PROPRIETARY_CODECS' \
190	'-DENABLE_BROWSER_CDMS' \
191	'-DENABLE_CONFIGURATION_POLICY' \
192	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
193	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
194	'-DENABLE_EGLIMAGE=1' \
195	'-DCLD_VERSION=1' \
196	'-DENABLE_PRINTING=1' \
197	'-DENABLE_MANAGED_USERS=1' \
198	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
199	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
200	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
201	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
202	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
203	'-DVIDEO_HOLE=1' \
204	'-DUSE_OPENSSL=1' \
205	'-DUSE_OPENSSL_CERTS=1' \
206	'-DANDROID' \
207	'-D__GNU_SOURCE=1' \
208	'-DUSE_STLPORT=1' \
209	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
210	'-DCHROME_BUILD_ID=""' \
211	'-DNDEBUG' \
212	'-DNVALGRIND' \
213	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
214
215
216# Include paths placed before CFLAGS/CPPFLAGS
217LOCAL_C_INCLUDES_Release := \
218	$(gyp_shared_intermediate_dir) \
219	$(LOCAL_PATH)/third_party/re2 \
220	$(LOCAL_PATH) \
221	$(PWD)/frameworks/wilhelm/include \
222	$(PWD)/bionic \
223	$(PWD)/external/stlport/stlport
224
225
226# Flags passed to only C++ (and not C) files.
227LOCAL_CPPFLAGS_Release := \
228	-fno-rtti \
229	-fno-threadsafe-statics \
230	-fvisibility-inlines-hidden \
231	-Wno-deprecated \
232	-std=gnu++11 \
233	-Wno-narrowing \
234	-Wno-literal-suffix \
235	-Wno-non-virtual-dtor \
236	-Wno-sign-promo \
237	-Wno-non-virtual-dtor
238
239
240LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
241LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
242LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
243LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
244### Rules for final target.
245
246LOCAL_LDFLAGS_Debug := \
247	-Wl,-z,now \
248	-Wl,-z,relro \
249	-Wl,--fatal-warnings \
250	-Wl,-z,noexecstack \
251	-fPIC \
252	-nostdlib \
253	-Wl,--no-undefined \
254	-Wl,--exclude-libs=ALL \
255	-Wl,--warn-shared-textrel \
256	-Wl,-O1 \
257	-Wl,--as-needed
258
259
260LOCAL_LDFLAGS_Release := \
261	-Wl,-z,now \
262	-Wl,-z,relro \
263	-Wl,--fatal-warnings \
264	-Wl,-z,noexecstack \
265	-fPIC \
266	-nostdlib \
267	-Wl,--no-undefined \
268	-Wl,--exclude-libs=ALL \
269	-Wl,-O1 \
270	-Wl,--as-needed \
271	-Wl,--gc-sections \
272	-Wl,--warn-shared-textrel
273
274
275LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
276
277LOCAL_STATIC_LIBRARIES :=
278
279# Enable grouping to fix circular references
280LOCAL_GROUP_STATIC_LIBRARIES := true
281
282LOCAL_SHARED_LIBRARIES := \
283	libstlport \
284	libdl
285
286# Add target alias to "gyp_all_modules" target.
287.PHONY: gyp_all_modules
288gyp_all_modules: third_party_re2_re2_gyp
289
290# Alias gyp target name.
291.PHONY: re2
292re2: third_party_re2_re2_gyp
293
294include $(BUILD_STATIC_LIBRARY)
295