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_iLBC_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_GENERATED_SOURCES := |
| 22 | |
| 23 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 24 | |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | third_party/webrtc/modules/audio_coding/codecs/ilbc/abs_quant.c \ |
| 27 | third_party/webrtc/modules/audio_coding/codecs/ilbc/abs_quant_loop.c \ |
| 28 | third_party/webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.c \ |
| 29 | third_party/webrtc/modules/audio_coding/codecs/ilbc/bw_expand.c \ |
| 30 | third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.c \ |
| 31 | third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy.c \ |
| 32 | third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_augmentation.c \ |
| 33 | third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c \ |
| 34 | third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_search.c \ |
| 35 | third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_search_core.c \ |
| 36 | third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_update_best_index.c \ |
| 37 | third_party/webrtc/modules/audio_coding/codecs/ilbc/chebyshev.c \ |
| 38 | third_party/webrtc/modules/audio_coding/codecs/ilbc/comp_corr.c \ |
| 39 | third_party/webrtc/modules/audio_coding/codecs/ilbc/constants.c \ |
| 40 | third_party/webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c \ |
| 41 | third_party/webrtc/modules/audio_coding/codecs/ilbc/decode.c \ |
| 42 | third_party/webrtc/modules/audio_coding/codecs/ilbc/decode_residual.c \ |
| 43 | third_party/webrtc/modules/audio_coding/codecs/ilbc/decoder_interpolate_lsf.c \ |
| 44 | third_party/webrtc/modules/audio_coding/codecs/ilbc/do_plc.c \ |
| 45 | third_party/webrtc/modules/audio_coding/codecs/ilbc/encode.c \ |
| 46 | third_party/webrtc/modules/audio_coding/codecs/ilbc/energy_inverse.c \ |
| 47 | third_party/webrtc/modules/audio_coding/codecs/ilbc/enh_upsample.c \ |
| 48 | third_party/webrtc/modules/audio_coding/codecs/ilbc/enhancer.c \ |
| 49 | third_party/webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c \ |
| 50 | third_party/webrtc/modules/audio_coding/codecs/ilbc/filtered_cb_vecs.c \ |
| 51 | third_party/webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c \ |
| 52 | third_party/webrtc/modules/audio_coding/codecs/ilbc/gain_dequant.c \ |
| 53 | third_party/webrtc/modules/audio_coding/codecs/ilbc/gain_quant.c \ |
| 54 | third_party/webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.c \ |
| 55 | third_party/webrtc/modules/audio_coding/codecs/ilbc/get_lsp_poly.c \ |
| 56 | third_party/webrtc/modules/audio_coding/codecs/ilbc/get_sync_seq.c \ |
| 57 | third_party/webrtc/modules/audio_coding/codecs/ilbc/hp_input.c \ |
| 58 | third_party/webrtc/modules/audio_coding/codecs/ilbc/hp_output.c \ |
| 59 | third_party/webrtc/modules/audio_coding/codecs/ilbc/ilbc.c \ |
| 60 | third_party/webrtc/modules/audio_coding/codecs/ilbc/index_conv_dec.c \ |
| 61 | third_party/webrtc/modules/audio_coding/codecs/ilbc/index_conv_enc.c \ |
| 62 | third_party/webrtc/modules/audio_coding/codecs/ilbc/init_decode.c \ |
| 63 | third_party/webrtc/modules/audio_coding/codecs/ilbc/init_encode.c \ |
| 64 | third_party/webrtc/modules/audio_coding/codecs/ilbc/interpolate.c \ |
| 65 | third_party/webrtc/modules/audio_coding/codecs/ilbc/interpolate_samples.c \ |
| 66 | third_party/webrtc/modules/audio_coding/codecs/ilbc/lpc_encode.c \ |
| 67 | third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_check.c \ |
| 68 | third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_interpolate_to_poly_dec.c \ |
| 69 | third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_interpolate_to_poly_enc.c \ |
| 70 | third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_to_lsp.c \ |
| 71 | third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_to_poly.c \ |
| 72 | third_party/webrtc/modules/audio_coding/codecs/ilbc/lsp_to_lsf.c \ |
| 73 | third_party/webrtc/modules/audio_coding/codecs/ilbc/my_corr.c \ |
| 74 | third_party/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c \ |
| 75 | third_party/webrtc/modules/audio_coding/codecs/ilbc/pack_bits.c \ |
| 76 | third_party/webrtc/modules/audio_coding/codecs/ilbc/poly_to_lsf.c \ |
| 77 | third_party/webrtc/modules/audio_coding/codecs/ilbc/poly_to_lsp.c \ |
| 78 | third_party/webrtc/modules/audio_coding/codecs/ilbc/refiner.c \ |
| 79 | third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_interpolate_lsf.c \ |
| 80 | third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_lpc_analysis.c \ |
| 81 | third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_lsf_dequant.c \ |
| 82 | third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_lsf_quant.c \ |
| 83 | third_party/webrtc/modules/audio_coding/codecs/ilbc/smooth.c \ |
| 84 | third_party/webrtc/modules/audio_coding/codecs/ilbc/smooth_out_data.c \ |
| 85 | third_party/webrtc/modules/audio_coding/codecs/ilbc/sort_sq.c \ |
| 86 | third_party/webrtc/modules/audio_coding/codecs/ilbc/split_vq.c \ |
| 87 | third_party/webrtc/modules/audio_coding/codecs/ilbc/state_construct.c \ |
| 88 | third_party/webrtc/modules/audio_coding/codecs/ilbc/state_search.c \ |
| 89 | third_party/webrtc/modules/audio_coding/codecs/ilbc/swap_bytes.c \ |
| 90 | third_party/webrtc/modules/audio_coding/codecs/ilbc/unpack_bits.c \ |
| 91 | third_party/webrtc/modules/audio_coding/codecs/ilbc/vq3.c \ |
| 92 | third_party/webrtc/modules/audio_coding/codecs/ilbc/vq4.c \ |
| 93 | third_party/webrtc/modules/audio_coding/codecs/ilbc/window32_w32.c \ |
| 94 | third_party/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c |
| 95 | |
| 96 | |
| 97 | # Flags passed to both C and C++ files. |
| 98 | MY_CFLAGS_Debug := \ |
| 99 | -fstack-protector \ |
| 100 | --param=ssp-buffer-size=4 \ |
| 101 | -Werror \ |
| 102 | -fno-exceptions \ |
| 103 | -fno-strict-aliasing \ |
| 104 | -Wall \ |
| 105 | -Wno-unused-parameter \ |
| 106 | -Wno-missing-field-initializers \ |
| 107 | -fvisibility=hidden \ |
| 108 | -pipe \ |
| 109 | -fPIC \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 110 | -Wno-unused-local-typedefs \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 111 | -fno-builtin-cos \ |
| 112 | -fno-builtin-sin \ |
| 113 | -fno-builtin-cosf \ |
| 114 | -fno-builtin-sinf \ |
| 115 | -fno-builtin-cos \ |
| 116 | -fno-builtin-sin \ |
| 117 | -fno-builtin-cosf \ |
| 118 | -fno-builtin-sinf \ |
| 119 | -fno-tree-sra \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 120 | -fno-partial-inlining \ |
| 121 | -fno-early-inlining \ |
| 122 | -fno-tree-copy-prop \ |
| 123 | -fno-tree-loop-optimize \ |
| 124 | -fno-move-loop-invariants \ |
| 125 | -fno-caller-saves \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 126 | -Wno-psabi \ |
| 127 | -ffunction-sections \ |
| 128 | -funwind-tables \ |
| 129 | -g \ |
| 130 | -fstack-protector \ |
| 131 | -fno-short-enums \ |
| 132 | -finline-limit=64 \ |
| 133 | -Wa,--noexecstack \ |
| 134 | -U_FORTIFY_SOURCE \ |
| 135 | -Wno-extra \ |
| 136 | -Wno-ignored-qualifiers \ |
| 137 | -Wno-type-limits \ |
| 138 | -Wno-unused-but-set-variable \ |
| 139 | -Os \ |
| 140 | -g \ |
| 141 | -fomit-frame-pointer \ |
| 142 | -fdata-sections \ |
| 143 | -ffunction-sections \ |
| 144 | -funwind-tables |
| 145 | |
| 146 | MY_DEFS_Debug := \ |
| 147 | '-DV8_DEPRECATION_WARNINGS' \ |
| 148 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
| 149 | '-D_FILE_OFFSET_BITS=64' \ |
| 150 | '-DNO_TCMALLOC' \ |
| 151 | '-DDISABLE_NACL' \ |
| 152 | '-DCHROMIUM_BUILD' \ |
| 153 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 154 | '-DENABLE_WEBRTC=1' \ |
| 155 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 156 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 157 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 158 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 159 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 160 | '-DENABLE_EGLIMAGE=1' \ |
| 161 | '-DCLD_VERSION=1' \ |
| 162 | '-DENABLE_PRINTING=1' \ |
| 163 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 164 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 165 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 166 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 167 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 168 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 169 | '-DWEBRTC_RESTRICT_LOGGING' \ |
| 170 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 171 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 172 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 173 | '-DWEBRTC_ARCH_ARM' \ |
| 174 | '-DWEBRTC_ARCH_ARM_V7' \ |
| 175 | '-DWEBRTC_DETECT_ARM_NEON' \ |
| 176 | '-DWEBRTC_POSIX' \ |
| 177 | '-DWEBRTC_LINUX' \ |
| 178 | '-DWEBRTC_ANDROID' \ |
| 179 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 180 | '-DUSE_OPENSSL=1' \ |
| 181 | '-DUSE_OPENSSL_CERTS=1' \ |
| 182 | '-D__STDC_CONSTANT_MACROS' \ |
| 183 | '-D__STDC_FORMAT_MACROS' \ |
| 184 | '-DANDROID' \ |
| 185 | '-D__GNU_SOURCE=1' \ |
| 186 | '-DUSE_STLPORT=1' \ |
| 187 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 188 | '-DCHROME_BUILD_ID=""' \ |
| 189 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 190 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 191 | '-D_DEBUG' |
| 192 | |
| 193 | |
| 194 | # Include paths placed before CFLAGS/CPPFLAGS |
| 195 | LOCAL_C_INCLUDES_Debug := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame^] | 196 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 197 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 198 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 199 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 200 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ |
| 201 | $(LOCAL_PATH)/third_party/webrtc \ |
| 202 | $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ |
| 203 | $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ |
| 204 | $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ |
| 205 | $(PWD)/frameworks/wilhelm/include \ |
| 206 | $(PWD)/bionic \ |
| 207 | $(PWD)/external/stlport/stlport |
| 208 | |
| 209 | |
| 210 | # Flags passed to only C++ (and not C) files. |
| 211 | LOCAL_CPPFLAGS_Debug := \ |
| 212 | -fno-rtti \ |
| 213 | -fno-threadsafe-statics \ |
| 214 | -fvisibility-inlines-hidden \ |
| 215 | -Wsign-compare \ |
| 216 | -Wno-abi \ |
| 217 | -Wno-non-virtual-dtor \ |
| 218 | -Wno-sign-promo |
| 219 | |
| 220 | |
| 221 | # Flags passed to both C and C++ files. |
| 222 | MY_CFLAGS_Release := \ |
| 223 | -fstack-protector \ |
| 224 | --param=ssp-buffer-size=4 \ |
| 225 | -Werror \ |
| 226 | -fno-exceptions \ |
| 227 | -fno-strict-aliasing \ |
| 228 | -Wall \ |
| 229 | -Wno-unused-parameter \ |
| 230 | -Wno-missing-field-initializers \ |
| 231 | -fvisibility=hidden \ |
| 232 | -pipe \ |
| 233 | -fPIC \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 234 | -Wno-unused-local-typedefs \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 235 | -fno-builtin-cos \ |
| 236 | -fno-builtin-sin \ |
| 237 | -fno-builtin-cosf \ |
| 238 | -fno-builtin-sinf \ |
| 239 | -fno-builtin-cos \ |
| 240 | -fno-builtin-sin \ |
| 241 | -fno-builtin-cosf \ |
| 242 | -fno-builtin-sinf \ |
| 243 | -fno-tree-sra \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 244 | -fno-partial-inlining \ |
| 245 | -fno-early-inlining \ |
| 246 | -fno-tree-copy-prop \ |
| 247 | -fno-tree-loop-optimize \ |
| 248 | -fno-move-loop-invariants \ |
| 249 | -fno-caller-saves \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 250 | -Wno-psabi \ |
| 251 | -ffunction-sections \ |
| 252 | -funwind-tables \ |
| 253 | -g \ |
| 254 | -fstack-protector \ |
| 255 | -fno-short-enums \ |
| 256 | -finline-limit=64 \ |
| 257 | -Wa,--noexecstack \ |
| 258 | -U_FORTIFY_SOURCE \ |
| 259 | -Wno-extra \ |
| 260 | -Wno-ignored-qualifiers \ |
| 261 | -Wno-type-limits \ |
| 262 | -Wno-unused-but-set-variable \ |
| 263 | -Os \ |
| 264 | -fno-ident \ |
| 265 | -fdata-sections \ |
| 266 | -ffunction-sections \ |
| 267 | -fomit-frame-pointer \ |
| 268 | -funwind-tables |
| 269 | |
| 270 | MY_DEFS_Release := \ |
| 271 | '-DV8_DEPRECATION_WARNINGS' \ |
| 272 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
| 273 | '-D_FILE_OFFSET_BITS=64' \ |
| 274 | '-DNO_TCMALLOC' \ |
| 275 | '-DDISABLE_NACL' \ |
| 276 | '-DCHROMIUM_BUILD' \ |
| 277 | '-DUSE_LIBJPEG_TURBO=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 278 | '-DENABLE_WEBRTC=1' \ |
| 279 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 280 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 281 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 282 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 283 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 284 | '-DENABLE_EGLIMAGE=1' \ |
| 285 | '-DCLD_VERSION=1' \ |
| 286 | '-DENABLE_PRINTING=1' \ |
| 287 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 288 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 289 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 290 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 291 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 292 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 293 | '-DWEBRTC_RESTRICT_LOGGING' \ |
| 294 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 295 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 296 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 297 | '-DWEBRTC_ARCH_ARM' \ |
| 298 | '-DWEBRTC_ARCH_ARM_V7' \ |
| 299 | '-DWEBRTC_DETECT_ARM_NEON' \ |
| 300 | '-DWEBRTC_POSIX' \ |
| 301 | '-DWEBRTC_LINUX' \ |
| 302 | '-DWEBRTC_ANDROID' \ |
| 303 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 304 | '-DUSE_OPENSSL=1' \ |
| 305 | '-DUSE_OPENSSL_CERTS=1' \ |
| 306 | '-D__STDC_CONSTANT_MACROS' \ |
| 307 | '-D__STDC_FORMAT_MACROS' \ |
| 308 | '-DANDROID' \ |
| 309 | '-D__GNU_SOURCE=1' \ |
| 310 | '-DUSE_STLPORT=1' \ |
| 311 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 312 | '-DCHROME_BUILD_ID=""' \ |
| 313 | '-DNDEBUG' \ |
| 314 | '-DNVALGRIND' \ |
| 315 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 316 | '-D_FORTIFY_SOURCE=2' |
| 317 | |
| 318 | |
| 319 | # Include paths placed before CFLAGS/CPPFLAGS |
| 320 | LOCAL_C_INCLUDES_Release := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame^] | 321 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 322 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 323 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 324 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 325 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ |
| 326 | $(LOCAL_PATH)/third_party/webrtc \ |
| 327 | $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ |
| 328 | $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ |
| 329 | $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ |
| 330 | $(PWD)/frameworks/wilhelm/include \ |
| 331 | $(PWD)/bionic \ |
| 332 | $(PWD)/external/stlport/stlport |
| 333 | |
| 334 | |
| 335 | # Flags passed to only C++ (and not C) files. |
| 336 | LOCAL_CPPFLAGS_Release := \ |
| 337 | -fno-rtti \ |
| 338 | -fno-threadsafe-statics \ |
| 339 | -fvisibility-inlines-hidden \ |
| 340 | -Wsign-compare \ |
| 341 | -Wno-abi \ |
| 342 | -Wno-non-virtual-dtor \ |
| 343 | -Wno-sign-promo |
| 344 | |
| 345 | |
| 346 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 347 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 348 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 349 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 350 | ### Rules for final target. |
| 351 | |
| 352 | LOCAL_LDFLAGS_Debug := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 353 | -Wl,-z,now \ |
| 354 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 355 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 356 | -Wl,-z,noexecstack \ |
| 357 | -fPIC \ |
| 358 | -Wl,-z,relro \ |
| 359 | -Wl,-z,now \ |
| 360 | -fuse-ld=gold \ |
| 361 | -nostdlib \ |
| 362 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 363 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 364 | -Wl,--icf=safe \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 365 | -Wl,--warn-shared-textrel \ |
| 366 | -Wl,-O1 \ |
| 367 | -Wl,--as-needed |
| 368 | |
| 369 | |
| 370 | LOCAL_LDFLAGS_Release := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 371 | -Wl,-z,now \ |
| 372 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 373 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 374 | -Wl,-z,noexecstack \ |
| 375 | -fPIC \ |
| 376 | -Wl,-z,relro \ |
| 377 | -Wl,-z,now \ |
| 378 | -fuse-ld=gold \ |
| 379 | -nostdlib \ |
| 380 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 381 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 382 | -Wl,--icf=safe \ |
| 383 | -Wl,-O1 \ |
| 384 | -Wl,--as-needed \ |
| 385 | -Wl,--gc-sections \ |
| 386 | -Wl,--warn-shared-textrel |
| 387 | |
| 388 | |
| 389 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 390 | |
| 391 | LOCAL_STATIC_LIBRARIES := |
| 392 | |
| 393 | # Enable grouping to fix circular references |
| 394 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 395 | |
| 396 | LOCAL_SHARED_LIBRARIES := \ |
| 397 | libstlport \ |
| 398 | libdl |
| 399 | |
| 400 | # Add target alias to "gyp_all_modules" target. |
| 401 | .PHONY: gyp_all_modules |
| 402 | gyp_all_modules: third_party_webrtc_modules_iLBC_gyp |
| 403 | |
| 404 | # Alias gyp target name. |
| 405 | .PHONY: iLBC |
| 406 | iLBC: third_party_webrtc_modules_iLBC_gyp |
| 407 | |
| 408 | include $(BUILD_STATIC_LIBRARY) |