Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 1 | # This file is generated by gyp; do not edit. |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 6 | LOCAL_MODULE := third_party_webrtc_modules_NetEq4_gyp |
| 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
Android Chromium Automerger | c71dd0d | 2014-04-09 18:59:40 +0000 | [diff] [blame^] | 9 | LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) |
| 10 | gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) |
| 11 | gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 12 | |
| 13 | # Make sure our deps are built first. |
| 14 | GYP_TARGET_DEPENDENCIES := |
| 15 | |
| 16 | GYP_GENERATED_OUTPUTS := |
| 17 | |
| 18 | # Make sure our deps and generated files are built first. |
| 19 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 20 | |
| 21 | LOCAL_CPP_EXTENSION := .cc |
| 22 | LOCAL_GENERATED_SOURCES := |
| 23 | |
| 24 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 25 | |
| 26 | LOCAL_SRC_FILES := \ |
| 27 | third_party/webrtc/modules/audio_coding/neteq4/accelerate.cc \ |
| 28 | third_party/webrtc/modules/audio_coding/neteq4/audio_classifier.cc \ |
| 29 | third_party/webrtc/modules/audio_coding/neteq4/audio_decoder_impl.cc \ |
| 30 | third_party/webrtc/modules/audio_coding/neteq4/audio_decoder.cc \ |
| 31 | third_party/webrtc/modules/audio_coding/neteq4/audio_multi_vector.cc \ |
| 32 | third_party/webrtc/modules/audio_coding/neteq4/audio_vector.cc \ |
| 33 | third_party/webrtc/modules/audio_coding/neteq4/background_noise.cc \ |
| 34 | third_party/webrtc/modules/audio_coding/neteq4/buffer_level_filter.cc \ |
| 35 | third_party/webrtc/modules/audio_coding/neteq4/comfort_noise.cc \ |
| 36 | third_party/webrtc/modules/audio_coding/neteq4/decision_logic.cc \ |
| 37 | third_party/webrtc/modules/audio_coding/neteq4/decision_logic_fax.cc \ |
| 38 | third_party/webrtc/modules/audio_coding/neteq4/decision_logic_normal.cc \ |
| 39 | third_party/webrtc/modules/audio_coding/neteq4/decoder_database.cc \ |
| 40 | third_party/webrtc/modules/audio_coding/neteq4/delay_manager.cc \ |
| 41 | third_party/webrtc/modules/audio_coding/neteq4/delay_peak_detector.cc \ |
| 42 | third_party/webrtc/modules/audio_coding/neteq4/dsp_helper.cc \ |
| 43 | third_party/webrtc/modules/audio_coding/neteq4/dtmf_buffer.cc \ |
| 44 | third_party/webrtc/modules/audio_coding/neteq4/dtmf_tone_generator.cc \ |
| 45 | third_party/webrtc/modules/audio_coding/neteq4/expand.cc \ |
| 46 | third_party/webrtc/modules/audio_coding/neteq4/merge.cc \ |
| 47 | third_party/webrtc/modules/audio_coding/neteq4/neteq_impl.cc \ |
| 48 | third_party/webrtc/modules/audio_coding/neteq4/neteq.cc \ |
| 49 | third_party/webrtc/modules/audio_coding/neteq4/statistics_calculator.cc \ |
| 50 | third_party/webrtc/modules/audio_coding/neteq4/normal.cc \ |
| 51 | third_party/webrtc/modules/audio_coding/neteq4/packet_buffer.cc \ |
| 52 | third_party/webrtc/modules/audio_coding/neteq4/payload_splitter.cc \ |
| 53 | third_party/webrtc/modules/audio_coding/neteq4/post_decode_vad.cc \ |
| 54 | third_party/webrtc/modules/audio_coding/neteq4/preemptive_expand.cc \ |
| 55 | third_party/webrtc/modules/audio_coding/neteq4/random_vector.cc \ |
| 56 | third_party/webrtc/modules/audio_coding/neteq4/rtcp.cc \ |
| 57 | third_party/webrtc/modules/audio_coding/neteq4/sync_buffer.cc \ |
| 58 | third_party/webrtc/modules/audio_coding/neteq4/timestamp_scaler.cc \ |
| 59 | third_party/webrtc/modules/audio_coding/neteq4/time_stretch.cc |
| 60 | |
| 61 | |
| 62 | # Flags passed to both C and C++ files. |
| 63 | MY_CFLAGS_Debug := \ |
| 64 | -fstack-protector \ |
| 65 | --param=ssp-buffer-size=4 \ |
| 66 | -Werror \ |
| 67 | -fno-exceptions \ |
| 68 | -fno-strict-aliasing \ |
| 69 | -Wall \ |
| 70 | -Wno-unused-parameter \ |
| 71 | -Wno-missing-field-initializers \ |
| 72 | -fvisibility=hidden \ |
| 73 | -pipe \ |
| 74 | -fPIC \ |
| 75 | -fno-builtin-cos \ |
| 76 | -fno-builtin-sin \ |
| 77 | -fno-builtin-cosf \ |
| 78 | -fno-builtin-sinf \ |
| 79 | -fno-builtin-cos \ |
| 80 | -fno-builtin-sin \ |
| 81 | -fno-builtin-cosf \ |
| 82 | -fno-builtin-sinf \ |
| 83 | -fno-tree-sra \ |
| 84 | -fuse-ld=gold \ |
| 85 | -Wno-psabi \ |
| 86 | -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 \ |
| 100 | -fomit-frame-pointer \ |
| 101 | -fdata-sections \ |
| 102 | -ffunction-sections \ |
| 103 | -funwind-tables |
| 104 | |
| 105 | MY_DEFS_Debug := \ |
| 106 | '-DV8_DEPRECATION_WARNINGS' \ |
| 107 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
| 108 | '-D_FILE_OFFSET_BITS=64' \ |
| 109 | '-DNO_TCMALLOC' \ |
| 110 | '-DDISABLE_NACL' \ |
| 111 | '-DCHROMIUM_BUILD' \ |
| 112 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 113 | '-DENABLE_WEBRTC=1' \ |
| 114 | '-DUSE_PROPRIETARY_CODECS' \ |
| 115 | '-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' \ |
| 122 | '-DWEBRTC_RESTRICT_LOGGING' \ |
| 123 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 124 | '-DWEBRTC_CHROMIUM_BUILD' \ |
| 125 | '-DWEBRTC_ARCH_ARM' \ |
| 126 | '-DWEBRTC_ARCH_ARM_V7' \ |
| 127 | '-DWEBRTC_DETECT_ARM_NEON' \ |
| 128 | '-DWEBRTC_POSIX' \ |
| 129 | '-DWEBRTC_LINUX' \ |
| 130 | '-DWEBRTC_ANDROID' \ |
| 131 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 132 | '-DWEBRTC_CODEC_OPUS' \ |
| 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 |
| 148 | LOCAL_C_INCLUDES_Debug := \ |
| 149 | $(LOCAL_PATH)/third_party \ |
| 150 | $(LOCAL_PATH) \ |
| 151 | $(LOCAL_PATH)/third_party/opus/src/celt \ |
| 152 | $(LOCAL_PATH)/third_party/opus/src/src \ |
| 153 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ |
| 154 | $(LOCAL_PATH)/third_party/webrtc \ |
| 155 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g722/include \ |
| 156 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/pcm16b/include \ |
| 157 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ |
| 158 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/main/interface \ |
| 159 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \ |
| 160 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/cng/include \ |
| 161 | $(LOCAL_PATH)/third_party/opus/src/include \ |
| 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. |
| 172 | LOCAL_CPPFLAGS_Debug := \ |
| 173 | -fno-rtti \ |
| 174 | -fno-threadsafe-statics \ |
| 175 | -fvisibility-inlines-hidden \ |
| 176 | -Wsign-compare \ |
| 177 | -Wno-abi \ |
| 178 | -Wno-non-virtual-dtor \ |
| 179 | -Wno-sign-promo |
| 180 | |
| 181 | |
| 182 | # Flags passed to both C and C++ files. |
| 183 | MY_CFLAGS_Release := \ |
| 184 | -fstack-protector \ |
| 185 | --param=ssp-buffer-size=4 \ |
| 186 | -Werror \ |
| 187 | -fno-exceptions \ |
| 188 | -fno-strict-aliasing \ |
| 189 | -Wall \ |
| 190 | -Wno-unused-parameter \ |
| 191 | -Wno-missing-field-initializers \ |
| 192 | -fvisibility=hidden \ |
| 193 | -pipe \ |
| 194 | -fPIC \ |
| 195 | -fno-builtin-cos \ |
| 196 | -fno-builtin-sin \ |
| 197 | -fno-builtin-cosf \ |
| 198 | -fno-builtin-sinf \ |
| 199 | -fno-builtin-cos \ |
| 200 | -fno-builtin-sin \ |
| 201 | -fno-builtin-cosf \ |
| 202 | -fno-builtin-sinf \ |
| 203 | -fno-tree-sra \ |
| 204 | -fuse-ld=gold \ |
| 205 | -Wno-psabi \ |
| 206 | -ffunction-sections \ |
| 207 | -funwind-tables \ |
| 208 | -g \ |
| 209 | -fstack-protector \ |
| 210 | -fno-short-enums \ |
| 211 | -finline-limit=64 \ |
| 212 | -Wa,--noexecstack \ |
| 213 | -U_FORTIFY_SOURCE \ |
| 214 | -Wno-extra \ |
| 215 | -Wno-ignored-qualifiers \ |
| 216 | -Wno-type-limits \ |
| 217 | -Wno-unused-but-set-variable \ |
| 218 | -Os \ |
| 219 | -fno-ident \ |
| 220 | -fdata-sections \ |
| 221 | -ffunction-sections \ |
| 222 | -fomit-frame-pointer \ |
| 223 | -funwind-tables |
| 224 | |
| 225 | MY_DEFS_Release := \ |
| 226 | '-DV8_DEPRECATION_WARNINGS' \ |
| 227 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
| 228 | '-D_FILE_OFFSET_BITS=64' \ |
| 229 | '-DNO_TCMALLOC' \ |
| 230 | '-DDISABLE_NACL' \ |
| 231 | '-DCHROMIUM_BUILD' \ |
| 232 | '-DUSE_LIBJPEG_TURBO=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 233 | '-DENABLE_WEBRTC=1' \ |
| 234 | '-DUSE_PROPRIETARY_CODECS' \ |
| 235 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 236 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 237 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 238 | '-DENABLE_EGLIMAGE=1' \ |
| 239 | '-DCLD_VERSION=1' \ |
| 240 | '-DENABLE_PRINTING=1' \ |
| 241 | '-DENABLE_MANAGED_USERS=1' \ |
| 242 | '-DWEBRTC_RESTRICT_LOGGING' \ |
| 243 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 244 | '-DWEBRTC_CHROMIUM_BUILD' \ |
| 245 | '-DWEBRTC_ARCH_ARM' \ |
| 246 | '-DWEBRTC_ARCH_ARM_V7' \ |
| 247 | '-DWEBRTC_DETECT_ARM_NEON' \ |
| 248 | '-DWEBRTC_POSIX' \ |
| 249 | '-DWEBRTC_LINUX' \ |
| 250 | '-DWEBRTC_ANDROID' \ |
| 251 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 252 | '-DWEBRTC_CODEC_OPUS' \ |
| 253 | '-DUSE_OPENSSL=1' \ |
| 254 | '-DUSE_OPENSSL_CERTS=1' \ |
| 255 | '-D__STDC_CONSTANT_MACROS' \ |
| 256 | '-D__STDC_FORMAT_MACROS' \ |
| 257 | '-DANDROID' \ |
| 258 | '-D__GNU_SOURCE=1' \ |
| 259 | '-DUSE_STLPORT=1' \ |
| 260 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 261 | '-DCHROME_BUILD_ID=""' \ |
| 262 | '-DNDEBUG' \ |
| 263 | '-DNVALGRIND' \ |
| 264 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 265 | '-D_FORTIFY_SOURCE=2' |
| 266 | |
| 267 | |
| 268 | # Include paths placed before CFLAGS/CPPFLAGS |
| 269 | LOCAL_C_INCLUDES_Release := \ |
| 270 | $(LOCAL_PATH)/third_party \ |
| 271 | $(LOCAL_PATH) \ |
| 272 | $(LOCAL_PATH)/third_party/opus/src/celt \ |
| 273 | $(LOCAL_PATH)/third_party/opus/src/src \ |
| 274 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ |
| 275 | $(LOCAL_PATH)/third_party/webrtc \ |
| 276 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g722/include \ |
| 277 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/pcm16b/include \ |
| 278 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ |
| 279 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/main/interface \ |
| 280 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \ |
| 281 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/cng/include \ |
| 282 | $(LOCAL_PATH)/third_party/opus/src/include \ |
| 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. |
| 293 | LOCAL_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 | |
| 303 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 304 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 305 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 306 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 307 | ### Rules for final target. |
| 308 | |
| 309 | LOCAL_LDFLAGS_Debug := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 310 | -Wl,-z,now \ |
| 311 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 312 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 313 | -Wl,-z,noexecstack \ |
| 314 | -fPIC \ |
| 315 | -Wl,-z,relro \ |
| 316 | -Wl,-z,now \ |
| 317 | -fuse-ld=gold \ |
| 318 | -nostdlib \ |
| 319 | -Wl,--no-undefined \ |
| 320 | -Wl,--exclude-libs=ALL \ |
| 321 | -Wl,--icf=safe \ |
| 322 | -Wl,--gc-sections \ |
| 323 | -Wl,--warn-shared-textrel \ |
| 324 | -Wl,-O1 \ |
| 325 | -Wl,--as-needed |
| 326 | |
| 327 | |
| 328 | LOCAL_LDFLAGS_Release := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 329 | -Wl,-z,now \ |
| 330 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 331 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 332 | -Wl,-z,noexecstack \ |
| 333 | -fPIC \ |
| 334 | -Wl,-z,relro \ |
| 335 | -Wl,-z,now \ |
| 336 | -fuse-ld=gold \ |
| 337 | -nostdlib \ |
| 338 | -Wl,--no-undefined \ |
| 339 | -Wl,--exclude-libs=ALL \ |
| 340 | -Wl,--icf=safe \ |
| 341 | -Wl,-O1 \ |
| 342 | -Wl,--as-needed \ |
| 343 | -Wl,--gc-sections \ |
| 344 | -Wl,--warn-shared-textrel |
| 345 | |
| 346 | |
| 347 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 348 | |
| 349 | LOCAL_STATIC_LIBRARIES := |
| 350 | |
| 351 | # Enable grouping to fix circular references |
| 352 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 353 | |
| 354 | LOCAL_SHARED_LIBRARIES := \ |
| 355 | libstlport \ |
| 356 | libdl |
| 357 | |
| 358 | # Add target alias to "gyp_all_modules" target. |
| 359 | .PHONY: gyp_all_modules |
| 360 | gyp_all_modules: third_party_webrtc_modules_NetEq4_gyp |
| 361 | |
| 362 | # Alias gyp target name. |
| 363 | .PHONY: NetEq4 |
| 364 | NetEq4: third_party_webrtc_modules_NetEq4_gyp |
| 365 | |
| 366 | include $(BUILD_STATIC_LIBRARY) |