re2.target.darwin-arm.mk revision 68043e1e95eeb07d5cae7aca370b26518b0867d6
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-address \
80	-Wno-format-security \
81	-Wno-return-type \
82	-Wno-sequence-point \
83	-Os \
84	-g \
85	-fomit-frame-pointer \
86	-fdata-sections \
87	-ffunction-sections
88
89MY_DEFS_Debug := \
90	'-DANGLE_DX11' \
91	'-D_FILE_OFFSET_BITS=64' \
92	'-DNO_TCMALLOC' \
93	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
94	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
95	'-DDISABLE_NACL' \
96	'-DCHROMIUM_BUILD' \
97	'-DUSE_LIBJPEG_TURBO=1' \
98	'-DUSE_PROPRIETARY_CODECS' \
99	'-DENABLE_CONFIGURATION_POLICY' \
100	'-DENABLE_GPU=1' \
101	'-DUSE_OPENSSL=1' \
102	'-DENABLE_EGLIMAGE=1' \
103	'-DCLD_VERSION=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-abi \
130	-Wno-error=c++0x-compat \
131	-Wno-non-virtual-dtor \
132	-Wno-sign-promo \
133	-Wno-non-virtual-dtor
134
135
136# Flags passed to both C and C++ files.
137MY_CFLAGS_Release := \
138	-fstack-protector \
139	--param=ssp-buffer-size=4 \
140	-fno-exceptions \
141	-fno-strict-aliasing \
142	-Wno-unused-parameter \
143	-Wno-missing-field-initializers \
144	-fvisibility=hidden \
145	-pipe \
146	-fPIC \
147	-Wno-format \
148	-fno-tree-sra \
149	-fuse-ld=gold \
150	-Wno-psabi \
151	-ffunction-sections \
152	-funwind-tables \
153	-g \
154	-fstack-protector \
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	-Os \
167	-fno-ident \
168	-fdata-sections \
169	-ffunction-sections \
170	-fomit-frame-pointer
171
172MY_DEFS_Release := \
173	'-DANGLE_DX11' \
174	'-D_FILE_OFFSET_BITS=64' \
175	'-DNO_TCMALLOC' \
176	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
177	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
178	'-DDISABLE_NACL' \
179	'-DCHROMIUM_BUILD' \
180	'-DUSE_LIBJPEG_TURBO=1' \
181	'-DUSE_PROPRIETARY_CODECS' \
182	'-DENABLE_CONFIGURATION_POLICY' \
183	'-DENABLE_GPU=1' \
184	'-DUSE_OPENSSL=1' \
185	'-DENABLE_EGLIMAGE=1' \
186	'-DCLD_VERSION=1' \
187	'-DANDROID' \
188	'-D__GNU_SOURCE=1' \
189	'-DUSE_STLPORT=1' \
190	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
191	'-DCHROME_BUILD_ID=""' \
192	'-DNDEBUG' \
193	'-DNVALGRIND' \
194	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
195
196
197# Include paths placed before CFLAGS/CPPFLAGS
198LOCAL_C_INCLUDES_Release := \
199	$(LOCAL_PATH)/third_party/re2 \
200	$(LOCAL_PATH) \
201	$(PWD)/frameworks/wilhelm/include \
202	$(PWD)/bionic \
203	$(PWD)/external/stlport/stlport
204
205
206# Flags passed to only C++ (and not C) files.
207LOCAL_CPPFLAGS_Release := \
208	-fno-rtti \
209	-fno-threadsafe-statics \
210	-fvisibility-inlines-hidden \
211	-Wno-deprecated \
212	-Wno-abi \
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	-Wl,-z,relro \
230	-Wl,-z,now \
231	-fuse-ld=gold \
232	-nostdlib \
233	-Wl,--no-undefined \
234	-Wl,--exclude-libs=ALL \
235	-Wl,--icf=safe \
236	-Wl,--fatal-warnings \
237	-Wl,--gc-sections \
238	-Wl,--warn-shared-textrel \
239	-Wl,-O1 \
240	-Wl,--as-needed
241
242
243LOCAL_LDFLAGS_Release := \
244	-Wl,-z,now \
245	-Wl,-z,relro \
246	-Wl,-z,noexecstack \
247	-fPIC \
248	-Wl,-z,relro \
249	-Wl,-z,now \
250	-fuse-ld=gold \
251	-nostdlib \
252	-Wl,--no-undefined \
253	-Wl,--exclude-libs=ALL \
254	-Wl,--icf=safe \
255	-Wl,-O1 \
256	-Wl,--as-needed \
257	-Wl,--gc-sections \
258	-Wl,--fatal-warnings \
259	-Wl,--warn-shared-textrel
260
261
262LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
263
264LOCAL_STATIC_LIBRARIES :=
265
266# Enable grouping to fix circular references
267LOCAL_GROUP_STATIC_LIBRARIES := true
268
269LOCAL_SHARED_LIBRARIES := \
270	libstlport \
271	libdl
272
273# Add target alias to "gyp_all_modules" target.
274.PHONY: gyp_all_modules
275gyp_all_modules: third_party_re2_re2_gyp
276
277# Alias gyp target name.
278.PHONY: re2
279re2: third_party_re2_re2_gyp
280
281include $(BUILD_STATIC_LIBRARY)
282