re2.target.darwin-arm64.mk revision 0de6073388f4e2780db8536178b129cd8f6ab386
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	-fomit-frame-pointer \
84	-fdata-sections \
85	-ffunction-sections \
86	-funwind-tables
87
88MY_DEFS_Debug := \
89	'-DV8_DEPRECATION_WARNINGS' \
90	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
91	'-D_FILE_OFFSET_BITS=64' \
92	'-DNO_TCMALLOC' \
93	'-DDISABLE_NACL' \
94	'-DCHROMIUM_BUILD' \
95	'-DUSE_LIBJPEG_TURBO=1' \
96	'-DENABLE_WEBRTC=1' \
97	'-DUSE_PROPRIETARY_CODECS' \
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	'-DVIDEO_HOLE=1' \
106	'-DUSE_OPENSSL=1' \
107	'-DUSE_OPENSSL_CERTS=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-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-unused-local-typedefs \
149	-Wno-format \
150	-ffunction-sections \
151	-funwind-tables \
152	-g \
153	-fno-short-enums \
154	-finline-limit=64 \
155	-Wa,--noexecstack \
156	-U_FORTIFY_SOURCE \
157	-Wno-extra \
158	-Wno-ignored-qualifiers \
159	-Wno-type-limits \
160	-Wno-unused-but-set-variable \
161	-Wno-address \
162	-Wno-format-security \
163	-Wno-return-type \
164	-Wno-sequence-point \
165	-Os \
166	-fno-ident \
167	-fdata-sections \
168	-ffunction-sections \
169	-fomit-frame-pointer \
170	-funwind-tables
171
172MY_DEFS_Release := \
173	'-DV8_DEPRECATION_WARNINGS' \
174	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
175	'-D_FILE_OFFSET_BITS=64' \
176	'-DNO_TCMALLOC' \
177	'-DDISABLE_NACL' \
178	'-DCHROMIUM_BUILD' \
179	'-DUSE_LIBJPEG_TURBO=1' \
180	'-DENABLE_WEBRTC=1' \
181	'-DUSE_PROPRIETARY_CODECS' \
182	'-DENABLE_CONFIGURATION_POLICY' \
183	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
184	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
185	'-DENABLE_EGLIMAGE=1' \
186	'-DCLD_VERSION=1' \
187	'-DENABLE_PRINTING=1' \
188	'-DENABLE_MANAGED_USERS=1' \
189	'-DVIDEO_HOLE=1' \
190	'-DUSE_OPENSSL=1' \
191	'-DUSE_OPENSSL_CERTS=1' \
192	'-DANDROID' \
193	'-D__GNU_SOURCE=1' \
194	'-DUSE_STLPORT=1' \
195	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
196	'-DCHROME_BUILD_ID=""' \
197	'-DNDEBUG' \
198	'-DNVALGRIND' \
199	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
200
201
202# Include paths placed before CFLAGS/CPPFLAGS
203LOCAL_C_INCLUDES_Release := \
204	$(LOCAL_PATH)/third_party/re2 \
205	$(LOCAL_PATH) \
206	$(PWD)/frameworks/wilhelm/include \
207	$(PWD)/bionic \
208	$(PWD)/external/stlport/stlport
209
210
211# Flags passed to only C++ (and not C) files.
212LOCAL_CPPFLAGS_Release := \
213	-fno-rtti \
214	-fno-threadsafe-statics \
215	-fvisibility-inlines-hidden \
216	-Wno-deprecated \
217	-Wno-non-virtual-dtor \
218	-Wno-sign-promo \
219	-Wno-non-virtual-dtor
220
221
222LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
223LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
224LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
225LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
226### Rules for final target.
227
228LOCAL_LDFLAGS_Debug := \
229	-Wl,-z,now \
230	-Wl,-z,relro \
231	-Wl,--fatal-warnings \
232	-Wl,-z,noexecstack \
233	-fPIC \
234	-nostdlib \
235	-Wl,--no-undefined \
236	-Wl,--exclude-libs=ALL \
237	-Wl,--warn-shared-textrel \
238	-Wl,-O1 \
239	-Wl,--as-needed
240
241
242LOCAL_LDFLAGS_Release := \
243	-Wl,-z,now \
244	-Wl,-z,relro \
245	-Wl,--fatal-warnings \
246	-Wl,-z,noexecstack \
247	-fPIC \
248	-nostdlib \
249	-Wl,--no-undefined \
250	-Wl,--exclude-libs=ALL \
251	-Wl,-O1 \
252	-Wl,--as-needed \
253	-Wl,--gc-sections \
254	-Wl,--warn-shared-textrel
255
256
257LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
258
259LOCAL_STATIC_LIBRARIES :=
260
261# Enable grouping to fix circular references
262LOCAL_GROUP_STATIC_LIBRARIES := true
263
264LOCAL_SHARED_LIBRARIES := \
265	libstlport \
266	libdl
267
268# Add target alias to "gyp_all_modules" target.
269.PHONY: gyp_all_modules
270gyp_all_modules: third_party_re2_re2_gyp
271
272# Alias gyp target name.
273.PHONY: re2
274re2: third_party_re2_re2_gyp
275
276include $(BUILD_STATIC_LIBRARY)
277