blob: fdf4f11b811e225835aeb16dcebb2af1bd2e93e1 [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"' \
Torne (Richard Coles)d658c112014-05-14 10:24:51 +0100125 '-DVIDEO_HOLE=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000126 '-DWEBRTC_RESTRICT_LOGGING' \
127 '-DWEBRTC_MODULE_UTILITY_VIDEO' \
128 '-DWEBRTC_CHROMIUM_BUILD' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100129 '-DLOGGING_INSIDE_WEBRTC' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000130 '-DWEBRTC_ARCH_ARM' \
131 '-DWEBRTC_ARCH_ARM_V7' \
132 '-DWEBRTC_DETECT_ARM_NEON' \
133 '-DWEBRTC_POSIX' \
134 '-DWEBRTC_LINUX' \
135 '-DWEBRTC_ANDROID' \
136 '-DWEBRTC_ANDROID_OPENSLES' \
137 '-DUSE_OPENSSL=1' \
138 '-DUSE_OPENSSL_CERTS=1' \
139 '-D__STDC_CONSTANT_MACROS' \
140 '-D__STDC_FORMAT_MACROS' \
141 '-DANDROID' \
142 '-D__GNU_SOURCE=1' \
143 '-DUSE_STLPORT=1' \
144 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
145 '-DCHROME_BUILD_ID=""' \
146 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
147 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
148 '-D_DEBUG'
149
150
151# Include paths placed before CFLAGS/CPPFLAGS
152LOCAL_C_INCLUDES_Debug := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000153 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100154 $(LOCAL_PATH)/third_party/webrtc/overrides \
155 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000156 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
157 $(LOCAL_PATH)/third_party/webrtc \
158 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
159 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
160 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
161 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
162 $(PWD)/frameworks/wilhelm/include \
163 $(PWD)/bionic \
164 $(PWD)/external/stlport/stlport
165
166
167# Flags passed to only C++ (and not C) files.
168LOCAL_CPPFLAGS_Debug := \
169 -fno-rtti \
170 -fno-threadsafe-statics \
171 -fvisibility-inlines-hidden \
172 -Wsign-compare \
173 -Wno-abi \
174 -Wno-non-virtual-dtor \
175 -Wno-sign-promo
176
177
178# Flags passed to both C and C++ files.
179MY_CFLAGS_Release := \
180 -fstack-protector \
181 --param=ssp-buffer-size=4 \
182 -Werror \
183 -fno-exceptions \
184 -fno-strict-aliasing \
185 -Wall \
186 -Wno-unused-parameter \
187 -Wno-missing-field-initializers \
188 -fvisibility=hidden \
189 -pipe \
190 -fPIC \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000191 -Wno-unused-local-typedefs \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000192 -fno-builtin-cos \
193 -fno-builtin-sin \
194 -fno-builtin-cosf \
195 -fno-builtin-sinf \
196 -fno-builtin-cos \
197 -fno-builtin-sin \
198 -fno-builtin-cosf \
199 -fno-builtin-sinf \
200 -fno-tree-sra \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000201 -fno-partial-inlining \
202 -fno-early-inlining \
203 -fno-tree-copy-prop \
204 -fno-tree-loop-optimize \
205 -fno-move-loop-invariants \
206 -fno-caller-saves \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000207 -Wno-psabi \
208 -ffunction-sections \
209 -funwind-tables \
210 -g \
211 -fstack-protector \
212 -fno-short-enums \
213 -finline-limit=64 \
214 -Wa,--noexecstack \
215 -U_FORTIFY_SOURCE \
216 -Wno-extra \
217 -Wno-ignored-qualifiers \
218 -Wno-type-limits \
219 -Wno-unused-but-set-variable \
220 -Os \
221 -fno-ident \
222 -fdata-sections \
223 -ffunction-sections \
224 -fomit-frame-pointer \
225 -funwind-tables
226
227MY_DEFS_Release := \
228 '-DV8_DEPRECATION_WARNINGS' \
229 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
230 '-D_FILE_OFFSET_BITS=64' \
231 '-DNO_TCMALLOC' \
232 '-DDISABLE_NACL' \
233 '-DCHROMIUM_BUILD' \
234 '-DUSE_LIBJPEG_TURBO=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000235 '-DENABLE_WEBRTC=1' \
236 '-DUSE_PROPRIETARY_CODECS' \
Android Chromium Automergeradda09e2014-06-10 23:37:15 +0000237 '-DENABLE_BROWSER_CDMS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000238 '-DENABLE_CONFIGURATION_POLICY' \
239 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
240 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
241 '-DENABLE_EGLIMAGE=1' \
242 '-DCLD_VERSION=1' \
243 '-DENABLE_PRINTING=1' \
244 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100245 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
246 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
247 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
248 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
Torne (Richard Coles)d658c112014-05-14 10:24:51 +0100249 '-DVIDEO_HOLE=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000250 '-DWEBRTC_RESTRICT_LOGGING' \
251 '-DWEBRTC_MODULE_UTILITY_VIDEO' \
252 '-DWEBRTC_CHROMIUM_BUILD' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100253 '-DLOGGING_INSIDE_WEBRTC' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000254 '-DWEBRTC_ARCH_ARM' \
255 '-DWEBRTC_ARCH_ARM_V7' \
256 '-DWEBRTC_DETECT_ARM_NEON' \
257 '-DWEBRTC_POSIX' \
258 '-DWEBRTC_LINUX' \
259 '-DWEBRTC_ANDROID' \
260 '-DWEBRTC_ANDROID_OPENSLES' \
261 '-DUSE_OPENSSL=1' \
262 '-DUSE_OPENSSL_CERTS=1' \
263 '-D__STDC_CONSTANT_MACROS' \
264 '-D__STDC_FORMAT_MACROS' \
265 '-DANDROID' \
266 '-D__GNU_SOURCE=1' \
267 '-DUSE_STLPORT=1' \
268 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
269 '-DCHROME_BUILD_ID=""' \
270 '-DNDEBUG' \
271 '-DNVALGRIND' \
272 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
273 '-D_FORTIFY_SOURCE=2'
274
275
276# Include paths placed before CFLAGS/CPPFLAGS
277LOCAL_C_INCLUDES_Release := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000278 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100279 $(LOCAL_PATH)/third_party/webrtc/overrides \
280 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000281 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
282 $(LOCAL_PATH)/third_party/webrtc \
283 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
284 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
285 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
286 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
287 $(PWD)/frameworks/wilhelm/include \
288 $(PWD)/bionic \
289 $(PWD)/external/stlport/stlport
290
291
292# Flags passed to only C++ (and not C) files.
293LOCAL_CPPFLAGS_Release := \
294 -fno-rtti \
295 -fno-threadsafe-statics \
296 -fvisibility-inlines-hidden \
297 -Wsign-compare \
298 -Wno-abi \
299 -Wno-non-virtual-dtor \
300 -Wno-sign-promo
301
302
303LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
304LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
305LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
306LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
307### Rules for final target.
308
309LOCAL_LDFLAGS_Debug := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000310 -Wl,-z,now \
311 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000312 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000313 -Wl,-z,noexecstack \
314 -fPIC \
315 -Wl,-z,relro \
316 -Wl,-z,now \
317 -fuse-ld=gold \
318 -nostdlib \
319 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000320 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000321 -Wl,--icf=safe \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000322 -Wl,--warn-shared-textrel \
323 -Wl,-O1 \
324 -Wl,--as-needed
325
326
327LOCAL_LDFLAGS_Release := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000328 -Wl,-z,now \
329 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000330 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000331 -Wl,-z,noexecstack \
332 -fPIC \
333 -Wl,-z,relro \
334 -Wl,-z,now \
335 -fuse-ld=gold \
336 -nostdlib \
337 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000338 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000339 -Wl,--icf=safe \
340 -Wl,-O1 \
341 -Wl,--as-needed \
342 -Wl,--gc-sections \
343 -Wl,--warn-shared-textrel
344
345
346LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
347
348LOCAL_STATIC_LIBRARIES :=
349
350# Enable grouping to fix circular references
351LOCAL_GROUP_STATIC_LIBRARIES := true
352
353LOCAL_SHARED_LIBRARIES := \
354 libstlport \
355 libdl
356
357# Add target alias to "gyp_all_modules" target.
358.PHONY: gyp_all_modules
359gyp_all_modules: third_party_webrtc_modules_iSACFix_gyp
360
361# Alias gyp target name.
362.PHONY: iSACFix
363iSACFix: third_party_webrtc_modules_iSACFix_gyp
364
365include $(BUILD_STATIC_LIBRARY)