blob: 59de6412e28c54cfc881a06ad7873a86dbd21584 [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 \
45 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter.c \
46 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_gain_tables.c \
47 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_lag_tables.c \
48 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/spectrum_ar_model_tables.c \
49 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/transform.c \
50 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_armv7.S \
51 third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_armv6.S
52
53
54# Flags passed to both C and C++ files.
55MY_CFLAGS_Debug := \
56 -fstack-protector \
57 --param=ssp-buffer-size=4 \
58 -Werror \
59 -fno-exceptions \
60 -fno-strict-aliasing \
61 -Wall \
62 -Wno-unused-parameter \
63 -Wno-missing-field-initializers \
64 -fvisibility=hidden \
65 -pipe \
66 -fPIC \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +000067 -Wno-unused-local-typedefs \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000068 -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 -fno-tree-sra \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +000077 -fno-partial-inlining \
78 -fno-early-inlining \
79 -fno-tree-copy-prop \
80 -fno-tree-loop-optimize \
81 -fno-move-loop-invariants \
82 -fno-caller-saves \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +000083 -Wno-psabi \
84 -ffunction-sections \
85 -funwind-tables \
86 -g \
87 -fstack-protector \
88 -fno-short-enums \
89 -finline-limit=64 \
90 -Wa,--noexecstack \
91 -U_FORTIFY_SOURCE \
92 -Wno-extra \
93 -Wno-ignored-qualifiers \
94 -Wno-type-limits \
95 -Wno-unused-but-set-variable \
96 -Os \
97 -g \
98 -fomit-frame-pointer \
99 -fdata-sections \
100 -ffunction-sections \
101 -funwind-tables
102
103MY_DEFS_Debug := \
104 '-DV8_DEPRECATION_WARNINGS' \
105 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
106 '-D_FILE_OFFSET_BITS=64' \
107 '-DNO_TCMALLOC' \
108 '-DDISABLE_NACL' \
109 '-DCHROMIUM_BUILD' \
110 '-DUSE_LIBJPEG_TURBO=1' \
111 '-DENABLE_WEBRTC=1' \
112 '-DUSE_PROPRIETARY_CODECS' \
Android Chromium Automergeradda09e2014-06-10 23:37:15 +0000113 '-DENABLE_BROWSER_CDMS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000114 '-DENABLE_CONFIGURATION_POLICY' \
115 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
116 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
117 '-DENABLE_EGLIMAGE=1' \
118 '-DCLD_VERSION=1' \
119 '-DENABLE_PRINTING=1' \
120 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100121 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
122 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
123 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
124 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
Android Chromium Automergerad3bcf42014-06-19 03:36:33 +0000125 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
Torne (Richard Coles)d658c112014-05-14 10:24:51 +0100126 '-DVIDEO_HOLE=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000127 '-DWEBRTC_RESTRICT_LOGGING' \
128 '-DWEBRTC_MODULE_UTILITY_VIDEO' \
129 '-DWEBRTC_CHROMIUM_BUILD' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100130 '-DLOGGING_INSIDE_WEBRTC' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000131 '-DWEBRTC_ARCH_ARM' \
132 '-DWEBRTC_ARCH_ARM_V7' \
133 '-DWEBRTC_DETECT_ARM_NEON' \
134 '-DWEBRTC_POSIX' \
135 '-DWEBRTC_LINUX' \
136 '-DWEBRTC_ANDROID' \
137 '-DWEBRTC_ANDROID_OPENSLES' \
138 '-DUSE_OPENSSL=1' \
139 '-DUSE_OPENSSL_CERTS=1' \
140 '-D__STDC_CONSTANT_MACROS' \
141 '-D__STDC_FORMAT_MACROS' \
142 '-DANDROID' \
143 '-D__GNU_SOURCE=1' \
144 '-DUSE_STLPORT=1' \
145 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
146 '-DCHROME_BUILD_ID=""' \
147 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
148 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
149 '-D_DEBUG'
150
151
152# Include paths placed before CFLAGS/CPPFLAGS
153LOCAL_C_INCLUDES_Debug := \
Android Chromium Automergercb4fdd12014-06-16 14:50:41 +0000154 $(gyp_shared_intermediate_dir) \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000155 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100156 $(LOCAL_PATH)/third_party/webrtc/overrides \
157 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000158 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
159 $(LOCAL_PATH)/third_party/webrtc \
160 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
161 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
162 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
163 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
164 $(PWD)/frameworks/wilhelm/include \
165 $(PWD)/bionic \
166 $(PWD)/external/stlport/stlport
167
168
169# Flags passed to only C++ (and not C) files.
170LOCAL_CPPFLAGS_Debug := \
171 -fno-rtti \
172 -fno-threadsafe-statics \
173 -fvisibility-inlines-hidden \
174 -Wsign-compare \
175 -Wno-abi \
176 -Wno-non-virtual-dtor \
177 -Wno-sign-promo
178
179
180# Flags passed to both C and C++ files.
181MY_CFLAGS_Release := \
182 -fstack-protector \
183 --param=ssp-buffer-size=4 \
184 -Werror \
185 -fno-exceptions \
186 -fno-strict-aliasing \
187 -Wall \
188 -Wno-unused-parameter \
189 -Wno-missing-field-initializers \
190 -fvisibility=hidden \
191 -pipe \
192 -fPIC \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000193 -Wno-unused-local-typedefs \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000194 -fno-builtin-cos \
195 -fno-builtin-sin \
196 -fno-builtin-cosf \
197 -fno-builtin-sinf \
198 -fno-builtin-cos \
199 -fno-builtin-sin \
200 -fno-builtin-cosf \
201 -fno-builtin-sinf \
202 -fno-tree-sra \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000203 -fno-partial-inlining \
204 -fno-early-inlining \
205 -fno-tree-copy-prop \
206 -fno-tree-loop-optimize \
207 -fno-move-loop-invariants \
208 -fno-caller-saves \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000209 -Wno-psabi \
210 -ffunction-sections \
211 -funwind-tables \
212 -g \
213 -fstack-protector \
214 -fno-short-enums \
215 -finline-limit=64 \
216 -Wa,--noexecstack \
217 -U_FORTIFY_SOURCE \
218 -Wno-extra \
219 -Wno-ignored-qualifiers \
220 -Wno-type-limits \
221 -Wno-unused-but-set-variable \
222 -Os \
223 -fno-ident \
224 -fdata-sections \
225 -ffunction-sections \
226 -fomit-frame-pointer \
227 -funwind-tables
228
229MY_DEFS_Release := \
230 '-DV8_DEPRECATION_WARNINGS' \
231 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
232 '-D_FILE_OFFSET_BITS=64' \
233 '-DNO_TCMALLOC' \
234 '-DDISABLE_NACL' \
235 '-DCHROMIUM_BUILD' \
236 '-DUSE_LIBJPEG_TURBO=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000237 '-DENABLE_WEBRTC=1' \
238 '-DUSE_PROPRIETARY_CODECS' \
Android Chromium Automergeradda09e2014-06-10 23:37:15 +0000239 '-DENABLE_BROWSER_CDMS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000240 '-DENABLE_CONFIGURATION_POLICY' \
241 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
242 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
243 '-DENABLE_EGLIMAGE=1' \
244 '-DCLD_VERSION=1' \
245 '-DENABLE_PRINTING=1' \
246 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100247 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
248 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
249 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
250 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
Android Chromium Automergerad3bcf42014-06-19 03:36:33 +0000251 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
Torne (Richard Coles)d658c112014-05-14 10:24:51 +0100252 '-DVIDEO_HOLE=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000253 '-DWEBRTC_RESTRICT_LOGGING' \
254 '-DWEBRTC_MODULE_UTILITY_VIDEO' \
255 '-DWEBRTC_CHROMIUM_BUILD' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100256 '-DLOGGING_INSIDE_WEBRTC' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000257 '-DWEBRTC_ARCH_ARM' \
258 '-DWEBRTC_ARCH_ARM_V7' \
259 '-DWEBRTC_DETECT_ARM_NEON' \
260 '-DWEBRTC_POSIX' \
261 '-DWEBRTC_LINUX' \
262 '-DWEBRTC_ANDROID' \
263 '-DWEBRTC_ANDROID_OPENSLES' \
264 '-DUSE_OPENSSL=1' \
265 '-DUSE_OPENSSL_CERTS=1' \
266 '-D__STDC_CONSTANT_MACROS' \
267 '-D__STDC_FORMAT_MACROS' \
268 '-DANDROID' \
269 '-D__GNU_SOURCE=1' \
270 '-DUSE_STLPORT=1' \
271 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
272 '-DCHROME_BUILD_ID=""' \
273 '-DNDEBUG' \
274 '-DNVALGRIND' \
275 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
276 '-D_FORTIFY_SOURCE=2'
277
278
279# Include paths placed before CFLAGS/CPPFLAGS
280LOCAL_C_INCLUDES_Release := \
Android Chromium Automergercb4fdd12014-06-16 14:50:41 +0000281 $(gyp_shared_intermediate_dir) \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000282 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100283 $(LOCAL_PATH)/third_party/webrtc/overrides \
284 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000285 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
286 $(LOCAL_PATH)/third_party/webrtc \
287 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
288 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
289 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
290 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
291 $(PWD)/frameworks/wilhelm/include \
292 $(PWD)/bionic \
293 $(PWD)/external/stlport/stlport
294
295
296# Flags passed to only C++ (and not C) files.
297LOCAL_CPPFLAGS_Release := \
298 -fno-rtti \
299 -fno-threadsafe-statics \
300 -fvisibility-inlines-hidden \
301 -Wsign-compare \
302 -Wno-abi \
303 -Wno-non-virtual-dtor \
304 -Wno-sign-promo
305
306
307LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
308LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
309LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
310LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
311### Rules for final target.
312
313LOCAL_LDFLAGS_Debug := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000314 -Wl,-z,now \
315 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000316 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000317 -Wl,-z,noexecstack \
318 -fPIC \
319 -Wl,-z,relro \
320 -Wl,-z,now \
321 -fuse-ld=gold \
322 -nostdlib \
323 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000324 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000325 -Wl,--icf=safe \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000326 -Wl,--warn-shared-textrel \
327 -Wl,-O1 \
328 -Wl,--as-needed
329
330
331LOCAL_LDFLAGS_Release := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000332 -Wl,-z,now \
333 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000334 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000335 -Wl,-z,noexecstack \
336 -fPIC \
337 -Wl,-z,relro \
338 -Wl,-z,now \
339 -fuse-ld=gold \
340 -nostdlib \
341 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000342 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000343 -Wl,--icf=safe \
344 -Wl,-O1 \
345 -Wl,--as-needed \
346 -Wl,--gc-sections \
347 -Wl,--warn-shared-textrel
348
349
350LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
351
352LOCAL_STATIC_LIBRARIES :=
353
354# Enable grouping to fix circular references
355LOCAL_GROUP_STATIC_LIBRARIES := true
356
357LOCAL_SHARED_LIBRARIES := \
358 libstlport \
359 libdl
360
361# Add target alias to "gyp_all_modules" target.
362.PHONY: gyp_all_modules
363gyp_all_modules: third_party_webrtc_modules_iSACFix_gyp
364
365# Alias gyp target name.
366.PHONY: iSACFix
367iSACFix: third_party_webrtc_modules_iSACFix_gyp
368
369include $(BUILD_STATIC_LIBRARY)