libevent.target.darwin-arm.mk revision 23730a6e56a168d1879203e4b3819bb36e3d8f1f
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-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	'-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-abi \
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	-fstack-protector \
130	--param=ssp-buffer-size=4 \
131	-fno-exceptions \
132	-fno-strict-aliasing \
133	-Wno-unused-parameter \
134	-Wno-missing-field-initializers \
135	-fvisibility=hidden \
136	-pipe \
137	-fPIC \
138	-Wno-format \
139	-fno-tree-sra \
140	-fuse-ld=gold \
141	-Wno-psabi \
142	-ffunction-sections \
143	-funwind-tables \
144	-g \
145	-fstack-protector \
146	-fno-short-enums \
147	-finline-limit=64 \
148	-Wa,--noexecstack \
149	-U_FORTIFY_SOURCE \
150	-Wno-extra \
151	-Wno-ignored-qualifiers \
152	-Wno-type-limits \
153	-Wno-unused-but-set-variable \
154	-Wno-address \
155	-Wno-format-security \
156	-Wno-return-type \
157	-Wno-sequence-point \
158	-Os \
159	-fno-ident \
160	-fdata-sections \
161	-ffunction-sections \
162	-fomit-frame-pointer \
163	-funwind-tables
164
165MY_DEFS_Release := \
166	'-DV8_DEPRECATION_WARNINGS' \
167	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
168	'-D_FILE_OFFSET_BITS=64' \
169	'-DNO_TCMALLOC' \
170	'-DDISABLE_NACL' \
171	'-DCHROMIUM_BUILD' \
172	'-DUSE_LIBJPEG_TURBO=1' \
173	'-DUSE_PROPRIETARY_CODECS' \
174	'-DENABLE_CONFIGURATION_POLICY' \
175	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
176	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
177	'-DENABLE_EGLIMAGE=1' \
178	'-DCLD_VERSION=1' \
179	'-DENABLE_PRINTING=1' \
180	'-DENABLE_MANAGED_USERS=1' \
181	'-DHAVE_CONFIG_H' \
182	'-DUSE_OPENSSL=1' \
183	'-DANDROID' \
184	'-D__GNU_SOURCE=1' \
185	'-DUSE_STLPORT=1' \
186	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
187	'-DCHROME_BUILD_ID=""' \
188	'-DNDEBUG' \
189	'-DNVALGRIND' \
190	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
191
192
193# Include paths placed before CFLAGS/CPPFLAGS
194LOCAL_C_INCLUDES_Release := \
195	$(LOCAL_PATH)/third_party/libevent/android \
196	$(PWD)/frameworks/wilhelm/include \
197	$(PWD)/bionic \
198	$(PWD)/external/stlport/stlport
199
200
201# Flags passed to only C++ (and not C) files.
202LOCAL_CPPFLAGS_Release := \
203	-fno-rtti \
204	-fno-threadsafe-statics \
205	-fvisibility-inlines-hidden \
206	-Wno-deprecated \
207	-Wno-abi \
208	-Wno-non-virtual-dtor \
209	-Wno-sign-promo \
210	-Wno-non-virtual-dtor
211
212
213LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
214LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
215LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
216LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
217### Rules for final target.
218
219LOCAL_LDFLAGS_Debug := \
220	-Wl,--fatal-warnings \
221	-Wl,-z,now \
222	-Wl,-z,relro \
223	-Wl,-z,noexecstack \
224	-fPIC \
225	-Wl,-z,relro \
226	-Wl,-z,now \
227	-fuse-ld=gold \
228	-nostdlib \
229	-Wl,--no-undefined \
230	-Wl,--exclude-libs=ALL \
231	-Wl,--icf=safe \
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	-Wl,-z,relro \
245	-Wl,-z,now \
246	-fuse-ld=gold \
247	-nostdlib \
248	-Wl,--no-undefined \
249	-Wl,--exclude-libs=ALL \
250	-Wl,--icf=safe \
251	-Wl,-O1 \
252	-Wl,--as-needed \
253	-Wl,--gc-sections \
254	-Wl,--warn-shared-textrel
255
256
257LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
258
259LOCAL_STATIC_LIBRARIES :=
260
261# Enable grouping to fix circular references
262LOCAL_GROUP_STATIC_LIBRARIES := true
263
264LOCAL_SHARED_LIBRARIES := \
265	libstlport \
266	libdl
267
268# Add target alias to "gyp_all_modules" target.
269.PHONY: gyp_all_modules
270gyp_all_modules: third_party_libevent_libevent_gyp
271
272# Alias gyp target name.
273.PHONY: libevent
274libevent: third_party_libevent_libevent_gyp
275
276include $(BUILD_STATIC_LIBRARY)
277