usrsctplib.target.linux-arm.mk revision 5f1c94371a64b3196d4be9466099bb892df9b88e
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_usrsctp_usrsctplib_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/usrsctp/usrsctplib/netinet/sctp_asconf.c \
27	third_party/usrsctp/usrsctplib/netinet/sctp_auth.c \
28	third_party/usrsctp/usrsctplib/netinet/sctp_bsd_addr.c \
29	third_party/usrsctp/usrsctplib/netinet/sctp_callout.c \
30	third_party/usrsctp/usrsctplib/netinet/sctp_cc_functions.c \
31	third_party/usrsctp/usrsctplib/netinet/sctp_crc32.c \
32	third_party/usrsctp/usrsctplib/netinet/sctp_indata.c \
33	third_party/usrsctp/usrsctplib/netinet/sctp_input.c \
34	third_party/usrsctp/usrsctplib/netinet/sctp_output.c \
35	third_party/usrsctp/usrsctplib/netinet/sctp_pcb.c \
36	third_party/usrsctp/usrsctplib/netinet/sctp_peeloff.c \
37	third_party/usrsctp/usrsctplib/netinet/sctp_sha1.c \
38	third_party/usrsctp/usrsctplib/netinet/sctp_ss_functions.c \
39	third_party/usrsctp/usrsctplib/netinet/sctp_sysctl.c \
40	third_party/usrsctp/usrsctplib/netinet/sctp_timer.c \
41	third_party/usrsctp/usrsctplib/netinet/sctp_userspace.c \
42	third_party/usrsctp/usrsctplib/netinet/sctp_usrreq.c \
43	third_party/usrsctp/usrsctplib/netinet/sctputil.c \
44	third_party/usrsctp/usrsctplib/netinet6/sctp6_usrreq.c \
45	third_party/usrsctp/usrsctplib/user_environment.c \
46	third_party/usrsctp/usrsctplib/user_mbuf.c \
47	third_party/usrsctp/usrsctplib/user_recv_thread.c \
48	third_party/usrsctp/usrsctplib/user_sctp_timer_iterate.c \
49	third_party/usrsctp/usrsctplib/user_socket.c
50
51
52# Flags passed to both C and C++ files.
53MY_CFLAGS_Debug := \
54	-fstack-protector \
55	--param=ssp-buffer-size=4 \
56	-fno-exceptions \
57	-fno-strict-aliasing \
58	-Wno-unused-parameter \
59	-Wno-missing-field-initializers \
60	-fvisibility=hidden \
61	-pipe \
62	-fPIC \
63	-Wno-unused-local-typedefs \
64	-w \
65	-Wno-format \
66	-fno-tree-sra \
67	-fno-partial-inlining \
68	-fno-early-inlining \
69	-fno-tree-copy-prop \
70	-fno-tree-loop-optimize \
71	-fno-move-loop-invariants \
72	-fno-caller-saves \
73	-Wno-psabi \
74	-ffunction-sections \
75	-funwind-tables \
76	-g \
77	-fstack-protector \
78	-fno-short-enums \
79	-finline-limit=64 \
80	-Wa,--noexecstack \
81	-U_FORTIFY_SOURCE \
82	-Wno-extra \
83	-Wno-ignored-qualifiers \
84	-Wno-type-limits \
85	-Wno-unused-but-set-variable \
86	-Wno-address \
87	-Wno-format-security \
88	-Wno-return-type \
89	-Wno-sequence-point \
90	-Os \
91	-g \
92	-fdata-sections \
93	-ffunction-sections \
94	-fomit-frame-pointer \
95	-funwind-tables
96
97MY_DEFS_Debug := \
98	'-DSCTP_PROCESS_LEVEL_LOCKS' \
99	'-DSCTP_SIMPLE_ALLOCATOR' \
100	'-D__Userspace__' \
101	'-DV8_DEPRECATION_WARNINGS' \
102	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
103	'-D_FILE_OFFSET_BITS=64' \
104	'-DNO_TCMALLOC' \
105	'-DDISABLE_NACL' \
106	'-DSCTP_USE_OPENSSL_SHA1' \
107	'-DCHROMIUM_BUILD' \
108	'-DUSE_LIBJPEG_TURBO=1' \
109	'-DENABLE_WEBRTC=1' \
110	'-DUSE_PROPRIETARY_CODECS' \
111	'-DENABLE_BROWSER_CDMS' \
112	'-DENABLE_CONFIGURATION_POLICY' \
113	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
114	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
115	'-DENABLE_EGLIMAGE=1' \
116	'-DCLD_VERSION=1' \
117	'-DENABLE_PRINTING=1' \
118	'-DENABLE_MANAGED_USERS=1' \
119	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
120	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
121	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
122	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
123	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
124	'-DVIDEO_HOLE=1' \
125	'-D__Userspace_os_Linux' \
126	'-DNON_WINDOWS_DEFINE' \
127	'-DUSE_OPENSSL=1' \
128	'-DUSE_OPENSSL_CERTS=1' \
129	'-DANDROID' \
130	'-D__GNU_SOURCE=1' \
131	'-DUSE_STLPORT=1' \
132	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
133	'-DCHROME_BUILD_ID=""' \
134	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
135	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
136	'-D_DEBUG'
137
138
139# Include paths placed before CFLAGS/CPPFLAGS
140LOCAL_C_INCLUDES_Debug := \
141	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib \
142	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \
143	$(gyp_shared_intermediate_dir) \
144	$(LOCAL_PATH)/third_party/boringssl/src/include \
145	$(PWD)/frameworks/wilhelm/include \
146	$(PWD)/bionic \
147	$(PWD)/external/stlport/stlport
148
149
150# Flags passed to only C++ (and not C) files.
151LOCAL_CPPFLAGS_Debug := \
152	-fno-rtti \
153	-fno-threadsafe-statics \
154	-fvisibility-inlines-hidden \
155	-Wno-deprecated \
156	-Wno-abi \
157	-std=gnu++11 \
158	-Wno-narrowing \
159	-Wno-literal-suffix \
160	-Wno-non-virtual-dtor \
161	-Wno-sign-promo \
162	-Wno-non-virtual-dtor
163
164
165# Flags passed to both C and C++ files.
166MY_CFLAGS_Release := \
167	-fstack-protector \
168	--param=ssp-buffer-size=4 \
169	-fno-exceptions \
170	-fno-strict-aliasing \
171	-Wno-unused-parameter \
172	-Wno-missing-field-initializers \
173	-fvisibility=hidden \
174	-pipe \
175	-fPIC \
176	-Wno-unused-local-typedefs \
177	-w \
178	-Wno-format \
179	-fno-tree-sra \
180	-fno-partial-inlining \
181	-fno-early-inlining \
182	-fno-tree-copy-prop \
183	-fno-tree-loop-optimize \
184	-fno-move-loop-invariants \
185	-fno-caller-saves \
186	-Wno-psabi \
187	-ffunction-sections \
188	-funwind-tables \
189	-g \
190	-fstack-protector \
191	-fno-short-enums \
192	-finline-limit=64 \
193	-Wa,--noexecstack \
194	-U_FORTIFY_SOURCE \
195	-Wno-extra \
196	-Wno-ignored-qualifiers \
197	-Wno-type-limits \
198	-Wno-unused-but-set-variable \
199	-Wno-address \
200	-Wno-format-security \
201	-Wno-return-type \
202	-Wno-sequence-point \
203	-Os \
204	-fno-ident \
205	-fdata-sections \
206	-ffunction-sections \
207	-fomit-frame-pointer \
208	-funwind-tables
209
210MY_DEFS_Release := \
211	'-DSCTP_PROCESS_LEVEL_LOCKS' \
212	'-DSCTP_SIMPLE_ALLOCATOR' \
213	'-D__Userspace__' \
214	'-DV8_DEPRECATION_WARNINGS' \
215	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
216	'-D_FILE_OFFSET_BITS=64' \
217	'-DNO_TCMALLOC' \
218	'-DDISABLE_NACL' \
219	'-DSCTP_USE_OPENSSL_SHA1' \
220	'-DCHROMIUM_BUILD' \
221	'-DUSE_LIBJPEG_TURBO=1' \
222	'-DENABLE_WEBRTC=1' \
223	'-DUSE_PROPRIETARY_CODECS' \
224	'-DENABLE_BROWSER_CDMS' \
225	'-DENABLE_CONFIGURATION_POLICY' \
226	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
227	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
228	'-DENABLE_EGLIMAGE=1' \
229	'-DCLD_VERSION=1' \
230	'-DENABLE_PRINTING=1' \
231	'-DENABLE_MANAGED_USERS=1' \
232	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
233	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
234	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
235	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
236	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
237	'-DVIDEO_HOLE=1' \
238	'-D__Userspace_os_Linux' \
239	'-DNON_WINDOWS_DEFINE' \
240	'-DUSE_OPENSSL=1' \
241	'-DUSE_OPENSSL_CERTS=1' \
242	'-DANDROID' \
243	'-D__GNU_SOURCE=1' \
244	'-DUSE_STLPORT=1' \
245	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
246	'-DCHROME_BUILD_ID=""' \
247	'-DNDEBUG' \
248	'-DNVALGRIND' \
249	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
250
251
252# Include paths placed before CFLAGS/CPPFLAGS
253LOCAL_C_INCLUDES_Release := \
254	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib \
255	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \
256	$(gyp_shared_intermediate_dir) \
257	$(LOCAL_PATH)/third_party/boringssl/src/include \
258	$(PWD)/frameworks/wilhelm/include \
259	$(PWD)/bionic \
260	$(PWD)/external/stlport/stlport
261
262
263# Flags passed to only C++ (and not C) files.
264LOCAL_CPPFLAGS_Release := \
265	-fno-rtti \
266	-fno-threadsafe-statics \
267	-fvisibility-inlines-hidden \
268	-Wno-deprecated \
269	-Wno-abi \
270	-std=gnu++11 \
271	-Wno-narrowing \
272	-Wno-literal-suffix \
273	-Wno-non-virtual-dtor \
274	-Wno-sign-promo \
275	-Wno-non-virtual-dtor
276
277
278LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
279LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
280LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
281LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
282### Rules for final target.
283
284LOCAL_LDFLAGS_Debug := \
285	-Wl,-z,now \
286	-Wl,-z,relro \
287	-Wl,--fatal-warnings \
288	-Wl,-z,noexecstack \
289	-fPIC \
290	-Wl,-z,relro \
291	-Wl,-z,now \
292	-fuse-ld=gold \
293	-nostdlib \
294	-Wl,--no-undefined \
295	-Wl,--exclude-libs=ALL \
296	-Wl,--icf=safe \
297	-Wl,--warn-shared-textrel \
298	-Wl,-O1 \
299	-Wl,--as-needed
300
301
302LOCAL_LDFLAGS_Release := \
303	-Wl,-z,now \
304	-Wl,-z,relro \
305	-Wl,--fatal-warnings \
306	-Wl,-z,noexecstack \
307	-fPIC \
308	-Wl,-z,relro \
309	-Wl,-z,now \
310	-fuse-ld=gold \
311	-nostdlib \
312	-Wl,--no-undefined \
313	-Wl,--exclude-libs=ALL \
314	-Wl,--icf=safe \
315	-Wl,-O1 \
316	-Wl,--as-needed \
317	-Wl,--gc-sections \
318	-Wl,--warn-shared-textrel
319
320
321LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
322
323LOCAL_STATIC_LIBRARIES :=
324
325# Enable grouping to fix circular references
326LOCAL_GROUP_STATIC_LIBRARIES := true
327
328LOCAL_SHARED_LIBRARIES := \
329	libstlport \
330	libdl
331
332# Add target alias to "gyp_all_modules" target.
333.PHONY: gyp_all_modules
334gyp_all_modules: third_party_usrsctp_usrsctplib_gyp
335
336# Alias gyp target name.
337.PHONY: usrsctplib
338usrsctplib: third_party_usrsctp_usrsctplib_gyp
339
340include $(BUILD_STATIC_LIBRARY)
341