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_CNG_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 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)) 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/cng/webrtc_cng.c \ 27 third_party/webrtc/modules/audio_coding/codecs/cng/cng_helpfuns.c 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 -fstack-protector \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -Wno-unused-local-typedefs \ 44 -fno-builtin-cos \ 45 -fno-builtin-sin \ 46 -fno-builtin-cosf \ 47 -fno-builtin-sinf \ 48 -fno-builtin-cos \ 49 -fno-builtin-sin \ 50 -fno-builtin-cosf \ 51 -fno-builtin-sinf \ 52 -fno-tree-sra \ 53 -fno-partial-inlining \ 54 -fno-early-inlining \ 55 -fno-tree-copy-prop \ 56 -fno-tree-loop-optimize \ 57 -fno-move-loop-invariants \ 58 -fno-caller-saves \ 59 -Wno-psabi \ 60 -ffunction-sections \ 61 -funwind-tables \ 62 -g \ 63 -fstack-protector \ 64 -fno-short-enums \ 65 -finline-limit=64 \ 66 -Wa,--noexecstack \ 67 -U_FORTIFY_SOURCE \ 68 -Wno-extra \ 69 -Wno-ignored-qualifiers \ 70 -Wno-type-limits \ 71 -Wno-unused-but-set-variable \ 72 -Os \ 73 -g \ 74 -fdata-sections \ 75 -ffunction-sections \ 76 -fomit-frame-pointer \ 77 -funwind-tables 78 79 MY_DEFS_Debug := \ 80 '-DV8_DEPRECATION_WARNINGS' \ 81 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISABLE_NACL' \ 85 '-DCHROMIUM_BUILD' \ 86 '-DUSE_LIBJPEG_TURBO=1' \ 87 '-DENABLE_WEBRTC=1' \ 88 '-DUSE_PROPRIETARY_CODECS' \ 89 '-DENABLE_BROWSER_CDMS' \ 90 '-DENABLE_CONFIGURATION_POLICY' \ 91 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 92 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 93 '-DENABLE_EGLIMAGE=1' \ 94 '-DCLD_VERSION=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-DENABLE_MANAGED_USERS=1' \ 97 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 98 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 99 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 100 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 101 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 102 '-DVIDEO_HOLE=1' \ 103 '-DWEBRTC_RESTRICT_LOGGING' \ 104 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 105 '-DWEBRTC_CHROMIUM_BUILD' \ 106 '-DLOGGING_INSIDE_WEBRTC' \ 107 '-DWEBRTC_ARCH_ARM' \ 108 '-DWEBRTC_ARCH_ARM_V7' \ 109 '-DWEBRTC_DETECT_ARM_NEON' \ 110 '-DWEBRTC_POSIX' \ 111 '-DWEBRTC_LINUX' \ 112 '-DWEBRTC_ANDROID' \ 113 '-DWEBRTC_ANDROID_OPENSLES' \ 114 '-DUSE_OPENSSL=1' \ 115 '-DUSE_OPENSSL_CERTS=1' \ 116 '-D__STDC_CONSTANT_MACROS' \ 117 '-D__STDC_FORMAT_MACROS' \ 118 '-DANDROID' \ 119 '-D__GNU_SOURCE=1' \ 120 '-DUSE_STLPORT=1' \ 121 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 122 '-DCHROME_BUILD_ID=""' \ 123 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 124 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 125 '-D_DEBUG' 126 127 128 # Include paths placed before CFLAGS/CPPFLAGS 129 LOCAL_C_INCLUDES_Debug := \ 130 $(gyp_shared_intermediate_dir) \ 131 $(LOCAL_PATH) \ 132 $(LOCAL_PATH)/third_party/webrtc/overrides \ 133 $(LOCAL_PATH)/third_party \ 134 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/cng/include \ 135 $(LOCAL_PATH)/third_party/webrtc \ 136 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 137 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 138 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 139 $(PWD)/frameworks/wilhelm/include \ 140 $(PWD)/bionic \ 141 $(PWD)/external/stlport/stlport 142 143 144 # Flags passed to only C++ (and not C) files. 145 LOCAL_CPPFLAGS_Debug := \ 146 -fno-rtti \ 147 -fno-threadsafe-statics \ 148 -fvisibility-inlines-hidden \ 149 -Wsign-compare \ 150 -Wno-abi \ 151 -Wno-non-virtual-dtor \ 152 -Wno-sign-promo 153 154 155 LOCAL_FDO_SUPPORT_Debug := false 156 157 # Flags passed to both C and C++ files. 158 MY_CFLAGS_Release := \ 159 -fstack-protector \ 160 --param=ssp-buffer-size=4 \ 161 -Werror \ 162 -fno-exceptions \ 163 -fno-strict-aliasing \ 164 -Wall \ 165 -Wno-unused-parameter \ 166 -Wno-missing-field-initializers \ 167 -fvisibility=hidden \ 168 -pipe \ 169 -fPIC \ 170 -Wno-unused-local-typedefs \ 171 -fno-builtin-cos \ 172 -fno-builtin-sin \ 173 -fno-builtin-cosf \ 174 -fno-builtin-sinf \ 175 -fno-builtin-cos \ 176 -fno-builtin-sin \ 177 -fno-builtin-cosf \ 178 -fno-builtin-sinf \ 179 -fno-tree-sra \ 180 -fno-partial-inlining \ 181 -fno-early-inlining \ 182 -fno-tree-copy-prop \ 183 -fno-tree-loop-optimize \ 184 -fno-move-loop-invariants \ 185 -fno-caller-saves \ 186 -Wno-psabi \ 187 -ffunction-sections \ 188 -funwind-tables \ 189 -g \ 190 -fstack-protector \ 191 -fno-short-enums \ 192 -finline-limit=64 \ 193 -Wa,--noexecstack \ 194 -U_FORTIFY_SOURCE \ 195 -Wno-extra \ 196 -Wno-ignored-qualifiers \ 197 -Wno-type-limits \ 198 -Wno-unused-but-set-variable \ 199 -Os \ 200 -fno-ident \ 201 -fdata-sections \ 202 -ffunction-sections \ 203 -fomit-frame-pointer \ 204 -funwind-tables 205 206 MY_DEFS_Release := \ 207 '-DV8_DEPRECATION_WARNINGS' \ 208 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 209 '-D_FILE_OFFSET_BITS=64' \ 210 '-DNO_TCMALLOC' \ 211 '-DDISABLE_NACL' \ 212 '-DCHROMIUM_BUILD' \ 213 '-DUSE_LIBJPEG_TURBO=1' \ 214 '-DENABLE_WEBRTC=1' \ 215 '-DUSE_PROPRIETARY_CODECS' \ 216 '-DENABLE_BROWSER_CDMS' \ 217 '-DENABLE_CONFIGURATION_POLICY' \ 218 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 219 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 220 '-DENABLE_EGLIMAGE=1' \ 221 '-DCLD_VERSION=1' \ 222 '-DENABLE_PRINTING=1' \ 223 '-DENABLE_MANAGED_USERS=1' \ 224 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 225 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 226 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 227 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 228 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 229 '-DVIDEO_HOLE=1' \ 230 '-DWEBRTC_RESTRICT_LOGGING' \ 231 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 232 '-DWEBRTC_CHROMIUM_BUILD' \ 233 '-DLOGGING_INSIDE_WEBRTC' \ 234 '-DWEBRTC_ARCH_ARM' \ 235 '-DWEBRTC_ARCH_ARM_V7' \ 236 '-DWEBRTC_DETECT_ARM_NEON' \ 237 '-DWEBRTC_POSIX' \ 238 '-DWEBRTC_LINUX' \ 239 '-DWEBRTC_ANDROID' \ 240 '-DWEBRTC_ANDROID_OPENSLES' \ 241 '-DUSE_OPENSSL=1' \ 242 '-DUSE_OPENSSL_CERTS=1' \ 243 '-D__STDC_CONSTANT_MACROS' \ 244 '-D__STDC_FORMAT_MACROS' \ 245 '-DANDROID' \ 246 '-D__GNU_SOURCE=1' \ 247 '-DUSE_STLPORT=1' \ 248 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 249 '-DCHROME_BUILD_ID=""' \ 250 '-DNDEBUG' \ 251 '-DNVALGRIND' \ 252 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 253 '-D_FORTIFY_SOURCE=2' 254 255 256 # Include paths placed before CFLAGS/CPPFLAGS 257 LOCAL_C_INCLUDES_Release := \ 258 $(gyp_shared_intermediate_dir) \ 259 $(LOCAL_PATH) \ 260 $(LOCAL_PATH)/third_party/webrtc/overrides \ 261 $(LOCAL_PATH)/third_party \ 262 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/cng/include \ 263 $(LOCAL_PATH)/third_party/webrtc \ 264 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 265 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 266 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 267 $(PWD)/frameworks/wilhelm/include \ 268 $(PWD)/bionic \ 269 $(PWD)/external/stlport/stlport 270 271 272 # Flags passed to only C++ (and not C) files. 273 LOCAL_CPPFLAGS_Release := \ 274 -fno-rtti \ 275 -fno-threadsafe-statics \ 276 -fvisibility-inlines-hidden \ 277 -Wsign-compare \ 278 -Wno-abi \ 279 -Wno-non-virtual-dtor \ 280 -Wno-sign-promo 281 282 283 LOCAL_FDO_SUPPORT_Release := false 284 285 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 286 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 287 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 288 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 289 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 290 ### Rules for final target. 291 292 LOCAL_LDFLAGS_Debug := \ 293 -Wl,-z,now \ 294 -Wl,-z,relro \ 295 -Wl,--fatal-warnings \ 296 -Wl,-z,noexecstack \ 297 -fPIC \ 298 -Wl,-z,relro \ 299 -Wl,-z,now \ 300 -fuse-ld=gold \ 301 -nostdlib \ 302 -Wl,--no-undefined \ 303 -Wl,--exclude-libs=ALL \ 304 -Wl,--icf=safe \ 305 -Wl,--warn-shared-textrel \ 306 -Wl,-O1 \ 307 -Wl,--as-needed 308 309 310 LOCAL_LDFLAGS_Release := \ 311 -Wl,-z,now \ 312 -Wl,-z,relro \ 313 -Wl,--fatal-warnings \ 314 -Wl,-z,noexecstack \ 315 -fPIC \ 316 -Wl,-z,relro \ 317 -Wl,-z,now \ 318 -fuse-ld=gold \ 319 -nostdlib \ 320 -Wl,--no-undefined \ 321 -Wl,--exclude-libs=ALL \ 322 -Wl,--icf=safe \ 323 -Wl,-O1 \ 324 -Wl,--as-needed \ 325 -Wl,--gc-sections \ 326 -Wl,--warn-shared-textrel 327 328 329 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 330 331 LOCAL_STATIC_LIBRARIES := 332 333 # Enable grouping to fix circular references 334 LOCAL_GROUP_STATIC_LIBRARIES := true 335 336 LOCAL_SHARED_LIBRARIES := \ 337 libstlport \ 338 libdl 339 340 # Add target alias to "gyp_all_modules" target. 341 .PHONY: gyp_all_modules 342 gyp_all_modules: third_party_webrtc_modules_CNG_gyp 343 344 # Alias gyp target name. 345 .PHONY: CNG 346 CNG: third_party_webrtc_modules_CNG_gyp 347 348 include $(BUILD_STATIC_LIBRARY) 349