libevent.target.darwin-mips.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	 \
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-unused-but-set-variable \
68	-Wno-address \
69	-Wno-format-security \
70	-Wno-return-type \
71	-Wno-sequence-point \
72	-Os \
73	-g \
74	-fomit-frame-pointer \
75	-fdata-sections \
76	-ffunction-sections \
77	-funwind-tables
78
79MY_DEFS_Debug := \
80	'-DV8_DEPRECATION_WARNINGS' \
81	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
82	'-D_FILE_OFFSET_BITS=64' \
83	'-DNO_TCMALLOC' \
84	'-DDISABLE_NACL' \
85	'-DCHROMIUM_BUILD' \
86	'-DUSE_LIBJPEG_TURBO=1' \
87	'-DUSE_PROPRIETARY_CODECS' \
88	'-DENABLE_CONFIGURATION_POLICY' \
89	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
90	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
91	'-DENABLE_EGLIMAGE=1' \
92	'-DCLD_VERSION=1' \
93	'-DENABLE_PRINTING=1' \
94	'-DENABLE_MANAGED_USERS=1' \
95	'-DHAVE_CONFIG_H' \
96	'-DUSE_OPENSSL=1' \
97	'-DUSE_OPENSSL_CERTS=1' \
98	'-DANDROID' \
99	'-D__GNU_SOURCE=1' \
100	'-DUSE_STLPORT=1' \
101	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
102	'-DCHROME_BUILD_ID=""' \
103	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
104	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
105	'-D_DEBUG'
106
107
108# Include paths placed before CFLAGS/CPPFLAGS
109LOCAL_C_INCLUDES_Debug := \
110	$(LOCAL_PATH)/third_party/libevent/android \
111	$(PWD)/frameworks/wilhelm/include \
112	$(PWD)/bionic \
113	$(PWD)/external/stlport/stlport
114
115
116# Flags passed to only C++ (and not C) files.
117LOCAL_CPPFLAGS_Debug := \
118	-fno-rtti \
119	-fno-threadsafe-statics \
120	-fvisibility-inlines-hidden \
121	-Wno-deprecated \
122	-Wno-uninitialized \
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	 \
133	-fno-exceptions \
134	-fno-strict-aliasing \
135	-Wno-unused-parameter \
136	-Wno-missing-field-initializers \
137	-fvisibility=hidden \
138	-pipe \
139	-fPIC \
140	-Wno-format \
141	-EL \
142	-mhard-float \
143	-ffunction-sections \
144	-funwind-tables \
145	-g \
146	-fstack-protector \
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-unused-but-set-variable \
155	-Wno-address \
156	-Wno-format-security \
157	-Wno-return-type \
158	-Wno-sequence-point \
159	-Os \
160	-fno-ident \
161	-fdata-sections \
162	-ffunction-sections \
163	-fomit-frame-pointer \
164	-funwind-tables
165
166MY_DEFS_Release := \
167	'-DV8_DEPRECATION_WARNINGS' \
168	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
169	'-D_FILE_OFFSET_BITS=64' \
170	'-DNO_TCMALLOC' \
171	'-DDISABLE_NACL' \
172	'-DCHROMIUM_BUILD' \
173	'-DUSE_LIBJPEG_TURBO=1' \
174	'-DUSE_PROPRIETARY_CODECS' \
175	'-DENABLE_CONFIGURATION_POLICY' \
176	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
177	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
178	'-DENABLE_EGLIMAGE=1' \
179	'-DCLD_VERSION=1' \
180	'-DENABLE_PRINTING=1' \
181	'-DENABLE_MANAGED_USERS=1' \
182	'-DHAVE_CONFIG_H' \
183	'-DUSE_OPENSSL=1' \
184	'-DUSE_OPENSSL_CERTS=1' \
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-uninitialized \
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	-EL \
228	-Wl,--no-keep-memory \
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	-EL \
245	-Wl,--no-keep-memory \
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