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-caller-saves \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 121 | -Wno-psabi \ |
| 122 | -ffunction-sections \ |
| 123 | -funwind-tables \ |
| 124 | -g \ |
| 125 | -fstack-protector \ |
| 126 | -fno-short-enums \ |
| 127 | -finline-limit=64 \ |
| 128 | -Wa,--noexecstack \ |
| 129 | -U_FORTIFY_SOURCE \ |
| 130 | -Wno-extra \ |
| 131 | -Wno-ignored-qualifiers \ |
| 132 | -Wno-type-limits \ |
| 133 | -Wno-unused-but-set-variable \ |
| 134 | -Os \ |
| 135 | -g \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 136 | -fdata-sections \ |
| 137 | -ffunction-sections \ |
Android Chromium Automerger | 477e6bc | 2014-07-10 18:45:25 +0000 | [diff] [blame] | 138 | -fomit-frame-pointer \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 139 | -funwind-tables |
| 140 | |
| 141 | MY_DEFS_Debug := \ |
| 142 | '-DV8_DEPRECATION_WARNINGS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 143 | '-D_FILE_OFFSET_BITS=64' \ |
| 144 | '-DNO_TCMALLOC' \ |
| 145 | '-DDISABLE_NACL' \ |
| 146 | '-DCHROMIUM_BUILD' \ |
| 147 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 148 | '-DENABLE_WEBRTC=1' \ |
| 149 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 150 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 151 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 152 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 153 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 154 | '-DENABLE_EGLIMAGE=1' \ |
| 155 | '-DCLD_VERSION=1' \ |
| 156 | '-DENABLE_PRINTING=1' \ |
| 157 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 158 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 159 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 160 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 161 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 162 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 163 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 164 | '-DWEBRTC_RESTRICT_LOGGING' \ |
Android Chromium Automerger | cb45b28 | 2014-09-08 19:00:33 +0000 | [diff] [blame] | 165 | '-DEXPAT_RELATIVE_PATH' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 166 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 167 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 168 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 169 | '-DWEBRTC_ARCH_ARM' \ |
| 170 | '-DWEBRTC_ARCH_ARM_V7' \ |
| 171 | '-DWEBRTC_DETECT_ARM_NEON' \ |
| 172 | '-DWEBRTC_POSIX' \ |
| 173 | '-DWEBRTC_LINUX' \ |
| 174 | '-DWEBRTC_ANDROID' \ |
| 175 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 176 | '-DUSE_OPENSSL=1' \ |
| 177 | '-DUSE_OPENSSL_CERTS=1' \ |
| 178 | '-D__STDC_CONSTANT_MACROS' \ |
| 179 | '-D__STDC_FORMAT_MACROS' \ |
| 180 | '-DANDROID' \ |
| 181 | '-D__GNU_SOURCE=1' \ |
| 182 | '-DUSE_STLPORT=1' \ |
| 183 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 184 | '-DCHROME_BUILD_ID=""' \ |
| 185 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 186 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 187 | '-D_DEBUG' |
| 188 | |
| 189 | |
| 190 | # Include paths placed before CFLAGS/CPPFLAGS |
| 191 | LOCAL_C_INCLUDES_Debug := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 192 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 193 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 194 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 195 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 196 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ |
| 197 | $(LOCAL_PATH)/third_party/webrtc \ |
| 198 | $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ |
| 199 | $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ |
| 200 | $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ |
| 201 | $(PWD)/frameworks/wilhelm/include \ |
| 202 | $(PWD)/bionic \ |
| 203 | $(PWD)/external/stlport/stlport |
| 204 | |
| 205 | |
| 206 | # Flags passed to only C++ (and not C) files. |
| 207 | LOCAL_CPPFLAGS_Debug := \ |
| 208 | -fno-rtti \ |
| 209 | -fno-threadsafe-statics \ |
| 210 | -fvisibility-inlines-hidden \ |
| 211 | -Wsign-compare \ |
| 212 | -Wno-abi \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 213 | -std=gnu++11 \ |
| 214 | -Wno-narrowing \ |
| 215 | -Wno-literal-suffix \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 216 | -Wno-non-virtual-dtor \ |
| 217 | -Wno-sign-promo |
| 218 | |
| 219 | |
| 220 | # Flags passed to both C and C++ files. |
| 221 | MY_CFLAGS_Release := \ |
| 222 | -fstack-protector \ |
| 223 | --param=ssp-buffer-size=4 \ |
| 224 | -Werror \ |
| 225 | -fno-exceptions \ |
| 226 | -fno-strict-aliasing \ |
| 227 | -Wall \ |
| 228 | -Wno-unused-parameter \ |
| 229 | -Wno-missing-field-initializers \ |
| 230 | -fvisibility=hidden \ |
| 231 | -pipe \ |
| 232 | -fPIC \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 233 | -Wno-unused-local-typedefs \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 234 | -fno-builtin-cos \ |
| 235 | -fno-builtin-sin \ |
| 236 | -fno-builtin-cosf \ |
| 237 | -fno-builtin-sinf \ |
| 238 | -fno-builtin-cos \ |
| 239 | -fno-builtin-sin \ |
| 240 | -fno-builtin-cosf \ |
| 241 | -fno-builtin-sinf \ |
| 242 | -fno-tree-sra \ |
Android Chromium Automerger | 52dfe97 | 2014-05-28 16:21:48 +0000 | [diff] [blame] | 243 | -fno-caller-saves \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 244 | -Wno-psabi \ |
| 245 | -ffunction-sections \ |
| 246 | -funwind-tables \ |
| 247 | -g \ |
| 248 | -fstack-protector \ |
| 249 | -fno-short-enums \ |
| 250 | -finline-limit=64 \ |
| 251 | -Wa,--noexecstack \ |
| 252 | -U_FORTIFY_SOURCE \ |
| 253 | -Wno-extra \ |
| 254 | -Wno-ignored-qualifiers \ |
| 255 | -Wno-type-limits \ |
| 256 | -Wno-unused-but-set-variable \ |
| 257 | -Os \ |
| 258 | -fno-ident \ |
| 259 | -fdata-sections \ |
| 260 | -ffunction-sections \ |
| 261 | -fomit-frame-pointer \ |
| 262 | -funwind-tables |
| 263 | |
| 264 | MY_DEFS_Release := \ |
| 265 | '-DV8_DEPRECATION_WARNINGS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 266 | '-D_FILE_OFFSET_BITS=64' \ |
| 267 | '-DNO_TCMALLOC' \ |
| 268 | '-DDISABLE_NACL' \ |
| 269 | '-DCHROMIUM_BUILD' \ |
| 270 | '-DUSE_LIBJPEG_TURBO=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 271 | '-DENABLE_WEBRTC=1' \ |
| 272 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 273 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 274 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 275 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 276 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 277 | '-DENABLE_EGLIMAGE=1' \ |
| 278 | '-DCLD_VERSION=1' \ |
| 279 | '-DENABLE_PRINTING=1' \ |
| 280 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 281 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 282 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 283 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 284 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 285 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 286 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 287 | '-DWEBRTC_RESTRICT_LOGGING' \ |
Android Chromium Automerger | cb45b28 | 2014-09-08 19:00:33 +0000 | [diff] [blame] | 288 | '-DEXPAT_RELATIVE_PATH' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 289 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 290 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 291 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 292 | '-DWEBRTC_ARCH_ARM' \ |
| 293 | '-DWEBRTC_ARCH_ARM_V7' \ |
| 294 | '-DWEBRTC_DETECT_ARM_NEON' \ |
| 295 | '-DWEBRTC_POSIX' \ |
| 296 | '-DWEBRTC_LINUX' \ |
| 297 | '-DWEBRTC_ANDROID' \ |
| 298 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 299 | '-DUSE_OPENSSL=1' \ |
| 300 | '-DUSE_OPENSSL_CERTS=1' \ |
| 301 | '-D__STDC_CONSTANT_MACROS' \ |
| 302 | '-D__STDC_FORMAT_MACROS' \ |
| 303 | '-DANDROID' \ |
| 304 | '-D__GNU_SOURCE=1' \ |
| 305 | '-DUSE_STLPORT=1' \ |
| 306 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 307 | '-DCHROME_BUILD_ID=""' \ |
| 308 | '-DNDEBUG' \ |
| 309 | '-DNVALGRIND' \ |
| 310 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 311 | '-D_FORTIFY_SOURCE=2' |
| 312 | |
| 313 | |
| 314 | # Include paths placed before CFLAGS/CPPFLAGS |
| 315 | LOCAL_C_INCLUDES_Release := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 316 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 317 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 318 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 319 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 320 | $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ |
| 321 | $(LOCAL_PATH)/third_party/webrtc \ |
| 322 | $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ |
| 323 | $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ |
| 324 | $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ |
| 325 | $(PWD)/frameworks/wilhelm/include \ |
| 326 | $(PWD)/bionic \ |
| 327 | $(PWD)/external/stlport/stlport |
| 328 | |
| 329 | |
| 330 | # Flags passed to only C++ (and not C) files. |
| 331 | LOCAL_CPPFLAGS_Release := \ |
| 332 | -fno-rtti \ |
| 333 | -fno-threadsafe-statics \ |
| 334 | -fvisibility-inlines-hidden \ |
| 335 | -Wsign-compare \ |
| 336 | -Wno-abi \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 337 | -std=gnu++11 \ |
| 338 | -Wno-narrowing \ |
| 339 | -Wno-literal-suffix \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 340 | -Wno-non-virtual-dtor \ |
| 341 | -Wno-sign-promo |
| 342 | |
| 343 | |
| 344 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 345 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 346 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 347 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 348 | ### Rules for final target. |
| 349 | |
| 350 | LOCAL_LDFLAGS_Debug := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 351 | -Wl,-z,now \ |
| 352 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 353 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 354 | -Wl,-z,noexecstack \ |
| 355 | -fPIC \ |
| 356 | -Wl,-z,relro \ |
| 357 | -Wl,-z,now \ |
| 358 | -fuse-ld=gold \ |
| 359 | -nostdlib \ |
| 360 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 361 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 362 | -Wl,--icf=safe \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 363 | -Wl,--warn-shared-textrel \ |
| 364 | -Wl,-O1 \ |
| 365 | -Wl,--as-needed |
| 366 | |
| 367 | |
| 368 | LOCAL_LDFLAGS_Release := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 369 | -Wl,-z,now \ |
| 370 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 371 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 372 | -Wl,-z,noexecstack \ |
| 373 | -fPIC \ |
| 374 | -Wl,-z,relro \ |
| 375 | -Wl,-z,now \ |
| 376 | -fuse-ld=gold \ |
| 377 | -nostdlib \ |
| 378 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 379 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 380 | -Wl,--icf=safe \ |
| 381 | -Wl,-O1 \ |
| 382 | -Wl,--as-needed \ |
| 383 | -Wl,--gc-sections \ |
| 384 | -Wl,--warn-shared-textrel |
| 385 | |
| 386 | |
| 387 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 388 | |
| 389 | LOCAL_STATIC_LIBRARIES := |
| 390 | |
| 391 | # Enable grouping to fix circular references |
| 392 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 393 | |
| 394 | LOCAL_SHARED_LIBRARIES := \ |
| 395 | libstlport \ |
| 396 | libdl |
| 397 | |
| 398 | # Add target alias to "gyp_all_modules" target. |
| 399 | .PHONY: gyp_all_modules |
| 400 | gyp_all_modules: third_party_webrtc_modules_iLBC_gyp |
| 401 | |
| 402 | # Alias gyp target name. |
| 403 | .PHONY: iLBC |
| 404 | iLBC: third_party_webrtc_modules_iLBC_gyp |
| 405 | |
| 406 | include $(BUILD_STATIC_LIBRARY) |