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