• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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	-fstack-protector \
44	--param=ssp-buffer-size=4 \
45	-fno-exceptions \
46	-fno-strict-aliasing \
47	-Wno-unused-parameter \
48	-Wno-missing-field-initializers \
49	-fvisibility=hidden \
50	-pipe \
51	-fPIC \
52	-Wno-format \
53	-fno-tree-sra \
54	-fuse-ld=gold \
55	-Wno-psabi \
56	-ffunction-sections \
57	-funwind-tables \
58	-g \
59	-fstack-protector \
60	-fno-short-enums \
61	-finline-limit=64 \
62	-Wa,--noexecstack \
63	-U_FORTIFY_SOURCE \
64	-Wno-extra \
65	-Wno-ignored-qualifiers \
66	-Wno-type-limits \
67	-Wno-address \
68	-Wno-format-security \
69	-Wno-return-type \
70	-Wno-sequence-point \
71	-Os \
72	-g \
73	-fomit-frame-pointer \
74	-fdata-sections \
75	-ffunction-sections
76
77MY_DEFS_Debug := \
78	'-DV8_DEPRECATION_WARNINGS' \
79	'-D_FILE_OFFSET_BITS=64' \
80	'-DNO_TCMALLOC' \
81	'-DDISABLE_NACL' \
82	'-DCHROMIUM_BUILD' \
83	'-DUSE_LIBJPEG_TURBO=1' \
84	'-DUSE_PROPRIETARY_CODECS' \
85	'-DENABLE_CONFIGURATION_POLICY' \
86	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
87	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
88	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
89	'-DUSE_OPENSSL=1' \
90	'-DENABLE_EGLIMAGE=1' \
91	'-DCLD_VERSION=1' \
92	'-DENABLE_PRINTING=1' \
93	'-DENABLE_MANAGED_USERS=1' \
94	'-DHAVE_CONFIG_H' \
95	'-DANDROID' \
96	'-D__GNU_SOURCE=1' \
97	'-DUSE_STLPORT=1' \
98	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
99	'-DCHROME_BUILD_ID=""' \
100	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
101	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
102	'-D_DEBUG'
103
104
105# Include paths placed before CFLAGS/CPPFLAGS
106LOCAL_C_INCLUDES_Debug := \
107	$(LOCAL_PATH)/third_party/libevent/android \
108	$(PWD)/frameworks/wilhelm/include \
109	$(PWD)/bionic \
110	$(PWD)/external/stlport/stlport
111
112
113# Flags passed to only C++ (and not C) files.
114LOCAL_CPPFLAGS_Debug := \
115	-fno-rtti \
116	-fno-threadsafe-statics \
117	-fvisibility-inlines-hidden \
118	-Wno-deprecated \
119	-Wno-abi \
120	-Wno-error=c++0x-compat \
121	-Wno-non-virtual-dtor \
122	-Wno-sign-promo \
123	-Wno-non-virtual-dtor
124
125
126# Flags passed to both C and C++ files.
127MY_CFLAGS_Release := \
128	-fstack-protector \
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	-fno-tree-sra \
139	-fuse-ld=gold \
140	-Wno-psabi \
141	-ffunction-sections \
142	-funwind-tables \
143	-g \
144	-fstack-protector \
145	-fno-short-enums \
146	-finline-limit=64 \
147	-Wa,--noexecstack \
148	-U_FORTIFY_SOURCE \
149	-Wno-extra \
150	-Wno-ignored-qualifiers \
151	-Wno-type-limits \
152	-Wno-address \
153	-Wno-format-security \
154	-Wno-return-type \
155	-Wno-sequence-point \
156	-Os \
157	-fno-ident \
158	-fdata-sections \
159	-ffunction-sections \
160	-fomit-frame-pointer
161
162MY_DEFS_Release := \
163	'-DV8_DEPRECATION_WARNINGS' \
164	'-D_FILE_OFFSET_BITS=64' \
165	'-DNO_TCMALLOC' \
166	'-DDISABLE_NACL' \
167	'-DCHROMIUM_BUILD' \
168	'-DUSE_LIBJPEG_TURBO=1' \
169	'-DUSE_PROPRIETARY_CODECS' \
170	'-DENABLE_CONFIGURATION_POLICY' \
171	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
172	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
173	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
174	'-DUSE_OPENSSL=1' \
175	'-DENABLE_EGLIMAGE=1' \
176	'-DCLD_VERSION=1' \
177	'-DENABLE_PRINTING=1' \
178	'-DENABLE_MANAGED_USERS=1' \
179	'-DHAVE_CONFIG_H' \
180	'-DANDROID' \
181	'-D__GNU_SOURCE=1' \
182	'-DUSE_STLPORT=1' \
183	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
184	'-DCHROME_BUILD_ID=""' \
185	'-DNDEBUG' \
186	'-DNVALGRIND' \
187	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
188
189
190# Include paths placed before CFLAGS/CPPFLAGS
191LOCAL_C_INCLUDES_Release := \
192	$(LOCAL_PATH)/third_party/libevent/android \
193	$(PWD)/frameworks/wilhelm/include \
194	$(PWD)/bionic \
195	$(PWD)/external/stlport/stlport
196
197
198# Flags passed to only C++ (and not C) files.
199LOCAL_CPPFLAGS_Release := \
200	-fno-rtti \
201	-fno-threadsafe-statics \
202	-fvisibility-inlines-hidden \
203	-Wno-deprecated \
204	-Wno-abi \
205	-Wno-error=c++0x-compat \
206	-Wno-non-virtual-dtor \
207	-Wno-sign-promo \
208	-Wno-non-virtual-dtor
209
210
211LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
212LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
213LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
214### Rules for final target.
215
216LOCAL_LDFLAGS_Debug := \
217	-Wl,-z,now \
218	-Wl,-z,relro \
219	-Wl,-z,noexecstack \
220	-fPIC \
221	-Wl,-z,relro \
222	-Wl,-z,now \
223	-fuse-ld=gold \
224	-nostdlib \
225	-Wl,--no-undefined \
226	-Wl,--exclude-libs=ALL \
227	-Wl,--icf=safe \
228	-Wl,--fatal-warnings \
229	-Wl,--gc-sections \
230	-Wl,--warn-shared-textrel \
231	-Wl,-O1 \
232	-Wl,--as-needed
233
234
235LOCAL_LDFLAGS_Release := \
236	-Wl,-z,now \
237	-Wl,-z,relro \
238	-Wl,-z,noexecstack \
239	-fPIC \
240	-Wl,-z,relro \
241	-Wl,-z,now \
242	-fuse-ld=gold \
243	-nostdlib \
244	-Wl,--no-undefined \
245	-Wl,--exclude-libs=ALL \
246	-Wl,--icf=safe \
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