blob: 55aebcf056940179c8b81a71fd49191ad617a06a [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 Automergercb4fdd12014-06-16 14:50:41 +0000153 $(gyp_shared_intermediate_dir) \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000154 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100155 $(LOCAL_PATH)/third_party/webrtc/overrides \
156 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000157 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
158 $(LOCAL_PATH)/third_party/webrtc \
159 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
160 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
161 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
162 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
163 $(PWD)/frameworks/wilhelm/include \
164 $(PWD)/bionic \
165 $(PWD)/external/stlport/stlport
166
167
168# Flags passed to only C++ (and not C) files.
169LOCAL_CPPFLAGS_Debug := \
170 -fno-rtti \
171 -fno-threadsafe-statics \
172 -fvisibility-inlines-hidden \
173 -Wsign-compare \
174 -Wno-abi \
175 -Wno-non-virtual-dtor \
176 -Wno-sign-promo
177
178
179# Flags passed to both C and C++ files.
180MY_CFLAGS_Release := \
181 -fstack-protector \
182 --param=ssp-buffer-size=4 \
183 -Werror \
184 -fno-exceptions \
185 -fno-strict-aliasing \
186 -Wall \
187 -Wno-unused-parameter \
188 -Wno-missing-field-initializers \
189 -fvisibility=hidden \
190 -pipe \
191 -fPIC \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000192 -Wno-unused-local-typedefs \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000193 -fno-builtin-cos \
194 -fno-builtin-sin \
195 -fno-builtin-cosf \
196 -fno-builtin-sinf \
197 -fno-builtin-cos \
198 -fno-builtin-sin \
199 -fno-builtin-cosf \
200 -fno-builtin-sinf \
201 -fno-tree-sra \
Android Chromium Automerger52dfe972014-05-28 16:21:48 +0000202 -fno-partial-inlining \
203 -fno-early-inlining \
204 -fno-tree-copy-prop \
205 -fno-tree-loop-optimize \
206 -fno-move-loop-invariants \
207 -fno-caller-saves \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000208 -Wno-psabi \
209 -ffunction-sections \
210 -funwind-tables \
211 -g \
212 -fstack-protector \
213 -fno-short-enums \
214 -finline-limit=64 \
215 -Wa,--noexecstack \
216 -U_FORTIFY_SOURCE \
217 -Wno-extra \
218 -Wno-ignored-qualifiers \
219 -Wno-type-limits \
220 -Wno-unused-but-set-variable \
221 -Os \
222 -fno-ident \
223 -fdata-sections \
224 -ffunction-sections \
225 -fomit-frame-pointer \
226 -funwind-tables
227
228MY_DEFS_Release := \
229 '-DV8_DEPRECATION_WARNINGS' \
230 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
231 '-D_FILE_OFFSET_BITS=64' \
232 '-DNO_TCMALLOC' \
233 '-DDISABLE_NACL' \
234 '-DCHROMIUM_BUILD' \
235 '-DUSE_LIBJPEG_TURBO=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000236 '-DENABLE_WEBRTC=1' \
237 '-DUSE_PROPRIETARY_CODECS' \
Android Chromium Automergeradda09e2014-06-10 23:37:15 +0000238 '-DENABLE_BROWSER_CDMS' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000239 '-DENABLE_CONFIGURATION_POLICY' \
240 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
241 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
242 '-DENABLE_EGLIMAGE=1' \
243 '-DCLD_VERSION=1' \
244 '-DENABLE_PRINTING=1' \
245 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100246 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
247 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
248 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
249 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
Torne (Richard Coles)d658c112014-05-14 10:24:51 +0100250 '-DVIDEO_HOLE=1' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000251 '-DWEBRTC_RESTRICT_LOGGING' \
252 '-DWEBRTC_MODULE_UTILITY_VIDEO' \
253 '-DWEBRTC_CHROMIUM_BUILD' \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100254 '-DLOGGING_INSIDE_WEBRTC' \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000255 '-DWEBRTC_ARCH_ARM' \
256 '-DWEBRTC_ARCH_ARM_V7' \
257 '-DWEBRTC_DETECT_ARM_NEON' \
258 '-DWEBRTC_POSIX' \
259 '-DWEBRTC_LINUX' \
260 '-DWEBRTC_ANDROID' \
261 '-DWEBRTC_ANDROID_OPENSLES' \
262 '-DUSE_OPENSSL=1' \
263 '-DUSE_OPENSSL_CERTS=1' \
264 '-D__STDC_CONSTANT_MACROS' \
265 '-D__STDC_FORMAT_MACROS' \
266 '-DANDROID' \
267 '-D__GNU_SOURCE=1' \
268 '-DUSE_STLPORT=1' \
269 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
270 '-DCHROME_BUILD_ID=""' \
271 '-DNDEBUG' \
272 '-DNVALGRIND' \
273 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
274 '-D_FORTIFY_SOURCE=2'
275
276
277# Include paths placed before CFLAGS/CPPFLAGS
278LOCAL_C_INCLUDES_Release := \
Android Chromium Automergercb4fdd12014-06-16 14:50:41 +0000279 $(gyp_shared_intermediate_dir) \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000280 $(LOCAL_PATH) \
Torne (Richard Coles)618be312014-05-16 13:16:00 +0100281 $(LOCAL_PATH)/third_party/webrtc/overrides \
282 $(LOCAL_PATH)/third_party \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000283 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \
284 $(LOCAL_PATH)/third_party/webrtc \
285 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
286 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
287 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \
288 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
289 $(PWD)/frameworks/wilhelm/include \
290 $(PWD)/bionic \
291 $(PWD)/external/stlport/stlport
292
293
294# Flags passed to only C++ (and not C) files.
295LOCAL_CPPFLAGS_Release := \
296 -fno-rtti \
297 -fno-threadsafe-statics \
298 -fvisibility-inlines-hidden \
299 -Wsign-compare \
300 -Wno-abi \
301 -Wno-non-virtual-dtor \
302 -Wno-sign-promo
303
304
305LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
306LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
307LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
308LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
309### Rules for final target.
310
311LOCAL_LDFLAGS_Debug := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000312 -Wl,-z,now \
313 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000314 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000315 -Wl,-z,noexecstack \
316 -fPIC \
317 -Wl,-z,relro \
318 -Wl,-z,now \
319 -fuse-ld=gold \
320 -nostdlib \
321 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000322 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000323 -Wl,--icf=safe \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000324 -Wl,--warn-shared-textrel \
325 -Wl,-O1 \
326 -Wl,--as-needed
327
328
329LOCAL_LDFLAGS_Release := \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000330 -Wl,-z,now \
331 -Wl,-z,relro \
Android Chromium Automerger97a64e22014-04-07 11:28:24 +0000332 -Wl,--fatal-warnings \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000333 -Wl,-z,noexecstack \
334 -fPIC \
335 -Wl,-z,relro \
336 -Wl,-z,now \
337 -fuse-ld=gold \
338 -nostdlib \
339 -Wl,--no-undefined \
Android Chromium Automerger8097a462014-06-09 17:44:56 +0000340 -Wl,--exclude-libs=ALL \
Android Chromium Automerger2ebb6ba2014-04-01 19:42:48 +0000341 -Wl,--icf=safe \
342 -Wl,-O1 \
343 -Wl,--as-needed \
344 -Wl,--gc-sections \
345 -Wl,--warn-shared-textrel
346
347
348LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
349
350LOCAL_STATIC_LIBRARIES :=
351
352# Enable grouping to fix circular references
353LOCAL_GROUP_STATIC_LIBRARIES := true
354
355LOCAL_SHARED_LIBRARIES := \
356 libstlport \
357 libdl
358
359# Add target alias to "gyp_all_modules" target.
360.PHONY: gyp_all_modules
361gyp_all_modules: third_party_webrtc_modules_iSACFix_gyp
362
363# Alias gyp target name.
364.PHONY: iSACFix
365iSACFix: third_party_webrtc_modules_iSACFix_gyp
366
367include $(BUILD_STATIC_LIBRARY)