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