• 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	 \
56	-fno-strict-aliasing \
57	-Wno-unused-parameter \
58	-Wno-missing-field-initializers \
59	-fvisibility=hidden \
60	-pipe \
61	-fPIC \
62	-Wno-unused-local-typedefs \
63	-w \
64	-Wno-format \
65	-ffunction-sections \
66	-funwind-tables \
67	-g \
68	-fstack-protector \
69	-fno-short-enums \
70	-finline-limit=64 \
71	-Wa,--noexecstack \
72	-U_FORTIFY_SOURCE \
73	-Wno-extra \
74	-Wno-ignored-qualifiers \
75	-Wno-type-limits \
76	-Wno-unused-but-set-variable \
77	-Wno-address \
78	-Wno-format-security \
79	-Wno-return-type \
80	-Wno-sequence-point \
81	-Os \
82	-g \
83	-gdwarf-4 \
84	-fdata-sections \
85	-ffunction-sections \
86	-fomit-frame-pointer \
87	-funwind-tables
88
89MY_DEFS_Debug := \
90	'-DSCTP_PROCESS_LEVEL_LOCKS' \
91	'-DSCTP_SIMPLE_ALLOCATOR' \
92	'-D__Userspace__' \
93	'-DV8_DEPRECATION_WARNINGS' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISABLE_NACL' \
97	'-DSCTP_USE_OPENSSL_SHA1' \
98	'-DCHROMIUM_BUILD' \
99	'-DUSE_LIBJPEG_TURBO=1' \
100	'-DENABLE_WEBRTC=1' \
101	'-DUSE_PROPRIETARY_CODECS' \
102	'-DENABLE_BROWSER_CDMS' \
103	'-DENABLE_CONFIGURATION_POLICY' \
104	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
105	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
106	'-DENABLE_EGLIMAGE=1' \
107	'-DCLD_VERSION=1' \
108	'-DENABLE_PRINTING=1' \
109	'-DENABLE_MANAGED_USERS=1' \
110	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
111	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
112	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
113	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
114	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
115	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
116	'-DVIDEO_HOLE=1' \
117	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
118	'-D__Userspace_os_Linux' \
119	'-DNON_WINDOWS_DEFINE' \
120	'-DUSE_OPENSSL=1' \
121	'-DUSE_OPENSSL_CERTS=1' \
122	'-DANDROID' \
123	'-D__GNU_SOURCE=1' \
124	'-DUSE_STLPORT=1' \
125	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
126	'-DCHROME_BUILD_ID=""' \
127	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
128	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
129	'-D_DEBUG'
130
131
132# Include paths placed before CFLAGS/CPPFLAGS
133LOCAL_C_INCLUDES_Debug := \
134	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib \
135	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \
136	$(gyp_shared_intermediate_dir) \
137	$(LOCAL_PATH)/third_party/boringssl/src/include \
138	$(PWD)/frameworks/wilhelm/include \
139	$(PWD)/bionic \
140	$(PWD)/external/stlport/stlport
141
142
143# Flags passed to only C++ (and not C) files.
144LOCAL_CPPFLAGS_Debug := \
145	-fno-exceptions \
146	-fno-rtti \
147	-fno-threadsafe-statics \
148	-fvisibility-inlines-hidden \
149	-Wno-deprecated \
150	-Wno-uninitialized \
151	-std=gnu++11 \
152	-Wno-narrowing \
153	-Wno-literal-suffix \
154	-Wno-non-virtual-dtor \
155	-Wno-sign-promo \
156	-Wno-non-virtual-dtor
157
158
159# Flags passed to both C and C++ files.
160MY_CFLAGS_Release := \
161	-fstack-protector \
162	--param=ssp-buffer-size=4 \
163	 \
164	-fno-strict-aliasing \
165	-Wno-unused-parameter \
166	-Wno-missing-field-initializers \
167	-fvisibility=hidden \
168	-pipe \
169	-fPIC \
170	-Wno-unused-local-typedefs \
171	-w \
172	-Wno-format \
173	-ffunction-sections \
174	-funwind-tables \
175	-g \
176	-fstack-protector \
177	-fno-short-enums \
178	-finline-limit=64 \
179	-Wa,--noexecstack \
180	-U_FORTIFY_SOURCE \
181	-Wno-extra \
182	-Wno-ignored-qualifiers \
183	-Wno-type-limits \
184	-Wno-unused-but-set-variable \
185	-Wno-address \
186	-Wno-format-security \
187	-Wno-return-type \
188	-Wno-sequence-point \
189	-Os \
190	-fno-ident \
191	-fdata-sections \
192	-ffunction-sections \
193	-fomit-frame-pointer \
194	-funwind-tables
195
196MY_DEFS_Release := \
197	'-DSCTP_PROCESS_LEVEL_LOCKS' \
198	'-DSCTP_SIMPLE_ALLOCATOR' \
199	'-D__Userspace__' \
200	'-DV8_DEPRECATION_WARNINGS' \
201	'-D_FILE_OFFSET_BITS=64' \
202	'-DNO_TCMALLOC' \
203	'-DDISABLE_NACL' \
204	'-DSCTP_USE_OPENSSL_SHA1' \
205	'-DCHROMIUM_BUILD' \
206	'-DUSE_LIBJPEG_TURBO=1' \
207	'-DENABLE_WEBRTC=1' \
208	'-DUSE_PROPRIETARY_CODECS' \
209	'-DENABLE_BROWSER_CDMS' \
210	'-DENABLE_CONFIGURATION_POLICY' \
211	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
212	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
213	'-DENABLE_EGLIMAGE=1' \
214	'-DCLD_VERSION=1' \
215	'-DENABLE_PRINTING=1' \
216	'-DENABLE_MANAGED_USERS=1' \
217	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
218	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
219	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
220	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
221	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
222	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
223	'-DVIDEO_HOLE=1' \
224	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
225	'-D__Userspace_os_Linux' \
226	'-DNON_WINDOWS_DEFINE' \
227	'-DUSE_OPENSSL=1' \
228	'-DUSE_OPENSSL_CERTS=1' \
229	'-DANDROID' \
230	'-D__GNU_SOURCE=1' \
231	'-DUSE_STLPORT=1' \
232	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
233	'-DCHROME_BUILD_ID=""' \
234	'-DNDEBUG' \
235	'-DNVALGRIND' \
236	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
237
238
239# Include paths placed before CFLAGS/CPPFLAGS
240LOCAL_C_INCLUDES_Release := \
241	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib \
242	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \
243	$(gyp_shared_intermediate_dir) \
244	$(LOCAL_PATH)/third_party/boringssl/src/include \
245	$(PWD)/frameworks/wilhelm/include \
246	$(PWD)/bionic \
247	$(PWD)/external/stlport/stlport
248
249
250# Flags passed to only C++ (and not C) files.
251LOCAL_CPPFLAGS_Release := \
252	-fno-exceptions \
253	-fno-rtti \
254	-fno-threadsafe-statics \
255	-fvisibility-inlines-hidden \
256	-Wno-deprecated \
257	-Wno-uninitialized \
258	-std=gnu++11 \
259	-Wno-narrowing \
260	-Wno-literal-suffix \
261	-Wno-non-virtual-dtor \
262	-Wno-sign-promo \
263	-Wno-non-virtual-dtor
264
265
266LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
267LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
268LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
269LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
270### Rules for final target.
271
272LOCAL_SHARED_LIBRARIES := \
273	libstlport \
274	libdl
275
276# Add target alias to "gyp_all_modules" target.
277.PHONY: gyp_all_modules
278gyp_all_modules: third_party_usrsctp_usrsctplib_gyp
279
280# Alias gyp target name.
281.PHONY: usrsctplib
282usrsctplib: third_party_usrsctp_usrsctplib_gyp
283
284include $(BUILD_STATIC_LIBRARY)
285