• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
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/usrsctp/usrsctplib/netinet/sctp_asconf.c \
26	third_party/usrsctp/usrsctplib/netinet/sctp_auth.c \
27	third_party/usrsctp/usrsctplib/netinet/sctp_bsd_addr.c \
28	third_party/usrsctp/usrsctplib/netinet/sctp_callout.c \
29	third_party/usrsctp/usrsctplib/netinet/sctp_cc_functions.c \
30	third_party/usrsctp/usrsctplib/netinet/sctp_crc32.c \
31	third_party/usrsctp/usrsctplib/netinet/sctp_indata.c \
32	third_party/usrsctp/usrsctplib/netinet/sctp_input.c \
33	third_party/usrsctp/usrsctplib/netinet/sctp_output.c \
34	third_party/usrsctp/usrsctplib/netinet/sctp_pcb.c \
35	third_party/usrsctp/usrsctplib/netinet/sctp_peeloff.c \
36	third_party/usrsctp/usrsctplib/netinet/sctp_sha1.c \
37	third_party/usrsctp/usrsctplib/netinet/sctp_ss_functions.c \
38	third_party/usrsctp/usrsctplib/netinet/sctp_sysctl.c \
39	third_party/usrsctp/usrsctplib/netinet/sctp_timer.c \
40	third_party/usrsctp/usrsctplib/netinet/sctp_userspace.c \
41	third_party/usrsctp/usrsctplib/netinet/sctp_usrreq.c \
42	third_party/usrsctp/usrsctplib/netinet/sctputil.c \
43	third_party/usrsctp/usrsctplib/netinet6/sctp6_usrreq.c \
44	third_party/usrsctp/usrsctplib/user_environment.c \
45	third_party/usrsctp/usrsctplib/user_mbuf.c \
46	third_party/usrsctp/usrsctplib/user_recv_thread.c \
47	third_party/usrsctp/usrsctplib/user_sctp_timer_iterate.c \
48	third_party/usrsctp/usrsctplib/user_socket.c
49
50
51# Flags passed to both C and C++ files.
52MY_CFLAGS_Debug := \
53	-fstack-protector \
54	--param=ssp-buffer-size=4 \
55	-fno-strict-aliasing \
56	-Wno-unused-parameter \
57	-Wno-missing-field-initializers \
58	-fvisibility=hidden \
59	-pipe \
60	-fPIC \
61	-Wno-unused-local-typedefs \
62	-w \
63	-Wno-format \
64	-fno-tree-sra \
65	-fno-caller-saves \
66	-Wno-psabi \
67	-fno-partial-inlining \
68	-fno-early-inlining \
69	-fno-tree-copy-prop \
70	-fno-tree-loop-optimize \
71	-fno-move-loop-invariants \
72	-ffunction-sections \
73	-funwind-tables \
74	-g \
75	-fstack-protector \
76	-fno-short-enums \
77	-finline-limit=64 \
78	-Wa,--noexecstack \
79	-U_FORTIFY_SOURCE \
80	-Wno-extra \
81	-Wno-ignored-qualifiers \
82	-Wno-type-limits \
83	-Wno-unused-but-set-variable \
84	-Wno-address \
85	-Wno-format-security \
86	-Wno-return-type \
87	-Wno-sequence-point \
88	-Os \
89	-g \
90	-gdwarf-4 \
91	-fdata-sections \
92	-ffunction-sections \
93	-fomit-frame-pointer \
94	-funwind-tables
95
96MY_DEFS_Debug := \
97	'-DSCTP_PROCESS_LEVEL_LOCKS' \
98	'-DSCTP_SIMPLE_ALLOCATOR' \
99	'-D__Userspace__' \
100	'-DV8_DEPRECATION_WARNINGS' \
101	'-D_FILE_OFFSET_BITS=64' \
102	'-DNO_TCMALLOC' \
103	'-DDISABLE_NACL' \
104	'-DSCTP_USE_OPENSSL_SHA1' \
105	'-DCHROMIUM_BUILD' \
106	'-DUSE_LIBJPEG_TURBO=1' \
107	'-DENABLE_WEBRTC=1' \
108	'-DUSE_PROPRIETARY_CODECS' \
109	'-DENABLE_BROWSER_CDMS' \
110	'-DENABLE_CONFIGURATION_POLICY' \
111	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
112	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
113	'-DENABLE_EGLIMAGE=1' \
114	'-DCLD_VERSION=1' \
115	'-DENABLE_PRINTING=1' \
116	'-DENABLE_MANAGED_USERS=1' \
117	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
118	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
119	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
120	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
121	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
122	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
123	'-DVIDEO_HOLE=1' \
124	'-DENABLE_LOAD_COMPLETION_HACKS=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-exceptions \
153	-fno-rtti \
154	-fno-threadsafe-statics \
155	-fvisibility-inlines-hidden \
156	-Wno-deprecated \
157	-Wno-abi \
158	-std=gnu++11 \
159	-Wno-narrowing \
160	-Wno-literal-suffix \
161	-Wno-non-virtual-dtor \
162	-Wno-sign-promo \
163	-Wno-non-virtual-dtor
164
165
166# Flags passed to both C and C++ files.
167MY_CFLAGS_Release := \
168	-fstack-protector \
169	--param=ssp-buffer-size=4 \
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-caller-saves \
181	-Wno-psabi \
182	-fno-partial-inlining \
183	-fno-early-inlining \
184	-fno-tree-copy-prop \
185	-fno-tree-loop-optimize \
186	-fno-move-loop-invariants \
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	'-D_FILE_OFFSET_BITS=64' \
216	'-DNO_TCMALLOC' \
217	'-DDISABLE_NACL' \
218	'-DSCTP_USE_OPENSSL_SHA1' \
219	'-DCHROMIUM_BUILD' \
220	'-DUSE_LIBJPEG_TURBO=1' \
221	'-DENABLE_WEBRTC=1' \
222	'-DUSE_PROPRIETARY_CODECS' \
223	'-DENABLE_BROWSER_CDMS' \
224	'-DENABLE_CONFIGURATION_POLICY' \
225	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
226	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
227	'-DENABLE_EGLIMAGE=1' \
228	'-DCLD_VERSION=1' \
229	'-DENABLE_PRINTING=1' \
230	'-DENABLE_MANAGED_USERS=1' \
231	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
232	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
233	'-DDATA_REDUCTION_DEV_FALLBACK_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	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
239	'-D__Userspace_os_Linux' \
240	'-DNON_WINDOWS_DEFINE' \
241	'-DUSE_OPENSSL=1' \
242	'-DUSE_OPENSSL_CERTS=1' \
243	'-DANDROID' \
244	'-D__GNU_SOURCE=1' \
245	'-DUSE_STLPORT=1' \
246	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
247	'-DCHROME_BUILD_ID=""' \
248	'-DNDEBUG' \
249	'-DNVALGRIND' \
250	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
251
252
253# Include paths placed before CFLAGS/CPPFLAGS
254LOCAL_C_INCLUDES_Release := \
255	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib \
256	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \
257	$(gyp_shared_intermediate_dir) \
258	$(LOCAL_PATH)/third_party/boringssl/src/include \
259	$(PWD)/frameworks/wilhelm/include \
260	$(PWD)/bionic \
261	$(PWD)/external/stlport/stlport
262
263
264# Flags passed to only C++ (and not C) files.
265LOCAL_CPPFLAGS_Release := \
266	-fno-exceptions \
267	-fno-rtti \
268	-fno-threadsafe-statics \
269	-fvisibility-inlines-hidden \
270	-Wno-deprecated \
271	-Wno-abi \
272	-std=gnu++11 \
273	-Wno-narrowing \
274	-Wno-literal-suffix \
275	-Wno-non-virtual-dtor \
276	-Wno-sign-promo \
277	-Wno-non-virtual-dtor
278
279
280LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
281LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
282LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
283LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
284### Rules for final target.
285
286LOCAL_SHARED_LIBRARIES := \
287	libstlport \
288	libdl
289
290# Add target alias to "gyp_all_modules" target.
291.PHONY: gyp_all_modules
292gyp_all_modules: third_party_usrsctp_usrsctplib_gyp
293
294# Alias gyp target name.
295.PHONY: usrsctplib
296usrsctplib: third_party_usrsctp_usrsctplib_gyp
297
298include $(BUILD_STATIC_LIBRARY)
299