blob: f57395b28e1456ba9f36507796344acd9b151c57 [file] [log] [blame]
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +00001# 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_iSACFix_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
Android Chromium Automergerc71dd0d2014-04-09 18:59:40 +00009LOCAL_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))
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000012
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/webrtc/modules/audio_coding/codecs/isac/fix/source/arith_routines.c \
27 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/arith_routines_hist.c \
28 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/arith_routines_logist.c \
29 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/bandwidth_estimator.c \
30 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/decode.c \
31 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/decode_bwe.c \
32 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/decode_plc.c \
33 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/encode.c \
34 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding.c \
35 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/fft.c \
36 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbank_tables.c \
37 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks.c \
38 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/filters.c \
39 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/initialize.c \
40 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c \
41 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice.c \
42 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/lpc_masking_model.c \
43 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/lpc_tables.c \
44 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_estimator.c \
Android Chromium Automerger86617142014-08-04 09:24:42 +000045 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_estimator_c.c \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000046 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter.c \
47 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_gain_tables.c \
48 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_lag_tables.c \
49 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/spectrum_ar_model_tables.c \
50 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/transform.c \
Android Chromium Automerger86617142014-08-04 09:24:42 +000051 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/transform_tables.c \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000052 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_armv7.S \
53 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_armv6.S
54
55
56# Flags passed to both C and C++ files.
57MY_CFLAGS_Debug := \
58 -fstack-protector \
59 --param=ssp-buffer-size=4 \
60 -Werror \
61 -fno-exceptions \
62 -fno-strict-aliasing \
63 -Wall \
64 -Wno-unused-parameter \
65 -Wno-missing-field-initializers \
66 -fvisibility=hidden \
67 -pipe \
68 -fPIC \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +000069 -Wno-unused-local-typedefs \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000070 -fno-builtin-cos \
71 -fno-builtin-sin \
72 -fno-builtin-cosf \
73 -fno-builtin-sinf \
74 -fno-builtin-cos \
75 -fno-builtin-sin \
76 -fno-builtin-cosf \
77 -fno-builtin-sinf \
78 -fno-tree-sra \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +000079 -fno-caller-saves \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000080 -Wno-psabi \
Android Chromium Automerger40220192014-09-09 14:33:19 +000081 -fno-partial-inlining \
82 -fno-early-inlining \
83 -fno-tree-copy-prop \
84 -fno-tree-loop-optimize \
85 -fno-move-loop-invariants \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000086 -ffunction-sections \
87 -funwind-tables \
88 -g \
89 -fstack-protector \
90 -fno-short-enums \
91 -finline-limit=64 \
92 -Wa,--noexecstack \
93 -U_FORTIFY_SOURCE \
94 -Wno-extra \
95 -Wno-ignored-qualifiers \
96 -Wno-type-limits \
97 -Wno-unused-but-set-variable \
98 -Os \
99 -g \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000100 -fdata-sections \
101 -ffunction-sections \
Android Chromium Automerger477e6bc2014-07-10 18:45:25 +0000102 -fomit-frame-pointer \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000103 -funwind-tables
104
105MY_DEFS_Debug := \
106 '-DV8_DEPRECATION_WARNINGS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000107 '-D_FILE_OFFSET_BITS=64' \
108 '-DNO_TCMALLOC' \
109 '-DDISABLE_NACL' \
110 '-DCHROMIUM_BUILD' \
111 '-DUSE_LIBJPEG_TURBO=1' \
112 '-DENABLE_WEBRTC=1' \
113 '-DUSE_PROPRIETARY_CODECS' \
Android Chromium Automergeradda09e2014-06-10 23:37:15 +0000114 '-DENABLE_BROWSER_CDMS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000115 '-DENABLE_CONFIGURATION_POLICY' \
116 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
117 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
118 '-DENABLE_EGLIMAGE=1' \
119 '-DCLD_VERSION=1' \
120 '-DENABLE_PRINTING=1' \
121 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100122 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
123 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
124 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
125 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
Android Chromium Automergerad3bcf42014-06-19 03:36:33 +0000126 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
Torne (Richard Coles)d658c112014-05-14 10:24:51 +0100127 '-DVIDEO_HOLE=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000128 '-DWEBRTC_RESTRICT_LOGGING' \
Android Chromium Automergercb45b282014-09-08 19:00:33 +0000129 '-DEXPAT_RELATIVE_PATH' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000130 '-DWEBRTC_MODULE_UTILITY_VIDEO' \
131 '-DWEBRTC_CHROMIUM_BUILD' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100132 '-DLOGGING_INSIDE_WEBRTC' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000133 '-DWEBRTC_ARCH_ARM' \
134 '-DWEBRTC_ARCH_ARM_V7' \
135 '-DWEBRTC_DETECT_ARM_NEON' \
136 '-DWEBRTC_POSIX' \
137 '-DWEBRTC_LINUX' \
138 '-DWEBRTC_ANDROID' \
139 '-DWEBRTC_ANDROID_OPENSLES' \
140 '-DUSE_OPENSSL=1' \
141 '-DUSE_OPENSSL_CERTS=1' \
142 '-D__STDC_CONSTANT_MACROS' \
143 '-D__STDC_FORMAT_MACROS' \
144 '-DANDROID' \
145 '-D__GNU_SOURCE=1' \
146 '-DUSE_STLPORT=1' \
147 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
148 '-DCHROME_BUILD_ID=""' \
149 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
150 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
151 '-D_DEBUG'
152
153
154# Include paths placed before CFLAGS/CPPFLAGS
155LOCAL_C_INCLUDES_Debug := \
Android Chromium Automergercb4fdd12014-06-16 14:50:41 +0000156 $(gyp_shared_intermediate_dir) \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000157 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100158 $(LOCAL_PATH)/third_party/webrtc/overrides \
159 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000160 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
161 $(LOCAL_PATH)/third_party/webrtc \
162 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
163 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
164 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
165 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
166 $(PWD)/frameworks/wilhelm/include \
167 $(PWD)/bionic \
168 $(PWD)/external/stlport/stlport
169
170
171# Flags passed to only C++ (and not C) files.
172LOCAL_CPPFLAGS_Debug := \
173 -fno-rtti \
174 -fno-threadsafe-statics \
175 -fvisibility-inlines-hidden \
176 -Wsign-compare \
177 -Wno-abi \
Android Chromium Automerger841f8c82014-06-25 15:10:10 +0000178 -std=gnu++11 \
179 -Wno-narrowing \
180 -Wno-literal-suffix \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000181 -Wno-non-virtual-dtor \
182 -Wno-sign-promo
183
184
185# Flags passed to both C and C++ files.
186MY_CFLAGS_Release := \
187 -fstack-protector \
188 --param=ssp-buffer-size=4 \
189 -Werror \
190 -fno-exceptions \
191 -fno-strict-aliasing \
192 -Wall \
193 -Wno-unused-parameter \
194 -Wno-missing-field-initializers \
195 -fvisibility=hidden \
196 -pipe \
197 -fPIC \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000198 -Wno-unused-local-typedefs \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000199 -fno-builtin-cos \
200 -fno-builtin-sin \
201 -fno-builtin-cosf \
202 -fno-builtin-sinf \
203 -fno-builtin-cos \
204 -fno-builtin-sin \
205 -fno-builtin-cosf \
206 -fno-builtin-sinf \
207 -fno-tree-sra \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000208 -fno-caller-saves \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000209 -Wno-psabi \
Android Chromium Automerger40220192014-09-09 14:33:19 +0000210 -fno-partial-inlining \
211 -fno-early-inlining \
212 -fno-tree-copy-prop \
213 -fno-tree-loop-optimize \
214 -fno-move-loop-invariants \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000215 -ffunction-sections \
216 -funwind-tables \
217 -g \
218 -fstack-protector \
219 -fno-short-enums \
220 -finline-limit=64 \
221 -Wa,--noexecstack \
222 -U_FORTIFY_SOURCE \
223 -Wno-extra \
224 -Wno-ignored-qualifiers \
225 -Wno-type-limits \
226 -Wno-unused-but-set-variable \
227 -Os \
228 -fno-ident \
229 -fdata-sections \
230 -ffunction-sections \
231 -fomit-frame-pointer \
232 -funwind-tables
233
234MY_DEFS_Release := \
235 '-DV8_DEPRECATION_WARNINGS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000236 '-D_FILE_OFFSET_BITS=64' \
237 '-DNO_TCMALLOC' \
238 '-DDISABLE_NACL' \
239 '-DCHROMIUM_BUILD' \
240 '-DUSE_LIBJPEG_TURBO=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000241 '-DENABLE_WEBRTC=1' \
242 '-DUSE_PROPRIETARY_CODECS' \
Android Chromium Automergeradda09e2014-06-10 23:37:15 +0000243 '-DENABLE_BROWSER_CDMS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000244 '-DENABLE_CONFIGURATION_POLICY' \
245 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
246 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
247 '-DENABLE_EGLIMAGE=1' \
248 '-DCLD_VERSION=1' \
249 '-DENABLE_PRINTING=1' \
250 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100251 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
252 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
253 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
254 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
Android Chromium Automergerad3bcf42014-06-19 03:36:33 +0000255 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
Torne (Richard Coles)d658c112014-05-14 10:24:51 +0100256 '-DVIDEO_HOLE=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000257 '-DWEBRTC_RESTRICT_LOGGING' \
Android Chromium Automergercb45b282014-09-08 19:00:33 +0000258 '-DEXPAT_RELATIVE_PATH' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000259 '-DWEBRTC_MODULE_UTILITY_VIDEO' \
260 '-DWEBRTC_CHROMIUM_BUILD' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100261 '-DLOGGING_INSIDE_WEBRTC' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000262 '-DWEBRTC_ARCH_ARM' \
263 '-DWEBRTC_ARCH_ARM_V7' \
264 '-DWEBRTC_DETECT_ARM_NEON' \
265 '-DWEBRTC_POSIX' \
266 '-DWEBRTC_LINUX' \
267 '-DWEBRTC_ANDROID' \
268 '-DWEBRTC_ANDROID_OPENSLES' \
269 '-DUSE_OPENSSL=1' \
270 '-DUSE_OPENSSL_CERTS=1' \
271 '-D__STDC_CONSTANT_MACROS' \
272 '-D__STDC_FORMAT_MACROS' \
273 '-DANDROID' \
274 '-D__GNU_SOURCE=1' \
275 '-DUSE_STLPORT=1' \
276 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
277 '-DCHROME_BUILD_ID=""' \
278 '-DNDEBUG' \
279 '-DNVALGRIND' \
280 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
281 '-D_FORTIFY_SOURCE=2'
282
283
284# Include paths placed before CFLAGS/CPPFLAGS
285LOCAL_C_INCLUDES_Release := \
Android Chromium Automergercb4fdd12014-06-16 14:50:41 +0000286 $(gyp_shared_intermediate_dir) \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000287 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100288 $(LOCAL_PATH)/third_party/webrtc/overrides \
289 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000290 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
291 $(LOCAL_PATH)/third_party/webrtc \
292 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
293 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
294 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
295 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
296 $(PWD)/frameworks/wilhelm/include \
297 $(PWD)/bionic \
298 $(PWD)/external/stlport/stlport
299
300
301# Flags passed to only C++ (and not C) files.
302LOCAL_CPPFLAGS_Release := \
303 -fno-rtti \
304 -fno-threadsafe-statics \
305 -fvisibility-inlines-hidden \
306 -Wsign-compare \
307 -Wno-abi \
Android Chromium Automerger841f8c82014-06-25 15:10:10 +0000308 -std=gnu++11 \
309 -Wno-narrowing \
310 -Wno-literal-suffix \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000311 -Wno-non-virtual-dtor \
312 -Wno-sign-promo
313
314
315LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
316LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
317LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
318LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
319### Rules for final target.
320
321LOCAL_LDFLAGS_Debug := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000322 -Wl,-z,now \
323 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000324 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000325 -Wl,-z,noexecstack \
326 -fPIC \
327 -Wl,-z,relro \
328 -Wl,-z,now \
329 -fuse-ld=gold \
330 -nostdlib \
331 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000332 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000333 -Wl,--icf=safe \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000334 -Wl,--warn-shared-textrel \
335 -Wl,-O1 \
336 -Wl,--as-needed
337
338
339LOCAL_LDFLAGS_Release := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000340 -Wl,-z,now \
341 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000342 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000343 -Wl,-z,noexecstack \
344 -fPIC \
345 -Wl,-z,relro \
346 -Wl,-z,now \
347 -fuse-ld=gold \
348 -nostdlib \
349 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000350 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000351 -Wl,--icf=safe \
352 -Wl,-O1 \
353 -Wl,--as-needed \
354 -Wl,--gc-sections \
355 -Wl,--warn-shared-textrel
356
357
358LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
359
360LOCAL_STATIC_LIBRARIES :=
361
362# Enable grouping to fix circular references
363LOCAL_GROUP_STATIC_LIBRARIES := true
364
365LOCAL_SHARED_LIBRARIES := \
366 libstlport \
367 libdl
368
369# Add target alias to "gyp_all_modules" target.
370.PHONY: gyp_all_modules
371gyp_all_modules: third_party_webrtc_modules_iSACFix_gyp
372
373# Alias gyp target name.
374.PHONY: iSACFix
375iSACFix: third_party_webrtc_modules_iSACFix_gyp
376
377include $(BUILD_STATIC_LIBRARY)