libevent.target.linux-x86_64.mk revision effb81e5f8246d0db0270817048dc992db66e9fb
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-unused-local-typedefs \
53	-Wno-format \
54	-m64 \
55	-march=x86-64 \
56	-fuse-ld=gold \
57	-ffunction-sections \
58	-funwind-tables \
59	-g \
60	-fstack-protector \
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-unused-but-set-variable \
69	-Wno-address \
70	-Wno-format-security \
71	-Wno-return-type \
72	-Wno-sequence-point \
73	-Os \
74	-g \
75	-fomit-frame-pointer \
76	-fdata-sections \
77	-ffunction-sections \
78	-funwind-tables
79
80MY_DEFS_Debug := \
81	'-DV8_DEPRECATION_WARNINGS' \
82	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
83	'-D_FILE_OFFSET_BITS=64' \
84	'-DNO_TCMALLOC' \
85	'-DDISABLE_NACL' \
86	'-DCHROMIUM_BUILD' \
87	'-DUSE_LIBJPEG_TURBO=1' \
88	'-DUSE_PROPRIETARY_CODECS' \
89	'-DENABLE_CONFIGURATION_POLICY' \
90	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
91	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
92	'-DENABLE_EGLIMAGE=1' \
93	'-DCLD_VERSION=1' \
94	'-DENABLE_PRINTING=1' \
95	'-DENABLE_MANAGED_USERS=1' \
96	'-DHAVE_CONFIG_H' \
97	'-DUSE_OPENSSL=1' \
98	'-DUSE_OPENSSL_CERTS=1' \
99	'-DANDROID' \
100	'-D__GNU_SOURCE=1' \
101	'-DUSE_STLPORT=1' \
102	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
103	'-DCHROME_BUILD_ID=""' \
104	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
105	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
106	'-D_DEBUG'
107
108
109# Include paths placed before CFLAGS/CPPFLAGS
110LOCAL_C_INCLUDES_Debug := \
111	$(LOCAL_PATH)/third_party/libevent/android \
112	$(PWD)/frameworks/wilhelm/include \
113	$(PWD)/bionic \
114	$(PWD)/external/stlport/stlport
115
116
117# Flags passed to only C++ (and not C) files.
118LOCAL_CPPFLAGS_Debug := \
119	-fno-rtti \
120	-fno-threadsafe-statics \
121	-fvisibility-inlines-hidden \
122	-Wno-deprecated \
123	-Wno-non-virtual-dtor \
124	-Wno-sign-promo \
125	-Wno-non-virtual-dtor
126
127
128# Flags passed to both C and C++ files.
129MY_CFLAGS_Release := \
130	-fstack-protector \
131	--param=ssp-buffer-size=4 \
132	-fno-exceptions \
133	-fno-strict-aliasing \
134	-Wno-unused-parameter \
135	-Wno-missing-field-initializers \
136	-fvisibility=hidden \
137	-pipe \
138	-fPIC \
139	-Wno-unused-local-typedefs \
140	-Wno-format \
141	-m64 \
142	-march=x86-64 \
143	-fuse-ld=gold \
144	-ffunction-sections \
145	-funwind-tables \
146	-g \
147	-fstack-protector \
148	-fno-short-enums \
149	-finline-limit=64 \
150	-Wa,--noexecstack \
151	-U_FORTIFY_SOURCE \
152	-Wno-extra \
153	-Wno-ignored-qualifiers \
154	-Wno-type-limits \
155	-Wno-unused-but-set-variable \
156	-Wno-address \
157	-Wno-format-security \
158	-Wno-return-type \
159	-Wno-sequence-point \
160	-Os \
161	-fno-ident \
162	-fdata-sections \
163	-ffunction-sections \
164	-fomit-frame-pointer \
165	-funwind-tables
166
167MY_DEFS_Release := \
168	'-DV8_DEPRECATION_WARNINGS' \
169	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
170	'-D_FILE_OFFSET_BITS=64' \
171	'-DNO_TCMALLOC' \
172	'-DDISABLE_NACL' \
173	'-DCHROMIUM_BUILD' \
174	'-DUSE_LIBJPEG_TURBO=1' \
175	'-DUSE_PROPRIETARY_CODECS' \
176	'-DENABLE_CONFIGURATION_POLICY' \
177	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
178	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
179	'-DENABLE_EGLIMAGE=1' \
180	'-DCLD_VERSION=1' \
181	'-DENABLE_PRINTING=1' \
182	'-DENABLE_MANAGED_USERS=1' \
183	'-DHAVE_CONFIG_H' \
184	'-DUSE_OPENSSL=1' \
185	'-DUSE_OPENSSL_CERTS=1' \
186	'-DANDROID' \
187	'-D__GNU_SOURCE=1' \
188	'-DUSE_STLPORT=1' \
189	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
190	'-DCHROME_BUILD_ID=""' \
191	'-DNDEBUG' \
192	'-DNVALGRIND' \
193	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
194
195
196# Include paths placed before CFLAGS/CPPFLAGS
197LOCAL_C_INCLUDES_Release := \
198	$(LOCAL_PATH)/third_party/libevent/android \
199	$(PWD)/frameworks/wilhelm/include \
200	$(PWD)/bionic \
201	$(PWD)/external/stlport/stlport
202
203
204# Flags passed to only C++ (and not C) files.
205LOCAL_CPPFLAGS_Release := \
206	-fno-rtti \
207	-fno-threadsafe-statics \
208	-fvisibility-inlines-hidden \
209	-Wno-deprecated \
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))
218LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
219### Rules for final target.
220
221LOCAL_LDFLAGS_Debug := \
222	-Wl,--fatal-warnings \
223	-Wl,-z,now \
224	-Wl,-z,relro \
225	-Wl,-z,noexecstack \
226	-fPIC \
227	-m64 \
228	-fuse-ld=gold \
229	-nostdlib \
230	-Wl,--no-undefined \
231	-Wl,--exclude-libs=ALL \
232	-Wl,--gc-sections \
233	-Wl,--warn-shared-textrel \
234	-Wl,-O1 \
235	-Wl,--as-needed
236
237
238LOCAL_LDFLAGS_Release := \
239	-Wl,--fatal-warnings \
240	-Wl,-z,now \
241	-Wl,-z,relro \
242	-Wl,-z,noexecstack \
243	-fPIC \
244	-m64 \
245	-fuse-ld=gold \
246	-nostdlib \
247	-Wl,--no-undefined \
248	-Wl,--exclude-libs=ALL \
249	-Wl,-O1 \
250	-Wl,--as-needed \
251	-Wl,--gc-sections \
252	-Wl,--warn-shared-textrel
253
254
255LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
256
257LOCAL_STATIC_LIBRARIES :=
258
259# Enable grouping to fix circular references
260LOCAL_GROUP_STATIC_LIBRARIES := true
261
262LOCAL_SHARED_LIBRARIES := \
263	libstlport \
264	libdl
265
266# Add target alias to "gyp_all_modules" target.
267.PHONY: gyp_all_modules
268gyp_all_modules: third_party_libevent_libevent_gyp
269
270# Alias gyp target name.
271.PHONY: libevent
272libevent: third_party_libevent_libevent_gyp
273
274include $(BUILD_STATIC_LIBRARY)
275