1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libevent_libevent_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_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/libevent/buffer.c \
26	third_party/libevent/evbuffer.c \
27	third_party/libevent/evdns.c \
28	third_party/libevent/event.c \
29	third_party/libevent/event_tagging.c \
30	third_party/libevent/evrpc.c \
31	third_party/libevent/evutil.c \
32	third_party/libevent/http.c \
33	third_party/libevent/log.c \
34	third_party/libevent/poll.c \
35	third_party/libevent/select.c \
36	third_party/libevent/signal.c \
37	third_party/libevent/strlcpy.c \
38	third_party/libevent/epoll.c
39
40
41# Flags passed to both C and C++ files.
42MY_CFLAGS_Debug := \
43	--param=ssp-buffer-size=4 \
44	-fno-exceptions \
45	-fno-strict-aliasing \
46	-Wno-unused-parameter \
47	-Wno-missing-field-initializers \
48	-fvisibility=hidden \
49	-pipe \
50	-fPIC \
51	-Wno-format \
52	-m32 \
53	-mmmx \
54	-march=pentium4 \
55	-msse2 \
56	-mfpmath=sse \
57	-fuse-ld=gold \
58	-ffunction-sections \
59	-funwind-tables \
60	-g \
61	-fno-short-enums \
62	-finline-limit=64 \
63	-Wa,--noexecstack \
64	-U_FORTIFY_SOURCE \
65	-Wno-extra \
66	-Wno-ignored-qualifiers \
67	-Wno-type-limits \
68	-Wno-address \
69	-Wno-format-security \
70	-Wno-return-type \
71	-Wno-sequence-point \
72	-fno-stack-protector \
73	-Os \
74	-g \
75	-fomit-frame-pointer \
76	-fdata-sections \
77	-ffunction-sections
78
79MY_DEFS_Debug := \
80	'-DANGLE_DX11' \
81	'-D_FILE_OFFSET_BITS=64' \
82	'-DNO_TCMALLOC' \
83	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
84	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
85	'-DDISABLE_NACL' \
86	'-DCHROMIUM_BUILD' \
87	'-DUSE_LIBJPEG_TURBO=1' \
88	'-DUSE_PROPRIETARY_CODECS' \
89	'-DENABLE_CONFIGURATION_POLICY' \
90	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
91	'-DTRACING_IS_OFFICIAL_BUILD=1' \
92	'-DENABLE_GPU=1' \
93	'-DUSE_OPENSSL=1' \
94	'-DENABLE_EGLIMAGE=1' \
95	'-DENABLE_PRINTING=1' \
96	'-DHAVE_CONFIG_H' \
97	'-DANDROID' \
98	'-D__GNU_SOURCE=1' \
99	'-DUSE_STLPORT=1' \
100	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
101	'-DCHROME_BUILD_ID=""' \
102	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
103	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
104	'-D_DEBUG'
105
106
107# Include paths placed before CFLAGS/CPPFLAGS
108LOCAL_C_INCLUDES_Debug := \
109	$(LOCAL_PATH)/third_party/libevent/android \
110	$(PWD)/frameworks/wilhelm/include \
111	$(PWD)/bionic \
112	$(PWD)/external/stlport/stlport
113
114
115# Flags passed to only C++ (and not C) files.
116LOCAL_CPPFLAGS_Debug := \
117	-fno-rtti \
118	-fno-threadsafe-statics \
119	-fvisibility-inlines-hidden \
120	-Wno-deprecated \
121	-Wno-error=c++0x-compat \
122	-Wno-non-virtual-dtor \
123	-Wno-sign-promo \
124	-Wno-non-virtual-dtor
125
126
127# Flags passed to both C and C++ files.
128MY_CFLAGS_Release := \
129	--param=ssp-buffer-size=4 \
130	-fno-exceptions \
131	-fno-strict-aliasing \
132	-Wno-unused-parameter \
133	-Wno-missing-field-initializers \
134	-fvisibility=hidden \
135	-pipe \
136	-fPIC \
137	-Wno-format \
138	-m32 \
139	-mmmx \
140	-march=pentium4 \
141	-msse2 \
142	-mfpmath=sse \
143	-fuse-ld=gold \
144	-ffunction-sections \
145	-funwind-tables \
146	-g \
147	-fno-short-enums \
148	-finline-limit=64 \
149	-Wa,--noexecstack \
150	-U_FORTIFY_SOURCE \
151	-Wno-extra \
152	-Wno-ignored-qualifiers \
153	-Wno-type-limits \
154	-Wno-address \
155	-Wno-format-security \
156	-Wno-return-type \
157	-Wno-sequence-point \
158	-fno-stack-protector \
159	-Os \
160	-fno-ident \
161	-fdata-sections \
162	-ffunction-sections \
163	-fomit-frame-pointer \
164	-fno-unwind-tables \
165	-fno-asynchronous-unwind-tables
166
167MY_DEFS_Release := \
168	'-DANGLE_DX11' \
169	'-D_FILE_OFFSET_BITS=64' \
170	'-DNO_TCMALLOC' \
171	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
172	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
173	'-DDISABLE_NACL' \
174	'-DCHROMIUM_BUILD' \
175	'-DUSE_LIBJPEG_TURBO=1' \
176	'-DUSE_PROPRIETARY_CODECS' \
177	'-DENABLE_CONFIGURATION_POLICY' \
178	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
179	'-DTRACING_IS_OFFICIAL_BUILD=1' \
180	'-DENABLE_GPU=1' \
181	'-DUSE_OPENSSL=1' \
182	'-DENABLE_EGLIMAGE=1' \
183	'-DENABLE_PRINTING=1' \
184	'-DHAVE_CONFIG_H' \
185	'-DANDROID' \
186	'-D__GNU_SOURCE=1' \
187	'-DUSE_STLPORT=1' \
188	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
189	'-DCHROME_BUILD_ID=""' \
190	'-DNDEBUG' \
191	'-DNVALGRIND' \
192	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
193
194
195# Include paths placed before CFLAGS/CPPFLAGS
196LOCAL_C_INCLUDES_Release := \
197	$(LOCAL_PATH)/third_party/libevent/android \
198	$(PWD)/frameworks/wilhelm/include \
199	$(PWD)/bionic \
200	$(PWD)/external/stlport/stlport
201
202
203# Flags passed to only C++ (and not C) files.
204LOCAL_CPPFLAGS_Release := \
205	-fno-rtti \
206	-fno-threadsafe-statics \
207	-fvisibility-inlines-hidden \
208	-Wno-deprecated \
209	-Wno-error=c++0x-compat \
210	-Wno-non-virtual-dtor \
211	-Wno-sign-promo \
212	-Wno-non-virtual-dtor
213
214
215LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
216LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
217LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
218### Rules for final target.
219
220LOCAL_LDFLAGS_Debug := \
221	-Wl,-z,now \
222	-Wl,-z,relro \
223	-Wl,-z,noexecstack \
224	-fPIC \
225	-m32 \
226	-fuse-ld=gold \
227	-nostdlib \
228	-Wl,--no-undefined \
229	-Wl,--exclude-libs=ALL \
230	-Wl,--fatal-warnings \
231	-Wl,--gc-sections \
232	-Wl,--warn-shared-textrel \
233	-Wl,-O1 \
234	-Wl,--as-needed
235
236
237LOCAL_LDFLAGS_Release := \
238	-Wl,-z,now \
239	-Wl,-z,relro \
240	-Wl,-z,noexecstack \
241	-fPIC \
242	-m32 \
243	-fuse-ld=gold \
244	-nostdlib \
245	-Wl,--no-undefined \
246	-Wl,--exclude-libs=ALL \
247	-Wl,-O1 \
248	-Wl,--as-needed \
249	-Wl,--gc-sections \
250	-Wl,--fatal-warnings \
251	-Wl,--warn-shared-textrel
252
253
254LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
255
256LOCAL_STATIC_LIBRARIES :=
257
258# Enable grouping to fix circular references
259LOCAL_GROUP_STATIC_LIBRARIES := true
260
261LOCAL_SHARED_LIBRARIES := \
262	libstlport \
263	libdl
264
265# Add target alias to "gyp_all_modules" target.
266.PHONY: gyp_all_modules
267gyp_all_modules: third_party_libevent_libevent_gyp
268
269# Alias gyp target name.
270.PHONY: libevent
271libevent: third_party_libevent_libevent_gyp
272
273include $(BUILD_STATIC_LIBRARY)
274