1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_webrtc_modules_audio_processing_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	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_webrtc_modules_audioproc_debug_proto_gyp,,,$(GYP_VAR_PREFIX))/third_party_webrtc_modules_audioproc_debug_proto_gyp.a
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_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/webrtc/modules/audio_processing/aec/echo_cancellation.c \
28	third_party/webrtc/modules/audio_processing/aec/aec_core.c \
29	third_party/webrtc/modules/audio_processing/aec/aec_rdft.c \
30	third_party/webrtc/modules/audio_processing/aec/aec_resampler.c \
31	third_party/webrtc/modules/audio_processing/aecm/echo_control_mobile.c \
32	third_party/webrtc/modules/audio_processing/aecm/aecm_core.c \
33	third_party/webrtc/modules/audio_processing/agc/analog_agc.c \
34	third_party/webrtc/modules/audio_processing/agc/digital_agc.c \
35	third_party/webrtc/modules/audio_processing/audio_buffer.cc \
36	third_party/webrtc/modules/audio_processing/audio_processing_impl.cc \
37	third_party/webrtc/modules/audio_processing/echo_cancellation_impl.cc \
38	third_party/webrtc/modules/audio_processing/echo_control_mobile_impl.cc \
39	third_party/webrtc/modules/audio_processing/gain_control_impl.cc \
40	third_party/webrtc/modules/audio_processing/high_pass_filter_impl.cc \
41	third_party/webrtc/modules/audio_processing/level_estimator_impl.cc \
42	third_party/webrtc/modules/audio_processing/noise_suppression_impl.cc \
43	third_party/webrtc/modules/audio_processing/processing_component.cc \
44	third_party/webrtc/modules/audio_processing/rms_level.cc \
45	third_party/webrtc/modules/audio_processing/typing_detection.cc \
46	third_party/webrtc/modules/audio_processing/utility/delay_estimator.c \
47	third_party/webrtc/modules/audio_processing/utility/delay_estimator_wrapper.c \
48	third_party/webrtc/modules/audio_processing/utility/fft4g.c \
49	third_party/webrtc/modules/audio_processing/utility/ring_buffer.c \
50	third_party/webrtc/modules/audio_processing/voice_detection_impl.cc \
51	third_party/webrtc/modules/audio_processing/ns/noise_suppression.c \
52	third_party/webrtc/modules/audio_processing/ns/ns_core.c \
53	third_party/webrtc/modules/audio_processing/aecm/aecm_core_c.c
54
55
56# Flags passed to both C and C++ files.
57MY_CFLAGS_Debug := \
58	--param=ssp-buffer-size=4 \
59	-Werror \
60	-fno-strict-aliasing \
61	-Wall \
62	-Wno-unused-parameter \
63	-Wno-missing-field-initializers \
64	-fvisibility=hidden \
65	-pipe \
66	-fPIC \
67	-Wno-unused-local-typedefs \
68	-fno-builtin-cos \
69	-fno-builtin-sin \
70	-fno-builtin-cosf \
71	-fno-builtin-sinf \
72	-fno-builtin-cos \
73	-fno-builtin-sin \
74	-fno-builtin-cosf \
75	-fno-builtin-sinf \
76	-ffunction-sections \
77	-funwind-tables \
78	-g \
79	-fno-short-enums \
80	-finline-limit=64 \
81	-Wa,--noexecstack \
82	-U_FORTIFY_SOURCE \
83	-Wno-extra \
84	-Wno-ignored-qualifiers \
85	-Wno-type-limits \
86	-Wno-unused-but-set-variable \
87	-Os \
88	-g \
89	-gdwarf-4 \
90	-fdata-sections \
91	-ffunction-sections \
92	-funwind-tables
93
94MY_DEFS_Debug := \
95	'-DV8_DEPRECATION_WARNINGS' \
96	'-D_FILE_OFFSET_BITS=64' \
97	'-DNO_TCMALLOC' \
98	'-DDISABLE_NACL' \
99	'-DCHROMIUM_BUILD' \
100	'-DUSE_LIBJPEG_TURBO=1' \
101	'-DENABLE_WEBRTC=1' \
102	'-DUSE_PROPRIETARY_CODECS' \
103	'-DENABLE_BROWSER_CDMS' \
104	'-DENABLE_CONFIGURATION_POLICY' \
105	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
106	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
107	'-DENABLE_EGLIMAGE=1' \
108	'-DCLD_VERSION=1' \
109	'-DENABLE_PRINTING=1' \
110	'-DENABLE_MANAGED_USERS=1' \
111	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
112	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
113	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
114	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
115	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
116	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
117	'-DVIDEO_HOLE=1' \
118	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
119	'-DWEBRTC_RESTRICT_LOGGING' \
120	'-DEXPAT_RELATIVE_PATH' \
121	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
122	'-DWEBRTC_CHROMIUM_BUILD' \
123	'-DLOGGING_INSIDE_WEBRTC' \
124	'-DWEBRTC_POSIX' \
125	'-DWEBRTC_LINUX' \
126	'-DWEBRTC_ANDROID' \
127	'-DWEBRTC_ANDROID_OPENSLES' \
128	'-DWEBRTC_AUDIOPROC_DEBUG_DUMP' \
129	'-DWEBRTC_NS_FLOAT' \
130	'-DPROTOBUF_USE_DLLS' \
131	'-DGOOGLE_PROTOBUF_NO_RTTI' \
132	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
133	'-DUSE_OPENSSL=1' \
134	'-DUSE_OPENSSL_CERTS=1' \
135	'-D__STDC_CONSTANT_MACROS' \
136	'-D__STDC_FORMAT_MACROS' \
137	'-DANDROID' \
138	'-D__GNU_SOURCE=1' \
139	'-DUSE_STLPORT=1' \
140	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
141	'-DCHROME_BUILD_ID=""' \
142	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
143	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
144	'-D_DEBUG'
145
146
147# Include paths placed before CFLAGS/CPPFLAGS
148LOCAL_C_INCLUDES_Debug := \
149	$(gyp_shared_intermediate_dir) \
150	$(LOCAL_PATH) \
151	$(LOCAL_PATH)/third_party/webrtc/overrides \
152	$(LOCAL_PATH)/third_party \
153	$(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
154	$(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
155	$(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
156	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
157	$(gyp_shared_intermediate_dir)/protoc_out \
158	$(LOCAL_PATH)/third_party/protobuf \
159	$(LOCAL_PATH)/third_party/protobuf/src \
160	$(PWD)/frameworks/wilhelm/include \
161	$(PWD)/bionic \
162	$(PWD)/external/stlport/stlport
163
164
165# Flags passed to only C++ (and not C) files.
166LOCAL_CPPFLAGS_Debug := \
167	-fno-exceptions \
168	-fno-rtti \
169	-fno-threadsafe-statics \
170	-fvisibility-inlines-hidden \
171	-Wsign-compare \
172	-std=gnu++11 \
173	-Wno-narrowing \
174	-Wno-literal-suffix \
175	-Wno-non-virtual-dtor \
176	-Wno-sign-promo
177
178
179# Flags passed to both C and C++ files.
180MY_CFLAGS_Release := \
181	--param=ssp-buffer-size=4 \
182	-Werror \
183	-fno-strict-aliasing \
184	-Wall \
185	-Wno-unused-parameter \
186	-Wno-missing-field-initializers \
187	-fvisibility=hidden \
188	-pipe \
189	-fPIC \
190	-Wno-unused-local-typedefs \
191	-fno-builtin-cos \
192	-fno-builtin-sin \
193	-fno-builtin-cosf \
194	-fno-builtin-sinf \
195	-fno-builtin-cos \
196	-fno-builtin-sin \
197	-fno-builtin-cosf \
198	-fno-builtin-sinf \
199	-ffunction-sections \
200	-funwind-tables \
201	-g \
202	-fno-short-enums \
203	-finline-limit=64 \
204	-Wa,--noexecstack \
205	-U_FORTIFY_SOURCE \
206	-Wno-extra \
207	-Wno-ignored-qualifiers \
208	-Wno-type-limits \
209	-Wno-unused-but-set-variable \
210	-Os \
211	-fno-ident \
212	-fdata-sections \
213	-ffunction-sections \
214	-funwind-tables
215
216MY_DEFS_Release := \
217	'-DV8_DEPRECATION_WARNINGS' \
218	'-D_FILE_OFFSET_BITS=64' \
219	'-DNO_TCMALLOC' \
220	'-DDISABLE_NACL' \
221	'-DCHROMIUM_BUILD' \
222	'-DUSE_LIBJPEG_TURBO=1' \
223	'-DENABLE_WEBRTC=1' \
224	'-DUSE_PROPRIETARY_CODECS' \
225	'-DENABLE_BROWSER_CDMS' \
226	'-DENABLE_CONFIGURATION_POLICY' \
227	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
228	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
229	'-DENABLE_EGLIMAGE=1' \
230	'-DCLD_VERSION=1' \
231	'-DENABLE_PRINTING=1' \
232	'-DENABLE_MANAGED_USERS=1' \
233	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
234	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
235	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
236	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
237	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
238	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
239	'-DVIDEO_HOLE=1' \
240	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
241	'-DWEBRTC_RESTRICT_LOGGING' \
242	'-DEXPAT_RELATIVE_PATH' \
243	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
244	'-DWEBRTC_CHROMIUM_BUILD' \
245	'-DLOGGING_INSIDE_WEBRTC' \
246	'-DWEBRTC_POSIX' \
247	'-DWEBRTC_LINUX' \
248	'-DWEBRTC_ANDROID' \
249	'-DWEBRTC_ANDROID_OPENSLES' \
250	'-DWEBRTC_AUDIOPROC_DEBUG_DUMP' \
251	'-DWEBRTC_NS_FLOAT' \
252	'-DPROTOBUF_USE_DLLS' \
253	'-DGOOGLE_PROTOBUF_NO_RTTI' \
254	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
255	'-DUSE_OPENSSL=1' \
256	'-DUSE_OPENSSL_CERTS=1' \
257	'-D__STDC_CONSTANT_MACROS' \
258	'-D__STDC_FORMAT_MACROS' \
259	'-DANDROID' \
260	'-D__GNU_SOURCE=1' \
261	'-DUSE_STLPORT=1' \
262	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
263	'-DCHROME_BUILD_ID=""' \
264	'-DNDEBUG' \
265	'-DNVALGRIND' \
266	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
267	'-D_FORTIFY_SOURCE=2'
268
269
270# Include paths placed before CFLAGS/CPPFLAGS
271LOCAL_C_INCLUDES_Release := \
272	$(gyp_shared_intermediate_dir) \
273	$(LOCAL_PATH) \
274	$(LOCAL_PATH)/third_party/webrtc/overrides \
275	$(LOCAL_PATH)/third_party \
276	$(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
277	$(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
278	$(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
279	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
280	$(gyp_shared_intermediate_dir)/protoc_out \
281	$(LOCAL_PATH)/third_party/protobuf \
282	$(LOCAL_PATH)/third_party/protobuf/src \
283	$(PWD)/frameworks/wilhelm/include \
284	$(PWD)/bionic \
285	$(PWD)/external/stlport/stlport
286
287
288# Flags passed to only C++ (and not C) files.
289LOCAL_CPPFLAGS_Release := \
290	-fno-exceptions \
291	-fno-rtti \
292	-fno-threadsafe-statics \
293	-fvisibility-inlines-hidden \
294	-Wsign-compare \
295	-std=gnu++11 \
296	-Wno-narrowing \
297	-Wno-literal-suffix \
298	-Wno-non-virtual-dtor \
299	-Wno-sign-promo
300
301
302LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
303LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
304LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
305LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
306### Rules for final target.
307
308LOCAL_SHARED_LIBRARIES := \
309	libstlport \
310	libdl
311
312# Add target alias to "gyp_all_modules" target.
313.PHONY: gyp_all_modules
314gyp_all_modules: third_party_webrtc_modules_audio_processing_gyp
315
316# Alias gyp target name.
317.PHONY: audio_processing
318audio_processing: third_party_webrtc_modules_audio_processing_gyp
319
320include $(BUILD_STATIC_LIBRARY)
321